diff --git a/librarian.yaml b/librarian.yaml
index 1a538d4e020e..9f3ea0636c54 100644
--- a/librarian.yaml
+++ b/librarian.yaml
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
language: nodejs
-version: v0.24.0
+version: v0.25.0
repo: googleapis/google-cloud-node
sources:
googleapis:
@@ -485,6 +485,13 @@ libraries:
copyright_year: "2026"
nodejs:
default_version: v1
+ - name: google-cloud-bigquery-api
+ version: 1.0.0
+ apis:
+ - path: google/cloud/bigquery/v2
+ copyright_year: "2026"
+ nodejs:
+ package_name: '@google-cloud/bigquery-api'
- name: google-cloud-bigquery-connection
version: 4.1.2
apis:
diff --git a/packages/google-cloud-bigquery-api/.gitignore b/packages/google-cloud-bigquery-api/.gitignore
new file mode 100644
index 000000000000..d4f03a0df2e8
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+/.coverage
+/coverage
+/.nyc_output
+/docs/
+/out/
+/build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/packages/google-cloud-bigquery-api/.jsdoc.js b/packages/google-cloud-bigquery-api/.jsdoc.js
new file mode 100644
index 000000000000..1208f774846f
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2026 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/bigquery-api',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-bigquery-api/.nycrc b/packages/google-cloud-bigquery-api/.nycrc
new file mode 100644
index 000000000000..81a95fc94b00
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/.nycrc
@@ -0,0 +1,24 @@
+{
+ "report-dir": "./.coverage",
+ "reporter": ["text", "lcov"],
+ "exclude": [
+ "**/*-test",
+ "**/.coverage",
+ "**/apis",
+ "**/benchmark",
+ "**/conformance",
+ "**/docs",
+ "**/samples",
+ "**/scripts",
+ "**/protos",
+ "**/test",
+ "**/*.d.ts",
+ ".jsdoc.js",
+ "**/.jsdoc.js",
+ "karma.conf.js",
+ "webpack-tests.config.js",
+ "webpack.config.js"
+ ],
+ "exclude-after-remap": false,
+ "all": true
+}
\ No newline at end of file
diff --git a/packages/google-cloud-bigquery-api/.repo-metadata.json b/packages/google-cloud-bigquery-api/.repo-metadata.json
new file mode 100644
index 000000000000..1441159f3640
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/.repo-metadata.json
@@ -0,0 +1,14 @@
+{
+ "api_description": "A data platform for customers to create, manage, share and query data.",
+ "api_id": "bigquery.googleapis.com",
+ "api_shortname": "bigquery",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/bigquery-api/latest",
+ "default_version": "v2",
+ "distribution_name": "@google-cloud/bigquery-api",
+ "language": "nodejs",
+ "library_type": "GAPIC_AUTO",
+ "name": "bigquery",
+ "name_pretty": "BigQuery",
+ "release_level": "stable",
+ "repo": "googleapis/google-cloud-node"
+}
\ No newline at end of file
diff --git a/packages/google-cloud-bigquery-api/README.md b/packages/google-cloud-bigquery-api/README.md
new file mode 100644
index 000000000000..2c62d0fb66b0
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/README.md
@@ -0,0 +1,108 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "The comments you see below are used to generate those parts of the template in later states."
+
+
+# [BigQuery API: Nodejs Client][homepage]
+
+[//]: # "releaseLevel"
+
+[](https://www.npmjs.org/package/@google-cloud/bigquery-api)
+
+BigQuery API client for Node.js
+
+[//]: # "partials.introduction"
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG][homepage_changelog].
+
+* [BigQuery API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/bigquery/latest)
+
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the BigQuery API API][enable_api].
+1. [Set up authentication][auth] so you can access the
+ API from your local workstation.
+### Installing the client library
+
+```bash
+npm install @google-cloud/bigquery-api
+```
+
+[//]: # "partials.body"
+
+## Samples
+
+Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
+
+[//]: # "samples"
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/bigquery-api@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template.
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=bigquery.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
+[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery/samples
+[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery/CHANGELOG.md
+[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery
diff --git a/packages/google-cloud-bigquery-api/package.json b/packages/google-cloud-bigquery-api/package.json
new file mode 100644
index 000000000000..778822e25b5d
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/package.json
@@ -0,0 +1,68 @@
+{
+ "name": "@google-cloud/bigquery-api",
+ "version": "0.1.0",
+ "description": "Bigquery client for Node.js",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-bigquery-api",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google bigquery",
+ "bigquery",
+ "dataset service",
+ "job service",
+ "model service",
+ "project service",
+ "routine service",
+ "row access policy service",
+ "table service"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
+ "test": "c8 mocha --config ../../.mocharc.cjs build/test"
+ },
+ "dependencies": {
+ "google-gax": "^5.1.1-rc.1"
+ },
+ "devDependencies": {
+ "@types/mocha": "^10.0.10",
+ "@types/node": "^22.18.12",
+ "@types/sinon": "^20.0.0",
+ "c8": "^10.1.3",
+ "gapic-tools": "^1.0.3",
+ "gts": "^6.0.2",
+ "jsdoc": "^4.0.5",
+ "jsdoc-fresh": "^5.0.2",
+ "jsdoc-region-tag": "^4.0.1",
+ "mocha": "^11.7.4",
+ "pack-n-play": "^4.2.1",
+ "typescript": "5.8.3",
+ "sinon": "^20.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/biglake_config.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/biglake_config.proto
new file mode 100644
index 000000000000..03190a1ce9be
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/biglake_config.proto
@@ -0,0 +1,63 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "BigLakeConfigProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Configuration for BigQuery tables for Apache Iceberg (formerly BigLake
+// managed tables.)
+message BigLakeConfiguration {
+ // Supported file formats for BigQuery tables for Apache Iceberg.
+ enum FileFormat {
+ // Default Value.
+ FILE_FORMAT_UNSPECIFIED = 0;
+
+ // Apache Parquet format.
+ PARQUET = 1;
+ }
+
+ // Supported table formats for BigQuery tables for Apache Iceberg.
+ enum TableFormat {
+ // Default Value.
+ TABLE_FORMAT_UNSPECIFIED = 0;
+
+ // Apache Iceberg format.
+ ICEBERG = 1;
+ }
+
+ // Optional. The connection specifying the credentials to be used to read and
+ // write to external storage, such as Cloud Storage. The connection_id can
+ // have the form `{project}.{location}.{connection_id}` or
+ // `projects/{project}/locations/{location}/connections/{connection_id}".
+ string connection_id = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The fully qualified location prefix of the external folder where
+ // table data is stored. The '*' wildcard character is not allowed. The URI
+ // should be in the format `gs://bucket/path_to_table/`
+ string storage_uri = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The file format the table data is stored in.
+ FileFormat file_format = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The table format the metadata only snapshots are stored in.
+ TableFormat table_format = 4 [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/clustering.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/clustering.proto
new file mode 100644
index 000000000000..79438ad16719
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/clustering.proto
@@ -0,0 +1,34 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "ClusteringProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Configures table clustering.
+message Clustering {
+ // One or more fields on which data should be clustered. Only top-level,
+ // non-repeated, simple-type fields are supported. The ordering of the
+ // clustering fields should be prioritized from most to least important
+ // for filtering purposes.
+ //
+ // For additional information, see
+ // [Introduction to clustered
+ // tables](https://cloud.google.com/bigquery/docs/clustered-tables#limitations).
+ repeated string fields = 1;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/data_format_options.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/data_format_options.proto
new file mode 100644
index 000000000000..9780f536647f
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/data_format_options.proto
@@ -0,0 +1,51 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "DataFormatOptionsProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Options for data format adjustments.
+message DataFormatOptions {
+ // The API output format for a timestamp.
+ enum TimestampOutputFormat {
+ // Corresponds to default API output behavior, which is FLOAT64.
+ TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED = 0;
+
+ // Timestamp is output as float64 seconds since Unix epoch.
+ FLOAT64 = 1;
+
+ // Timestamp is output as int64 microseconds since Unix epoch.
+ INT64 = 2;
+
+ // Timestamp is output as ISO 8601 String
+ // ("YYYY-MM-DDTHH:MM:SS.FFFFFFFFFFFFZ").
+ ISO8601_STRING = 3;
+ }
+
+ // Optional. Output timestamp as usec int64. Default is false.
+ bool use_int64_timestamp = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The API output format for a timestamp.
+ // This offers more explicit control over the timestamp output format
+ // as compared to the existing `use_int64_timestamp` option.
+ TimestampOutputFormat timestamp_output_format = 3
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/dataset.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/dataset.proto
new file mode 100644
index 000000000000..660eaaefbf54
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/dataset.proto
@@ -0,0 +1,754 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/cloud/bigquery/v2/dataset_reference.proto";
+import "google/cloud/bigquery/v2/encryption_config.proto";
+import "google/cloud/bigquery/v2/external_catalog_dataset_options.proto";
+import "google/cloud/bigquery/v2/external_dataset_reference.proto";
+import "google/cloud/bigquery/v2/restriction_config.proto";
+import "google/cloud/bigquery/v2/routine_reference.proto";
+import "google/cloud/bigquery/v2/table_reference.proto";
+import "google/cloud/bigquery/v2/table_schema.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+import "google/type/expr.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "DatasetProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// DatasetService provides methods for managing BigQuery datasets.
+service DatasetService {
+ option (google.api.default_host) = "bigquery.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ // Returns the dataset specified by datasetID.
+ rpc GetDataset(GetDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}"
+ };
+ }
+
+ // Creates a new empty dataset.
+ rpc InsertDataset(InsertDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/datasets"
+ body: "dataset"
+ };
+ }
+
+ // Updates information in an existing dataset. The update method replaces the
+ // entire dataset resource, whereas the patch method only replaces fields that
+ // are provided in the submitted dataset resource.
+ // This method supports RFC5789 patch semantics.
+ rpc PatchDataset(UpdateOrPatchDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ patch: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}"
+ body: "dataset"
+ };
+ }
+
+ // Updates information in an existing dataset. The update method replaces the
+ // entire dataset resource, whereas the patch method only replaces fields that
+ // are provided in the submitted dataset resource.
+ rpc UpdateDataset(UpdateOrPatchDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ put: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}"
+ body: "dataset"
+ };
+ }
+
+ // Deletes the dataset specified by the datasetId value. Before you can delete
+ // a dataset, you must delete all its tables, either manually or by specifying
+ // deleteContents. Immediately after deletion, you can create another dataset
+ // with the same name.
+ rpc DeleteDataset(DeleteDatasetRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}"
+ };
+ }
+
+ // Lists all datasets in the specified project to which the user has been
+ // granted the READER dataset role.
+ rpc ListDatasets(ListDatasetsRequest) returns (DatasetList) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets"
+ };
+ }
+
+ // Undeletes a dataset which is within time travel window based on datasetId.
+ // If a time is specified, the dataset version deleted at that time is
+ // undeleted, else the last live version is undeleted.
+ rpc UndeleteDataset(UndeleteDatasetRequest) returns (Dataset) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}:undelete"
+ body: "*"
+ };
+ }
+}
+
+// Grants all resources of particular types in a particular dataset read access
+// to the current dataset.
+//
+// Similar to how individually authorized views work, updates to any resource
+// granted through its dataset (including creation of new resources) requires
+// read permission to referenced resources, plus write permission to the
+// authorizing dataset.
+message DatasetAccessEntry {
+ // Indicates the type of resources in a dataset that the entry applies to.
+ enum TargetType {
+ // Do not use. You must set a target type explicitly.
+ TARGET_TYPE_UNSPECIFIED = 0;
+
+ // This entry applies to views in the dataset.
+ VIEWS = 1;
+
+ // This entry applies to routines in the dataset.
+ ROUTINES = 2;
+ }
+
+ // The dataset this entry applies to
+ DatasetReference dataset = 1;
+
+ // Which resources in the dataset this entry applies to. Currently, only
+ // views are supported, but additional target types may be added in the
+ // future.
+ repeated TargetType target_types = 2;
+}
+
+// An object that defines dataset access for an entity.
+message Access {
+ // An IAM role ID that should be granted to the user, group,
+ // or domain specified in this access entry.
+ // The following legacy mappings will be applied:
+ //
+ // * `OWNER`: `roles/bigquery.dataOwner`
+ // * `WRITER`: `roles/bigquery.dataEditor`
+ // * `READER`: `roles/bigquery.dataViewer`
+ //
+ // This field will accept any of the above formats, but will return only
+ // the legacy format. For example, if you set this field to
+ // "roles/bigquery.dataOwner", it will be returned back as "OWNER".
+ string role = 1;
+
+ // [Pick one] An email address of a user to grant access to. For example:
+ // fred@example.com. Maps to IAM policy member "user:EMAIL" or
+ // "serviceAccount:EMAIL".
+ string user_by_email = 2;
+
+ // [Pick one] An email address of a Google Group to grant access to.
+ // Maps to IAM policy member "group:GROUP".
+ string group_by_email = 3;
+
+ // [Pick one] A domain to grant access to. Any users signed in with the domain
+ // specified will be granted the specified access. Example: "example.com".
+ // Maps to IAM policy member "domain:DOMAIN".
+ string domain = 4;
+
+ // [Pick one] A special group to grant access to. Possible values include:
+ //
+ // * projectOwners: Owners of the enclosing project.
+ // * projectReaders: Readers of the enclosing project.
+ // * projectWriters: Writers of the enclosing project.
+ // * allAuthenticatedUsers: All authenticated BigQuery users.
+ //
+ // Maps to similarly-named IAM members.
+ string special_group = 5;
+
+ // [Pick one] Some other type of member that appears in the IAM Policy but
+ // isn't a user, group, domain, or special group.
+ string iam_member = 7;
+
+ // [Pick one] A view from a different dataset to grant access to. Queries
+ // executed against that view will have read access to views/tables/routines
+ // in this dataset.
+ // The role field is not required when this field is set. If that view is
+ // updated by any user, access to the view needs to be granted again via an
+ // update operation.
+ TableReference view = 6;
+
+ // [Pick one] A routine from a different dataset to grant access to. Queries
+ // executed against that routine will have read access to
+ // views/tables/routines in this dataset. Only UDF is supported for now.
+ // The role field is not required when this field is set. If that routine is
+ // updated by any user, access to the routine needs to be granted again via
+ // an update operation.
+ RoutineReference routine = 8;
+
+ // [Pick one] A grant authorizing all resources of a particular type in a
+ // particular dataset access to this dataset. Only views are supported for
+ // now. The role field is not required when this field is set. If that dataset
+ // is deleted and re-created, its access needs to be granted again via an
+ // update operation.
+ DatasetAccessEntry dataset = 9;
+
+ // Optional. condition for the binding. If CEL expression in this field is
+ // true, this access binding will be considered
+ google.type.Expr condition = 10 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents a BigQuery dataset.
+message Dataset {
+ // Indicates the billing model that will be applied to the dataset.
+ enum StorageBillingModel {
+ // Value not set.
+ STORAGE_BILLING_MODEL_UNSPECIFIED = 0;
+
+ // Billing for logical bytes.
+ LOGICAL = 1;
+
+ // Billing for physical bytes.
+ PHYSICAL = 2;
+ }
+
+ // Output only. The resource type.
+ string kind = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A hash of the resource.
+ string etag = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The fully-qualified unique name of the dataset in the format
+ // projectId:datasetId. The dataset name without the project name is given in
+ // the datasetId field. When creating a new dataset, leave this field blank,
+ // and instead specify the datasetId field.
+ string id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A URL that can be used to access the resource again. You can
+ // use this URL in Get or Update requests to the resource.
+ string self_link = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. A reference that identifies the dataset.
+ DatasetReference dataset_reference = 5
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A descriptive name for the dataset.
+ google.protobuf.StringValue friendly_name = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A user-friendly description of the dataset.
+ google.protobuf.StringValue description = 7
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The default lifetime of all tables in the dataset, in
+ // milliseconds. The minimum lifetime value is 3600000 milliseconds (one
+ // hour). To clear an existing default expiration with a PATCH request, set to
+ // 0. Once this property is set, all newly-created tables in the dataset will
+ // have an expirationTime property set to the creation time plus the value in
+ // this property, and changing the value will only affect new tables, not
+ // existing ones. When the expirationTime for a given table is reached, that
+ // table will be deleted automatically.
+ // If a table's expirationTime is modified or removed before the table
+ // expires, or if you provide an explicit expirationTime when creating a
+ // table, that value takes precedence over the default expiration time
+ // indicated by this property.
+ google.protobuf.Int64Value default_table_expiration_ms = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // This default partition expiration, expressed in milliseconds.
+ //
+ // When new time-partitioned tables are created in a dataset where this
+ // property is set, the table will inherit this value, propagated as the
+ // `TimePartitioning.expirationMs` property on the new table. If you set
+ // `TimePartitioning.expirationMs` explicitly when creating a table,
+ // the `defaultPartitionExpirationMs` of the containing dataset is ignored.
+ //
+ // When creating a partitioned table, if `defaultPartitionExpirationMs`
+ // is set, the `defaultTableExpirationMs` value is ignored and the table
+ // will not be inherit a table expiration deadline.
+ google.protobuf.Int64Value default_partition_expiration_ms = 14;
+
+ // The labels associated with this dataset. You can use these
+ // to organize and group your datasets.
+ // You can set this property when inserting or updating a dataset.
+ // See [Creating and Updating Dataset
+ // Labels](https://cloud.google.com/bigquery/docs/creating-managing-labels#creating_and_updating_dataset_labels)
+ // for more information.
+ map labels = 9;
+
+ // Optional. An array of objects that define dataset access for one or more
+ // entities. You can set this property when inserting or updating a dataset in
+ // order to control who is allowed to access the data. If unspecified at
+ // dataset creation time, BigQuery adds default dataset access for the
+ // following entities: access.specialGroup: projectReaders; access.role:
+ // READER; access.specialGroup: projectWriters; access.role: WRITER;
+ // access.specialGroup: projectOwners; access.role: OWNER;
+ // access.userByEmail: [dataset creator email]; access.role: OWNER;
+ // If you patch a dataset, then this field is overwritten by the patched
+ // dataset's access field. To add entities, you must supply the entire
+ // existing access array in addition to any new entities that you want to add.
+ repeated Access access = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The time when this dataset was created, in milliseconds since
+ // the epoch.
+ int64 creation_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The date when this dataset was last modified, in milliseconds
+ // since the epoch.
+ int64 last_modified_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The geographic location where the dataset should reside. See
+ // https://cloud.google.com/bigquery/docs/locations for supported
+ // locations.
+ string location = 13;
+
+ // The default encryption key for all tables in the dataset.
+ // After this property is set, the encryption key of all newly-created tables
+ // in the dataset is set to this value unless the table creation request or
+ // query explicitly overrides the key.
+ EncryptionConfiguration default_encryption_configuration = 16;
+
+ // Output only. Reserved for future use.
+ google.protobuf.BoolValue satisfies_pzs = 17
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Reserved for future use.
+ google.protobuf.BoolValue satisfies_pzi = 31
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Same as `type` in `ListFormatDataset`.
+ // The type of the dataset, one of:
+ //
+ // * DEFAULT - only accessible by owner and authorized accounts,
+ // * PUBLIC - accessible by everyone,
+ // * LINKED - linked dataset,
+ // * EXTERNAL - dataset with definition in external metadata catalog,
+ // * BIGLAKE_ICEBERG - a Biglake dataset accessible through the Iceberg API,
+ // * BIGLAKE_HIVE - a Biglake dataset accessible through the Hive API.
+ string type = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The origin of the dataset, one of:
+ //
+ // * (Unset) - Native BigQuery Dataset
+ // * BIGLAKE - Dataset is backed by a namespace stored natively in Biglake
+ optional string catalog_source = 40
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The source dataset reference when the dataset is of type LINKED.
+ // For all other dataset types it is not set. This field cannot be updated
+ // once it is set. Any attempt to update this field using Update and Patch API
+ // Operations will be ignored.
+ LinkedDatasetSource linked_dataset_source = 19
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Metadata about the LinkedDataset. Filled out when the dataset
+ // type is LINKED.
+ LinkedDatasetMetadata linked_dataset_metadata = 29
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Reference to a read-only external dataset defined in data
+ // catalogs outside of BigQuery. Filled out when the dataset type is EXTERNAL.
+ ExternalDatasetReference external_dataset_reference = 20
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Options defining open source compatible datasets living in the
+ // BigQuery catalog. Contains metadata of open source database, schema or
+ // namespace represented by the current dataset.
+ ExternalCatalogDatasetOptions external_catalog_dataset_options = 32
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. TRUE if the dataset and its table names are case-insensitive,
+ // otherwise FALSE. By default, this is FALSE, which means the dataset and its
+ // table names are case-sensitive. This field does not affect routine
+ // references.
+ google.protobuf.BoolValue is_case_insensitive = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Defines the default collation specification of future tables
+ // created in the dataset. If a table is created in this dataset without
+ // table-level default collation, then the table inherits the dataset default
+ // collation, which is applied to the string fields that do not have explicit
+ // collation specified. A change to this field affects only tables created
+ // afterwards, and does not alter the existing tables.
+ // The following values are supported:
+ //
+ // * 'und:ci': undetermined locale, case insensitive.
+ // * '': empty string. Default to case-sensitive behavior.
+ google.protobuf.StringValue default_collation = 22
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Defines the default rounding mode specification of new tables
+ // created within this dataset. During table creation, if this field is
+ // specified, the table within this dataset will inherit the default rounding
+ // mode of the dataset. Setting the default rounding mode on a table overrides
+ // this option. Existing tables in the dataset are unaffected.
+ // If columns are defined during that table creation,
+ // they will immediately inherit the table's default rounding mode,
+ // unless otherwise specified.
+ TableFieldSchema.RoundingMode default_rounding_mode = 26
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Defines the time travel window in hours. The value can be from 48
+ // to 168 hours (2 to 7 days). The default value is 168 hours if this is not
+ // set.
+ google.protobuf.Int64Value max_time_travel_hours = 23
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Tags for the dataset. To provide tags as inputs, use the
+ // `resourceTags` field.
+ repeated GcpTag tags = 24
+ [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Updates storage_billing_model for the dataset.
+ StorageBillingModel storage_billing_model = 25
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Output only. Restriction config for all tables and dataset. If
+ // set, restrict certain accesses on the dataset and all its tables based on
+ // the config. See [Data
+ // egress](https://cloud.google.com/bigquery/docs/analytics-hub-introduction#data_egress)
+ // for more details.
+ RestrictionConfig restrictions = 27 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // Optional. The [tags](https://cloud.google.com/bigquery/docs/tags) attached
+ // to this dataset. Tag keys are globally unique. Tag key is expected to be in
+ // the namespaced format, for example "123456789012/environment" where
+ // 123456789012 is the ID of the parent organization or project resource for
+ // this tag key. Tag value is expected to be the short name, for example
+ // "Production". See [Tag
+ // definitions](https://cloud.google.com/iam/docs/tags-access-control#definitions)
+ // for more details.
+ map resource_tags = 30
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A global tag managed by Resource Manager.
+// https://cloud.google.com/iam/docs/tags-access-control#definitions
+message GcpTag {
+ // Required. The namespaced friendly name of the tag key, e.g.
+ // "12345/environment" where 12345 is org id.
+ string tag_key = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The friendly short name of the tag value, e.g. "production".
+ string tag_value = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// A dataset source type which refers to another BigQuery dataset.
+message LinkedDatasetSource {
+ // The source dataset reference contains project numbers and not project ids.
+ DatasetReference source_dataset = 1;
+}
+
+// Metadata about the Linked Dataset.
+message LinkedDatasetMetadata {
+ // Specifies whether Linked Dataset is currently in a linked state or not.
+ enum LinkState {
+ // The default value.
+ // Default to the LINKED state.
+ LINK_STATE_UNSPECIFIED = 0;
+
+ // Normal Linked Dataset state. Data is queryable via the Linked Dataset.
+ LINKED = 1;
+
+ // Data publisher or owner has unlinked this Linked Dataset. It means you
+ // can no longer query or see the data in the Linked Dataset.
+ UNLINKED = 2;
+ }
+
+ // Output only. Specifies whether Linked Dataset is currently in a linked
+ // state or not.
+ LinkState link_state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request format for getting information about a dataset.
+message GetDatasetRequest {
+ // DatasetView specifies which dataset information is returned.
+ enum DatasetView {
+ // The default value.
+ // Default to the FULL view.
+ DATASET_VIEW_UNSPECIFIED = 0;
+
+ // View metadata information for the dataset, such as friendlyName,
+ // description, labels, etc.
+ METADATA = 1;
+
+ // View ACL information for the dataset, which defines dataset access
+ // for one or more entities.
+ ACL = 2;
+
+ // View both dataset metadata and ACL information.
+ FULL = 3;
+ }
+
+ // Required. Project ID of the requested dataset
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the requested dataset
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Specifies the view that determines which dataset information is
+ // returned. By default, metadata and ACL information are returned.
+ DatasetView dataset_view = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The version of the access policy schema to fetch.
+ // Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ // rejected.
+ //
+ // Requests for conditional access policy binding in datasets must specify
+ // version 3. Dataset with no conditional role bindings in access policy may
+ // specify any valid value or leave the field unset.
+ //
+ // This field will be mapped to [IAM Policy version]
+ // (https://cloud.google.com/iam/docs/policies#versions) and will be used to
+ // fetch policy from IAM.
+ //
+ // If unset or if 0 or 1 value is used for dataset with conditional bindings,
+ // access entry with condition will have role string appended by
+ // 'withcond' string followed by a hash value. For example :
+ // {
+ // "access": [
+ // {
+ // "role":
+ // "roles/bigquery.dataViewer_with_conditionalbinding_7a34awqsda",
+ // "userByEmail": "user@example.com",
+ // }
+ // ]
+ // }
+ // Please refer https://cloud.google.com/iam/docs/troubleshooting-withcond for
+ // more details.
+ int32 access_policy_version = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request format for inserting a dataset.
+message InsertDatasetRequest {
+ // Required. Project ID of the new dataset
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Datasets resource to use for the new dataset
+ Dataset dataset = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The version of the provided access policy schema.
+ // Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ // rejected.
+ //
+ // This version refers to the schema version of the access policy and not the
+ // version of access policy. This field's value can be equal or more
+ // than the access policy schema provided in the request.
+ // For example,
+ // * Requests with conditional access policy binding in datasets must
+ // specify
+ // version 3.
+ // * But dataset with no conditional role bindings in access policy
+ // may specify any valid value or leave the field unset.
+ // If unset or if 0 or 1 value is used for dataset with conditional
+ // bindings, request will be rejected.
+ //
+ // This field will be mapped to IAM Policy version
+ // (https://cloud.google.com/iam/docs/policies#versions) and will be used to
+ // set policy in IAM.
+ int32 access_policy_version = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for updating or patching a dataset.
+message UpdateOrPatchDatasetRequest {
+ // UpdateMode specifies which dataset fields is updated.
+ enum UpdateMode {
+ // The default value.
+ // Default to the UPDATE_FULL.
+ UPDATE_MODE_UNSPECIFIED = 0;
+
+ // Includes metadata information for the dataset, such as friendlyName,
+ // description, labels, etc.
+ UPDATE_METADATA = 1;
+
+ // Includes ACL information for the dataset, which defines dataset access
+ // for one or more entities.
+ UPDATE_ACL = 2;
+
+ // Includes both dataset metadata and ACL information.
+ UPDATE_FULL = 3;
+ }
+
+ // Required. Project ID of the dataset being updated
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the dataset being updated
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Datasets resource which will replace or patch the specified
+ // dataset.
+ Dataset dataset = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Specifies the fields of dataset that update/patch operation is
+ // targeting By default, both metadata and ACL fields are updated.
+ UpdateMode update_mode = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The version of the provided access policy schema.
+ // Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ // rejected.
+ //
+ // This version refers to the schema version of the access policy and not the
+ // version of access policy. This field's value can be equal or more
+ // than the access policy schema provided in the request.
+ // For example,
+ // * Operations updating conditional access policy binding in datasets must
+ // specify
+ // version 3. Some of the operations are :
+ // - Adding a new access policy entry with condition.
+ // - Removing an access policy entry with condition.
+ // - Updating an access policy entry with condition.
+ // * But dataset with no conditional role bindings in access policy
+ // may specify any valid value or leave the field unset.
+ // If unset or if 0 or 1 value is used for dataset with conditional
+ // bindings, request will be rejected.
+ //
+ // This field will be mapped to IAM Policy version
+ // (https://cloud.google.com/iam/docs/policies#versions) and will be used to
+ // set policy in IAM.
+ int32 access_policy_version = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request format for deleting a dataset.
+message DeleteDatasetRequest {
+ // Required. Project ID of the dataset being deleted
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of dataset being deleted
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // If True, delete all the tables in the dataset.
+ // If False and the dataset contains tables, the request will fail.
+ // Default is False
+ bool delete_contents = 3;
+}
+
+message ListDatasetsRequest {
+ // Required. Project ID of the datasets to be listed
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum number of results to return in a single response page.
+ // Leverage the page tokens to iterate through the entire collection.
+ google.protobuf.UInt32Value max_results = 2;
+
+ // Page token, returned by a previous call, to request the next page of
+ // results
+ string page_token = 3;
+
+ // Whether to list all datasets, including hidden ones
+ bool all = 4;
+
+ // An expression for filtering the results of the request by label.
+ // The syntax is `labels.[:]`.
+ // Multiple filters can be AND-ed together by connecting with a space.
+ // Example: `labels.department:receiving labels.active`.
+ // See [Filtering datasets using
+ // labels](https://cloud.google.com/bigquery/docs/filtering-labels#filtering_datasets_using_labels)
+ // for details.
+ string filter = 5;
+}
+
+// A dataset resource with only a subset of fields, to be returned in a list of
+// datasets.
+message ListFormatDataset {
+ // The resource type.
+ // This property always returns the value "bigquery#dataset"
+ string kind = 1;
+
+ // The fully-qualified, unique, opaque ID of the dataset.
+ string id = 2;
+
+ // The dataset reference.
+ // Use this property to access specific parts of the dataset's ID, such as
+ // project ID or dataset ID.
+ DatasetReference dataset_reference = 3;
+
+ // The labels associated with this dataset.
+ // You can use these to organize and group your datasets.
+ map labels = 4;
+
+ // An alternate name for the dataset. The friendly name is purely
+ // decorative in nature.
+ google.protobuf.StringValue friendly_name = 5;
+
+ // The geographic location where the dataset resides.
+ string location = 6;
+
+ // Output only. Same as `type` in `Dataset`.
+ // The type of the dataset, one of:
+ //
+ // * DEFAULT - only accessible by owner and authorized accounts,
+ // * PUBLIC - accessible by everyone,
+ // * LINKED - linked dataset,
+ // * EXTERNAL - dataset with definition in external metadata catalog,
+ // * BIGLAKE_ICEBERG - a Biglake dataset accessible through the Iceberg API,
+ // * BIGLAKE_HIVE - a Biglake dataset accessible through the Hive API.
+ string type = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The origin of the dataset, one of:
+ //
+ // * (Unset) - Native BigQuery Dataset.
+ // * BIGLAKE - Dataset is backed by a namespace stored natively in Biglake.
+ optional string catalog_source = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Reference to a read-only external dataset defined in data
+ // catalogs outside of BigQuery. Filled out when the dataset type is EXTERNAL.
+ ExternalDatasetReference external_dataset_reference = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Response format for a page of results when listing datasets.
+message DatasetList {
+ // Output only. The resource type.
+ // This property always returns the value "bigquery#datasetList"
+ string kind = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A hash value of the results page. You can use this property to
+ // determine if the page has changed since the last request.
+ string etag = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // A token that can be used to request the next results page. This property is
+ // omitted on the final results page.
+ string next_page_token = 3;
+
+ // An array of the dataset resources in the project.
+ // Each resource contains basic information.
+ // For full information about a particular dataset resource, use the Datasets:
+ // get method. This property is omitted when there are no datasets in the
+ // project.
+ repeated ListFormatDataset datasets = 4;
+
+ // A list of skipped locations that were unreachable. For more information
+ // about BigQuery locations, see:
+ // https://cloud.google.com/bigquery/docs/locations. Example: "europe-west5"
+ repeated string unreachable = 5;
+}
+
+// Request format for undeleting a dataset.
+message UndeleteDatasetRequest {
+ // Required. Project ID of the dataset to be undeleted
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of dataset being deleted
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The exact time when the dataset was deleted. If not specified,
+ // the most recently deleted version is undeleted. Undeleting a dataset
+ // using deletion time is not supported.
+ google.protobuf.Timestamp deletion_time = 3
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/dataset_reference.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/dataset_reference.proto
new file mode 100644
index 000000000000..fb0ecadbec29
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/dataset_reference.proto
@@ -0,0 +1,34 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "DatasetReferenceProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Identifier for a dataset.
+message DatasetReference {
+ // Required. A unique ID for this dataset, without the project name. The ID
+ // must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
+ // The maximum length is 1,024 characters.
+ string dataset_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The ID of the project containing this dataset.
+ string project_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/decimal_target_types.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/decimal_target_types.proto
new file mode 100644
index 000000000000..37a6cb08d31d
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/decimal_target_types.proto
@@ -0,0 +1,40 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "DecimalTargetTypesProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// The data types that could be used as a target type when converting decimal
+// values.
+enum DecimalTargetType {
+ // Invalid type.
+ DECIMAL_TARGET_TYPE_UNSPECIFIED = 0;
+
+ // Decimal values could be converted to NUMERIC
+ // type.
+ NUMERIC = 1;
+
+ // Decimal values could be converted to BIGNUMERIC
+ // type.
+ BIGNUMERIC = 2;
+
+ // Decimal values could be converted to STRING type.
+ STRING = 3;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/encryption_config.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/encryption_config.proto
new file mode 100644
index 000000000000..df0d1ea58c1a
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/encryption_config.proto
@@ -0,0 +1,33 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "EncryptionConfigProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Configuration for Cloud KMS encryption settings.
+message EncryptionConfiguration {
+ // Optional. Describes the Cloud KMS encryption key that will be used to
+ // protect destination BigQuery table. The BigQuery Service Account associated
+ // with your project requires access to this encryption key.
+ google.protobuf.StringValue kms_key_name = 1
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/error.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/error.proto
new file mode 100644
index 000000000000..1af1967dab14
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/error.proto
@@ -0,0 +1,36 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Error details.
+message ErrorProto {
+ // A short error code that summarizes the error.
+ string reason = 1;
+
+ // Specifies where the error occurred, if present.
+ string location = 2;
+
+ // Debugging information. This property is internal to Google and should not
+ // be used.
+ string debug_info = 3;
+
+ // A human-readable description of the error.
+ string message = 4;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_catalog_dataset_options.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_catalog_dataset_options.proto
new file mode 100644
index 000000000000..04ef45235240
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_catalog_dataset_options.proto
@@ -0,0 +1,39 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "ExternalCatalogDatasetOptionsProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Options defining open source compatible datasets living in the BigQuery
+// catalog. Contains metadata of open source database, schema,
+// or namespace represented by the current dataset.
+message ExternalCatalogDatasetOptions {
+ // Optional. A map of key value pairs defining the parameters and properties
+ // of the open source schema. Maximum size of 2MiB.
+ map parameters = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The storage location URI for all tables in the dataset.
+ // Equivalent to hive metastore's database locationUri. Maximum length of 1024
+ // characters.
+ string default_storage_location_uri = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_catalog_table_options.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_catalog_table_options.proto
new file mode 100644
index 000000000000..4393bd1aefc9
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_catalog_table_options.proto
@@ -0,0 +1,87 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "ExternalCatalogTableOptionsProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Metadata about open source compatible table. The fields contained in
+// these options correspond to Hive metastore's table-level properties.
+message ExternalCatalogTableOptions {
+ // Optional. A map of the key-value pairs defining the parameters and
+ // properties of the open source table. Corresponds with Hive metastore table
+ // parameters. Maximum size of 4MiB.
+ map parameters = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A storage descriptor containing information about the physical
+ // storage of this table.
+ StorageDescriptor storage_descriptor = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A connection ID that specifies the credentials to be used to read
+ // external storage, such as Azure Blob, Cloud Storage, or Amazon S3. This
+ // connection is needed to read the open source table from BigQuery. The
+ // connection_id format must be either
+ // `..` or
+ // `projects//locations//connections/`.
+ string connection_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Contains information about how a table's data is stored and accessed by open
+// source query engines.
+message StorageDescriptor {
+ // Optional. The physical location of the table
+ // (e.g. `gs://spark-dataproc-data/pangea-data/case_sensitive/` or
+ // `gs://spark-dataproc-data/pangea-data/*`).
+ // The maximum length is 2056 bytes.
+ string location_uri = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the fully qualified class name of the InputFormat
+ // (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat").
+ // The maximum length is 128 characters.
+ string input_format = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the fully qualified class name of the OutputFormat
+ // (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat").
+ // The maximum length is 128 characters.
+ string output_format = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Serializer and deserializer information.
+ SerDeInfo serde_info = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Serializer and deserializer information.
+message SerDeInfo {
+ // Optional. Name of the SerDe.
+ // The maximum length is 256 characters.
+ string name = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Specifies a fully-qualified class name of the serialization
+ // library that is responsible for the translation of data between table
+ // representation and the underlying low-level input and output format
+ // structures. The maximum length is 256 characters.
+ string serialization_library = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Key-value pairs that define the initialization parameters for the
+ // serialization library.
+ // Maximum size 10 Kib.
+ map parameters = 3 [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_data_config.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_data_config.proto
new file mode 100644
index 000000000000..36a974bb4f4b
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_data_config.proto
@@ -0,0 +1,594 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/bigquery/v2/decimal_target_types.proto";
+import "google/cloud/bigquery/v2/file_set_specification_type.proto";
+import "google/cloud/bigquery/v2/hive_partitioning.proto";
+import "google/cloud/bigquery/v2/json_extension.proto";
+import "google/cloud/bigquery/v2/map_target_type.proto";
+import "google/cloud/bigquery/v2/table_schema.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "ExternalDataConfigProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Options for external data sources.
+message AvroOptions {
+ // Optional. If sourceFormat is set to "AVRO", indicates whether to interpret
+ // logical types as the corresponding BigQuery data type (for example,
+ // TIMESTAMP), instead of using the raw type (for example, INTEGER).
+ google.protobuf.BoolValue use_avro_logical_types = 1
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Parquet Options for load and make external tables.
+message ParquetOptions {
+ // Optional. Indicates whether to infer Parquet ENUM logical type as STRING
+ // instead of BYTES by default.
+ google.protobuf.BoolValue enum_as_string = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Indicates whether to use schema inference specifically for
+ // Parquet LIST logical type.
+ google.protobuf.BoolValue enable_list_inference = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Indicates how to represent a Parquet map if present.
+ MapTargetType map_target_type = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Information related to a CSV data source.
+message CsvOptions {
+ // Optional. The separator character for fields in a CSV file. The separator
+ // is interpreted as a single byte. For files encoded in ISO-8859-1, any
+ // single character can be used as a separator. For files encoded in UTF-8,
+ // characters represented in decimal range 1-127 (U+0001-U+007F) can be used
+ // without any modification. UTF-8 characters encoded with multiple bytes
+ // (i.e. U+0080 and above) will have only the first byte used for separating
+ // fields. The remaining bytes will be treated as a part of the field.
+ // BigQuery also supports the escape sequence "\t" (U+0009) to specify a tab
+ // separator. The default value is comma (",", U+002C).
+ string field_delimiter = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The number of rows at the top of a CSV file that BigQuery will
+ // skip when reading the data. The default value is 0. This property is
+ // useful if you have header rows in the file that should be skipped.
+ // When autodetect is on, the behavior is the following:
+ //
+ // * skipLeadingRows unspecified - Autodetect tries to detect headers in the
+ // first row. If they are not detected, the row is read as data. Otherwise
+ // data is read starting from the second row.
+ // * skipLeadingRows is 0 - Instructs autodetect that there are no headers and
+ // data should be read starting from the first row.
+ // * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect
+ // headers in row N. If headers are not detected, row N is just skipped.
+ // Otherwise row N is used to extract column names for the detected schema.
+ google.protobuf.Int64Value skip_leading_rows = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The value that is used to quote data sections in a CSV file.
+ // BigQuery converts the string to ISO-8859-1 encoding, and then uses the
+ // first byte of the encoded string to split the data in its raw, binary
+ // state.
+ // The default value is a double-quote (").
+ // If your data does not contain quoted sections,
+ // set the property value to an empty string.
+ // If your data contains quoted newline characters, you must also set the
+ // allowQuotedNewlines property to true.
+ // To include the specific quote character within a quoted value, precede it
+ // with an additional matching quote character. For example, if you want to
+ // escape the default character ' " ', use ' "" '.
+ google.protobuf.StringValue quote = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Indicates if BigQuery should allow quoted data sections that
+ // contain newline characters in a CSV file. The default value is false.
+ google.protobuf.BoolValue allow_quoted_newlines = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Indicates if BigQuery should accept rows that are missing
+ // trailing optional columns. If true, BigQuery treats missing trailing
+ // columns as null values.
+ // If false, records with missing trailing columns are treated as bad records,
+ // and if there are too many bad records, an invalid error is returned in the
+ // job result. The default value is false.
+ google.protobuf.BoolValue allow_jagged_rows = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The character encoding of the data.
+ // The supported values are UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE,
+ // and UTF-32LE. The default value is UTF-8.
+ // BigQuery decodes the data after the raw, binary data has been split using
+ // the values of the quote and fieldDelimiter properties.
+ string encoding = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Indicates if the embedded ASCII control characters (the first 32
+ // characters in the ASCII-table, from '\x00' to '\x1F') are preserved.
+ google.protobuf.BoolValue preserve_ascii_control_characters = 7
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies a string that represents a null value in a CSV file.
+ // For example, if you specify "\N", BigQuery interprets "\N" as a null value
+ // when querying a CSV file.
+ // The default value is the empty string. If you set this property to a custom
+ // value, BigQuery throws an error if an empty string is present for all data
+ // types except for STRING and BYTE. For STRING and BYTE columns, BigQuery
+ // interprets the empty string as an empty value.
+ google.protobuf.StringValue null_marker = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A list of strings represented as SQL NULL value in a CSV file.
+ //
+ // null_marker and null_markers can't be set at the same time.
+ // If null_marker is set, null_markers has to be not set.
+ // If null_markers is set, null_marker has to be not set.
+ // If both null_marker and null_markers are set at the same time, a user
+ // error would be thrown.
+ // Any strings listed in null_markers, including
+ // empty string would be interpreted as SQL NULL. This applies to all column
+ // types.
+ repeated string null_markers = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Controls the strategy used to match loaded columns to the schema.
+ // If not set, a sensible default is chosen based on how the schema is
+ // provided. If autodetect is used, then columns are matched by name.
+ // Otherwise, columns are matched by position. This is done to keep the
+ // behavior backward-compatible. Acceptable values are:
+ // POSITION - matches by position. This assumes that the columns are ordered
+ // the same way as the schema.
+ // NAME - matches by name. This reads the header row as column names and
+ // reorders columns to match the field names in the schema.
+ string source_column_match = 10 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Json Options for load and make external tables.
+message JsonOptions {
+ // Optional. The character encoding of the data.
+ // The supported values are UTF-8, UTF-16BE, UTF-16LE, UTF-32BE,
+ // and UTF-32LE. The default value is UTF-8.
+ string encoding = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Information related to a Bigtable protobuf column.
+message BigtableProtoConfig {
+ // Optional. The ID of the Bigtable SchemaBundle resource associated with this
+ // protobuf. The ID should be referred to within the parent table, e.g.,
+ // `foo` rather than
+ // `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/foo`.
+ // See [more details on Bigtable
+ // SchemaBundles](https://docs.cloud.google.com/bigtable/docs/create-manage-protobuf-schemas).
+ string schema_bundle_id = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The fully qualified proto message name of the protobuf. In the
+ // format of "foo.bar.Message".
+ string proto_message_name = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Information related to a Bigtable column.
+message BigtableColumn {
+ // [Required] Qualifier of the column.
+ // Columns in the parent column family that has this exact qualifier are
+ // exposed as `.` field.
+ // If the qualifier is valid UTF-8 string, it can be specified in the
+ // qualifier_string field. Otherwise, a base-64 encoded value must be set to
+ // qualifier_encoded.
+ // The column field name is the same as the column qualifier. However, if the
+ // qualifier is not a valid BigQuery field identifier i.e. does not match
+ // [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name.
+ google.protobuf.BytesValue qualifier_encoded = 1;
+
+ // Qualifier string.
+ google.protobuf.StringValue qualifier_string = 2;
+
+ // Optional. If the qualifier is not a valid BigQuery field identifier i.e.
+ // does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided
+ // as the column field name and is used as field name in queries.
+ string field_name = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type to convert the value in cells of this column.
+ // The values are expected to be encoded using HBase Bytes.toBytes function
+ // when using the BINARY encoding value.
+ // Following BigQuery types are allowed (case-sensitive):
+ //
+ // * BYTES
+ // * STRING
+ // * INTEGER
+ // * FLOAT
+ // * BOOLEAN
+ // * JSON
+ //
+ // Default type is BYTES.
+ // 'type' can also be set at the column family level. However, the setting at
+ // this level takes precedence if 'type' is set at both levels.
+ string type = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The encoding of the values when the type is not STRING.
+ // Acceptable encoding values are:
+ // TEXT - indicates values are alphanumeric text strings.
+ // BINARY - indicates values are encoded using HBase Bytes.toBytes family of
+ // functions.
+ // PROTO_BINARY - indicates values are encoded using serialized proto
+ // messages. This can only be used in combination with JSON
+ // type.
+ // 'encoding' can also be set at the column family level. However, the setting
+ // at this level takes precedence if 'encoding' is set at both levels.
+ string encoding = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If this is set, only the latest version of value in this column
+ // are exposed.
+ // 'onlyReadLatest' can also be set at the column family level. However, the
+ // setting at this level takes precedence if 'onlyReadLatest' is set at both
+ // levels.
+ google.protobuf.BoolValue only_read_latest = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Protobuf-specific configurations, only takes effect when the
+ // encoding is PROTO_BINARY.
+ BigtableProtoConfig proto_config = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Information related to a Bigtable column family.
+message BigtableColumnFamily {
+ // Identifier of the column family.
+ string family_id = 1;
+
+ // Optional. The type to convert the value in cells of this column family.
+ // The values are expected to be encoded using HBase Bytes.toBytes function
+ // when using the BINARY encoding value.
+ // Following BigQuery types are allowed (case-sensitive):
+ //
+ // * BYTES
+ // * STRING
+ // * INTEGER
+ // * FLOAT
+ // * BOOLEAN
+ // * JSON
+ //
+ // Default type is BYTES.
+ // This can be overridden for a specific column by listing that column in
+ // 'columns' and specifying a type for it.
+ string type = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The encoding of the values when the type is not STRING.
+ // Acceptable encoding values are:
+ // TEXT - indicates values are alphanumeric text strings.
+ // BINARY - indicates values are encoded using HBase Bytes.toBytes family of
+ // functions.
+ // PROTO_BINARY - indicates values are encoded using serialized proto
+ // messages. This can only be used in combination with JSON
+ // type.
+ // This can be overridden for a specific column by listing that column in
+ // 'columns' and specifying an encoding for it.
+ string encoding = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Lists of columns that should be exposed as individual fields as
+ // opposed to a list of (column name, value) pairs.
+ // All columns whose qualifier matches a qualifier in this list can be
+ // accessed as `.`.
+ // Other columns can be accessed as a list through
+ // the `.Column` field.
+ repeated BigtableColumn columns = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If this is set only the latest version of value are exposed for
+ // all columns in this column family.
+ // This can be overridden for a specific column by listing that column in
+ // 'columns' and specifying a different setting
+ // for that column.
+ google.protobuf.BoolValue only_read_latest = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Protobuf-specific configurations, only takes effect when the
+ // encoding is PROTO_BINARY.
+ BigtableProtoConfig proto_config = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Options specific to Google Cloud Bigtable data sources.
+message BigtableOptions {
+ // Optional. List of column families to expose in the table schema along with
+ // their types.
+ // This list restricts the column families that can be referenced in queries
+ // and specifies their value types.
+ // You can use this list to do type conversions - see the 'type' field for
+ // more details.
+ // If you leave this list empty, all column families are present in the table
+ // schema and their values are read as BYTES.
+ // During a query only the column families referenced in that query are read
+ // from Bigtable.
+ repeated BigtableColumnFamily column_families = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If field is true, then the column families that are not
+ // specified in columnFamilies list are not exposed in the table schema.
+ // Otherwise, they are read with BYTES type values.
+ // The default value is false.
+ google.protobuf.BoolValue ignore_unspecified_column_families = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If field is true, then the rowkey column families will be read
+ // and converted to string. Otherwise they are read with BYTES type values and
+ // users need to manually cast them with CAST if necessary.
+ // The default value is false.
+ google.protobuf.BoolValue read_rowkey_as_string = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If field is true, then each column family will be read as a
+ // single JSON column. Otherwise they are read as a repeated cell structure
+ // containing timestamp/value tuples. The default value is false.
+ google.protobuf.BoolValue output_column_families_as_json = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Options specific to Google Sheets data sources.
+message GoogleSheetsOptions {
+ // Optional. The number of rows at the top of a sheet that BigQuery will skip
+ // when reading the data. The default value is 0. This property is useful if
+ // you have header rows that should be skipped. When autodetect is on,
+ // the behavior is the following:
+ // * skipLeadingRows unspecified - Autodetect tries to detect headers in the
+ // first row. If they are not detected, the row is read as data. Otherwise
+ // data is read starting from the second row.
+ // * skipLeadingRows is 0 - Instructs autodetect that there are no headers and
+ // data should be read starting from the first row.
+ // * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect
+ // headers in row N. If headers are not detected, row N is just skipped.
+ // Otherwise row N is used to extract column names for the detected schema.
+ google.protobuf.Int64Value skip_leading_rows = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Range of a sheet to query from. Only used when non-empty.
+ // Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id
+ // For example: sheet1!A1:B20
+ string range = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+message ExternalDataConfiguration {
+ // Supported Object Metadata Types.
+ enum ObjectMetadata {
+ // Unspecified by default.
+ OBJECT_METADATA_UNSPECIFIED = 0;
+
+ // A synonym for `SIMPLE`.
+ DIRECTORY = 1;
+
+ // Directory listing of objects.
+ SIMPLE = 2;
+ }
+
+ // MetadataCacheMode identifies if the table should use metadata caching for
+ // files from external source (eg Google Cloud Storage).
+ enum MetadataCacheMode {
+ // Unspecified metadata cache mode.
+ METADATA_CACHE_MODE_UNSPECIFIED = 0;
+
+ // Set this mode to trigger automatic background refresh of metadata cache
+ // from the external source. Queries will use the latest available cache
+ // version within the table's maxStaleness interval.
+ AUTOMATIC = 1;
+
+ // Set this mode to enable triggering manual refresh of the metadata cache
+ // from external source. Queries will use the latest manually triggered
+ // cache version within the table's maxStaleness interval.
+ MANUAL = 2;
+ }
+
+ // [Required] The fully-qualified URIs that point to your data in Google
+ // Cloud. For Google Cloud Storage URIs:
+ // Each URI can contain one '*' wildcard character and it must come after
+ // the 'bucket' name.
+ // Size limits related to load jobs apply to external data sources.
+ // For Google Cloud Bigtable URIs:
+ // Exactly one URI can be specified and it has be a fully specified and
+ // valid HTTPS URL for a Google Cloud Bigtable table.
+ // For Google Cloud Datastore backups, exactly one URI can be specified. Also,
+ // the '*' wildcard character is not allowed.
+ repeated string source_uris = 1;
+
+ // Optional. Specifies how source URIs are interpreted for constructing the
+ // file set to load. By default source URIs are expanded against the
+ // underlying storage. Other options include specifying manifest files. Only
+ // applicable to object storage systems.
+ FileSetSpecType file_set_spec_type = 25
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The schema for the data.
+ // Schema is required for CSV and JSON formats if autodetect is not on.
+ // Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups,
+ // Avro, ORC and Parquet formats.
+ TableSchema schema = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // [Required] The data format.
+ // For CSV files, specify "CSV".
+ // For Google sheets, specify "GOOGLE_SHEETS".
+ // For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON".
+ // For Avro files, specify "AVRO".
+ // For Google Cloud Datastore backups, specify "DATASTORE_BACKUP".
+ // For Apache Iceberg tables, specify "ICEBERG".
+ // For ORC files, specify "ORC".
+ // For Parquet files, specify "PARQUET".
+ // [Beta] For Google Cloud Bigtable, specify "BIGTABLE".
+ string source_format = 3;
+
+ // Optional. The maximum number of bad records that BigQuery can ignore when
+ // reading data. If the number of bad records exceeds this value, an invalid
+ // error is returned in the job result. The default value is 0, which requires
+ // that all records are valid. This setting is ignored for Google Cloud
+ // Bigtable, Google Cloud Datastore backups, Avro, ORC and Parquet formats.
+ google.protobuf.Int32Value max_bad_records = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Try to detect schema and format options automatically.
+ // Any option specified explicitly will be honored.
+ google.protobuf.BoolValue autodetect = 5;
+
+ // Optional. Indicates if BigQuery should allow extra values that are not
+ // represented in the table schema.
+ // If true, the extra values are ignored.
+ // If false, records with extra columns are treated as bad records, and if
+ // there are too many bad records, an invalid error is returned in the job
+ // result.
+ // The default value is false.
+ // The sourceFormat property determines what BigQuery treats as an extra
+ // value:
+ // CSV: Trailing columns
+ // JSON: Named values that don't match any column names
+ // Google Cloud Bigtable: This setting is ignored.
+ // Google Cloud Datastore backups: This setting is ignored.
+ // Avro: This setting is ignored.
+ // ORC: This setting is ignored.
+ // Parquet: This setting is ignored.
+ google.protobuf.BoolValue ignore_unknown_values = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The compression type of the data source.
+ // Possible values include GZIP and NONE. The default value is NONE.
+ // This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore
+ // backups, Avro, ORC and Parquet
+ // formats. An empty string is an invalid value.
+ string compression = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Additional properties to set if sourceFormat is set to CSV.
+ CsvOptions csv_options = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Additional properties to set if sourceFormat is set to JSON.
+ JsonOptions json_options = 26 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Additional options if sourceFormat is set to BIGTABLE.
+ BigtableOptions bigtable_options = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Additional options if sourceFormat is set to GOOGLE_SHEETS.
+ GoogleSheetsOptions google_sheets_options = 10
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. When set, configures hive partitioning support. Not all storage
+ // formats support hive partitioning -- requesting hive partitioning on an
+ // unsupported format will lead to an error, as will providing an invalid
+ // specification.
+ HivePartitioningOptions hive_partitioning_options = 13
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The connection specifying the credentials to be used to read
+ // external storage, such as Azure Blob, Cloud Storage, or S3. The
+ // connection_id can have the form
+ // `{project_id}.{location_id};{connection_id}` or
+ // `projects/{project_id}/locations/{location_id}/connections/{connection_id}`.
+ string connection_id = 14 [(google.api.field_behavior) = OPTIONAL];
+
+ // Defines the list of possible SQL data types to which the source decimal
+ // values are converted. This list and the precision and the scale parameters
+ // of the decimal field determine the target type. In the order of NUMERIC,
+ // BIGNUMERIC, and STRING, a
+ // type is picked if it is in the specified list and if it supports the
+ // precision and the scale. STRING supports all precision and scale values.
+ // If none of the listed types supports the precision and the scale, the type
+ // supporting the widest range in the specified list is picked, and if a value
+ // exceeds the supported range when reading the data, an error will be thrown.
+ //
+ // Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"].
+ // If (precision,scale) is:
+ //
+ // * (38,9) -> NUMERIC;
+ // * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits);
+ // * (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits);
+ // * (76,38) -> BIGNUMERIC;
+ // * (77,38) -> BIGNUMERIC (error if value exceeds supported range).
+ //
+ // This field cannot contain duplicate types. The order of the types in this
+ // field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as
+ // ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over
+ // BIGNUMERIC.
+ //
+ // Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other
+ // file formats.
+ repeated DecimalTargetType decimal_target_types = 16;
+
+ // Optional. Additional properties to set if sourceFormat is set to AVRO.
+ AvroOptions avro_options = 17 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Load option to be used together with source_format
+ // newline-delimited JSON to indicate that a variant of JSON is being loaded.
+ // To load newline-delimited GeoJSON, specify GEOJSON (and source_format must
+ // be set to NEWLINE_DELIMITED_JSON).
+ JsonExtension json_extension = 18 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Additional properties to set if sourceFormat is set to PARQUET.
+ ParquetOptions parquet_options = 19 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. ObjectMetadata is used to create Object Tables. Object Tables
+ // contain a listing of objects (with their metadata) found at the
+ // source_uris. If ObjectMetadata is set, source_format should be omitted.
+ //
+ // Currently SIMPLE is the only supported Object Metadata type.
+ optional ObjectMetadata object_metadata = 22
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. When creating an external table, the user can provide a reference
+ // file with the table schema. This is enabled for the following formats:
+ // AVRO, PARQUET, ORC.
+ google.protobuf.StringValue reference_file_schema_uri = 23
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Metadata Cache Mode for the table. Set this to enable caching of
+ // metadata from external data source.
+ MetadataCacheMode metadata_cache_mode = 24
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Time zone used when parsing timestamp values that do not have
+ // specific time zone information (e.g. 2024-04-20 12:34:56). The expected
+ // format is a IANA timezone string (e.g. America/Los_Angeles).
+ optional string time_zone = 27 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Format used to parse DATE values. Supports C-style and SQL-style
+ // values.
+ optional string date_format = 28 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Format used to parse DATETIME values. Supports C-style and
+ // SQL-style values.
+ optional string datetime_format = 29 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Format used to parse TIME values. Supports C-style and SQL-style
+ // values.
+ optional string time_format = 30 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Format used to parse TIMESTAMP values. Supports C-style and
+ // SQL-style values.
+ optional string timestamp_format = 31
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Precisions (maximum number of total digits in base 10) for seconds
+ // of TIMESTAMP types that are allowed to the destination table for
+ // autodetection mode.
+ //
+ // Available for the formats: CSV, PARQUET, AVRO, and Iceberg External Table.
+ //
+ // Possible values include:
+ // Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP
+ // columns
+ // [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have
+ // less than 6 digits of subseconds.
+ // timestamp(12) for all auto detected TIMESTAMP columns that have
+ // more than 6 digits of subseconds.
+ // [12]: timestamp(12) for all auto detected TIMESTAMP columns.
+ //
+ // The order of the elements in this array is ignored.
+ // Inputs that have higher precision than the highest target precision in this
+ // array will be truncated.
+ repeated int32 timestamp_target_precision = 32;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_dataset_reference.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_dataset_reference.proto
new file mode 100644
index 000000000000..a0fc651e46d3
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/external_dataset_reference.proto
@@ -0,0 +1,46 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "ExternalDatasetReferenceProto";
+option java_package = "com.google.cloud.bigquery.v2";
+option (google.api.resource_definition) = {
+ type: "bigqueryconnection.googleapis.com/Connection"
+ pattern: "projects/{project}/locations/{location}/connections/{connection}"
+};
+
+// Configures the access a dataset defined in an external metadata storage.
+message ExternalDatasetReference {
+ // Required. External source that backs this dataset.
+ string external_source = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The connection id that is used to access the external_source.
+ //
+ // Format:
+ // projects/{project_id}/locations/{location_id}/connections/{connection_id}
+ string connection = 3 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "bigqueryconnection.googleapis.com/Connection"
+ }
+ ];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/file_set_specification_type.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/file_set_specification_type.proto
new file mode 100644
index 000000000000..ce0ab994d781
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/file_set_specification_type.proto
@@ -0,0 +1,34 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "FileSetSpecificationTypeProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// This enum defines how to interpret source URIs for load jobs and external
+// tables.
+enum FileSetSpecType {
+ // This option expands source URIs by listing files from the object store. It
+ // is the default behavior if FileSetSpecType is not set.
+ FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH = 0;
+
+ // This option indicates that the provided URIs are newline-delimited manifest
+ // files, with one URI per line. Wildcard URIs are not supported.
+ FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST = 1;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/gen_ai_stats.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/gen_ai_stats.proto
new file mode 100644
index 000000000000..e813732ca927
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/gen_ai_stats.proto
@@ -0,0 +1,85 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "GenAiStatsProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Provides error statistics for a GenAi function call.
+message GenAiFunctionErrorStats {
+ // A list of unique errors at function level (up to 5, truncated to 100
+ // chars).
+ repeated string errors = 3;
+
+ // Number of failed rows processed by the function
+ int64 num_failed_rows = 5;
+}
+
+// Provides cost optimization statistics for a GenAi function call.
+message GenAiFunctionCostOptimizationStats {
+ // Number of rows inferred via cost optimized workflow.
+ optional int64 num_cost_optimized_rows = 1;
+
+ // System generated message to provide insights into cost optimization state.
+ optional string message = 2;
+}
+
+// Provides cache statistics for a GenAi function call.
+message GenAiFunctionCacheStats {
+ // Number of rows served from cache.
+ optional int64 num_cache_hit_rows = 1;
+}
+
+// Provides statistics for each Ai function call within a query.
+message GenAiFunctionStats {
+ // Name of the function.
+ optional string function_name = 1;
+
+ // User input prompt of the function (truncated to 20 chars).
+ optional string prompt = 2;
+
+ // Number of rows processed by this GenAi function.
+ // This includes all cost_optimized, llm_inferred and failed_rows.
+ optional int64 num_processed_rows = 3;
+
+ // Error stats for the function.
+ optional GenAiFunctionErrorStats error_stats = 4;
+
+ // Cost optimization stats if applied on the rows processed by the function.
+ optional GenAiFunctionCostOptimizationStats cost_optimization_stats = 5;
+
+ // Cache stats for the function.
+ optional GenAiFunctionCacheStats cache_stats = 6;
+}
+
+// Provides error statistics for the query job across all AI function calls.
+message GenAiErrorStats {
+ // A list of unique errors at query level (up to 5, truncated to 100 chars)
+ repeated string errors = 1;
+}
+
+// GenAi stats for the query job.
+message GenAiStats {
+ // Job level error stats across all GenAi functions
+ optional GenAiErrorStats error_stats = 4;
+
+ // Function level stats for GenAi Functions.
+ // See https://docs.cloud.google.com/bigquery/docs/generative-ai-overview
+ repeated GenAiFunctionStats function_stats = 5;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/hive_partitioning.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/hive_partitioning.proto
new file mode 100644
index 000000000000..b91e09ba5a2b
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/hive_partitioning.proto
@@ -0,0 +1,86 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "HivePartitioningProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Options for configuring hive partitioning detect.
+message HivePartitioningOptions {
+ // Optional. When set, what mode of hive partitioning to use when reading
+ // data. The following modes are supported:
+ //
+ // * AUTO: automatically infer partition key name(s) and type(s).
+ //
+ // * STRINGS: automatically infer partition key name(s). All types are
+ // strings.
+ //
+ // * CUSTOM: partition key schema is encoded in the source URI prefix.
+ //
+ // Not all storage formats support hive partitioning. Requesting hive
+ // partitioning on an unsupported format will lead to an error.
+ // Currently supported formats are: JSON, CSV, ORC, Avro and Parquet.
+ string mode = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. When hive partition detection is requested, a common prefix for
+ // all source uris must be required. The prefix must end immediately before
+ // the partition key encoding begins. For example, consider files following
+ // this data layout:
+ //
+ // gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro
+ //
+ // gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro
+ //
+ // When hive partitioning is requested with either AUTO or STRINGS detection,
+ // the common prefix can be either of gs://bucket/path_to_table or
+ // gs://bucket/path_to_table/.
+ //
+ // CUSTOM detection requires encoding the partitioning schema immediately
+ // after the common prefix. For CUSTOM, any of
+ //
+ // * gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:INTEGER}
+ //
+ // * gs://bucket/path_to_table/{dt:STRING}/{country:STRING}/{id:INTEGER}
+ //
+ // * gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:STRING}
+ //
+ // would all be valid source URI prefixes.
+ string source_uri_prefix = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set to true, queries over this table require a partition
+ // filter that can be used for partition elimination to be specified.
+ //
+ // Note that this field should only be true when creating a permanent
+ // external table or querying a temporary external table.
+ //
+ // Hive-partitioned loads with require_partition_filter explicitly set to
+ // true will fail.
+ google.protobuf.BoolValue require_partition_filter = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. For permanent external tables, this field is populated with
+ // the hive partition keys in the order they were inferred. The types of the
+ // partition keys can be deduced by checking the table schema (which will
+ // include the partition keys). Not every API will populate this field in the
+ // output. For example, Tables.Get will populate it, but Tables.List will not
+ // contain this field.
+ repeated string fields = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job.proto
new file mode 100644
index 000000000000..201efbbe2303
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job.proto
@@ -0,0 +1,806 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/bigquery/v2/data_format_options.proto";
+import "google/cloud/bigquery/v2/dataset_reference.proto";
+import "google/cloud/bigquery/v2/encryption_config.proto";
+import "google/cloud/bigquery/v2/error.proto";
+import "google/cloud/bigquery/v2/job_config.proto";
+import "google/cloud/bigquery/v2/job_creation_reason.proto";
+import "google/cloud/bigquery/v2/job_reference.proto";
+import "google/cloud/bigquery/v2/job_stats.proto";
+import "google/cloud/bigquery/v2/job_status.proto";
+import "google/cloud/bigquery/v2/query_parameter.proto";
+import "google/cloud/bigquery/v2/session_info.proto";
+import "google/cloud/bigquery/v2/table_schema.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "JobProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+service JobService {
+ option (google.api.default_host) = "bigquery.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only,"
+ "https://www.googleapis.com/auth/devstorage.full_control,"
+ "https://www.googleapis.com/auth/devstorage.read_only,"
+ "https://www.googleapis.com/auth/devstorage.read_write";
+
+ // Requests that a job be cancelled. This call will return immediately, and
+ // the client will need to poll for the job status to see if the cancel
+ // completed successfully. Cancelled jobs may still incur costs.
+ rpc CancelJob(CancelJobRequest) returns (JobCancelResponse) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/jobs/{job_id=*}/cancel"
+ };
+ }
+
+ // Returns information about a specific job. Job information is available for
+ // a six month period after creation. Requires that you're the person who ran
+ // the job, or have the Is Owner project role.
+ rpc GetJob(GetJobRequest) returns (Job) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/jobs/{job_id=*}"
+ };
+ }
+
+ // Starts a new asynchronous job.
+ //
+ // This API has two different kinds of endpoint URIs, as this method supports
+ // a variety of use cases.
+ //
+ // * The *Metadata* URI is used for most interactions, as it accepts the job
+ // configuration directly.
+ // * The *Upload* URI is ONLY for the case when you're sending both a load job
+ // configuration and a data stream together. In this case, the Upload URI
+ // accepts the job configuration and the data as two distinct multipart MIME
+ // parts.
+ rpc InsertJob(InsertJobRequest) returns (Job) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/jobs"
+ body: "job"
+ };
+ }
+
+ // Requests the deletion of the metadata of a job. This call returns when the
+ // job's metadata is deleted.
+ rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/bigquery/v2/projects/{project_id=*}/jobs/{job_id=*}/delete"
+ };
+ }
+
+ // Lists all jobs that you started in the specified project. Job information
+ // is available for a six month period after creation. The job list is sorted
+ // in reverse chronological order, by job creation time. Requires the Can View
+ // project role, or the Is Owner project role if you set the allUsers
+ // property.
+ rpc ListJobs(ListJobsRequest) returns (JobList) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/jobs"
+ };
+ }
+
+ // RPC to get the results of a query job.
+ rpc GetQueryResults(GetQueryResultsRequest)
+ returns (GetQueryResultsResponse) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/queries/{job_id=*}"
+ };
+ }
+
+ // Runs a BigQuery SQL query synchronously and returns query results if the
+ // query completes within a specified timeout.
+ rpc Query(PostQueryRequest) returns (QueryResponse) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/queries"
+ body: "query_request"
+ };
+ }
+}
+
+message Job {
+ // Output only. The type of the resource.
+ string kind = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A hash of this resource.
+ string etag = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Opaque ID field of the job.
+ string id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A URL that can be used to access the resource again.
+ string self_link = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Email address of the user who ran the job.
+ string user_email = 5
+ [json_name = "user_email", (google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Describes the job configuration.
+ JobConfiguration configuration = 6 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Reference describing the unique-per-user name of the job.
+ JobReference job_reference = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Information about the job, including starting time and ending
+ // time of the job.
+ JobStatistics statistics = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The status of this job. Examine this value when polling an
+ // asynchronous job to see if the job is complete.
+ JobStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. [Full-projection-only] String representation of identity of
+ // requesting party. Populated for both first- and third-party identities.
+ // Only present for APIs that support third-party identities.
+ string principal_subject = 13 [
+ json_name = "principal_subject",
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // Output only. The reason why a Job was created.
+ JobCreationReason job_creation_reason = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Describes format of a jobs cancellation request.
+message CancelJobRequest {
+ // Required. Project ID of the job to cancel
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Job ID of the job to cancel
+ string job_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The geographic location of the job. You must
+ // [specify the
+ // location](https://cloud.google.com/bigquery/docs/locations#specify_locations)
+ // to run the job for the following scenarios:
+ //
+ // * If the location to run a job is not in the `us` or
+ // the `eu` multi-regional location
+ // * If the job's location is in a single region (for example,
+ // `us-central1`)
+ string location = 3;
+}
+
+// Describes format of a jobs cancellation response.
+message JobCancelResponse {
+ // The resource type of the response.
+ string kind = 1;
+
+ // The final state of the job.
+ Job job = 2;
+}
+
+// Describes format of a jobs get request.
+message GetJobRequest {
+ // Required. Project ID of the requested job.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Job ID of the requested job.
+ string job_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The geographic location of the job. You must specify the location to run
+ // the job for the following scenarios:
+ //
+ // * If the location to run a job is not in the `us` or
+ // the `eu` multi-regional location
+ // * If the job's location is in a single region (for example,
+ // `us-central1`)
+ //
+ // For more information, see how to
+ // [specify
+ // locations](https://cloud.google.com/bigquery/docs/locations#specify_locations).
+ string location = 3;
+}
+
+// Describes format of a job insertion request.
+message InsertJobRequest {
+ // Project ID of project that will be billed for the job.
+ string project_id = 1;
+
+ // Jobs resource to insert.
+ Job job = 3;
+}
+
+// Describes the format of a jobs deletion request.
+message DeleteJobRequest {
+ // Required. Project ID of the job for which metadata is to be deleted.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Job ID of the job for which metadata is to be deleted. If this is
+ // a parent job which has child jobs, the metadata from all child jobs will be
+ // deleted as well. Direct deletion of the metadata of child jobs is not
+ // allowed.
+ string job_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The geographic location of the job. Required.
+ //
+ // For more information, see how to
+ // [specify
+ // locations](https://cloud.google.com/bigquery/docs/locations#specify_locations).
+ string location = 3;
+}
+
+// Describes the format of the list jobs request.
+message ListJobsRequest {
+ // Projection is used to control what job information is returned.
+ enum Projection {
+ option allow_alias = true;
+
+ // Does not include the job configuration
+ minimal = 0;
+
+ // Does not include the job configuration
+ MINIMAL = 0;
+
+ // Includes all job data
+ full = 1;
+
+ // Includes all job data
+ FULL = 1;
+ }
+
+ // StateFilter allows filtration by job execution state.
+ enum StateFilter {
+ option allow_alias = true;
+
+ // Finished jobs
+ done = 0;
+
+ // Finished jobs
+ DONE = 0;
+
+ // Pending jobs
+ pending = 1;
+
+ // Pending jobs
+ PENDING = 1;
+
+ // Running jobs
+ running = 2;
+
+ // Running jobs.
+ RUNNING = 2;
+ }
+
+ // Project ID of the jobs to list.
+ string project_id = 1;
+
+ // Whether to display jobs owned by all users in the project. Default False.
+ bool all_users = 2;
+
+ // The maximum number of results to return in a single response page.
+ // Leverage the page tokens to iterate through the entire collection.
+ google.protobuf.Int32Value max_results = 3;
+
+ // Min value for job creation time, in milliseconds since the POSIX epoch.
+ // If set, only jobs created after or at this timestamp are returned.
+ uint64 min_creation_time = 4;
+
+ // Max value for job creation time, in milliseconds since the POSIX epoch.
+ // If set, only jobs created before or at this timestamp are returned.
+ google.protobuf.UInt64Value max_creation_time = 5;
+
+ // Page token, returned by a previous call, to request the next page of
+ // results.
+ string page_token = 6;
+
+ // Restrict information returned to a set of selected fields
+ Projection projection = 7;
+
+ // Filter for job state
+ repeated StateFilter state_filter = 8;
+
+ // If set, show only child jobs of the specified parent. Otherwise, show all
+ // top-level jobs.
+ string parent_job_id = 9;
+}
+
+// ListFormatJob is a partial projection of job information returned as part
+// of a jobs.list response.
+message ListFormatJob {
+ // Unique opaque ID of the job.
+ string id = 1;
+
+ // The resource type.
+ string kind = 2;
+
+ // Unique opaque ID of the job.
+ JobReference job_reference = 3;
+
+ // Running state of the job. When the state is DONE, errorResult can be
+ // checked to determine whether the job succeeded or failed.
+ string state = 4;
+
+ // A result object that will be present only if the job has failed.
+ ErrorProto error_result = 5;
+
+ // Output only. Information about the job, including starting time and ending
+ // time of the job.
+ JobStatistics statistics = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Describes the job configuration.
+ JobConfiguration configuration = 7 [(google.api.field_behavior) = REQUIRED];
+
+ // [Full-projection-only] Describes the status of this job.
+ JobStatus status = 8;
+
+ // [Full-projection-only] Email address of the user who ran the job.
+ string user_email = 9 [json_name = "user_email"];
+
+ // [Full-projection-only] String representation of identity of requesting
+ // party. Populated for both first- and third-party identities. Only present
+ // for APIs that support third-party identities.
+ string principal_subject = 10 [json_name = "principal_subject"];
+}
+
+// JobList is the response format for a jobs.list call.
+message JobList {
+ // A hash of this page of results.
+ string etag = 1;
+
+ // The resource type of the response.
+ string kind = 2;
+
+ // A token to request the next page of results.
+ string next_page_token = 3;
+
+ // List of jobs that were requested.
+ repeated ListFormatJob jobs = 4;
+
+ // A list of skipped locations that were unreachable. For more information
+ // about BigQuery locations, see:
+ // https://cloud.google.com/bigquery/docs/locations. Example: "europe-west5"
+ repeated string unreachable = 5;
+}
+
+// Request object of GetQueryResults.
+message GetQueryResultsRequest {
+ // Required. Project ID of the query job.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Job ID of the query job.
+ string job_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Zero-based index of the starting row.
+ google.protobuf.UInt64Value start_index = 3;
+
+ // Page token, returned by a previous call, to request the next page of
+ // results.
+ string page_token = 4;
+
+ // Maximum number of results to read.
+ google.protobuf.UInt32Value max_results = 5;
+
+ // Optional: Specifies the maximum amount of time, in milliseconds, that the
+ // client is willing to wait for the query to complete. By default, this limit
+ // is 10 seconds (10,000 milliseconds). If the query is complete, the
+ // jobComplete field in the response is true. If the query has not yet
+ // completed, jobComplete is false.
+ //
+ // You can request a longer timeout period in the timeoutMs field. However,
+ // the call is not guaranteed to wait for the specified timeout; it typically
+ // returns after around 200 seconds (200,000 milliseconds), even if the query
+ // is not complete.
+ //
+ // If jobComplete is false, you can continue to wait for the query to complete
+ // by calling the getQueryResults method until the jobComplete field in the
+ // getQueryResults response is true.
+ google.protobuf.UInt32Value timeout_ms = 6;
+
+ // The geographic location of the job. You must specify the location to run
+ // the job for the following scenarios:
+ //
+ // * If the location to run a job is not in the `us` or
+ // the `eu` multi-regional location
+ // * If the job's location is in a single region (for example,
+ // `us-central1`)
+ //
+ // For more information, see how to
+ // [specify
+ // locations](https://cloud.google.com/bigquery/docs/locations#specify_locations).
+ string location = 7;
+
+ // Optional. Output format adjustments.
+ DataFormatOptions format_options = 8 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response object of GetQueryResults.
+message GetQueryResultsResponse {
+ // The resource type of the response.
+ string kind = 1;
+
+ // A hash of this response.
+ string etag = 2;
+
+ // The schema of the results. Present only when the query completes
+ // successfully.
+ TableSchema schema = 3;
+
+ // Reference to the BigQuery Job that was created to run the query. This field
+ // will be present even if the original request timed out, in which case
+ // GetQueryResults can be used to read the results once the query has
+ // completed. Since this API only returns the first page of results,
+ // subsequent pages can be fetched via the same mechanism (GetQueryResults).
+ JobReference job_reference = 4;
+
+ // The total number of rows in the complete query result set, which can be
+ // more than the number of rows in this single page of results. Present only
+ // when the query completes successfully.
+ google.protobuf.UInt64Value total_rows = 5;
+
+ // A token used for paging results. When this token is non-empty, it
+ // indicates additional results are available.
+ string page_token = 6;
+
+ // An object with as many results as can be contained within the maximum
+ // permitted reply size. To get any additional rows, you can call
+ // GetQueryResults and specify the jobReference returned above. Present only
+ // when the query completes successfully.
+ //
+ // The REST-based representation of this data leverages a series of
+ // JSON f,v objects for indicating fields and values.
+ repeated google.protobuf.Struct rows = 7;
+
+ // The total number of bytes processed for this query.
+ google.protobuf.Int64Value total_bytes_processed = 8;
+
+ // Whether the query has completed or not. If rows or totalRows are present,
+ // this will always be true. If this is false, totalRows will not be
+ // available.
+ google.protobuf.BoolValue job_complete = 9;
+
+ // Output only. The first errors or warnings encountered during the running
+ // of the job. The final message includes the number of errors that caused the
+ // process to stop. Errors here do not necessarily mean that the job has
+ // completed or was unsuccessful. For more information about error messages,
+ // see [Error
+ // messages](https://cloud.google.com/bigquery/docs/error-messages).
+ repeated ErrorProto errors = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Whether the query result was fetched from the query cache.
+ google.protobuf.BoolValue cache_hit = 11;
+
+ // Output only. The number of rows affected by a DML statement. Present only
+ // for DML statements INSERT, UPDATE or DELETE.
+ google.protobuf.Int64Value num_dml_affected_rows = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request format for the query request.
+message PostQueryRequest {
+ // Required. Project ID of the query request.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The query request body.
+ QueryRequest query_request = 2;
+}
+
+// Describes the format of the jobs.query request.
+message QueryRequest {
+ // Job Creation Mode provides different options on job creation.
+ enum JobCreationMode {
+ // If unspecified JOB_CREATION_REQUIRED is the default.
+ JOB_CREATION_MODE_UNSPECIFIED = 0;
+
+ // Default. Job creation is always required.
+ JOB_CREATION_REQUIRED = 1;
+
+ // Job creation is optional. Returning immediate results is prioritized.
+ // BigQuery will automatically determine if a Job needs to be created.
+ // The conditions under which BigQuery can decide to not create a Job are
+ // subject to change. If Job creation is required, JOB_CREATION_REQUIRED
+ // mode should be used, which is the default.
+ JOB_CREATION_OPTIONAL = 2;
+ }
+
+ // The resource type of the request.
+ string kind = 2;
+
+ // Required. A query string to execute, using Google Standard SQL or legacy
+ // SQL syntax. Example: "SELECT COUNT(f1) FROM
+ // myProjectId.myDatasetId.myTableId".
+ string query = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The maximum number of rows of data to return per page of
+ // results. Setting this flag to a small value such as 1000 and then paging
+ // through results might improve reliability when the query result set is
+ // large. In addition to this limit, responses are also limited to 10 MB. By
+ // default, there is no maximum row count, and only the byte limit applies.
+ google.protobuf.UInt32Value max_results = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the default datasetId and projectId to assume for any
+ // unqualified table names in the query. If not set, all table names in the
+ // query string must be qualified in the format 'datasetId.tableId'.
+ DatasetReference default_dataset = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Optional: Specifies the maximum amount of time, in milliseconds,
+ // that the client is willing to wait for the query to complete. By default,
+ // this limit is 10 seconds (10,000 milliseconds). If the query is complete,
+ // the jobComplete field in the response is true. If the query has not yet
+ // completed, jobComplete is false.
+ //
+ // You can request a longer timeout period in the timeoutMs field. However,
+ // the call is not guaranteed to wait for the specified timeout; it typically
+ // returns after around 200 seconds (200,000 milliseconds), even if the query
+ // is not complete.
+ //
+ // If jobComplete is false, you can continue to wait for the query to complete
+ // by calling the getQueryResults method until the jobComplete field in the
+ // getQueryResults response is true.
+ google.protobuf.UInt32Value timeout_ms = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Job timeout in milliseconds. If this time limit is exceeded,
+ // BigQuery will attempt to stop a longer job, but may not always succeed in
+ // canceling it before the job completes. For example, a job that takes more
+ // than 60 seconds to complete has a better chance of being stopped than a job
+ // that takes 10 seconds to complete. This timeout applies to the query even
+ // if a job does not need to be created.
+ optional int64 job_timeout_ms = 26 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A target limit on the rate of slot consumption by this query. If
+ // set to a value > 0, BigQuery will attempt to limit the rate of slot
+ // consumption by this query to keep it below the configured limit, even if
+ // the query is eligible for more slots based on fair scheduling. The unused
+ // slots will be available for other jobs and queries to use.
+ //
+ // Note: This feature is not yet generally available.
+ optional int32 max_slots = 28 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Custom encryption configuration (e.g., Cloud KMS keys)
+ EncryptionConfiguration destination_encryption_configuration = 27
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set to true, BigQuery doesn't run the job. Instead, if the
+ // query is valid, BigQuery returns statistics about the job such as how many
+ // bytes would be processed. If the query is invalid, an error returns. The
+ // default value is false.
+ bool dry_run = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether to look for the result in the query cache. The query
+ // cache is a best-effort cache that will be flushed whenever tables in the
+ // query are modified. The default value is true.
+ google.protobuf.BoolValue use_query_cache = 9
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Specifies whether to use BigQuery's legacy SQL dialect for this query. The
+ // default value is true. If set to false, the query uses BigQuery's
+ // [GoogleSQL](https://docs.cloud.google.com/bigquery/docs/introduction-sql).
+ // When useLegacySql is set to false, the value of flattenResults is ignored;
+ // query will be run as if flattenResults is false.
+ google.protobuf.BoolValue use_legacy_sql = 10;
+
+ // GoogleSQL only. Set to POSITIONAL to use positional (?) query parameters
+ // or to NAMED to use named (@myparam) query parameters in this query.
+ string parameter_mode = 11;
+
+ // Query parameters for GoogleSQL queries.
+ repeated QueryParameter query_parameters = 12;
+
+ // The geographic location where the job should run.
+ // For more information, see how to
+ // [specify
+ // locations](https://cloud.google.com/bigquery/docs/locations#specify_locations).
+ string location = 13;
+
+ // Optional. Output format adjustments.
+ DataFormatOptions format_options = 15
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Connection properties which can modify the query behavior.
+ repeated ConnectionProperty connection_properties = 16
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The labels associated with this query.
+ // Labels can be used to organize and group query jobs.
+ // Label keys and values can be no longer than 63 characters, can only contain
+ // lowercase letters, numeric characters, underscores and dashes.
+ // International characters are allowed. Label keys must start with a letter
+ // and each label in the list must have a different key.
+ map labels = 17 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Limits the bytes billed for this query. Queries with
+ // bytes billed above this limit will fail (without incurring a charge).
+ // If unspecified, the project default is used.
+ google.protobuf.Int64Value maximum_bytes_billed = 18
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A unique user provided identifier to ensure idempotent behavior
+ // for queries. Note that this is different from the job_id. It has the
+ // following properties:
+ //
+ // 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is
+ // recommended.
+ //
+ // 2. Read only queries can ignore this token since they are nullipotent by
+ // definition.
+ //
+ // 3. For the purposes of idempotency ensured by the request_id, a request
+ // is considered duplicate of another only if they have the same request_id
+ // and are actually duplicates. When determining whether a request is a
+ // duplicate of another request, all parameters in the request that
+ // may affect the result are considered. For example, query,
+ // connection_properties, query_parameters, use_legacy_sql are parameters
+ // that affect the result and are considered when determining whether a
+ // request is a duplicate, but properties like timeout_ms don't
+ // affect the result and are thus not considered. Dry run query
+ // requests are never considered duplicate of another request.
+ //
+ // 4. When a duplicate mutating query request is detected, it returns:
+ // a. the results of the mutation if it completes successfully within
+ // the timeout.
+ // b. the running operation if it is still in progress at the end of the
+ // timeout.
+ //
+ // 5. Its lifetime is limited to 15 minutes. In other words, if two
+ // requests are sent with the same request_id, but more than 15 minutes
+ // apart, idempotency is not guaranteed.
+ string request_id = 19 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, creates a new session using a randomly generated
+ // session_id. If false, runs query with an existing session_id passed in
+ // ConnectionProperty, otherwise runs query in non-session mode.
+ //
+ // The session location will be set to QueryRequest.location if it is present,
+ // otherwise it's set to the default location based on existing routing logic.
+ google.protobuf.BoolValue create_session = 20
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If not set, jobs are always required.
+ //
+ // If set, the query request will follow the behavior described
+ // JobCreationMode.
+ JobCreationMode job_creation_mode = 22
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The reservation that jobs.query request would use. User can
+ // specify a reservation to execute the job.query. The expected format is
+ // `projects/{project}/locations/{location}/reservations/{reservation}`.
+ optional string reservation = 24 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/Reservation"
+ }
+ ];
+
+ // Optional. This is only supported for SELECT query. If set, the query is
+ // allowed to write results incrementally to the temporary result table. This
+ // may incur a performance penalty. This option cannot be used with Legacy
+ // SQL. This feature is not yet available.
+ bool write_incremental_results = 25 [(google.api.field_behavior) = OPTIONAL];
+}
+
+message QueryResponse {
+ // The resource type.
+ string kind = 1;
+
+ // The schema of the results. Present only when the query completes
+ // successfully.
+ TableSchema schema = 2;
+
+ // Reference to the Job that was created to run the query. This field will be
+ // present even if the original request timed out, in which case
+ // GetQueryResults can be used to read the results once the query has
+ // completed. Since this API only returns the first page of results,
+ // subsequent pages can be fetched via the same mechanism (GetQueryResults).
+ //
+ // If job_creation_mode was set to `JOB_CREATION_OPTIONAL` and the query
+ // completes without creating a job, this field will be empty.
+ JobReference job_reference = 3;
+
+ // Optional. The reason why a Job was created.
+ //
+ // Only relevant when a job_reference is present in the response.
+ // If job_reference is not present it will always be unset.
+ JobCreationReason job_creation_reason = 15
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Auto-generated ID for the query.
+ string query_id = 14;
+
+ // Output only. The geographic location of the query.
+ //
+ // For more information about BigQuery locations, see:
+ // https://cloud.google.com/bigquery/docs/locations
+ string location = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The total number of rows in the complete query result set, which can be
+ // more than the number of rows in this single page of results.
+ google.protobuf.UInt64Value total_rows = 4;
+
+ // A token used for paging results. A non-empty token indicates that
+ // additional results are available. To see additional results,
+ // query the
+ // [`jobs.getQueryResults`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults)
+ // method. For more information, see [Paging through table
+ // data](https://cloud.google.com/bigquery/docs/paging-results).
+ string page_token = 5;
+
+ // An object with as many results as can be contained within the maximum
+ // permitted reply size. To get any additional rows, you can call
+ // GetQueryResults and specify the jobReference returned above.
+ repeated google.protobuf.Struct rows = 6;
+
+ // The total number of bytes processed for this query. If this query was a dry
+ // run, this is the number of bytes that would be processed if the query were
+ // run.
+ google.protobuf.Int64Value total_bytes_processed = 7;
+
+ // Output only. If the project is configured to use on-demand pricing,
+ // then this field contains the total bytes billed for the job.
+ // If the project is configured to use flat-rate pricing, then you are
+ // not billed for bytes and this field is informational only.
+ optional int64 total_bytes_billed = 16
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of slot ms the user is actually billed for.
+ optional int64 total_slot_ms = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Whether the query has completed or not. If rows or totalRows are present,
+ // this will always be true. If this is false, totalRows will not be
+ // available.
+ google.protobuf.BoolValue job_complete = 8;
+
+ // Output only. The first errors or warnings encountered during the running of
+ // the job. The final message includes the number of errors that caused the
+ // process to stop. Errors here do not necessarily mean that the job has
+ // completed or was unsuccessful. For more information about error messages,
+ // see [Error
+ // messages](https://cloud.google.com/bigquery/docs/error-messages).
+ repeated ErrorProto errors = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Whether the query result was fetched from the query cache.
+ google.protobuf.BoolValue cache_hit = 10;
+
+ // Output only. The number of rows affected by a DML statement. Present only
+ // for DML statements INSERT, UPDATE or DELETE.
+ google.protobuf.Int64Value num_dml_affected_rows = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Information of the session if this job is part of one.
+ SessionInfo session_info = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE,
+ // MERGE or TRUNCATE.
+ DmlStats dml_stats = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Creation time of this query, in milliseconds since the epoch.
+ // This field will be present on all queries.
+ optional int64 creation_time = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Start time of this query, in milliseconds since the epoch.
+ // This field will be present when the query job transitions from the PENDING
+ // state to either RUNNING or DONE.
+ optional int64 start_time = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. End time of this query, in milliseconds since the epoch. This
+ // field will be present whenever a query job is in the DONE state.
+ optional int64 end_time = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_config.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_config.proto
new file mode 100644
index 000000000000..5e9b46004d21
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_config.proto
@@ -0,0 +1,921 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/bigquery/v2/clustering.proto";
+import "google/cloud/bigquery/v2/dataset_reference.proto";
+import "google/cloud/bigquery/v2/decimal_target_types.proto";
+import "google/cloud/bigquery/v2/encryption_config.proto";
+import "google/cloud/bigquery/v2/external_data_config.proto";
+import "google/cloud/bigquery/v2/file_set_specification_type.proto";
+import "google/cloud/bigquery/v2/hive_partitioning.proto";
+import "google/cloud/bigquery/v2/json_extension.proto";
+import "google/cloud/bigquery/v2/model_reference.proto";
+import "google/cloud/bigquery/v2/query_parameter.proto";
+import "google/cloud/bigquery/v2/range_partitioning.proto";
+import "google/cloud/bigquery/v2/system_variable.proto";
+import "google/cloud/bigquery/v2/table_reference.proto";
+import "google/cloud/bigquery/v2/table_schema.proto";
+import "google/cloud/bigquery/v2/time_partitioning.proto";
+import "google/cloud/bigquery/v2/udf_resource.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "JobConfigProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Properties for the destination table.
+message DestinationTableProperties {
+ // Optional. Friendly name for the destination table. If the table already
+ // exists, it should be same as the existing friendly name.
+ google.protobuf.StringValue friendly_name = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The description for the destination table.
+ // This will only be used if the destination table is newly created.
+ // If the table already exists and a value different than the current
+ // description is provided, the job will fail.
+ google.protobuf.StringValue description = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The labels associated with this table. You can use these to
+ // organize and group your tables. This will only be used if the destination
+ // table is newly created. If the table already exists and labels are
+ // different than the current labels are provided, the job will fail.
+ map labels = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A connection-level property to customize query behavior. Under JDBC, these
+// correspond directly to connection properties passed to the DriverManager.
+// Under ODBC, these correspond to properties in the connection string.
+//
+// Currently supported connection properties:
+//
+// * **dataset_project_id**: represents the default project for datasets that
+// are used in the query. Setting the
+// system variable `@@dataset_project_id` achieves the same behavior. For
+// more information about system variables, see:
+// https://cloud.google.com/bigquery/docs/reference/system-variables
+//
+// * **time_zone**: represents the default timezone used to run the query.
+//
+// * **session_id**: associates the query with a given session.
+//
+// * **query_label**: associates the query with a given job label. If set,
+// all subsequent queries in a script or session will have this label. For the
+// format in which a you can specify a query label, see labels
+// in the JobConfiguration resource type:
+// https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfiguration
+//
+// * **service_account**: indicates the service account to use to run a
+// continuous query. If set, the query job uses the service account to access
+// Google Cloud resources. Service account access is bounded by the IAM
+// permissions that you have granted to the service account.
+//
+// Additional properties are allowed, but ignored. Specifying multiple
+// connection properties with the same key returns an error.
+message ConnectionProperty {
+ // The key of the property to set.
+ string key = 1;
+
+ // The value of the property to set.
+ string value = 2;
+}
+
+// JobConfigurationQuery configures a BigQuery query job.
+message JobConfigurationQuery {
+ // [Required] SQL query text to execute. The useLegacySql field can be used
+ // to indicate whether the query uses legacy SQL or GoogleSQL.
+ string query = 1;
+
+ // Optional. Describes the table where the query results should be stored.
+ // This property must be set for large results that exceed the maximum
+ // response size. For queries that produce anonymous (cached) results, this
+ // field will be populated by BigQuery.
+ TableReference destination_table = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. You can specify external table definitions, which operate as
+ // ephemeral tables that can be queried. These definitions are configured
+ // using a JSON map, where the string key represents the table identifier, and
+ // the value is the corresponding external data configuration object.
+ map external_table_definitions = 23
+ [json_name = "tableDefinitions", (google.api.field_behavior) = OPTIONAL];
+
+ // Describes user-defined function resources used in the query.
+ repeated UserDefinedFunctionResource user_defined_function_resources = 4;
+
+ // Optional. Specifies whether the job is allowed to create new tables.
+ // The following values are supported:
+ //
+ // * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the
+ // table.
+ // * CREATE_NEVER: The table must already exist. If it does not,
+ // a 'notFound' error is returned in the job result.
+ //
+ // The default value is CREATE_IF_NEEDED.
+ // Creation, truncation and append actions occur as one atomic update
+ // upon job completion.
+ string create_disposition = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the action that occurs if the destination table
+ // already exists. The following values are supported:
+ //
+ // * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the
+ // data, removes the constraints, and uses the schema from the query result.
+ // * WRITE_TRUNCATE_DATA: If the table already exists, BigQuery overwrites the
+ // data, but keeps the constraints and schema of the existing table.
+ // * WRITE_APPEND: If the table already exists, BigQuery appends the data to
+ // the table.
+ // * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate'
+ // error is returned in the job result.
+ //
+ // The default value is WRITE_EMPTY. Each action is atomic and only occurs if
+ // BigQuery is able to complete the job successfully. Creation, truncation and
+ // append actions occur as one atomic update upon job completion.
+ string write_disposition = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the default dataset to use for unqualified
+ // table names in the query. This setting does not alter behavior of
+ // unqualified dataset names. Setting the system variable
+ // `@@dataset_id` achieves the same behavior. See
+ // https://cloud.google.com/bigquery/docs/reference/system-variables for more
+ // information on system variables.
+ DatasetReference default_dataset = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies a priority for the query. Possible values include
+ // INTERACTIVE and BATCH. The default value is INTERACTIVE.
+ string priority = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true and query uses legacy SQL dialect, allows the query
+ // to produce arbitrarily large result tables at a slight cost in performance.
+ // Requires destinationTable to be set.
+ // For GoogleSQL queries, this flag is ignored and large results are
+ // always allowed. However, you must still set destinationTable when result
+ // size exceeds the allowed maximum response size.
+ google.protobuf.BoolValue allow_large_results = 10
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether to look for the result in the query cache. The query
+ // cache is a best-effort cache that will be flushed whenever tables in the
+ // query are modified. Moreover, the query cache is only available when a
+ // query does not have a destination table specified. The default value is
+ // true.
+ google.protobuf.BoolValue use_query_cache = 11
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true and query uses legacy SQL dialect, flattens all nested
+ // and repeated fields in the query results.
+ // allowLargeResults must be true if this is set to false.
+ // For GoogleSQL queries, this flag is ignored and results are never
+ // flattened.
+ google.protobuf.BoolValue flatten_results = 12
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Limits the bytes billed for this job. Queries that will have
+ // bytes billed beyond this limit will fail (without incurring a charge).
+ // If unspecified, this will be set to your project default.
+ google.protobuf.Int64Value maximum_bytes_billed = 14;
+
+ // Optional. Specifies whether to use BigQuery's legacy SQL dialect for this
+ // query. The default value is true. If set to false, the query uses
+ // BigQuery's
+ // [GoogleSQL](https://docs.cloud.google.com/bigquery/docs/introduction-sql).
+ //
+ // When useLegacySql is set to false, the value of flattenResults is ignored;
+ // query will be run as if flattenResults is false.
+ google.protobuf.BoolValue use_legacy_sql = 15
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // GoogleSQL only. Set to POSITIONAL to use positional (?) query parameters
+ // or to NAMED to use named (@myparam) query parameters in this query.
+ string parameter_mode = 16;
+
+ // Query parameters for GoogleSQL queries.
+ repeated QueryParameter query_parameters = 17;
+
+ // Output only. System variables for GoogleSQL queries. A system variable is
+ // output if the variable is settable and its value differs from the system
+ // default.
+ // "@@" prefix is not included in the name of the System variables.
+ optional SystemVariables system_variables = 35
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Allows the schema of the destination table to be updated as a side effect
+ // of the query job. Schema update options are supported in three cases:
+ // when writeDisposition is WRITE_APPEND;
+ // when writeDisposition is WRITE_TRUNCATE_DATA;
+ // when writeDisposition is WRITE_TRUNCATE and the destination table is a
+ // partition of a table, specified by partition decorators. For normal tables,
+ // WRITE_TRUNCATE will always overwrite the schema.
+ // One or more of the following values are specified:
+ //
+ // * ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema.
+ // * ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original
+ // schema to nullable.
+ repeated string schema_update_options = 18;
+
+ // Time-based partitioning specification for the destination table. Only one
+ // of timePartitioning and rangePartitioning should be specified.
+ TimePartitioning time_partitioning = 19;
+
+ // Range partitioning specification for the destination table.
+ // Only one of timePartitioning and rangePartitioning should be specified.
+ RangePartitioning range_partitioning = 22;
+
+ // Clustering specification for the destination table.
+ Clustering clustering = 20;
+
+ // Custom encryption configuration (e.g., Cloud KMS keys)
+ EncryptionConfiguration destination_encryption_configuration = 21;
+
+ // Options controlling the execution of scripts.
+ ScriptOptions script_options = 24;
+
+ // Connection properties which can modify the query behavior.
+ repeated ConnectionProperty connection_properties = 33;
+
+ // If this property is true, the job creates a new session using a randomly
+ // generated session_id. To continue using a created session with
+ // subsequent queries, pass the existing session identifier as a
+ // `ConnectionProperty` value. The session identifier is returned as part of
+ // the `SessionInfo` message within the query statistics.
+ //
+ // The new session's location will be set to `Job.JobReference.location` if it
+ // is present, otherwise it's set to the default location based on existing
+ // routing logic.
+ google.protobuf.BoolValue create_session = 34;
+
+ // Optional. Whether to run the query as continuous or a regular query.
+ // Continuous query is currently in experimental stage and not ready for
+ // general usage.
+ google.protobuf.BoolValue continuous = 36
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. This is only supported for a SELECT query using a temporary
+ // table. If set, the query is allowed to write results incrementally to the
+ // temporary result table. This may incur a performance penalty. This option
+ // cannot be used with Legacy SQL. This feature is not yet available.
+ bool write_incremental_results = 37 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Options related to script execution.
+message ScriptOptions {
+ // KeyResultStatementKind controls how the key result is determined.
+ enum KeyResultStatementKind {
+ // Default value.
+ KEY_RESULT_STATEMENT_KIND_UNSPECIFIED = 0;
+
+ // The last result determines the key result.
+ LAST = 1;
+
+ // The first SELECT statement determines the key result.
+ FIRST_SELECT = 2;
+ }
+
+ // Timeout period for each statement in a script.
+ google.protobuf.Int64Value statement_timeout_ms = 1;
+
+ // Limit on the number of bytes billed per statement. Exceeding this budget
+ // results in an error.
+ google.protobuf.Int64Value statement_byte_budget = 2;
+
+ // Determines which statement in the script represents the "key result",
+ // used to populate the schema and query results of the script job.
+ // Default is LAST.
+ KeyResultStatementKind key_result_statement = 4;
+}
+
+// JobConfigurationLoad contains the configuration properties for loading data
+// into a destination table.
+message JobConfigurationLoad {
+ // Indicates the character map used for column names.
+ enum ColumnNameCharacterMap {
+ // Unspecified column name character map.
+ COLUMN_NAME_CHARACTER_MAP_UNSPECIFIED = 0;
+
+ // Support flexible column name and reject invalid column names.
+ STRICT = 1;
+
+ // Support alphanumeric + underscore characters and names must start with a
+ // letter or underscore. Invalid column names will be normalized.
+ V1 = 2;
+
+ // Support flexible column name. Invalid column names will be normalized.
+ V2 = 3;
+ }
+
+ // Indicates the strategy used to match loaded columns to the schema.
+ enum SourceColumnMatch {
+ // Uses sensible defaults based on how the schema is provided. If autodetect
+ // is used, then columns are matched by name. Otherwise, columns are matched
+ // by position. This is done to keep the behavior backward-compatible.
+ SOURCE_COLUMN_MATCH_UNSPECIFIED = 0;
+
+ // Matches by position. This assumes that the columns are ordered the same
+ // way as the schema.
+ POSITION = 1;
+
+ // Matches by name. This reads the header row as column names and reorders
+ // columns to match the field names in the schema.
+ NAME = 2;
+ }
+
+ // [Required] The fully-qualified URIs that point to your data in Google
+ // Cloud.
+ // For Google Cloud Storage URIs:
+ // Each URI can contain one '*' wildcard character and it must come after
+ // the 'bucket' name. Size limits related to load jobs apply to external
+ // data sources.
+ // For Google Cloud Bigtable URIs:
+ // Exactly one URI can be specified and it has be a fully specified and
+ // valid HTTPS URL for a Google Cloud Bigtable table.
+ // For Google Cloud Datastore backups:
+ // Exactly one URI can be specified. Also, the '*' wildcard character is not
+ // allowed.
+ repeated string source_uris = 1;
+
+ // Optional. Specifies how source URIs are interpreted for constructing the
+ // file set to load. By default, source URIs are expanded against the
+ // underlying storage. You can also specify manifest files to control how the
+ // file set is constructed. This option is only applicable to object storage
+ // systems.
+ FileSetSpecType file_set_spec_type = 49
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The schema for the destination table. The schema can be
+ // omitted if the destination table already exists, or if you're loading data
+ // from Google Cloud Datastore.
+ TableSchema schema = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // [Required] The destination table to load the data into.
+ TableReference destination_table = 3;
+
+ // Optional. [Experimental] Properties with which to create the destination
+ // table if it is new.
+ DestinationTableProperties destination_table_properties = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies whether the job is allowed to create new tables.
+ // The following values are supported:
+ //
+ // * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the
+ // table.
+ // * CREATE_NEVER: The table must already exist. If it does not,
+ // a 'notFound' error is returned in the job result.
+ // The default value is CREATE_IF_NEEDED.
+ // Creation, truncation and append actions occur as one atomic update
+ // upon job completion.
+ string create_disposition = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the action that occurs if the destination table
+ // already exists. The following values are supported:
+ //
+ // * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the
+ // data, removes the constraints and uses the schema from the load job.
+ // * WRITE_TRUNCATE_DATA: If the table already exists, BigQuery overwrites the
+ // data, but keeps the constraints and schema of the existing table.
+ // * WRITE_APPEND: If the table already exists, BigQuery appends the data to
+ // the table.
+ // * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate'
+ // error is returned in the job result.
+ //
+ // The default value is WRITE_APPEND.
+ // Each action is atomic and only occurs if BigQuery is able to complete the
+ // job successfully.
+ // Creation, truncation and append actions occur as one atomic update
+ // upon job completion.
+ string write_disposition = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies a string that represents a null value in a CSV file.
+ // For example, if you specify "\N", BigQuery interprets "\N" as a null value
+ // when loading a CSV file.
+ // The default value is the empty string. If you set this property to a custom
+ // value, BigQuery throws an error if an empty string is present for all data
+ // types except for STRING and BYTE. For STRING and BYTE columns, BigQuery
+ // interprets the empty string as an empty value.
+ google.protobuf.StringValue null_marker = 7
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The separator character for fields in a CSV file. The separator
+ // is interpreted as a single byte. For files encoded in ISO-8859-1, any
+ // single character can be used as a separator. For files encoded in UTF-8,
+ // characters represented in decimal range 1-127 (U+0001-U+007F) can be used
+ // without any modification. UTF-8 characters encoded with multiple bytes
+ // (i.e. U+0080 and above) will have only the first byte used for separating
+ // fields. The remaining bytes will be treated as a part of the field.
+ // BigQuery also supports the escape sequence "\t" (U+0009) to specify a tab
+ // separator. The default value is comma (",", U+002C).
+ string field_delimiter = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The number of rows at the top of a CSV file that BigQuery will
+ // skip when loading the data. The default value is 0. This property is useful
+ // if you have header rows in the file that should be skipped. When autodetect
+ // is on, the behavior is the following:
+ //
+ // * skipLeadingRows unspecified - Autodetect tries to detect headers in the
+ // first row. If they are not detected, the row is read as data. Otherwise
+ // data is read starting from the second row.
+ // * skipLeadingRows is 0 - Instructs autodetect that there are no headers and
+ // data should be read starting from the first row.
+ // * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect
+ // headers in row N. If headers are not detected, row N is just skipped.
+ // Otherwise row N is used to extract column names for the detected schema.
+ google.protobuf.Int32Value skip_leading_rows = 9
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The character encoding of the data.
+ // The supported values are UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE,
+ // and UTF-32LE. The default value is UTF-8. BigQuery decodes the data after
+ // the raw, binary data has been split using the values of the `quote` and
+ // `fieldDelimiter` properties.
+ //
+ // If you don't specify an encoding, or if you specify a UTF-8 encoding when
+ // the CSV file is not UTF-8 encoded, BigQuery attempts to convert the data to
+ // UTF-8. Generally, your data loads successfully, but it may not match
+ // byte-for-byte what you expect. To avoid this, specify the correct encoding
+ // by using the `--encoding` flag.
+ //
+ // If BigQuery can't convert a character other than the ASCII `0` character,
+ // BigQuery converts the character to the standard Unicode replacement
+ // character: �.
+ string encoding = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The value that is used to quote data sections in a CSV file.
+ // BigQuery converts the string to ISO-8859-1 encoding, and then uses the
+ // first byte of the encoded string to split the data in its raw, binary
+ // state.
+ // The default value is a double-quote ('"').
+ // If your data does not contain quoted sections, set the property value to an
+ // empty string.
+ // If your data contains quoted newline characters, you must also set the
+ // allowQuotedNewlines property to true.
+ // To include the specific quote character within a quoted value, precede it
+ // with an additional matching quote character. For example, if you want to
+ // escape the default character ' " ', use ' "" '.
+ // @default "
+ google.protobuf.StringValue quote = 11
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of bad records that BigQuery can ignore when
+ // running the job. If the number of bad records exceeds this value, an
+ // invalid error is returned in the job result.
+ // The default value is 0, which requires that all records are valid.
+ // This is only supported for CSV and NEWLINE_DELIMITED_JSON file formats.
+ google.protobuf.Int32Value max_bad_records = 12
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Indicates if BigQuery should allow quoted data sections that contain
+ // newline characters in a CSV file. The default value is false.
+ google.protobuf.BoolValue allow_quoted_newlines = 15;
+
+ // Optional. The format of the data files.
+ // For CSV files, specify "CSV". For datastore backups,
+ // specify "DATASTORE_BACKUP". For newline-delimited JSON,
+ // specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO".
+ // For parquet, specify "PARQUET". For orc, specify "ORC".
+ // The default value is CSV.
+ string source_format = 16 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Accept rows that are missing trailing optional columns.
+ // The missing values are treated as nulls.
+ // If false, records with missing trailing columns are treated as bad records,
+ // and if there are too many bad records, an invalid error is returned in the
+ // job result.
+ // The default value is false.
+ // Only applicable to CSV, ignored for other formats.
+ google.protobuf.BoolValue allow_jagged_rows = 17
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Indicates if BigQuery should allow extra values that are not
+ // represented in the table schema.
+ // If true, the extra values are ignored.
+ // If false, records with extra columns are treated as bad records, and if
+ // there are too many bad records, an invalid error is returned in the job
+ // result. The default value is false.
+ // The sourceFormat property determines what BigQuery treats as an extra
+ // value:
+ // CSV: Trailing columns
+ // JSON: Named values that don't match any column names in the table schema
+ // Avro, Parquet, ORC: Fields in the file schema that don't exist in the
+ // table schema.
+ google.protobuf.BoolValue ignore_unknown_values = 18
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity
+ // properties to load into BigQuery from a Cloud Datastore backup. Property
+ // names are case sensitive and must be top-level properties. If no properties
+ // are specified, BigQuery loads all properties. If any named property isn't
+ // found in the Cloud Datastore backup, an invalid error is returned in the
+ // job result.
+ repeated string projection_fields = 19;
+
+ // Optional. Indicates if we should automatically infer the options and
+ // schema for CSV and JSON sources.
+ google.protobuf.BoolValue autodetect = 20
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Allows the schema of the destination table to be updated as a side effect
+ // of the load job if a schema is autodetected or supplied in the job
+ // configuration.
+ // Schema update options are supported in three cases:
+ // when writeDisposition is WRITE_APPEND;
+ // when writeDisposition is WRITE_TRUNCATE_DATA;
+ // when writeDisposition is WRITE_TRUNCATE and the destination table is a
+ // partition of a table, specified by partition decorators. For normal tables,
+ // WRITE_TRUNCATE will always overwrite the schema.
+ // One or more of the following values are specified:
+ //
+ // * ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema.
+ // * ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original
+ // schema to nullable.
+ repeated string schema_update_options = 21;
+
+ // Time-based partitioning specification for the destination table. Only one
+ // of timePartitioning and rangePartitioning should be specified.
+ TimePartitioning time_partitioning = 22;
+
+ // Range partitioning specification for the destination table.
+ // Only one of timePartitioning and rangePartitioning should be specified.
+ RangePartitioning range_partitioning = 26;
+
+ // Clustering specification for the destination table.
+ Clustering clustering = 23;
+
+ // Custom encryption configuration (e.g., Cloud KMS keys)
+ EncryptionConfiguration destination_encryption_configuration = 24;
+
+ // Optional. If sourceFormat is set to "AVRO", indicates whether to interpret
+ // logical types as the corresponding BigQuery data type (for example,
+ // TIMESTAMP), instead of using the raw type (for example, INTEGER).
+ google.protobuf.BoolValue use_avro_logical_types = 25
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The user can provide a reference file with the reader schema.
+ // This file is only loaded if it is part of source URIs, but is not loaded
+ // otherwise. It is enabled for the following formats: AVRO, PARQUET, ORC.
+ google.protobuf.StringValue reference_file_schema_uri = 45
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. When set, configures hive partitioning support.
+ // Not all storage formats support hive partitioning -- requesting hive
+ // partitioning on an unsupported format will lead to an error, as will
+ // providing an invalid specification.
+ HivePartitioningOptions hive_partitioning_options = 37
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Defines the list of possible SQL data types to which the source decimal
+ // values are converted. This list and the precision and the scale parameters
+ // of the decimal field determine the target type. In the order of NUMERIC,
+ // BIGNUMERIC, and STRING, a
+ // type is picked if it is in the specified list and if it supports the
+ // precision and the scale. STRING supports all precision and scale values.
+ // If none of the listed types supports the precision and the scale, the type
+ // supporting the widest range in the specified list is picked, and if a value
+ // exceeds the supported range when reading the data, an error will be thrown.
+ //
+ // Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"].
+ // If (precision,scale) is:
+ //
+ // * (38,9) -> NUMERIC;
+ // * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits);
+ // * (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits);
+ // * (76,38) -> BIGNUMERIC;
+ // * (77,38) -> BIGNUMERIC (error if value exceeds supported range).
+ //
+ // This field cannot contain duplicate types. The order of the types in this
+ // field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as
+ // ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over
+ // BIGNUMERIC.
+ //
+ // Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other
+ // file formats.
+ repeated DecimalTargetType decimal_target_types = 39;
+
+ // Optional. Load option to be used together with source_format
+ // newline-delimited JSON to indicate that a variant of JSON is being loaded.
+ // To load newline-delimited GeoJSON, specify GEOJSON (and source_format must
+ // be set to NEWLINE_DELIMITED_JSON).
+ JsonExtension json_extension = 41 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Additional properties to set if sourceFormat is set to PARQUET.
+ ParquetOptions parquet_options = 42 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. When sourceFormat is set to "CSV", this indicates whether the
+ // embedded ASCII control characters (the first 32 characters in the
+ // ASCII-table, from
+ // '\x00' to '\x1F') are preserved.
+ google.protobuf.BoolValue preserve_ascii_control_characters = 44
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Connection properties which can modify the load job behavior.
+ // Currently, only the 'session_id' connection property is supported, and is
+ // used to resolve _SESSION appearing as the dataset id.
+ repeated ConnectionProperty connection_properties = 46
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If this property is true, the job creates a new session using a
+ // randomly generated session_id. To continue using a created session with
+ // subsequent queries, pass the existing session identifier as a
+ // `ConnectionProperty` value. The session identifier is returned as part of
+ // the `SessionInfo` message within the query statistics.
+ //
+ // The new session's location will be set to `Job.JobReference.location` if it
+ // is present, otherwise it's set to the default location based on existing
+ // routing logic.
+ google.protobuf.BoolValue create_session = 47
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Character map supported for column names in CSV/Parquet loads.
+ // Defaults to STRICT and can be overridden by Project Config Service. Using
+ // this option with unsupporting load formats will result in an error.
+ ColumnNameCharacterMap column_name_character_map = 50
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. [Experimental] Configures the load job to copy files directly to
+ // the destination BigLake managed table, bypassing file content reading and
+ // rewriting.
+ //
+ // Copying files only is supported when all the following are true:
+ //
+ // * `source_uris` are located in the same Cloud Storage location as the
+ // destination table's `storage_uri` location.
+ // * `source_format` is `PARQUET`.
+ // * `destination_table` is an existing BigLake managed table. The table's
+ // schema does not have flexible column names. The table's columns do not
+ // have type parameters other than precision and scale.
+ // * No options other than the above are specified.
+ google.protobuf.BoolValue copy_files_only = 51
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Default time zone that will apply when parsing timestamp values
+ // that have no specific time zone.
+ google.protobuf.StringValue time_zone = 52
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A list of strings represented as SQL NULL value in a CSV file.
+ //
+ // null_marker and null_markers can't be set at the same time.
+ // If null_marker is set, null_markers has to be not set.
+ // If null_markers is set, null_marker has to be not set.
+ // If both null_marker and null_markers are set at the same time, a user
+ // error would be thrown.
+ // Any strings listed in null_markers, including
+ // empty string would be interpreted as SQL NULL. This applies to all column
+ // types.
+ repeated string null_markers = 53 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Date format used for parsing DATE values.
+ optional string date_format = 54 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Date format used for parsing DATETIME values.
+ optional string datetime_format = 55 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Date format used for parsing TIME values.
+ optional string time_format = 56 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Date format used for parsing TIMESTAMP values.
+ optional string timestamp_format = 57
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Controls the strategy used to match loaded columns to the schema.
+ // If not set, a sensible default is chosen based on how the schema is
+ // provided. If autodetect is used, then columns are matched by name.
+ // Otherwise, columns are matched by position. This is done to keep the
+ // behavior backward-compatible.
+ SourceColumnMatch source_column_match = 58
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Precisions (maximum number of total digits in base 10) for seconds
+ // of TIMESTAMP types that are allowed to the destination table for
+ // autodetection mode.
+ //
+ // Available for the formats: CSV, PARQUET, AVRO, and Iceberg External Table.
+ //
+ // Possible values include:
+ // Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP
+ // columns
+ // [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have
+ // less than 6 digits of subseconds.
+ // timestamp(12) for all auto detected TIMESTAMP columns that have
+ // more than 6 digits of subseconds.
+ // [12]: timestamp(12) for all auto detected TIMESTAMP columns.
+ //
+ // The order of the elements in this array is ignored.
+ // Inputs that have higher precision than the highest target precision in this
+ // array will be truncated.
+ repeated int32 timestamp_target_precision = 59;
+}
+
+// JobConfigurationTableCopy configures a job that copies data from one table
+// to another.
+// For more information on copying tables, see [Copy a
+// table](https://cloud.google.com/bigquery/docs/managing-tables#copy-table).
+message JobConfigurationTableCopy {
+ // Indicates different operation types supported in table copy job.
+ enum OperationType {
+ // Unspecified operation type.
+ OPERATION_TYPE_UNSPECIFIED = 0;
+
+ // The source and destination table have the same table type.
+ COPY = 1;
+
+ // The source table type is TABLE and
+ // the destination table type is SNAPSHOT.
+ SNAPSHOT = 2;
+
+ // The source table type is SNAPSHOT and
+ // the destination table type is TABLE.
+ RESTORE = 3;
+
+ // The source and destination table have the same table type,
+ // but only bill for unique data.
+ CLONE = 4;
+ }
+
+ // [Pick one] Source table to copy.
+ TableReference source_table = 1;
+
+ // [Pick one] Source tables to copy.
+ repeated TableReference source_tables = 2;
+
+ // [Required] The destination table.
+ TableReference destination_table = 3;
+
+ // Optional. Specifies whether the job is allowed to create new tables.
+ // The following values are supported:
+ //
+ // * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the
+ // table.
+ // * CREATE_NEVER: The table must already exist. If it does not,
+ // a 'notFound' error is returned in the job result.
+ //
+ // The default value is CREATE_IF_NEEDED.
+ // Creation, truncation and append actions occur as one atomic update
+ // upon job completion.
+ string create_disposition = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the action that occurs if the destination table
+ // already exists. The following values are supported:
+ //
+ // * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the
+ // table data and uses the schema and table constraints from the source table.
+ // * WRITE_APPEND: If the table already exists, BigQuery appends the data to
+ // the table.
+ // * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate'
+ // error is returned in the job result.
+ //
+ // The default value is WRITE_EMPTY. Each action is atomic and only occurs if
+ // BigQuery is able to complete the job successfully. Creation, truncation and
+ // append actions occur as one atomic update upon job completion.
+ string write_disposition = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Custom encryption configuration (e.g., Cloud KMS keys).
+ EncryptionConfiguration destination_encryption_configuration = 6;
+
+ // Optional. Supported operation types in table copy job.
+ OperationType operation_type = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The time when the destination table expires. Expired tables will
+ // be deleted and their storage reclaimed.
+ google.protobuf.Timestamp destination_expiration_time = 9
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// JobConfigurationExtract configures a job that exports data from a BigQuery
+// table into Google Cloud Storage.
+message JobConfigurationExtract {
+ // Options related to model extraction.
+ message ModelExtractOptions {
+ // The 1-based ID of the trial to be exported from a hyperparameter tuning
+ // model. If not specified, the trial with id =
+ // [Model](https://cloud.google.com/bigquery/docs/reference/rest/v2/models#resource:-model).defaultTrialId
+ // is exported. This field is ignored for models not trained with
+ // hyperparameter tuning.
+ google.protobuf.Int64Value trial_id = 1;
+ }
+
+ // Required. Source reference for the export.
+ oneof source {
+ // A reference to the table being exported.
+ TableReference source_table = 1;
+
+ // A reference to the model being exported.
+ ModelReference source_model = 9;
+ }
+
+ // [Pick one] A list of fully-qualified Google Cloud Storage URIs where the
+ // extracted table should be written.
+ repeated string destination_uris = 3;
+
+ // Optional. Whether to print out a header row in the results.
+ // Default is true. Not applicable when extracting models.
+ google.protobuf.BoolValue print_header = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. When extracting data in CSV format, this defines the
+ // delimiter to use between fields in the exported data.
+ // Default is ','. Not applicable when extracting models.
+ string field_delimiter = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The exported file format. Possible values include CSV,
+ // NEWLINE_DELIMITED_JSON, PARQUET, or AVRO for tables and ML_TF_SAVED_MODEL
+ // or ML_XGBOOST_BOOSTER for models. The default value for tables is CSV.
+ // Tables with nested or repeated fields cannot be exported as CSV. The
+ // default value for models is ML_TF_SAVED_MODEL.
+ string destination_format = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The compression type to use for exported files. Possible values
+ // include DEFLATE, GZIP, NONE, SNAPPY, and ZSTD. The default value is NONE.
+ // Not all compression formats are support for all file formats. DEFLATE is
+ // only supported for Avro. ZSTD is only supported for Parquet. Not applicable
+ // when extracting models.
+ string compression = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Whether to use logical types when extracting to AVRO format. Not applicable
+ // when extracting models.
+ google.protobuf.BoolValue use_avro_logical_types = 13;
+
+ // Optional. Model extract options only applicable when extracting models.
+ ModelExtractOptions model_extract_options = 14
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+message JobConfiguration {
+ // Output only. The type of the job. Can be QUERY, LOAD, EXTRACT, COPY or
+ // UNKNOWN.
+ string job_type = 8;
+
+ // [Pick one] Configures a query job.
+ JobConfigurationQuery query = 1;
+
+ // [Pick one] Configures a load job.
+ JobConfigurationLoad load = 2;
+
+ // [Pick one] Copies a table.
+ JobConfigurationTableCopy copy = 3;
+
+ // [Pick one] Configures an extract job.
+ JobConfigurationExtract extract = 4;
+
+ // Optional. If set, don't actually run this job. A valid query will return
+ // a mostly empty response with some processing statistics, while an invalid
+ // query will return the same error it would if it wasn't a dry run. Behavior
+ // of non-query jobs is undefined.
+ google.protobuf.BoolValue dry_run = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Job timeout in milliseconds relative to the job creation time. If
+ // this time limit is exceeded, BigQuery attempts to stop the job, but might
+ // not always succeed in canceling it before the job completes. For example, a
+ // job that takes more than 60 seconds to complete has a better chance of
+ // being stopped than a job that takes 10 seconds to complete.
+ google.protobuf.Int64Value job_timeout_ms = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A target limit on the rate of slot consumption by this job. If
+ // set to a value > 0, BigQuery will attempt to limit the rate of slot
+ // consumption by this job to keep it below the configured limit, even if the
+ // job is eligible for more slots based on fair scheduling. The unused slots
+ // will be available for other jobs and queries to use.
+ //
+ // Note: This feature is not yet generally available.
+ optional int32 max_slots = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // The labels associated with this job. You can use these to organize and
+ // group your jobs.
+ // Label keys and values can be no longer than 63 characters, can only contain
+ // lowercase letters, numeric characters, underscores and dashes.
+ // International characters are allowed. Label values are optional. Label
+ // keys must start with a letter and each label in the list must have a
+ // different key.
+ map labels = 7;
+
+ // Optional. The reservation that job would use. User can specify a
+ // reservation to execute the job. If reservation is not set, reservation is
+ // determined based on the rules defined by the reservation assignments. The
+ // expected format is
+ // `projects/{project}/locations/{location}/reservations/{reservation}`.
+ optional string reservation = 11 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "bigqueryreservation.googleapis.com/Reservation"
+ }
+ ];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_creation_reason.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_creation_reason.proto
new file mode 100644
index 000000000000..8409dc597265
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_creation_reason.proto
@@ -0,0 +1,58 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "JobCreationReasonProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Reason about why a Job was created from a
+// [`jobs.query`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query)
+// method when used with `JOB_CREATION_OPTIONAL` Job creation mode.
+//
+// For
+// [`jobs.insert`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/insert)
+// method calls it will always be `REQUESTED`.
+message JobCreationReason {
+ // Indicates the high level reason why a job was created.
+ enum Code {
+ // Reason is not specified.
+ CODE_UNSPECIFIED = 0;
+
+ // Job creation was requested.
+ REQUESTED = 1;
+
+ // The query request ran beyond a system defined timeout specified by the
+ // [timeoutMs field in the
+ // QueryRequest](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest).
+ // As a result it was considered a long running operation for which a job
+ // was created.
+ LONG_RUNNING = 2;
+
+ // The results from the query cannot fit in the response.
+ LARGE_RESULTS = 3;
+
+ // BigQuery has determined that the query needs to be executed as a Job.
+ OTHER = 4;
+ }
+
+ // Output only. Specifies the high level reason why a Job was created.
+ Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_reference.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_reference.proto
new file mode 100644
index 000000000000..da814f6f7523
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_reference.proto
@@ -0,0 +1,42 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "JobReferenceProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// A job reference is a fully qualified identifier for referring to a job.
+message JobReference {
+ // Required. The ID of the project containing this job.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the job. The ID must contain only letters (a-z, A-Z),
+ // numbers (0-9), underscores (_), or dashes (-). The maximum length is 1,024
+ // characters.
+ string job_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The geographic location of the job. The default value is US.
+ //
+ // For more information about BigQuery locations, see:
+ // https://cloud.google.com/bigquery/docs/locations
+ google.protobuf.StringValue location = 3
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_stats.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_stats.proto
new file mode 100644
index 000000000000..6a0d8c9014cd
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_stats.proto
@@ -0,0 +1,1705 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/bigquery/v2/dataset_reference.proto";
+import "google/cloud/bigquery/v2/gen_ai_stats.proto";
+import "google/cloud/bigquery/v2/model.proto";
+import "google/cloud/bigquery/v2/property_graph_reference.proto";
+import "google/cloud/bigquery/v2/query_parameter.proto";
+import "google/cloud/bigquery/v2/routine_reference.proto";
+import "google/cloud/bigquery/v2/row_access_policy_reference.proto";
+import "google/cloud/bigquery/v2/session_info.proto";
+import "google/cloud/bigquery/v2/table_reference.proto";
+import "google/cloud/bigquery/v2/table_schema.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "JobStatsProto";
+option java_package = "com.google.cloud.bigquery.v2";
+option (google.api.resource_definition) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
+};
+option (google.api.resource_definition) = {
+ type: "storage.googleapis.com/Bucket"
+ pattern: "*"
+};
+
+// An operation within a stage.
+message ExplainQueryStep {
+ // Machine-readable operation type.
+ string kind = 1;
+
+ // Human-readable description of the step(s).
+ repeated string substeps = 2;
+}
+
+// A single stage of query execution.
+message ExplainQueryStage {
+ // Indicates the type of compute mode.
+ enum ComputeMode {
+ // ComputeMode type not specified.
+ COMPUTE_MODE_UNSPECIFIED = 0;
+
+ // This stage was processed using BigQuery slots.
+ BIGQUERY = 1;
+
+ // This stage was processed using BI Engine compute.
+ BI_ENGINE = 2;
+ }
+
+ // Human-readable name for the stage.
+ string name = 1;
+
+ // Unique ID for the stage within the plan.
+ google.protobuf.Int64Value id = 2;
+
+ // Stage start time represented as milliseconds since the epoch.
+ int64 start_ms = 3;
+
+ // Stage end time represented as milliseconds since the epoch.
+ int64 end_ms = 4;
+
+ // IDs for stages that are inputs to this stage.
+ repeated int64 input_stages = 5;
+
+ // Relative amount of time the average shard spent waiting to be
+ // scheduled.
+ google.protobuf.DoubleValue wait_ratio_avg = 6;
+
+ // Milliseconds the average shard spent waiting to be scheduled.
+ google.protobuf.Int64Value wait_ms_avg = 7;
+
+ // Relative amount of time the slowest shard spent waiting to be
+ // scheduled.
+ google.protobuf.DoubleValue wait_ratio_max = 8;
+
+ // Milliseconds the slowest shard spent waiting to be scheduled.
+ google.protobuf.Int64Value wait_ms_max = 9;
+
+ // Relative amount of time the average shard spent reading input.
+ google.protobuf.DoubleValue read_ratio_avg = 10;
+
+ // Milliseconds the average shard spent reading input.
+ google.protobuf.Int64Value read_ms_avg = 11;
+
+ // Relative amount of time the slowest shard spent reading input.
+ google.protobuf.DoubleValue read_ratio_max = 12;
+
+ // Milliseconds the slowest shard spent reading input.
+ google.protobuf.Int64Value read_ms_max = 13;
+
+ // Relative amount of time the average shard spent on CPU-bound tasks.
+ google.protobuf.DoubleValue compute_ratio_avg = 14;
+
+ // Milliseconds the average shard spent on CPU-bound tasks.
+ google.protobuf.Int64Value compute_ms_avg = 15;
+
+ // Relative amount of time the slowest shard spent on CPU-bound tasks.
+ google.protobuf.DoubleValue compute_ratio_max = 16;
+
+ // Milliseconds the slowest shard spent on CPU-bound tasks.
+ google.protobuf.Int64Value compute_ms_max = 17;
+
+ // Relative amount of time the average shard spent on writing output.
+ google.protobuf.DoubleValue write_ratio_avg = 18;
+
+ // Milliseconds the average shard spent on writing output.
+ google.protobuf.Int64Value write_ms_avg = 19;
+
+ // Relative amount of time the slowest shard spent on writing output.
+ google.protobuf.DoubleValue write_ratio_max = 20;
+
+ // Milliseconds the slowest shard spent on writing output.
+ google.protobuf.Int64Value write_ms_max = 21;
+
+ // Total number of bytes written to shuffle.
+ google.protobuf.Int64Value shuffle_output_bytes = 22;
+
+ // Total number of bytes written to shuffle and spilled to disk.
+ google.protobuf.Int64Value shuffle_output_bytes_spilled = 23;
+
+ // Number of records read into the stage.
+ google.protobuf.Int64Value records_read = 24;
+
+ // Number of records written by the stage.
+ google.protobuf.Int64Value records_written = 25;
+
+ // Number of parallel input segments to be processed
+ google.protobuf.Int64Value parallel_inputs = 26;
+
+ // Number of parallel input segments completed.
+ google.protobuf.Int64Value completed_parallel_inputs = 27;
+
+ // Current status for this stage.
+ string status = 28;
+
+ // List of operations within the stage in dependency order (approximately
+ // chronological).
+ repeated ExplainQueryStep steps = 29;
+
+ // Slot-milliseconds used by the stage.
+ google.protobuf.Int64Value slot_ms = 30;
+
+ // Output only. Compute mode for this stage.
+ ComputeMode compute_mode = 31 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Summary of the state of query execution at a given time.
+message QueryTimelineSample {
+ // Milliseconds elapsed since the start of query execution.
+ google.protobuf.Int64Value elapsed_ms = 1;
+
+ // Cumulative slot-ms consumed by the query.
+ google.protobuf.Int64Value total_slot_ms = 2;
+
+ // Total units of work remaining for the query. This number can be revised
+ // (increased or decreased) while the query is running.
+ google.protobuf.Int64Value pending_units = 3;
+
+ // Total parallel units of work completed by this query.
+ google.protobuf.Int64Value completed_units = 4;
+
+ // Total number of active workers. This does not correspond directly to
+ // slot usage. This is the largest value observed since the last sample.
+ google.protobuf.Int64Value active_units = 5;
+
+ // Total shuffle usage ratio in shuffle RAM per reservation of this query.
+ // This will be provided for reservation customers only.
+ google.protobuf.DoubleValue shuffle_ram_usage_ratio = 6;
+
+ // Units of work that can be scheduled immediately. Providing additional slots
+ // for these units of work will accelerate the query, if no other query in
+ // the reservation needs additional slots.
+ google.protobuf.Int64Value estimated_runnable_units = 7;
+}
+
+// The external service cost is a portion of the total cost, these costs are not
+// additive with total_bytes_billed. Moreover, this field only track external
+// service costs that will show up as BigQuery costs (e.g. training BigQuery
+// ML job with google cloud CAIP or Automl Tables services), not other costs
+// which may be accrued by running the query (e.g. reading from Bigtable or
+// Cloud Storage). The external service costs with different billing sku (e.g.
+// CAIP job is charged based on VM usage) are converted to BigQuery
+// billed_bytes and slot_ms with equivalent amount of US dollars. Services may
+// not directly correlate to these metrics, but these are the equivalents for
+// billing purposes.
+// Output only.
+message ExternalServiceCost {
+ // External service name.
+ string external_service = 1;
+
+ // External service cost in terms of bigquery bytes processed.
+ google.protobuf.Int64Value bytes_processed = 2;
+
+ // External service cost in terms of bigquery bytes billed.
+ google.protobuf.Int64Value bytes_billed = 3;
+
+ // External service cost in terms of bigquery slot milliseconds.
+ google.protobuf.Int64Value slot_ms = 4;
+
+ // Non-preemptable reserved slots used for external job.
+ // For example, reserved slots for Cloua AI Platform job are the VM usages
+ // converted to BigQuery slot with equivalent mount of price.
+ int64 reserved_slot_count = 5;
+
+ // The billing method used for the external job.
+ // This field, set to `SERVICES_SKU`, is only used when billing under the
+ // services SKU. Otherwise, it is unspecified for backward compatibility.
+ string billing_method = 6;
+}
+
+// Statistics for the EXPORT DATA statement as part of Query Job. EXTRACT
+// JOB statistics are populated in JobStatistics4.
+message ExportDataStatistics {
+ // Number of destination files generated in case of EXPORT DATA
+ // statement only.
+ google.protobuf.Int64Value file_count = 1;
+
+ // [Alpha] Number of destination rows generated in case of EXPORT DATA
+ // statement only.
+ google.protobuf.Int64Value row_count = 2;
+}
+
+// Reason why BI Engine didn't accelerate the query (or sub-query).
+message BiEngineReason {
+ // Indicates the high-level reason for no/partial acceleration
+ enum Code {
+ // BiEngineReason not specified.
+ CODE_UNSPECIFIED = 0;
+
+ // No reservation available for BI Engine acceleration.
+ NO_RESERVATION = 1;
+
+ // Not enough memory available for BI Engine acceleration.
+ INSUFFICIENT_RESERVATION = 2;
+
+ // This particular SQL text is not supported for acceleration by BI Engine.
+ UNSUPPORTED_SQL_TEXT = 4;
+
+ // Input too large for acceleration by BI Engine.
+ INPUT_TOO_LARGE = 5;
+
+ // Catch-all code for all other cases for partial or disabled acceleration.
+ OTHER_REASON = 6;
+
+ // One or more tables were not eligible for BI Engine acceleration.
+ TABLE_EXCLUDED = 7;
+ }
+
+ // Output only. High-level BI Engine reason for partial or disabled
+ // acceleration
+ Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Free form human-readable reason for partial or disabled
+ // acceleration.
+ string message = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Statistics for a BI Engine specific query.
+// Populated as part of JobStatistics2
+message BiEngineStatistics {
+ // Indicates the type of BI Engine acceleration.
+ enum BiEngineMode {
+ // BiEngineMode type not specified.
+ ACCELERATION_MODE_UNSPECIFIED = 0;
+
+ // BI Engine disabled the acceleration. bi_engine_reasons
+ // specifies a more detailed reason.
+ DISABLED = 1;
+
+ // Part of the query was accelerated using BI Engine.
+ // See bi_engine_reasons for why parts of the query were not
+ // accelerated.
+ PARTIAL = 2;
+
+ // All of the query was accelerated using BI Engine.
+ FULL = 3;
+ }
+
+ // Indicates the type of BI Engine acceleration.
+ enum BiEngineAccelerationMode {
+ // BiEngineMode type not specified.
+ BI_ENGINE_ACCELERATION_MODE_UNSPECIFIED = 0;
+
+ // BI Engine acceleration was attempted but disabled. bi_engine_reasons
+ // specifies a more detailed reason.
+ BI_ENGINE_DISABLED = 1;
+
+ // Some inputs were accelerated using BI Engine.
+ // See bi_engine_reasons for why parts of the query were not
+ // accelerated.
+ PARTIAL_INPUT = 2;
+
+ // All of the query inputs were accelerated using BI Engine.
+ FULL_INPUT = 3;
+
+ // All of the query was accelerated using BI Engine.
+ FULL_QUERY = 4;
+ }
+
+ // Output only. Specifies which mode of BI Engine acceleration was performed
+ // (if any).
+ BiEngineMode bi_engine_mode = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Specifies which mode of BI Engine acceleration was performed
+ // (if any).
+ BiEngineAccelerationMode acceleration_mode = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // In case of DISABLED or PARTIAL bi_engine_mode, these contain the
+ // explanatory reasons as to why BI Engine could not accelerate.
+ // In case the full query was accelerated, this field is not populated.
+ repeated BiEngineReason bi_engine_reasons = 2;
+}
+
+// Reason about why no search index was used in the search query (or
+// sub-query).
+message IndexUnusedReason {
+ // Indicates the high-level reason for the scenario when no search index was
+ // used.
+ enum Code {
+ // Code not specified.
+ CODE_UNSPECIFIED = 0;
+
+ // Indicates the search index configuration has not been created.
+ INDEX_CONFIG_NOT_AVAILABLE = 1;
+
+ // Indicates the search index creation has not been completed.
+ PENDING_INDEX_CREATION = 2;
+
+ // Indicates the base table has been truncated (rows have been removed
+ // from table with TRUNCATE TABLE statement) since the last time the search
+ // index was refreshed.
+ BASE_TABLE_TRUNCATED = 3;
+
+ // Indicates the search index configuration has been changed since the last
+ // time the search index was refreshed.
+ INDEX_CONFIG_MODIFIED = 4;
+
+ // Indicates the search query accesses data at a timestamp before the last
+ // time the search index was refreshed.
+ TIME_TRAVEL_QUERY = 5;
+
+ // Indicates the usage of search index will not contribute to any pruning
+ // improvement for the search function, e.g. when the search predicate is in
+ // a disjunction with other non-search predicates.
+ NO_PRUNING_POWER = 6;
+
+ // Indicates the search index does not cover all fields in the search
+ // function.
+ UNINDEXED_SEARCH_FIELDS = 7;
+
+ // Indicates the search index does not support the given search query
+ // pattern.
+ UNSUPPORTED_SEARCH_PATTERN = 8;
+
+ // Indicates the query has been optimized by using a materialized view.
+ OPTIMIZED_WITH_MATERIALIZED_VIEW = 9;
+
+ // Indicates the query has been secured by data masking, and thus search
+ // indexes are not applicable.
+ SECURED_BY_DATA_MASKING = 11;
+
+ // Indicates that the search index and the search function call do not
+ // have the same text analyzer.
+ MISMATCHED_TEXT_ANALYZER = 12;
+
+ // Indicates the base table is too small (below a certain threshold).
+ // The index does not provide noticeable search performance gains
+ // when the base table is too small.
+ BASE_TABLE_TOO_SMALL = 13;
+
+ // Indicates that the total size of indexed base tables in your organization
+ // exceeds your region's limit and the index is not used in the query. To
+ // index larger base tables, you can
+ // use
+ // your own reservation for index-management jobs.
+ BASE_TABLE_TOO_LARGE = 14;
+
+ // Indicates that the estimated performance gain from using the search index
+ // is too low for the given search query.
+ ESTIMATED_PERFORMANCE_GAIN_TOO_LOW = 15;
+
+ // Indicates that the column metadata index (which the search index depends
+ // on) is not used. User can refer to the [column metadata index
+ // usage](https://cloud.google.com/bigquery/docs/metadata-indexing-managed-tables#view_column_metadata_index_usage)
+ // for more details on why it was not used.
+ COLUMN_METADATA_INDEX_NOT_USED = 21;
+
+ // Indicates that search indexes can not be used for search query with
+ // STANDARD edition.
+ NOT_SUPPORTED_IN_STANDARD_EDITION = 17;
+
+ // Indicates that an option in the search function that cannot make use of
+ // the index has been selected.
+ INDEX_SUPPRESSED_BY_FUNCTION_OPTION = 18;
+
+ // Indicates that the query was cached, and thus the search index was not
+ // used.
+ QUERY_CACHE_HIT = 19;
+
+ // The index cannot be used in the search query because it is stale.
+ STALE_INDEX = 20;
+
+ // Indicates an internal error that causes the search index to be unused.
+ INTERNAL_ERROR = 10;
+
+ // Indicates that the reason search indexes cannot be used in the query is
+ // not covered by any of the other IndexUnusedReason options.
+ OTHER_REASON = 16;
+ }
+
+ // Specifies the high-level reason for the scenario when no search index was
+ // used.
+ optional Code code = 1;
+
+ // Free form human-readable reason for the scenario when no search index was
+ // used.
+ optional string message = 2;
+
+ // Specifies the base table involved in the reason that no search index was
+ // used.
+ optional TableReference base_table = 3;
+
+ // Specifies the name of the unused search index, if available.
+ optional string index_name = 4;
+}
+
+// Statistics for index pruning.
+message IndexPruningStats {
+ // The base table reference.
+ optional TableReference base_table = 1;
+
+ // The index id.
+ optional string index_id = 4;
+
+ // The number of parallel inputs before index pruning.
+ optional int64 pre_index_pruning_parallel_input_count = 2;
+
+ // The number of parallel inputs after index pruning.
+ optional int64 post_index_pruning_parallel_input_count = 3;
+}
+
+// Indicates the stored columns usage in the query.
+message StoredColumnsUsage {
+ // If the stored column was not used, explain why.
+ message StoredColumnsUnusedReason {
+ // Indicates the high-level reason for the scenario when stored columns
+ // cannot be used in the query.
+ enum Code {
+ // Default value.
+ CODE_UNSPECIFIED = 0;
+
+ // If stored columns do not fully cover the columns.
+ STORED_COLUMNS_COVER_INSUFFICIENT = 1;
+
+ // If the base table has RLS (Row Level Security).
+ BASE_TABLE_HAS_RLS = 2;
+
+ // If the base table has CLS (Column Level Security).
+ BASE_TABLE_HAS_CLS = 3;
+
+ // If the provided prefilter is not supported.
+ UNSUPPORTED_PREFILTER = 4;
+
+ // If an internal error is preventing stored columns from being used.
+ INTERNAL_ERROR = 5;
+
+ // Indicates that the reason stored columns cannot be used in the query is
+ // not covered by any of the other StoredColumnsUnusedReason options.
+ OTHER_REASON = 6;
+ }
+
+ // Specifies the high-level reason for the unused scenario, each reason must
+ // have a code associated.
+ optional Code code = 1;
+
+ // Specifies the detailed description for the scenario.
+ optional string message = 2;
+
+ // Specifies which columns were not covered by the stored columns for the
+ // specified code up to 20 columns. This is populated when the code is
+ // STORED_COLUMNS_COVER_INSUFFICIENT and BASE_TABLE_HAS_CLS.
+ repeated string uncovered_columns = 3;
+ }
+
+ // Specifies whether the query was accelerated with stored columns.
+ optional bool is_query_accelerated = 1;
+
+ // Specifies the base table.
+ optional TableReference base_table = 2;
+
+ // If stored columns were not used, explain why.
+ repeated StoredColumnsUnusedReason stored_columns_unused_reasons = 3;
+}
+
+// Statistics for a search query.
+// Populated as part of JobStatistics2.
+message SearchStatistics {
+ // Indicates the type of search index usage in the entire search query.
+ enum IndexUsageMode {
+ // Index usage mode not specified.
+ INDEX_USAGE_MODE_UNSPECIFIED = 0;
+
+ // No search indexes were used in the search query. See
+ // [`indexUnusedReasons`]
+ // (/bigquery/docs/reference/rest/v2/Job#IndexUnusedReason)
+ // for detailed reasons.
+ UNUSED = 1;
+
+ // Part of the search query used search indexes. See [`indexUnusedReasons`]
+ // (/bigquery/docs/reference/rest/v2/Job#IndexUnusedReason)
+ // for why other parts of the query did not use search indexes.
+ PARTIALLY_USED = 2;
+
+ // The entire search query used search indexes.
+ FULLY_USED = 4;
+ }
+
+ // Specifies the index usage mode for the query.
+ IndexUsageMode index_usage_mode = 1;
+
+ // When `indexUsageMode` is `UNUSED` or `PARTIALLY_USED`, this field explains
+ // why indexes were not used in all or part of the search query. If
+ // `indexUsageMode` is `FULLY_USED`, this field is not populated.
+ repeated IndexUnusedReason index_unused_reasons = 2;
+
+ // Search index pruning statistics, one for each base table that has a search
+ // index. If a base table does not have a search index or the index does not
+ // help with pruning on the base table, then there is no pruning statistics
+ // for that table.
+ repeated IndexPruningStats index_pruning_stats = 3;
+}
+
+// Statistics for a vector search query.
+// Populated as part of JobStatistics2.
+message VectorSearchStatistics {
+ // Indicates the type of vector index usage in the entire vector search query.
+ enum IndexUsageMode {
+ // Index usage mode not specified.
+ INDEX_USAGE_MODE_UNSPECIFIED = 0;
+
+ // No vector indexes were used in the vector search query. See
+ // [`indexUnusedReasons`]
+ // (/bigquery/docs/reference/rest/v2/Job#IndexUnusedReason)
+ // for detailed reasons.
+ UNUSED = 1;
+
+ // Part of the vector search query used vector indexes. See
+ // [`indexUnusedReasons`]
+ // (/bigquery/docs/reference/rest/v2/Job#IndexUnusedReason)
+ // for why other parts of the query did not use vector indexes.
+ PARTIALLY_USED = 2;
+
+ // The entire vector search query used vector indexes.
+ FULLY_USED = 4;
+ }
+
+ // Specifies the index usage mode for the query.
+ IndexUsageMode index_usage_mode = 1;
+
+ // When `indexUsageMode` is `UNUSED` or `PARTIALLY_USED`, this field explains
+ // why indexes were not used in all or part of the vector search query. If
+ // `indexUsageMode` is `FULLY_USED`, this field is not populated.
+ repeated IndexUnusedReason index_unused_reasons = 2;
+
+ // Specifies the usage of stored columns in the query when stored columns are
+ // used in the query.
+ repeated StoredColumnsUsage stored_columns_usages = 3;
+}
+
+// Query optimization information for a QUERY job.
+message QueryInfo {
+ // Output only. Information about query optimizations.
+ google.protobuf.Struct optimization_details = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Statistics for a LOAD query.
+message LoadQueryStatistics {
+ // Output only. Number of source files in a LOAD query.
+ google.protobuf.Int64Value input_files = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of bytes of source data in a LOAD query.
+ google.protobuf.Int64Value input_file_bytes = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of rows imported in a LOAD query.
+ // Note that while a LOAD query is in the running state, this value may
+ // change.
+ google.protobuf.Int64Value output_rows = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Size of the loaded data in bytes. Note that while a LOAD query
+ // is in the running state, this value may change.
+ google.protobuf.Int64Value output_bytes = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The number of bad records encountered while processing a LOAD
+ // query. Note that if the job has failed because of more bad records
+ // encountered than the maximum allowed in the load job configuration, then
+ // this number can be less than the total number of bad records present in the
+ // input data.
+ google.protobuf.Int64Value bad_records = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Statistics related to Incremental Query Results. Populated as part of
+// JobStatistics2. This feature is not yet available.
+message IncrementalResultStats {
+ // Reason why incremental query results are/were not written by the query.
+ enum DisabledReason {
+ // Disabled reason not specified.
+ DISABLED_REASON_UNSPECIFIED = 0;
+
+ // Incremental results are/were disabled for reasons not covered by the
+ // other enum values, e.g. runtime issues.
+ OTHER = 1;
+
+ // Query includes an operation that is not supported.
+ UNSUPPORTED_OPERATOR = 2;
+ }
+
+ // Output only. Reason why incremental query results are/were not written by
+ // the query.
+ DisabledReason disabled_reason = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Additional human-readable clarification, if available, for
+ // DisabledReason.
+ string disabled_reason_details = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time at which the result table's contents were completely
+ // replaced. May be absent if no results have been written or the query has
+ // completed.
+ google.protobuf.Timestamp result_set_last_replace_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time at which the result table's contents were modified.
+ // May be absent if no results have been written or the query has completed.
+ google.protobuf.Timestamp result_set_last_modify_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time at which the first incremental result was written. If
+ // the query needed to restart internally, this only describes the final
+ // attempt.
+ google.protobuf.Timestamp first_incremental_row_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time at which the last incremental result was written.
+ // Does not include the final result written after query completion.
+ google.protobuf.Timestamp last_incremental_row_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of rows that were in the latest result set before query
+ // completion.
+ optional int64 incremental_row_count = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Statistics for a query job.
+message JobStatistics2 {
+ // Output only. Describes execution plan for the query.
+ repeated ExplainQueryStage query_plan = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The original estimate of bytes processed for the job.
+ google.protobuf.Int64Value estimated_bytes_processed = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Describes a timeline of job execution.
+ repeated QueryTimelineSample timeline = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Total number of partitions processed from all partitioned
+ // tables referenced in the job.
+ google.protobuf.Int64Value total_partitions_processed = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Total bytes processed for the job.
+ google.protobuf.Int64Value total_bytes_processed = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. For dry-run jobs, totalBytesProcessed is an estimate and this
+ // field specifies the accuracy of the estimate. Possible values can be:
+ // UNKNOWN: accuracy of the estimate is unknown.
+ // PRECISE: estimate is precise.
+ // LOWER_BOUND: estimate is lower bound of what the query would cost.
+ // UPPER_BOUND: estimate is upper bound of what the query would cost.
+ string total_bytes_processed_accuracy = 21
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If the project is configured to use on-demand pricing,
+ // then this field contains the total bytes billed for the job.
+ // If the project is configured to use flat-rate pricing, then you are
+ // not billed for bytes and this field is informational only.
+ google.protobuf.Int64Value total_bytes_billed = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Billing tier for the job. This is a BigQuery-specific concept
+ // which is not related to the Google Cloud notion of "free tier". The value
+ // here is a measure of the query's resource consumption relative to the
+ // amount of data scanned. For on-demand queries, the limit is 100, and all
+ // queries within this limit are billed at the standard on-demand rates.
+ // On-demand queries that exceed this limit will fail with a
+ // billingTierLimitExceeded error.
+ google.protobuf.Int32Value billing_tier = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Slot-milliseconds for the job.
+ google.protobuf.Int64Value total_slot_ms = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Total slot milliseconds for the job that ran on external
+ // services and billed on the services SKU. This field is only populated for
+ // jobs that have external service costs, and is the total of the usage for
+ // costs whose billing method is `"SERVICES_SKU"`.
+ optional int64 total_services_sku_slot_ms = 52
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether the query result was fetched from the query cache.
+ google.protobuf.BoolValue cache_hit = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Referenced tables for the job.
+ repeated TableReference referenced_tables = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Referenced routines for the job.
+ repeated RoutineReference referenced_routines = 24
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Referenced property graphs for the job. Queries that reference
+ // more than 50 property graphs will not have a complete list.
+ repeated PropertyGraphReference referenced_property_graphs = 49
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The schema of the results. Present only for successful dry
+ // run of non-legacy SQL queries.
+ TableSchema schema = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The number of rows affected by a DML statement. Present
+ // only for DML statements INSERT, UPDATE or DELETE.
+ google.protobuf.Int64Value num_dml_affected_rows = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE,
+ // MERGE or TRUNCATE.
+ DmlStats dml_stats = 32 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. GoogleSQL only: list of undeclared query
+ // parameters detected during a dry run validation.
+ repeated QueryParameter undeclared_query_parameters = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The type of query statement, if valid.
+ // Possible values:
+ //
+ // * `SELECT`:
+ // [`SELECT`](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#select_list)
+ // statement.
+ // * `ASSERT`:
+ // [`ASSERT`](https://cloud.google.com/bigquery/docs/reference/standard-sql/debugging-statements#assert)
+ // statement.
+ // * `INSERT`:
+ // [`INSERT`](https://cloud.google.com/bigquery/docs/reference/standard-sql/dml-syntax#insert_statement)
+ // statement.
+ // * `UPDATE`:
+ // [`UPDATE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/dml-syntax#update_statement)
+ // statement.
+ // * `DELETE`:
+ // [`DELETE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language)
+ // statement.
+ // * `MERGE`:
+ // [`MERGE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language)
+ // statement.
+ // * `CREATE_TABLE`: [`CREATE
+ // TABLE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_table_statement)
+ // statement, without `AS SELECT`.
+ // * `CREATE_TABLE_AS_SELECT`: [`CREATE TABLE AS
+ // SELECT`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_table_statement)
+ // statement.
+ // * `CREATE_VIEW`: [`CREATE
+ // VIEW`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_view_statement)
+ // statement.
+ // * `CREATE_MODEL`: [`CREATE
+ // MODEL`](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-create#create_model_statement)
+ // statement.
+ // * `CREATE_MATERIALIZED_VIEW`: [`CREATE MATERIALIZED
+ // VIEW`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_materialized_view_statement)
+ // statement.
+ // * `CREATE_FUNCTION`: [`CREATE
+ // FUNCTION`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_function_statement)
+ // statement.
+ // * `CREATE_TABLE_FUNCTION`: [`CREATE TABLE
+ // FUNCTION`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_table_function_statement)
+ // statement.
+ // * `CREATE_PROCEDURE`: [`CREATE
+ // PROCEDURE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_procedure)
+ // statement.
+ // * `CREATE_ROW_ACCESS_POLICY`: [`CREATE ROW ACCESS
+ // POLICY`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_row_access_policy_statement)
+ // statement.
+ // * `CREATE_SCHEMA`: [`CREATE
+ // SCHEMA`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_schema_statement)
+ // statement.
+ // * `CREATE_SNAPSHOT_TABLE`: [`CREATE SNAPSHOT
+ // TABLE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_snapshot_table_statement)
+ // statement.
+ // * `CREATE_SEARCH_INDEX`: [`CREATE SEARCH
+ // INDEX`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_search_index_statement)
+ // statement.
+ // * `DROP_TABLE`: [`DROP
+ // TABLE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_statement)
+ // statement.
+ // * `DROP_EXTERNAL_TABLE`: [`DROP EXTERNAL
+ // TABLE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_external_table_statement)
+ // statement.
+ // * `DROP_VIEW`: [`DROP
+ // VIEW`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_view_statement)
+ // statement.
+ // * `DROP_MODEL`: [`DROP
+ // MODEL`](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-drop-model)
+ // statement.
+ // * `DROP_MATERIALIZED_VIEW`: [`DROP MATERIALIZED
+ // VIEW`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_materialized_view_statement)
+ // statement.
+ // * `DROP_FUNCTION` : [`DROP
+ // FUNCTION`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_function_statement)
+ // statement.
+ // * `DROP_TABLE_FUNCTION` : [`DROP TABLE
+ // FUNCTION`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_function)
+ // statement.
+ // * `DROP_PROCEDURE`: [`DROP
+ // PROCEDURE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_procedure_statement)
+ // statement.
+ // * `DROP_SEARCH_INDEX`: [`DROP SEARCH
+ // INDEX`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_search_index)
+ // statement.
+ // * `DROP_SCHEMA`: [`DROP
+ // SCHEMA`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_schema_statement)
+ // statement.
+ // * `DROP_SNAPSHOT_TABLE`: [`DROP SNAPSHOT
+ // TABLE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_snapshot_table_statement)
+ // statement.
+ // * `DROP_ROW_ACCESS_POLICY`: [`DROP [ALL] ROW ACCESS
+ // POLICY|POLICIES`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#drop_row_access_policy_statement)
+ // statement.
+ // * `ALTER_TABLE`: [`ALTER
+ // TABLE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#alter_table_set_options_statement)
+ // statement.
+ // * `ALTER_VIEW`: [`ALTER
+ // VIEW`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#alter_view_set_options_statement)
+ // statement.
+ // * `ALTER_MATERIALIZED_VIEW`: [`ALTER MATERIALIZED
+ // VIEW`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#alter_materialized_view_set_options_statement)
+ // statement.
+ // * `ALTER_SCHEMA`: [`ALTER
+ // SCHEMA`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#alter_schema_set_options_statement)
+ // statement.
+ // * `SCRIPT`:
+ // [`SCRIPT`](https://cloud.google.com/bigquery/docs/reference/standard-sql/procedural-language).
+ // * `TRUNCATE_TABLE`: [`TRUNCATE
+ // TABLE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/dml-syntax#truncate_table_statement)
+ // statement.
+ // * `CREATE_EXTERNAL_TABLE`: [`CREATE EXTERNAL
+ // TABLE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_external_table_statement)
+ // statement.
+ // * `EXPORT_DATA`: [`EXPORT
+ // DATA`](https://cloud.google.com/bigquery/docs/reference/standard-sql/other-statements#export_data_statement)
+ // statement.
+ // * `EXPORT_MODEL`: [`EXPORT
+ // MODEL`](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-export-model)
+ // statement.
+ // * `LOAD_DATA`: [`LOAD
+ // DATA`](https://cloud.google.com/bigquery/docs/reference/standard-sql/other-statements#load_data_statement)
+ // statement.
+ // * `CALL`:
+ // [`CALL`](https://cloud.google.com/bigquery/docs/reference/standard-sql/procedural-language#call)
+ // statement.
+ string statement_type = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The DDL operation performed, possibly
+ // dependent on the pre-existence of the DDL target.
+ string ddl_operation_performed = 15
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The DDL target table. Present only for
+ // CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries.
+ TableReference ddl_target_table = 16
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The table after rename. Present only for ALTER TABLE RENAME TO
+ // query.
+ TableReference ddl_destination_table = 31
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The DDL target row access policy. Present only for
+ // CREATE/DROP ROW ACCESS POLICY queries.
+ RowAccessPolicyReference ddl_target_row_access_policy = 26
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The number of row access policies affected by a DDL statement.
+ // Present only for DROP ALL ROW ACCESS POLICIES queries.
+ google.protobuf.Int64Value ddl_affected_row_access_policy_count = 27
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. [Beta] The DDL target routine. Present only for
+ // CREATE/DROP FUNCTION/PROCEDURE queries.
+ RoutineReference ddl_target_routine = 22
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP
+ // SCHEMA(dataset) queries.
+ DatasetReference ddl_target_dataset = 30
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics of a BigQuery ML training job.
+ MlStatistics ml_statistics = 23 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Stats for EXPORT DATA statement.
+ ExportDataStatistics export_data_statistics = 25
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Job cost breakdown as bigquery internal cost and external
+ // service costs.
+ repeated ExternalServiceCost external_service_costs = 28
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. BI Engine specific Statistics.
+ BiEngineStatistics bi_engine_statistics = 29
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics for a LOAD query.
+ LoadQueryStatistics load_query_statistics = 33
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Referenced table for DCL statement.
+ TableReference dcl_target_table = 34
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Referenced view for DCL statement.
+ TableReference dcl_target_view = 35
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Referenced dataset for DCL statement.
+ DatasetReference dcl_target_dataset = 36
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Search query specific statistics.
+ SearchStatistics search_statistics = 37
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Vector Search query specific statistics.
+ VectorSearchStatistics vector_search_statistics = 44
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Performance insights.
+ PerformanceInsights performance_insights = 38
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Query optimization information for a QUERY job.
+ QueryInfo query_info = 39 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics of a Spark procedure job.
+ SparkStatistics spark_statistics = 40
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Total bytes transferred for cross-cloud queries such as Cross
+ // Cloud Transfer and CREATE TABLE AS SELECT (CTAS).
+ google.protobuf.Int64Value transferred_bytes = 41
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics of materialized views of a query job.
+ MaterializedViewStatistics materialized_view_statistics = 42
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics of metadata cache usage in a query for BigLake
+ // tables.
+ MetadataCacheStatistics metadata_cache_statistics = 43
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics related to incremental query results, if enabled
+ // for the query. This feature is not yet available.
+ IncrementalResultStats incremental_result_stats = 53
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics related to GenAI usage in the query.
+ GenAiStats gen_ai_stats = 54 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Statistics for a load job.
+message JobStatistics3 {
+ // Output only. Number of source files in a load job.
+ google.protobuf.Int64Value input_files = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of bytes of source data in a load job.
+ google.protobuf.Int64Value input_file_bytes = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of rows imported in a load job.
+ // Note that while an import job is in the running state, this
+ // value may change.
+ google.protobuf.Int64Value output_rows = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Size of the loaded data in bytes. Note
+ // that while a load job is in the running state, this value may change.
+ google.protobuf.Int64Value output_bytes = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The number of bad records encountered. Note that if the job
+ // has failed because of more bad records encountered than the maximum
+ // allowed in the load job configuration, then this number can be less than
+ // the total number of bad records present in the input data.
+ google.protobuf.Int64Value bad_records = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Describes a timeline of job execution.
+ repeated QueryTimelineSample timeline = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Statistics for an extract job.
+message JobStatistics4 {
+ // Output only. Number of files per destination URI or URI pattern
+ // specified in the extract configuration. These values will be in the same
+ // order as the URIs specified in the 'destinationUris' field.
+ repeated int64 destination_uri_file_counts = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of user bytes extracted into the result. This is the
+ // byte count as computed by BigQuery for billing purposes
+ // and doesn't have any relationship with the number of actual
+ // result bytes extracted in the desired format.
+ google.protobuf.Int64Value input_bytes = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Describes a timeline of job execution.
+ repeated QueryTimelineSample timeline = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Statistics for a copy job.
+message CopyJobStatistics {
+ // Output only. Number of rows copied to the destination table.
+ google.protobuf.Int64Value copied_rows = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of logical bytes copied to the destination table.
+ google.protobuf.Int64Value copied_logical_bytes = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Job statistics specific to a BigQuery ML training job.
+message MlStatistics {
+ // Training type.
+ enum TrainingType {
+ // Unspecified training type.
+ TRAINING_TYPE_UNSPECIFIED = 0;
+
+ // Single training with fixed parameter space.
+ SINGLE_TRAINING = 1;
+
+ // [Hyperparameter tuning
+ // training](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview).
+ HPARAM_TUNING = 2;
+ }
+
+ // Output only. Maximum number of iterations specified as max_iterations in
+ // the 'CREATE MODEL' query. The actual number of iterations may be less than
+ // this number due to early stop.
+ int64 max_iterations = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Results for all completed iterations.
+ // Empty for [hyperparameter tuning
+ // jobs](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview).
+ repeated Model.TrainingRun.IterationResult iteration_results = 2;
+
+ // Output only. The type of the model that is being trained.
+ Model.ModelType model_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Training type of the job.
+ TrainingType training_type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Trials of a [hyperparameter tuning
+ // job](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview)
+ // sorted by trial_id.
+ repeated Model.HparamTuningTrial hparam_trials = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Job statistics specific to the child job of a script.
+message ScriptStatistics {
+ // Describes how the job is evaluated.
+ enum EvaluationKind {
+ // Default value.
+ EVALUATION_KIND_UNSPECIFIED = 0;
+
+ // The statement appears directly in the script.
+ STATEMENT = 1;
+
+ // The statement evaluates an expression that appears in the script.
+ EXPRESSION = 2;
+ }
+
+ // Represents the location of the statement/expression being evaluated.
+ // Line and column numbers are defined as follows:
+ //
+ // - Line and column numbers start with one. That is, line 1 column 1 denotes
+ // the start of the script.
+ // - When inside a stored procedure, all line/column numbers are relative
+ // to the procedure body, not the script in which the procedure was defined.
+ // - Start/end positions exclude leading/trailing comments and whitespace.
+ // The end position always ends with a ";", when present.
+ // - Multi-byte Unicode characters are treated as just one column.
+ // - If the original script (or procedure definition) contains TAB characters,
+ // a tab "snaps" the indentation forward to the nearest multiple of 8
+ // characters, plus 1. For example, a TAB on column 1, 2, 3, 4, 5, 6 , or 8
+ // will advance the next character to column 9. A TAB on column 9, 10, 11,
+ // 12, 13, 14, 15, or 16 will advance the next character to column 17.
+ message ScriptStackFrame {
+ // Output only. One-based start line.
+ int32 start_line = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. One-based start column.
+ int32 start_column = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. One-based end line.
+ int32 end_line = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. One-based end column.
+ int32 end_column = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the active procedure, empty if in a top-level
+ // script.
+ string procedure_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Text of the current statement/expression.
+ string text = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Whether this child job was a statement or expression.
+ EvaluationKind evaluation_kind = 1;
+
+ // Stack trace showing the line/column/procedure name of each frame on the
+ // stack at the point where the current evaluation happened. The leaf frame
+ // is first, the primary script is last. Never empty.
+ repeated ScriptStackFrame stack_frames = 2;
+}
+
+// Statistics for row-level security.
+message RowLevelSecurityStatistics {
+ // Whether any accessed data was protected by row access policies.
+ bool row_level_security_applied = 1;
+}
+
+// Statistics for data-masking.
+message DataMaskingStatistics {
+ // Whether any accessed data was protected by the data masking.
+ bool data_masking_applied = 1;
+}
+
+// Statistics for a single job execution.
+message JobStatistics {
+ // [Alpha] Information of a multi-statement transaction.
+ message TransactionInfo {
+ // Output only. [Alpha] Id of the transaction.
+ string transaction_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. Creation time of this job, in milliseconds since the epoch.
+ // This field will be present on all jobs.
+ int64 creation_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Start time of this job, in milliseconds since the epoch.
+ // This field will be present when the job transitions from the PENDING state
+ // to either RUNNING or DONE.
+ int64 start_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. End time of this job, in milliseconds since the epoch. This
+ // field will be present whenever a job is in the DONE state.
+ int64 end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Total bytes processed for the job.
+ google.protobuf.Int64Value total_bytes_processed = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. [TrustedTester] Job progress (0.0 -> 1.0) for LOAD and
+ // EXTRACT jobs.
+ google.protobuf.DoubleValue completion_ratio = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Quotas which delayed this job's start time.
+ repeated string quota_deferments = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics for a query job.
+ JobStatistics2 query = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics for a load job.
+ JobStatistics3 load = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics for an extract job.
+ JobStatistics4 extract = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics for a copy job.
+ CopyJobStatistics copy = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Slot-milliseconds for the job.
+ google.protobuf.Int64Value total_slot_ms = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the primary reservation assigned to this job. Note
+ // that this could be different than reservations reported in the reservation
+ // usage field if parent reservations were used to execute this job.
+ string reservation_id = 15
+ [json_name = "reservation_id", (google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of child jobs executed.
+ int64 num_child_jobs = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If this is a child job, specifies the job ID of the parent.
+ string parent_job_id = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If this a child job of a script, specifies information about
+ // the context of this job within the script.
+ ScriptStatistics script_statistics = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics for row-level security. Present only for query and
+ // extract jobs.
+ RowLevelSecurityStatistics row_level_security_statistics = 16
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Statistics for data-masking. Present only for query and
+ // extract jobs.
+ DataMaskingStatistics data_masking_statistics = 20
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. [Alpha] Information of the multi-statement transaction if this
+ // job is part of one.
+ //
+ // This property is only expected on a child job or a job that is in a
+ // session. A script parent job is not part of the transaction started in the
+ // script.
+ TransactionInfo transaction_info = 17
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Information of the session if this job is part of one.
+ SessionInfo session_info = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The duration in milliseconds of the execution of the final
+ // attempt of this job, as BigQuery may internally re-attempt to execute the
+ // job.
+ int64 final_execution_duration_ms = 22
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of edition corresponding to the reservation for this job
+ // at the time of this update.
+ ReservationEdition edition = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The reservation group path of the reservation assigned to this
+ // job. This field has a limit of 10 nested reservation groups. This is to
+ // maintain consistency between reservatins info schema and jobs info schema.
+ // The first reservation group is the root reservation group and the last is
+ // the leaf or lowest level reservation group.
+ repeated string reservation_group_path = 26
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Detailed statistics for DML statements
+message DmlStats {
+ // Enum to specify the DML mode used.
+ enum DmlMode {
+ // Default value. This value is unused.
+ DML_MODE_UNSPECIFIED = 0;
+
+ // Coarse-grained DML was used.
+ COARSE_GRAINED_DML = 1;
+
+ // Fine-grained DML was used.
+ FINE_GRAINED_DML = 2;
+ }
+
+ // Reason for disabling fine-grained DML. Additional values may be added in
+ // the future.
+ enum FineGrainedDmlUnusedReason {
+ // Default value. This value is unused.
+ FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIED = 0;
+
+ // Max partition size threshold exceeded. [Fine-grained DML Limitations]
+ // (https://docs.cloud.google.com/bigquery/docs/data-manipulation-language#fine-grained-dml-limitations)
+ MAX_PARTITION_SIZE_EXCEEDED = 1;
+
+ // The table is not enrolled for fine-grained DML.
+ TABLE_NOT_ENROLLED = 2;
+
+ // The DML statement is part of a multi-statement transaction.
+ DML_IN_MULTI_STATEMENT_TRANSACTION = 3;
+ }
+
+ // Output only. Number of inserted Rows. Populated by DML INSERT and MERGE
+ // statements
+ google.protobuf.Int64Value inserted_row_count = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of deleted Rows. populated by DML DELETE, MERGE and
+ // TRUNCATE statements.
+ google.protobuf.Int64Value deleted_row_count = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of updated Rows. Populated by DML UPDATE and MERGE
+ // statements.
+ google.protobuf.Int64Value updated_row_count = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. DML mode used.
+ DmlMode dml_mode = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Reason for disabling fine-grained DML if applicable.
+ FineGrainedDmlUnusedReason fine_grained_dml_unused_reason = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Performance insights for the job.
+message PerformanceInsights {
+ // Output only. Average execution ms of previous runs. Indicates the job ran
+ // slow compared to previous executions. To find previous executions, use
+ // INFORMATION_SCHEMA tables and filter jobs with same query hash.
+ int64 avg_previous_execution_ms = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Standalone query stage performance insights, for exploring
+ // potential improvements.
+ repeated StagePerformanceStandaloneInsight
+ stage_performance_standalone_insights = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Query stage performance insights compared to previous runs,
+ // for diagnosing performance regression.
+ repeated StagePerformanceChangeInsight stage_performance_change_insights = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Performance insights for table-level attributes that changed
+ // compared to previous runs.
+ repeated TableChangeInsight table_change_insights = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Performance insights compared to the previous executions for a specific
+// stage.
+message StagePerformanceChangeInsight {
+ // Output only. The stage id that the insight mapped to.
+ int64 stage_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Input data change insight of the query stage.
+ optional InputDataChange input_data_change = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Details about the input data change insight.
+message InputDataChange {
+ // Output only. Records read difference percentage compared to a previous run.
+ float records_read_diff_percentage = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Standalone performance insights for a specific stage.
+message StagePerformanceStandaloneInsight {
+ // Output only. The stage id that the insight mapped to.
+ int64 stage_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. True if the stage has a slot contention issue.
+ optional bool slot_contention = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. True if the stage has insufficient shuffle quota.
+ optional bool insufficient_shuffle_quota = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If present, the stage had the following reasons for being
+ // disqualified from BI Engine execution.
+ repeated BiEngineReason bi_engine_reasons = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. High cardinality joins in the stage.
+ repeated HighCardinalityJoin high_cardinality_joins = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Partition skew in the stage.
+ optional PartitionSkew partition_skew = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// High cardinality join detailed information.
+message HighCardinalityJoin {
+ // Output only. Count of left input rows.
+ int64 left_rows = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Count of right input rows.
+ int64 right_rows = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Count of the output rows.
+ int64 output_rows = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The index of the join operator in the ExplainQueryStep lists.
+ int32 step_index = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Partition skew detailed information.
+message PartitionSkew {
+ // Details about source stages which produce skewed data.
+ message SkewSource {
+ // Output only. Stage id of the skew source stage.
+ int64 stage_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. Source stages which produce skewed data.
+ repeated SkewSource skew_sources = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Table-level performance insights compared to previous runs. These insights
+// don't apply to specific query stages, rather they apply to the whole table.
+message TableChangeInsight {
+ // Output only. The table that was queried.
+ TableReference table_reference = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If present, indicates that the table's metadata column index
+ // staleness has increased significantly compared to previous jobs with the
+ // same query hash.
+ optional MetadataCacheStalenessInsight metadata_cache_staleness_insight = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. True if the table's column metadata index was not used in the
+ // current job, but was used in a previous job with the same query hash.
+ optional bool metadata_cache_not_used_but_used_previously = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Column Metadata Index staleness detailed infnormation.
+message MetadataCacheStalenessInsight {
+ // Output only. Average column metadata index staleness of previous runs with
+ // the same query hash.
+ google.protobuf.Duration avg_previous_staleness_ms = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The percent increase in staleness between the current job and
+ // the average staleness of previous jobs with the same query hash.
+ double staleness_percentage_increase = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Statistics for a BigSpark query.
+// Populated as part of JobStatistics2
+message SparkStatistics {
+ // Spark job logs can be filtered by these fields in Cloud Logging.
+ message LoggingInfo {
+ // Output only. Resource type used for logging.
+ string resource_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Project ID where the Spark logs were written.
+ string project_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. Spark job ID if a Spark job is created successfully.
+ optional string spark_job_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Location where the Spark job is executed.
+ // A location is selected by BigQueury for jobs configured to run in a
+ // multi-region.
+ optional string spark_job_location = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Endpoints returned from Dataproc.
+ // Key list:
+ // - history_server_endpoint: A link to Spark job UI.
+ map endpoints = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Logging info is used to generate a link to Cloud Logging.
+ optional LoggingInfo logging_info = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The Cloud KMS encryption key that is used to protect the
+ // resources created by the Spark job. If the Spark procedure uses the invoker
+ // security mode, the Cloud KMS encryption key is either inferred from the
+ // provided system variable,
+ // `@@spark_proc_properties.kms_key_name`, or the default key of the BigQuery
+ // job's project (if the CMEK organization policy is enforced). Otherwise, the
+ // Cloud KMS key is either inferred from the Spark connection associated with
+ // the procedure (if it is provided), or from the default key of the Spark
+ // connection's project if the CMEK organization policy is enforced.
+ //
+ // Example:
+ //
+ // * `projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]`
+ optional string kms_key_name = 5 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+
+ // Output only. The Google Cloud Storage bucket that is used as the default
+ // file system by the Spark application. This field is only filled when the
+ // Spark procedure uses the invoker security mode. The `gcsStagingBucket`
+ // bucket is inferred from the `@@spark_proc_properties.staging_bucket` system
+ // variable (if it is provided). Otherwise, BigQuery creates a default staging
+ // bucket for the job and returns the bucket name in this field.
+ //
+ // Example:
+ //
+ // * `gs://[bucket_name]`
+ optional string gcs_staging_bucket = 6 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+}
+
+// Statistics of materialized views considered in a query job.
+message MaterializedViewStatistics {
+ // Materialized views considered for the query job. Only certain materialized
+ // views are used. For a detailed list, see the child message.
+ //
+ // If many materialized views are considered, then the list might be
+ // incomplete.
+ repeated MaterializedView materialized_view = 1;
+}
+
+// A materialized view considered for a query job.
+message MaterializedView {
+ // Reason why a materialized view was not chosen for a query. For more
+ // information, see [Understand why materialized views were
+ // rejected](https://cloud.google.com/bigquery/docs/materialized-views-use#understand-rejected).
+ enum RejectedReason {
+ // Default unspecified value.
+ REJECTED_REASON_UNSPECIFIED = 0;
+
+ // View has no cached data because it has not refreshed yet.
+ NO_DATA = 1;
+
+ // The estimated cost of the view is more expensive than another view or the
+ // base table.
+ //
+ // Note: The estimate cost might not match the billed cost.
+ COST = 2;
+
+ // View has no cached data because a base table is truncated.
+ BASE_TABLE_TRUNCATED = 3;
+
+ // View is invalidated because of a data change in one or more base tables.
+ // It could be any recent change if the
+ // [`maxStaleness`](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#Table.FIELDS.max_staleness)
+ // option is not set for the view, or otherwise any change outside of the
+ // staleness window.
+ BASE_TABLE_DATA_CHANGE = 4;
+
+ // View is invalidated because a base table's partition expiration has
+ // changed.
+ BASE_TABLE_PARTITION_EXPIRATION_CHANGE = 5;
+
+ // View is invalidated because a base table's partition has expired.
+ BASE_TABLE_EXPIRED_PARTITION = 6;
+
+ // View is invalidated because a base table has an incompatible metadata
+ // change.
+ BASE_TABLE_INCOMPATIBLE_METADATA_CHANGE = 7;
+
+ // View is invalidated because it was refreshed with a time zone other than
+ // that of the current job.
+ TIME_ZONE = 8;
+
+ // View is outside the time travel window.
+ OUT_OF_TIME_TRAVEL_WINDOW = 9;
+
+ // View is inaccessible to the user because of a fine-grained security
+ // policy on one of its base tables.
+ BASE_TABLE_FINE_GRAINED_SECURITY_POLICY = 10;
+
+ // One of the view's base tables is too stale. For example, the cached
+ // metadata of a BigLake external table needs to be updated.
+ BASE_TABLE_TOO_STALE = 11;
+ }
+
+ // The candidate materialized view.
+ optional TableReference table_reference = 1;
+
+ // Whether the materialized view is chosen for the query.
+ //
+ // A materialized view can be chosen to rewrite multiple parts of the same
+ // query. If a materialized view is chosen to rewrite any part of the query,
+ // then this field is true, even if the materialized view was not chosen to
+ // rewrite others parts.
+ optional bool chosen = 2;
+
+ // If present, specifies a best-effort estimation of the bytes saved by using
+ // the materialized view rather than its base tables.
+ optional int64 estimated_bytes_saved = 3;
+
+ // If present, specifies the reason why the materialized view was not chosen
+ // for the query.
+ optional RejectedReason rejected_reason = 4;
+}
+
+// The column metadata index pruning statistics.
+message PruningStats {
+ // The number of partitions matched.
+ optional int64 post_cmeta_pruning_partition_count = 1;
+
+ // The number of parallel inputs scanned.
+ optional int64 pre_cmeta_pruning_parallel_input_count = 2;
+
+ // The number of parallel inputs matched.
+ optional int64 post_cmeta_pruning_parallel_input_count = 3;
+}
+
+// Table level detail on the usage of metadata caching. Only set for Metadata
+// caching eligible tables referenced in the query.
+message TableMetadataCacheUsage {
+ // Reasons for not using metadata caching.
+ enum UnusedReason {
+ // Unused reasons not specified.
+ UNUSED_REASON_UNSPECIFIED = 0;
+
+ // Metadata cache was outside the table's maxStaleness.
+ EXCEEDED_MAX_STALENESS = 1;
+
+ // Metadata caching feature is not enabled. [Update BigLake tables]
+ // (/bigquery/docs/create-cloud-storage-table-biglake#update-biglake-tables)
+ // to enable the metadata caching.
+ METADATA_CACHING_NOT_ENABLED = 3;
+
+ // Other unknown reason.
+ OTHER_REASON = 2;
+ }
+
+ // Metadata caching eligible table referenced in the query.
+ optional TableReference table_reference = 1;
+
+ // Reason for not using metadata caching for the table.
+ optional UnusedReason unused_reason = 2;
+
+ // Free form human-readable reason metadata caching was unused for
+ // the job.
+ optional string explanation = 3;
+
+ // Duration since last refresh as of this job for managed tables (indicates
+ // metadata cache staleness as seen by this job).
+ google.protobuf.Duration staleness = 5;
+
+ // [Table
+ // type](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#Table.FIELDS.type).
+ string table_type = 6;
+
+ // The column metadata index pruning statistics.
+ optional PruningStats pruning_stats = 7;
+}
+
+// Statistics for metadata caching in queried tables.
+message MetadataCacheStatistics {
+ // Set for the Metadata caching eligible tables referenced in the query.
+ repeated TableMetadataCacheUsage table_metadata_cache_usage = 1;
+}
+
+// The type of editions.
+// Different features and behaviors are provided to different editions
+// Capacity commitments and reservations are linked to editions.
+enum ReservationEdition {
+ // Default value, which will be treated as ENTERPRISE.
+ RESERVATION_EDITION_UNSPECIFIED = 0;
+
+ // Standard edition.
+ STANDARD = 1;
+
+ // Enterprise edition.
+ ENTERPRISE = 2;
+
+ // Enterprise Plus edition.
+ ENTERPRISE_PLUS = 3;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_status.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_status.proto
new file mode 100644
index 000000000000..d83a3735c03c
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/job_status.proto
@@ -0,0 +1,40 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/bigquery/v2/error.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "JobStatusProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+message JobStatus {
+ // Output only. Final error result of the job. If present, indicates that the
+ // job has completed and was unsuccessful.
+ ErrorProto error_result = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The first errors encountered during the running of the job.
+ // The final message includes the number of errors that caused the process to
+ // stop. Errors here do not necessarily mean that the job has not completed or
+ // was unsuccessful.
+ repeated ErrorProto errors = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Running state of the job. Valid states include 'PENDING',
+ // 'RUNNING', and 'DONE'.
+ string state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/json_extension.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/json_extension.proto
new file mode 100644
index 000000000000..d3857cc557fe
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/json_extension.proto
@@ -0,0 +1,34 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "JsonExtensionProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Used to indicate that a JSON variant, rather than normal JSON, is being used
+// as the source_format. This should only be used in combination with the
+// JSON source format.
+enum JsonExtension {
+ // The default if provided value is not one included in the enum, or the value
+ // is not specified. The source format is parsed without any modification.
+ JSON_EXTENSION_UNSPECIFIED = 0;
+
+ // Use GeoJSON variant of JSON. See https://tools.ietf.org/html/rfc7946.
+ GEOJSON = 1;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/location_metadata.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/location_metadata.proto
new file mode 100644
index 000000000000..55fcf2ebbae7
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/location_metadata.proto
@@ -0,0 +1,30 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "LocationMetadataProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// BigQuery-specific metadata about a location. This will be set on
+// google.cloud.location.Location.metadata in Cloud Location API
+// responses.
+message LocationMetadata {
+ // The legacy BigQuery location ID, e.g. “EU” for the “europe” location.
+ // This is for any API consumers that need the legacy “US” and “EU” locations.
+ string legacy_location_id = 1;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/managed_table_type.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/managed_table_type.proto
new file mode 100644
index 000000000000..16aa4483fd38
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/managed_table_type.proto
@@ -0,0 +1,34 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "ManagedTableTypeProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// The classification of managed table types that can be created.
+enum ManagedTableType {
+ // No managed table type specified.
+ MANAGED_TABLE_TYPE_UNSPECIFIED = 0;
+
+ // The managed table is a native BigQuery table.
+ NATIVE = 1;
+
+ // The managed table is a BigLake table for Apache Iceberg in BigQuery.
+ BIGLAKE = 2;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/map_target_type.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/map_target_type.proto
new file mode 100644
index 000000000000..3e63fd643865
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/map_target_type.proto
@@ -0,0 +1,33 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "MapTargetTypeProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Indicates the map target type. Only applies to parquet maps.
+enum MapTargetType {
+ // In this mode, the map will have the following schema:
+ // struct map_field_name { repeated struct key_value { key value } }.
+ MAP_TARGET_TYPE_UNSPECIFIED = 0;
+
+ // In this mode, the map will have the following schema:
+ // repeated struct map_field_name { key value }.
+ ARRAY_OF_STRUCT = 1;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/model.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/model.proto
new file mode 100644
index 000000000000..fd7519457835
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/model.proto
@@ -0,0 +1,2128 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/cloud/bigquery/v2/encryption_config.proto";
+import "google/cloud/bigquery/v2/model_reference.proto";
+import "google/cloud/bigquery/v2/standard_sql.proto";
+import "google/cloud/bigquery/v2/table_reference.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "ModelProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Model Service for BigQuery ML
+service ModelService {
+ option (google.api.default_host) = "bigquery.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ // Gets the specified model resource by model ID.
+ rpc GetModel(GetModelRequest) returns (Model) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/models/{model_id=*}"
+ };
+ option (google.api.method_signature) = "project_id,dataset_id,model_id";
+ }
+
+ // Lists all models in the specified dataset. Requires the READER dataset
+ // role. After retrieving the list of models, you can get information about a
+ // particular model by calling the models.get method.
+ rpc ListModels(ListModelsRequest) returns (ListModelsResponse) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/models"
+ };
+ option (google.api.method_signature) = "project_id,dataset_id,max_results";
+ }
+
+ // Patch specific fields in the specified model.
+ rpc PatchModel(PatchModelRequest) returns (Model) {
+ option (google.api.http) = {
+ patch: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/models/{model_id=*}"
+ body: "model"
+ };
+ option (google.api.method_signature) =
+ "project_id,dataset_id,model_id,model";
+ }
+
+ // Deletes the model specified by modelId from the dataset.
+ rpc DeleteModel(DeleteModelRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/models/{model_id=*}"
+ };
+ option (google.api.method_signature) = "project_id,dataset_id,model_id";
+ }
+}
+
+// Remote Model Info
+message RemoteModelInfo {
+ // Supported service type for remote model.
+ enum RemoteServiceType {
+ // Unspecified remote service type.
+ REMOTE_SERVICE_TYPE_UNSPECIFIED = 0;
+
+ // V3 Cloud AI Translation API. See more details at [Cloud Translation API]
+ // (https://cloud.google.com/translate/docs/reference/rest).
+ CLOUD_AI_TRANSLATE_V3 = 1;
+
+ // V1 Cloud AI Vision API See more details at [Cloud Vision API]
+ // (https://cloud.google.com/vision/docs/reference/rest).
+ CLOUD_AI_VISION_V1 = 2;
+
+ // V1 Cloud AI Natural Language API. See more details at [REST Resource:
+ // documents](https://cloud.google.com/natural-language/docs/reference/rest/v1/documents).
+ CLOUD_AI_NATURAL_LANGUAGE_V1 = 3;
+
+ // V2 Speech-to-Text API. See more details at [Google Cloud Speech-to-Text
+ // V2 API](https://cloud.google.com/speech-to-text/v2/docs)
+ CLOUD_AI_SPEECH_TO_TEXT_V2 = 7;
+ }
+
+ // Remote services are services outside of BigQuery used by remote models for
+ // predictions. A remote service is backed by either an arbitrary endpoint or
+ // a selected remote service type, but not both.
+ oneof remote_service {
+ // Output only. The endpoint for remote model.
+ string endpoint = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The remote service type for remote model.
+ RemoteServiceType remote_service_type = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. Fully qualified name of the user-provided connection object of
+ // the remote model. Format:
+ // ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"```
+ string connection = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Max number of rows in each batch sent to the remote service.
+ // If unset, the number of rows in each batch is set dynamically.
+ int64 max_batching_rows = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The model version for LLM.
+ string remote_model_version = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The name of the speech recognizer to use for speech
+ // recognition. The expected format is
+ // `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+ // Customers can specify this field at model creation. If not specified, a
+ // default recognizer `projects/{model
+ // project}/locations/global/recognizers/_` will be used. See more details at
+ // [recognizers](https://cloud.google.com/speech-to-text/v2/docs/reference/rest/v2/projects.locations.recognizers)
+ string speech_recognizer = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Information about a single transform column.
+message TransformColumn {
+ // Output only. Name of the column.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Data type of the column after the transform.
+ StandardSqlDataType type = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The SQL expression used in the column transform.
+ string transform_sql = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+message Model {
+ // Indicates the type of the Model.
+ enum ModelType {
+ // Default value.
+ MODEL_TYPE_UNSPECIFIED = 0;
+
+ // Linear regression model.
+ LINEAR_REGRESSION = 1;
+
+ // Logistic regression based classification model.
+ LOGISTIC_REGRESSION = 2;
+
+ // K-means clustering model.
+ KMEANS = 3;
+
+ // Matrix factorization model.
+ MATRIX_FACTORIZATION = 4;
+
+ // DNN classifier model.
+ DNN_CLASSIFIER = 5;
+
+ // An imported TensorFlow model.
+ TENSORFLOW = 6;
+
+ // DNN regressor model.
+ DNN_REGRESSOR = 7;
+
+ // An imported XGBoost model.
+ XGBOOST = 8;
+
+ // Boosted tree regressor model.
+ BOOSTED_TREE_REGRESSOR = 9;
+
+ // Boosted tree classifier model.
+ BOOSTED_TREE_CLASSIFIER = 10;
+
+ // ARIMA model.
+ ARIMA = 11;
+
+ // AutoML Tables regression model.
+ AUTOML_REGRESSOR = 12;
+
+ // AutoML Tables classification model.
+ AUTOML_CLASSIFIER = 13;
+
+ // Prinpical Component Analysis model.
+ PCA = 14;
+
+ // Wide-and-deep classifier model.
+ DNN_LINEAR_COMBINED_CLASSIFIER = 16;
+
+ // Wide-and-deep regressor model.
+ DNN_LINEAR_COMBINED_REGRESSOR = 17;
+
+ // Autoencoder model.
+ AUTOENCODER = 18;
+
+ // New name for the ARIMA model.
+ ARIMA_PLUS = 19;
+
+ // ARIMA with external regressors.
+ ARIMA_PLUS_XREG = 23;
+
+ // Random forest regressor model.
+ RANDOM_FOREST_REGRESSOR = 24;
+
+ // Random forest classifier model.
+ RANDOM_FOREST_CLASSIFIER = 25;
+
+ // An imported TensorFlow Lite model.
+ TENSORFLOW_LITE = 26;
+
+ // An imported ONNX model.
+ ONNX = 28;
+
+ // Model to capture the columns and logic in the TRANSFORM clause along with
+ // statistics useful for ML analytic functions.
+ TRANSFORM_ONLY = 29;
+
+ // The contribution analysis model.
+ CONTRIBUTION_ANALYSIS = 37;
+ }
+
+ // Loss metric to evaluate model training performance.
+ enum LossType {
+ // Default value.
+ LOSS_TYPE_UNSPECIFIED = 0;
+
+ // Mean squared loss, used for linear regression.
+ MEAN_SQUARED_LOSS = 1;
+
+ // Mean log loss, used for logistic regression.
+ MEAN_LOG_LOSS = 2;
+ }
+
+ // Distance metric used to compute the distance between two points.
+ enum DistanceType {
+ // Default value.
+ DISTANCE_TYPE_UNSPECIFIED = 0;
+
+ // Eculidean distance.
+ EUCLIDEAN = 1;
+
+ // Cosine distance.
+ COSINE = 2;
+ }
+
+ // Indicates the method to split input data into multiple tables.
+ enum DataSplitMethod {
+ // Default value.
+ DATA_SPLIT_METHOD_UNSPECIFIED = 0;
+
+ // Splits data randomly.
+ RANDOM = 1;
+
+ // Splits data with the user provided tags.
+ CUSTOM = 2;
+
+ // Splits data sequentially.
+ SEQUENTIAL = 3;
+
+ // Data split will be skipped.
+ NO_SPLIT = 4;
+
+ // Splits data automatically: Uses NO_SPLIT if the data size is small.
+ // Otherwise uses RANDOM.
+ AUTO_SPLIT = 5;
+ }
+
+ // Type of supported data frequency for time series forecasting models.
+ enum DataFrequency {
+ // Default value.
+ DATA_FREQUENCY_UNSPECIFIED = 0;
+
+ // Automatically inferred from timestamps.
+ AUTO_FREQUENCY = 1;
+
+ // Yearly data.
+ YEARLY = 2;
+
+ // Quarterly data.
+ QUARTERLY = 3;
+
+ // Monthly data.
+ MONTHLY = 4;
+
+ // Weekly data.
+ WEEKLY = 5;
+
+ // Daily data.
+ DAILY = 6;
+
+ // Hourly data.
+ HOURLY = 7;
+
+ // Per-minute data.
+ PER_MINUTE = 8;
+ }
+
+ // Type of supported holiday regions for time series forecasting models.
+ enum HolidayRegion {
+ // Holiday region unspecified.
+ HOLIDAY_REGION_UNSPECIFIED = 0;
+
+ // Global.
+ GLOBAL = 1;
+
+ // North America.
+ NA = 2;
+
+ // Japan and Asia Pacific: Korea, Greater China, India, Australia, and New
+ // Zealand.
+ JAPAC = 3;
+
+ // Europe, the Middle East and Africa.
+ EMEA = 4;
+
+ // Latin America and the Caribbean.
+ LAC = 5;
+
+ // United Arab Emirates
+ AE = 6;
+
+ // Argentina
+ AR = 7;
+
+ // Austria
+ AT = 8;
+
+ // Australia
+ AU = 9;
+
+ // Belgium
+ BE = 10;
+
+ // Brazil
+ BR = 11;
+
+ // Canada
+ CA = 12;
+
+ // Switzerland
+ CH = 13;
+
+ // Chile
+ CL = 14;
+
+ // China
+ CN = 15;
+
+ // Colombia
+ CO = 16;
+
+ // Czechoslovakia
+ CS = 17;
+
+ // Czech Republic
+ CZ = 18;
+
+ // Germany
+ DE = 19;
+
+ // Denmark
+ DK = 20;
+
+ // Algeria
+ DZ = 21;
+
+ // Ecuador
+ EC = 22;
+
+ // Estonia
+ EE = 23;
+
+ // Egypt
+ EG = 24;
+
+ // Spain
+ ES = 25;
+
+ // Finland
+ FI = 26;
+
+ // France
+ FR = 27;
+
+ // Great Britain (United Kingdom)
+ GB = 28;
+
+ // Greece
+ GR = 29;
+
+ // Hong Kong
+ HK = 30;
+
+ // Hungary
+ HU = 31;
+
+ // Indonesia
+ ID = 32;
+
+ // Ireland
+ IE = 33;
+
+ // Israel
+ IL = 34;
+
+ // India
+ IN = 35;
+
+ // Iran
+ IR = 36;
+
+ // Italy
+ IT = 37;
+
+ // Japan
+ JP = 38;
+
+ // Korea (South)
+ KR = 39;
+
+ // Latvia
+ LV = 40;
+
+ // Morocco
+ MA = 41;
+
+ // Mexico
+ MX = 42;
+
+ // Malaysia
+ MY = 43;
+
+ // Nigeria
+ NG = 44;
+
+ // Netherlands
+ NL = 45;
+
+ // Norway
+ NO = 46;
+
+ // New Zealand
+ NZ = 47;
+
+ // Peru
+ PE = 48;
+
+ // Philippines
+ PH = 49;
+
+ // Pakistan
+ PK = 50;
+
+ // Poland
+ PL = 51;
+
+ // Portugal
+ PT = 52;
+
+ // Romania
+ RO = 53;
+
+ // Serbia
+ RS = 54;
+
+ // Russian Federation
+ RU = 55;
+
+ // Saudi Arabia
+ SA = 56;
+
+ // Sweden
+ SE = 57;
+
+ // Singapore
+ SG = 58;
+
+ // Slovenia
+ SI = 59;
+
+ // Slovakia
+ SK = 60;
+
+ // Thailand
+ TH = 61;
+
+ // Turkey
+ TR = 62;
+
+ // Taiwan
+ TW = 63;
+
+ // Ukraine
+ UA = 64;
+
+ // United States
+ US = 65;
+
+ // Venezuela
+ VE = 66;
+
+ // Vietnam
+ VN = 67;
+
+ // South Africa
+ ZA = 68;
+ }
+
+ // Enums for seasonal period.
+ message SeasonalPeriod {
+ // Seasonal period type.
+ enum SeasonalPeriodType {
+ // Unspecified seasonal period.
+ SEASONAL_PERIOD_TYPE_UNSPECIFIED = 0;
+
+ // No seasonality
+ NO_SEASONALITY = 1;
+
+ // Daily period, 24 hours.
+ DAILY = 2;
+
+ // Weekly period, 7 days.
+ WEEKLY = 3;
+
+ // Monthly period, 30 days or irregular.
+ MONTHLY = 4;
+
+ // Quarterly period, 90 days or irregular.
+ QUARTERLY = 5;
+
+ // Yearly period, 365 days or irregular.
+ YEARLY = 6;
+
+ // Hourly period, 1 hour.
+ HOURLY = 7;
+ }
+ }
+
+ // Enums for color space, used for processing images in Object Table.
+ // See more details at
+ // https://www.tensorflow.org/io/tutorials/colorspace.
+ enum ColorSpace {
+ // Unspecified color space
+ COLOR_SPACE_UNSPECIFIED = 0;
+
+ // RGB
+ RGB = 1;
+
+ // HSV
+ HSV = 2;
+
+ // YIQ
+ YIQ = 3;
+
+ // YUV
+ YUV = 4;
+
+ // GRAYSCALE
+ GRAYSCALE = 5;
+ }
+
+ // Enums for kmeans model type.
+ message KmeansEnums {
+ // Indicates the method used to initialize the centroids for KMeans
+ // clustering algorithm.
+ enum KmeansInitializationMethod {
+ // Unspecified initialization method.
+ KMEANS_INITIALIZATION_METHOD_UNSPECIFIED = 0;
+
+ // Initializes the centroids randomly.
+ RANDOM = 1;
+
+ // Initializes the centroids using data specified in
+ // kmeans_initialization_column.
+ CUSTOM = 2;
+
+ // Initializes with kmeans++.
+ KMEANS_PLUS_PLUS = 3;
+ }
+ }
+
+ // Enums for XGBoost model type.
+ message BoostedTreeOptionEnums {
+ // Booster types supported. Refer to booster parameter in XGBoost.
+ enum BoosterType {
+ // Unspecified booster type.
+ BOOSTER_TYPE_UNSPECIFIED = 0;
+
+ // Gbtree booster.
+ GBTREE = 1;
+
+ // Dart booster.
+ DART = 2;
+ }
+
+ // Type of normalization algorithm for boosted tree models using dart
+ // booster. Refer to normalize_type in XGBoost.
+ enum DartNormalizeType {
+ // Unspecified dart normalize type.
+ DART_NORMALIZE_TYPE_UNSPECIFIED = 0;
+
+ // New trees have the same weight of each of dropped trees.
+ TREE = 1;
+
+ // New trees have the same weight of sum of dropped trees.
+ FOREST = 2;
+ }
+
+ // Tree construction algorithm used in boosted tree models.
+ // Refer to tree_method in XGBoost.
+ enum TreeMethod {
+ // Unspecified tree method.
+ TREE_METHOD_UNSPECIFIED = 0;
+
+ // Use heuristic to choose the fastest method.
+ AUTO = 1;
+
+ // Exact greedy algorithm.
+ EXACT = 2;
+
+ // Approximate greedy algorithm using quantile sketch and gradient
+ // histogram.
+ APPROX = 3;
+
+ // Fast histogram optimized approximate greedy algorithm.
+ HIST = 4;
+ }
+ }
+
+ // Enums for hyperparameter tuning.
+ message HparamTuningEnums {
+ // Available evaluation metrics used as hyperparameter tuning objectives.
+ enum HparamTuningObjective {
+ // Unspecified evaluation metric.
+ HPARAM_TUNING_OBJECTIVE_UNSPECIFIED = 0;
+
+ // Mean absolute error.
+ // mean_absolute_error = AVG(ABS(label - predicted))
+ MEAN_ABSOLUTE_ERROR = 1;
+
+ // Mean squared error.
+ // mean_squared_error = AVG(POW(label - predicted, 2))
+ MEAN_SQUARED_ERROR = 2;
+
+ // Mean squared log error.
+ // mean_squared_log_error = AVG(POW(LN(1 + label) - LN(1 + predicted), 2))
+ MEAN_SQUARED_LOG_ERROR = 3;
+
+ // Mean absolute error.
+ // median_absolute_error = APPROX_QUANTILES(absolute_error, 2)[OFFSET(1)]
+ MEDIAN_ABSOLUTE_ERROR = 4;
+
+ // R^2 score. This corresponds to r2_score in ML.EVALUATE.
+ // r_squared = 1 - SUM(squared_error)/(COUNT(label)*VAR_POP(label))
+ R_SQUARED = 5;
+
+ // Explained variance.
+ // explained_variance = 1 - VAR_POP(label_error)/VAR_POP(label)
+ EXPLAINED_VARIANCE = 6;
+
+ // Precision is the fraction of actual positive predictions that had
+ // positive actual labels. For multiclass this is a macro-averaged metric
+ // treating each class as a binary classifier.
+ PRECISION = 7;
+
+ // Recall is the fraction of actual positive labels that were given a
+ // positive prediction. For multiclass this is a macro-averaged metric.
+ RECALL = 8;
+
+ // Accuracy is the fraction of predictions given the correct label. For
+ // multiclass this is a globally micro-averaged metric.
+ ACCURACY = 9;
+
+ // The F1 score is an average of recall and precision. For multiclass this
+ // is a macro-averaged metric.
+ F1_SCORE = 10;
+
+ // Logarithmic Loss. For multiclass this is a macro-averaged metric.
+ LOG_LOSS = 11;
+
+ // Area Under an ROC Curve. For multiclass this is a macro-averaged
+ // metric.
+ ROC_AUC = 12;
+
+ // Davies-Bouldin Index.
+ DAVIES_BOULDIN_INDEX = 13;
+
+ // Mean Average Precision.
+ MEAN_AVERAGE_PRECISION = 14;
+
+ // Normalized Discounted Cumulative Gain.
+ NORMALIZED_DISCOUNTED_CUMULATIVE_GAIN = 15;
+
+ // Average Rank.
+ AVERAGE_RANK = 16;
+ }
+ }
+
+ // Indicates the learning rate optimization strategy to use.
+ enum LearnRateStrategy {
+ // Default value.
+ LEARN_RATE_STRATEGY_UNSPECIFIED = 0;
+
+ // Use line search to determine learning rate.
+ LINE_SEARCH = 1;
+
+ // Use a constant learning rate.
+ CONSTANT = 2;
+ }
+
+ // Indicates the optimization strategy used for training.
+ enum OptimizationStrategy {
+ // Default value.
+ OPTIMIZATION_STRATEGY_UNSPECIFIED = 0;
+
+ // Uses an iterative batch gradient descent algorithm.
+ BATCH_GRADIENT_DESCENT = 1;
+
+ // Uses a normal equation to solve linear regression problem.
+ NORMAL_EQUATION = 2;
+ }
+
+ // Indicates the training algorithm to use for matrix factorization models.
+ enum FeedbackType {
+ // Default value.
+ FEEDBACK_TYPE_UNSPECIFIED = 0;
+
+ // Use weighted-als for implicit feedback problems.
+ IMPLICIT = 1;
+
+ // Use nonweighted-als for explicit feedback problems.
+ EXPLICIT = 2;
+ }
+
+ // Evaluation metrics for regression and explicit feedback type matrix
+ // factorization models.
+ message RegressionMetrics {
+ // Mean absolute error.
+ google.protobuf.DoubleValue mean_absolute_error = 1;
+
+ // Mean squared error.
+ google.protobuf.DoubleValue mean_squared_error = 2;
+
+ // Mean squared log error.
+ google.protobuf.DoubleValue mean_squared_log_error = 3;
+
+ // Median absolute error.
+ google.protobuf.DoubleValue median_absolute_error = 4;
+
+ // R^2 score. This corresponds to r2_score in ML.EVALUATE.
+ google.protobuf.DoubleValue r_squared = 5;
+ }
+
+ // Aggregate metrics for classification/classifier models. For multi-class
+ // models, the metrics are either macro-averaged or micro-averaged. When
+ // macro-averaged, the metrics are calculated for each label and then an
+ // unweighted average is taken of those values. When micro-averaged, the
+ // metric is calculated globally by counting the total number of correctly
+ // predicted rows.
+ message AggregateClassificationMetrics {
+ // Precision is the fraction of actual positive predictions that had
+ // positive actual labels. For multiclass this is a macro-averaged
+ // metric treating each class as a binary classifier.
+ google.protobuf.DoubleValue precision = 1;
+
+ // Recall is the fraction of actual positive labels that were given a
+ // positive prediction. For multiclass this is a macro-averaged metric.
+ google.protobuf.DoubleValue recall = 2;
+
+ // Accuracy is the fraction of predictions given the correct label. For
+ // multiclass this is a micro-averaged metric.
+ google.protobuf.DoubleValue accuracy = 3;
+
+ // Threshold at which the metrics are computed. For binary
+ // classification models this is the positive class threshold.
+ // For multi-class classification models this is the confidence
+ // threshold.
+ google.protobuf.DoubleValue threshold = 4;
+
+ // The F1 score is an average of recall and precision. For multiclass
+ // this is a macro-averaged metric.
+ google.protobuf.DoubleValue f1_score = 5;
+
+ // Logarithmic Loss. For multiclass this is a macro-averaged metric.
+ google.protobuf.DoubleValue log_loss = 6;
+
+ // Area Under a ROC Curve. For multiclass this is a macro-averaged
+ // metric.
+ google.protobuf.DoubleValue roc_auc = 7;
+ }
+
+ // Evaluation metrics for binary classification/classifier models.
+ message BinaryClassificationMetrics {
+ // Confusion matrix for binary classification models.
+ message BinaryConfusionMatrix {
+ // Threshold value used when computing each of the following metric.
+ google.protobuf.DoubleValue positive_class_threshold = 1;
+
+ // Number of true samples predicted as true.
+ google.protobuf.Int64Value true_positives = 2;
+
+ // Number of false samples predicted as true.
+ google.protobuf.Int64Value false_positives = 3;
+
+ // Number of true samples predicted as false.
+ google.protobuf.Int64Value true_negatives = 4;
+
+ // Number of false samples predicted as false.
+ google.protobuf.Int64Value false_negatives = 5;
+
+ // The fraction of actual positive predictions that had positive actual
+ // labels.
+ google.protobuf.DoubleValue precision = 6;
+
+ // The fraction of actual positive labels that were given a positive
+ // prediction.
+ google.protobuf.DoubleValue recall = 7;
+
+ // The equally weighted average of recall and precision.
+ google.protobuf.DoubleValue f1_score = 8;
+
+ // The fraction of predictions given the correct label.
+ google.protobuf.DoubleValue accuracy = 9;
+ }
+
+ // Aggregate classification metrics.
+ AggregateClassificationMetrics aggregate_classification_metrics = 1;
+
+ // Binary confusion matrix at multiple thresholds.
+ repeated BinaryConfusionMatrix binary_confusion_matrix_list = 2;
+
+ // Label representing the positive class.
+ string positive_label = 3;
+
+ // Label representing the negative class.
+ string negative_label = 4;
+ }
+
+ // Evaluation metrics for multi-class classification/classifier models.
+ message MultiClassClassificationMetrics {
+ // Confusion matrix for multi-class classification models.
+ message ConfusionMatrix {
+ // A single entry in the confusion matrix.
+ message Entry {
+ // The predicted label. For confidence_threshold > 0, we will
+ // also add an entry indicating the number of items under the
+ // confidence threshold.
+ string predicted_label = 1;
+
+ // Number of items being predicted as this label.
+ google.protobuf.Int64Value item_count = 2;
+ }
+
+ // A single row in the confusion matrix.
+ message Row {
+ // The original label of this row.
+ string actual_label = 1;
+
+ // Info describing predicted label distribution.
+ repeated Entry entries = 2;
+ }
+
+ // Confidence threshold used when computing the entries of the
+ // confusion matrix.
+ google.protobuf.DoubleValue confidence_threshold = 1;
+
+ // One row per actual label.
+ repeated Row rows = 2;
+ }
+
+ // Aggregate classification metrics.
+ AggregateClassificationMetrics aggregate_classification_metrics = 1;
+
+ // Confusion matrix at different thresholds.
+ repeated ConfusionMatrix confusion_matrix_list = 2;
+ }
+
+ // Evaluation metrics for clustering models.
+ message ClusteringMetrics {
+ // Message containing the information about one cluster.
+ message Cluster {
+ // Representative value of a single feature within the cluster.
+ message FeatureValue {
+ // Representative value of a categorical feature.
+ message CategoricalValue {
+ // Represents the count of a single category within the cluster.
+ message CategoryCount {
+ // The name of category.
+ string category = 1;
+
+ // The count of training samples matching the category within the
+ // cluster.
+ google.protobuf.Int64Value count = 2;
+ }
+
+ // Counts of all categories for the categorical feature. If there are
+ // more than ten categories, we return top ten (by count) and return
+ // one more CategoryCount with category "_OTHER_" and count as
+ // aggregate counts of remaining categories.
+ repeated CategoryCount category_counts = 1;
+ }
+
+ // The feature column name.
+ string feature_column = 1;
+
+ // Value.
+ oneof value {
+ // The numerical feature value. This is the centroid value for this
+ // feature.
+ google.protobuf.DoubleValue numerical_value = 2;
+
+ // The categorical feature value.
+ CategoricalValue categorical_value = 3;
+ }
+ }
+
+ // Centroid id.
+ int64 centroid_id = 1;
+
+ // Values of highly variant features for this cluster.
+ repeated FeatureValue feature_values = 2;
+
+ // Count of training data rows that were assigned to this cluster.
+ google.protobuf.Int64Value count = 3;
+ }
+
+ // Davies-Bouldin index.
+ google.protobuf.DoubleValue davies_bouldin_index = 1;
+
+ // Mean of squared distances between each sample to its cluster centroid.
+ google.protobuf.DoubleValue mean_squared_distance = 2;
+
+ // Information for all clusters.
+ repeated Cluster clusters = 3;
+ }
+
+ // Evaluation metrics used by weighted-ALS models specified by
+ // feedback_type=implicit.
+ message RankingMetrics {
+ // Calculates a precision per user for all the items by ranking them and
+ // then averages all the precisions across all the users.
+ google.protobuf.DoubleValue mean_average_precision = 1;
+
+ // Similar to the mean squared error computed in regression and explicit
+ // recommendation models except instead of computing the rating directly,
+ // the output from evaluate is computed against a preference which is 1 or 0
+ // depending on if the rating exists or not.
+ google.protobuf.DoubleValue mean_squared_error = 2;
+
+ // A metric to determine the goodness of a ranking calculated from the
+ // predicted confidence by comparing it to an ideal rank measured by the
+ // original ratings.
+ google.protobuf.DoubleValue normalized_discounted_cumulative_gain = 3;
+
+ // Determines the goodness of a ranking by computing the percentile rank
+ // from the predicted confidence and dividing it by the original rank.
+ google.protobuf.DoubleValue average_rank = 4;
+ }
+
+ // Model evaluation metrics for ARIMA forecasting models.
+ message ArimaForecastingMetrics {
+ // Model evaluation metrics for a single ARIMA forecasting model.
+ message ArimaSingleModelForecastingMetrics {
+ // Non-seasonal order.
+ ArimaOrder non_seasonal_order = 1;
+
+ // Arima fitting metrics.
+ ArimaFittingMetrics arima_fitting_metrics = 2;
+
+ // Is arima model fitted with drift or not. It is always false when d
+ // is not 1.
+ google.protobuf.BoolValue has_drift = 3;
+
+ // The time_series_id value for this time series. It will be one of
+ // the unique values from the time_series_id_column specified during
+ // ARIMA model training. Only present when time_series_id_column
+ // training option was used.
+ string time_series_id = 4;
+
+ // The tuple of time_series_ids identifying this time series. It will
+ // be one of the unique tuples of values present in the
+ // time_series_id_columns specified during ARIMA model training. Only
+ // present when time_series_id_columns training option was used and
+ // the order of values here are same as the order of
+ // time_series_id_columns.
+ repeated string time_series_ids = 9;
+
+ // Seasonal periods. Repeated because multiple periods are supported
+ // for one time series.
+ repeated SeasonalPeriod.SeasonalPeriodType seasonal_periods = 5;
+
+ // If true, holiday_effect is a part of time series decomposition result.
+ google.protobuf.BoolValue has_holiday_effect = 6;
+
+ // If true, spikes_and_dips is a part of time series decomposition result.
+ google.protobuf.BoolValue has_spikes_and_dips = 7;
+
+ // If true, step_changes is a part of time series decomposition result.
+ google.protobuf.BoolValue has_step_changes = 8;
+ }
+
+ // Repeated as there can be many metric sets (one for each model) in
+ // auto-arima and the large-scale case.
+ repeated ArimaSingleModelForecastingMetrics
+ arima_single_model_forecasting_metrics = 6;
+ }
+
+ // Model evaluation metrics for dimensionality reduction models.
+ message DimensionalityReductionMetrics {
+ // Total percentage of variance explained by the selected principal
+ // components.
+ google.protobuf.DoubleValue total_explained_variance_ratio = 1;
+ }
+
+ // Evaluation metrics of a model. These are either computed on all training
+ // data or just the eval data based on whether eval data was used during
+ // training. These are not present for imported models.
+ message EvaluationMetrics {
+ // Metrics.
+ oneof metrics {
+ // Populated for regression models and explicit feedback type matrix
+ // factorization models.
+ RegressionMetrics regression_metrics = 1;
+
+ // Populated for binary classification/classifier models.
+ BinaryClassificationMetrics binary_classification_metrics = 2;
+
+ // Populated for multi-class classification/classifier models.
+ MultiClassClassificationMetrics multi_class_classification_metrics = 3;
+
+ // Populated for clustering models.
+ ClusteringMetrics clustering_metrics = 4;
+
+ // Populated for implicit feedback type matrix factorization models.
+ RankingMetrics ranking_metrics = 5;
+
+ // Populated for ARIMA models.
+ ArimaForecastingMetrics arima_forecasting_metrics = 6;
+
+ // Evaluation metrics when the model is a dimensionality reduction model,
+ // which currently includes PCA.
+ DimensionalityReductionMetrics dimensionality_reduction_metrics = 7;
+ }
+ }
+
+ // Data split result. This contains references to the training and evaluation
+ // data tables that were used to train the model.
+ message DataSplitResult {
+ // Table reference of the training data after split.
+ TableReference training_table = 1;
+
+ // Table reference of the evaluation data after split.
+ TableReference evaluation_table = 2;
+
+ // Table reference of the test data after split.
+ TableReference test_table = 3;
+ }
+
+ // Arima order, can be used for both non-seasonal and seasonal parts.
+ message ArimaOrder {
+ // Order of the autoregressive part.
+ google.protobuf.Int64Value p = 1;
+
+ // Order of the differencing part.
+ google.protobuf.Int64Value d = 2;
+
+ // Order of the moving-average part.
+ google.protobuf.Int64Value q = 3;
+ }
+
+ // ARIMA model fitting metrics.
+ message ArimaFittingMetrics {
+ // Log-likelihood.
+ google.protobuf.DoubleValue log_likelihood = 1;
+
+ // AIC.
+ google.protobuf.DoubleValue aic = 2;
+
+ // Variance.
+ google.protobuf.DoubleValue variance = 3;
+ }
+
+ // Global explanations containing the top most important features
+ // after training.
+ message GlobalExplanation {
+ // Explanation for a single feature.
+ message Explanation {
+ // The full feature name. For non-numerical features, will be formatted
+ // like `.`. Overall size of feature
+ // name will always be truncated to first 120 characters.
+ string feature_name = 1;
+
+ // Attribution of feature.
+ google.protobuf.DoubleValue attribution = 2;
+ }
+
+ // A list of the top global explanations. Sorted by absolute value of
+ // attribution in descending order.
+ repeated Explanation explanations = 1;
+
+ // Class label for this set of global explanations. Will be empty/null for
+ // binary logistic and linear regression models. Sorted alphabetically in
+ // descending order.
+ string class_label = 2;
+ }
+
+ // Encoding methods for categorical features.
+ message CategoryEncodingMethod {
+ // Supported encoding methods for categorical features.
+ enum EncodingMethod {
+ // Unspecified encoding method.
+ ENCODING_METHOD_UNSPECIFIED = 0;
+
+ // Applies one-hot encoding.
+ ONE_HOT_ENCODING = 1;
+
+ // Applies label encoding.
+ LABEL_ENCODING = 2;
+
+ // Applies dummy encoding.
+ DUMMY_ENCODING = 3;
+ }
+ }
+
+ // PCA solver options.
+ message PcaSolverOptionEnums {
+ // Enums for supported PCA solvers.
+ enum PcaSolver {
+ // Default value.
+ UNSPECIFIED = 0;
+
+ // Full eigen-decoposition.
+ FULL = 1;
+
+ // Randomized SVD.
+ RANDOMIZED = 2;
+
+ // Auto.
+ AUTO = 3;
+ }
+ }
+
+ // Model registry options.
+ message ModelRegistryOptionEnums {
+ // Enums for supported model registries.
+ enum ModelRegistry {
+ // Default value.
+ MODEL_REGISTRY_UNSPECIFIED = 0;
+
+ // Vertex AI.
+ VERTEX_AI = 1;
+ }
+ }
+
+ // Information about a single training query run for the model.
+ message TrainingRun {
+ // Options used in model training.
+ message TrainingOptions {
+ // Supported reservation affinity types to configure a Vertex AI
+ // resource.
+ enum ReservationAffinityType {
+ // Default value.
+ RESERVATION_AFFINITY_TYPE_UNSPECIFIED = 0;
+
+ // No reservation.
+ NO_RESERVATION = 1;
+
+ // Any reservation.
+ ANY_RESERVATION = 2;
+
+ // Specific reservation.
+ SPECIFIC_RESERVATION = 3;
+ }
+
+ // The maximum number of iterations in training. Used only for iterative
+ // training algorithms.
+ int64 max_iterations = 1;
+
+ // Type of loss function used during training run.
+ LossType loss_type = 2;
+
+ // Learning rate in training. Used only for iterative training algorithms.
+ double learn_rate = 3;
+
+ // L1 regularization coefficient.
+ google.protobuf.DoubleValue l1_regularization = 4;
+
+ // L2 regularization coefficient.
+ google.protobuf.DoubleValue l2_regularization = 5;
+
+ // When early_stop is true, stops training when accuracy improvement is
+ // less than 'min_relative_progress'. Used only for iterative training
+ // algorithms.
+ google.protobuf.DoubleValue min_relative_progress = 6;
+
+ // Whether to train a model from the last checkpoint.
+ google.protobuf.BoolValue warm_start = 7;
+
+ // Whether to stop early when the loss doesn't improve significantly
+ // any more (compared to min_relative_progress). Used only for iterative
+ // training algorithms.
+ google.protobuf.BoolValue early_stop = 8;
+
+ // Name of input label columns in training data.
+ repeated string input_label_columns = 9;
+
+ // The data split type for training and evaluation, e.g. RANDOM.
+ DataSplitMethod data_split_method = 10;
+
+ // The fraction of evaluation data over the whole input data. The rest
+ // of data will be used as training data. The format should be double.
+ // Accurate to two decimal places.
+ // Default value is 0.2.
+ double data_split_eval_fraction = 11;
+
+ // The column to split data with. This column won't be used as a
+ // feature.
+ // 1. When data_split_method is CUSTOM, the corresponding column should
+ // be boolean. The rows with true value tag are eval data, and the false
+ // are training data.
+ // 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION
+ // rows (from smallest to largest) in the corresponding column are used
+ // as training data, and the rest are eval data. It respects the order
+ // in Orderable data types:
+ // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data_type_properties
+ string data_split_column = 12;
+
+ // The strategy to determine learn rate for the current iteration.
+ LearnRateStrategy learn_rate_strategy = 13;
+
+ // Specifies the initial learning rate for the line search learn rate
+ // strategy.
+ double initial_learn_rate = 16;
+
+ // Weights associated with each label class, for rebalancing the
+ // training data. Only applicable for classification models.
+ map label_class_weights = 17;
+
+ // User column specified for matrix factorization models.
+ string user_column = 18;
+
+ // Item column specified for matrix factorization models.
+ string item_column = 19;
+
+ // Distance type for clustering models.
+ DistanceType distance_type = 20;
+
+ // Number of clusters for clustering models.
+ int64 num_clusters = 21;
+
+ // Google Cloud Storage URI from which the model was imported. Only
+ // applicable for imported models.
+ string model_uri = 22;
+
+ // Optimization strategy for training linear regression models.
+ OptimizationStrategy optimization_strategy = 23;
+
+ // Hidden units for dnn models.
+ repeated int64 hidden_units = 24;
+
+ // Batch size for dnn models.
+ int64 batch_size = 25;
+
+ // Dropout probability for dnn models.
+ google.protobuf.DoubleValue dropout = 26;
+
+ // Maximum depth of a tree for boosted tree models.
+ int64 max_tree_depth = 27;
+
+ // Subsample fraction of the training data to grow tree to prevent
+ // overfitting for boosted tree models.
+ double subsample = 28;
+
+ // Minimum split loss for boosted tree models.
+ google.protobuf.DoubleValue min_split_loss = 29;
+
+ // Booster type for boosted tree models.
+ BoostedTreeOptionEnums.BoosterType booster_type = 60;
+
+ // Number of parallel trees constructed during each iteration for boosted
+ // tree models.
+ google.protobuf.Int64Value num_parallel_tree = 61;
+
+ // Type of normalization algorithm for boosted tree models using
+ // dart booster.
+ BoostedTreeOptionEnums.DartNormalizeType dart_normalize_type = 62;
+
+ // Tree construction algorithm for boosted tree models.
+ BoostedTreeOptionEnums.TreeMethod tree_method = 63;
+
+ // Minimum sum of instance weight needed in a child for boosted tree
+ // models.
+ google.protobuf.Int64Value min_tree_child_weight = 64;
+
+ // Subsample ratio of columns when constructing each tree for boosted tree
+ // models.
+ google.protobuf.DoubleValue colsample_bytree = 65;
+
+ // Subsample ratio of columns for each level for boosted tree models.
+ google.protobuf.DoubleValue colsample_bylevel = 66;
+
+ // Subsample ratio of columns for each node(split) for boosted tree
+ // models.
+ google.protobuf.DoubleValue colsample_bynode = 67;
+
+ // Num factors specified for matrix factorization models.
+ int64 num_factors = 30;
+
+ // Feedback type that specifies which algorithm to run for matrix
+ // factorization.
+ FeedbackType feedback_type = 31;
+
+ // Hyperparameter for matrix factoration when implicit feedback type is
+ // specified.
+ google.protobuf.DoubleValue wals_alpha = 32;
+
+ // The method used to initialize the centroids for kmeans algorithm.
+ KmeansEnums.KmeansInitializationMethod kmeans_initialization_method = 33;
+
+ // The column used to provide the initial centroids for kmeans algorithm
+ // when kmeans_initialization_method is CUSTOM.
+ string kmeans_initialization_column = 34;
+
+ // Column to be designated as time series timestamp for ARIMA model.
+ string time_series_timestamp_column = 35;
+
+ // Column to be designated as time series data for ARIMA model.
+ string time_series_data_column = 36;
+
+ // Whether to enable auto ARIMA or not.
+ google.protobuf.BoolValue auto_arima = 37;
+
+ // A specification of the non-seasonal part of the ARIMA model: the three
+ // components (p, d, q) are the AR order, the degree of differencing, and
+ // the MA order.
+ ArimaOrder non_seasonal_order = 38;
+
+ // The data frequency of a time series.
+ DataFrequency data_frequency = 39;
+
+ // Whether or not p-value test should be computed for this model. Only
+ // available for linear and logistic regression models.
+ google.protobuf.BoolValue calculate_p_values = 40;
+
+ // Include drift when fitting an ARIMA model.
+ google.protobuf.BoolValue include_drift = 41;
+
+ // The geographical region based on which the holidays are considered in
+ // time series modeling. If a valid value is specified, then holiday
+ // effects modeling is enabled.
+ HolidayRegion holiday_region = 42;
+
+ // A list of geographical regions that are used for time series modeling.
+ repeated HolidayRegion holiday_regions = 71;
+
+ // The time series id column that was used during ARIMA model training.
+ string time_series_id_column = 43;
+
+ // The time series id columns that were used during ARIMA model training.
+ repeated string time_series_id_columns = 51;
+
+ // The forecast limit lower bound that was used during ARIMA model
+ // training with limits. To see more details of the algorithm:
+ // https://otexts.com/fpp2/limits.html
+ double forecast_limit_lower_bound = 99;
+
+ // The forecast limit upper bound that was used during ARIMA model
+ // training with limits.
+ double forecast_limit_upper_bound = 100;
+
+ // The number of periods ahead that need to be forecasted.
+ int64 horizon = 44;
+
+ // The max value of the sum of non-seasonal p and q.
+ int64 auto_arima_max_order = 46;
+
+ // The min value of the sum of non-seasonal p and q.
+ int64 auto_arima_min_order = 83;
+
+ // Number of trials to run this hyperparameter tuning job.
+ int64 num_trials = 47;
+
+ // Maximum number of trials to run in parallel.
+ int64 max_parallel_trials = 48;
+
+ // The target evaluation metrics to optimize the hyperparameters for.
+ repeated HparamTuningEnums.HparamTuningObjective
+ hparam_tuning_objectives = 54;
+
+ // If true, perform decompose time series and save the results.
+ google.protobuf.BoolValue decompose_time_series = 50;
+
+ // If true, clean spikes and dips in the input time series.
+ google.protobuf.BoolValue clean_spikes_and_dips = 52;
+
+ // If true, detect step changes and make data adjustment in the input time
+ // series.
+ google.protobuf.BoolValue adjust_step_changes = 53;
+
+ // If true, enable global explanation during training.
+ google.protobuf.BoolValue enable_global_explain = 55;
+
+ // Number of paths for the sampled Shapley explain method.
+ int64 sampled_shapley_num_paths = 56;
+
+ // Number of integral steps for the integrated gradients explain method.
+ int64 integrated_gradients_num_steps = 57;
+
+ // Categorical feature encoding method.
+ CategoryEncodingMethod.EncodingMethod category_encoding_method = 58;
+
+ // Based on the selected TF version, the corresponding docker image is
+ // used to train external models.
+ string tf_version = 70;
+
+ // Enums for color space, used for processing images in Object Table.
+ // See more details at
+ // https://www.tensorflow.org/io/tutorials/colorspace.
+ ColorSpace color_space = 72;
+
+ // Name of the instance weight column for training data.
+ // This column isn't be used as a feature.
+ string instance_weight_column = 73;
+
+ // Smoothing window size for the trend component. When a positive value is
+ // specified, a center moving average smoothing is applied on the history
+ // trend. When the smoothing window is out of the boundary at the
+ // beginning or the end of the trend, the first element or the last
+ // element is padded to fill the smoothing window before the average is
+ // applied.
+ int64 trend_smoothing_window_size = 74;
+
+ // The fraction of the interpolated length of the time series that's used
+ // to model the time series trend component. All of the time points of the
+ // time series are used to model the non-trend component. This training
+ // option accelerates modeling training without sacrificing much
+ // forecasting accuracy. You can use this option with
+ // `minTimeSeriesLength` but not with `maxTimeSeriesLength`.
+ double time_series_length_fraction = 75;
+
+ // The minimum number of time points in a time series that are used in
+ // modeling the trend component of the time series. If you use this option
+ // you must also set the `timeSeriesLengthFraction` option. This training
+ // option ensures that enough time points are available when you use
+ // `timeSeriesLengthFraction` in trend modeling. This is particularly
+ // important when forecasting multiple time series in a single query using
+ // `timeSeriesIdColumn`. If the total number of time points is less than
+ // the `minTimeSeriesLength` value, then the query uses all available time
+ // points.
+ int64 min_time_series_length = 76;
+
+ // The maximum number of time points in a time series that can be used in
+ // modeling the trend component of the time series. Don't use this option
+ // with the `timeSeriesLengthFraction` or `minTimeSeriesLength` options.
+ int64 max_time_series_length = 77;
+
+ // User-selected XGBoost versions for training of XGBoost models.
+ string xgboost_version = 78;
+
+ // Whether to use approximate feature contribution method in XGBoost model
+ // explanation for global explain.
+ google.protobuf.BoolValue approx_global_feature_contrib = 84;
+
+ // Whether the model should include intercept during model training.
+ google.protobuf.BoolValue fit_intercept = 85;
+
+ // Number of principal components to keep in the PCA model. Must be <= the
+ // number of features.
+ int64 num_principal_components = 86;
+
+ // The minimum ratio of cumulative explained variance that needs to be
+ // given by the PCA model.
+ double pca_explained_variance_ratio = 87;
+
+ // If true, scale the feature values by dividing the feature standard
+ // deviation. Currently only apply to PCA.
+ google.protobuf.BoolValue scale_features = 88;
+
+ // The solver for PCA.
+ PcaSolverOptionEnums.PcaSolver pca_solver = 89;
+
+ // Whether to calculate class weights automatically based on the
+ // popularity of each label.
+ google.protobuf.BoolValue auto_class_weights = 90;
+
+ // Activation function of the neural nets.
+ string activation_fn = 91;
+
+ // Optimizer used for training the neural nets.
+ string optimizer = 92;
+
+ // Budget in hours for AutoML training.
+ double budget_hours = 93;
+
+ // Whether to standardize numerical features. Default to true.
+ google.protobuf.BoolValue standardize_features = 94;
+
+ // L1 regularization coefficient to activations.
+ double l1_reg_activation = 95;
+
+ // The model registry.
+ ModelRegistryOptionEnums.ModelRegistry model_registry = 96;
+
+ // The version aliases to apply in Vertex AI model registry. Always
+ // overwrite if the version aliases exists in a existing model.
+ repeated string vertex_ai_model_version_aliases = 97;
+
+ // Optional. Names of the columns to slice on. Applies to contribution
+ // analysis models.
+ repeated string dimension_id_columns = 104
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // The contribution metric. Applies to contribution analysis models.
+ // Allowed formats supported are for summable and summable ratio
+ // contribution metrics. These include expressions such as `SUM(x)` or
+ // `SUM(x)/SUM(y)`, where x and y are column names from the base table.
+ optional string contribution_metric = 105;
+
+ // Name of the column used to determine the rows corresponding to control
+ // and test. Applies to contribution analysis models.
+ optional string is_test_column = 106;
+
+ // The apriori support minimum. Applies to contribution analysis models.
+ optional double min_apriori_support = 107;
+
+ // The id that uniquely identifies an external model.
+ oneof external_model_id {
+ // The id of a Hugging Face model. For example, `google/gemma-2-2b-it`.
+ string hugging_face_model_id = 113;
+
+ // The name of a Vertex model garden publisher model. Format is
+ // `publishers/{publisher}/models/{model}@{optional_version_id}`.
+ string model_garden_model_name = 114;
+ }
+
+ // The idle TTL of the endpoint before the resources get destroyed. The
+ // default value is 6.5 hours.
+ optional google.protobuf.Duration endpoint_idle_ttl = 115;
+
+ // The type of the machine used to deploy and serve the model.
+ optional string machine_type = 117;
+
+ // The minimum number of machine replicas that will be always deployed on
+ // an endpoint. This value must be greater than or equal to 1. The default
+ // value is 1.
+ optional int64 min_replica_count = 118;
+
+ // The maximum number of machine replicas that will be deployed on an
+ // endpoint. The default value is equal to min_replica_count.
+ optional int64 max_replica_count = 119;
+
+ // Specifies the reservation affinity type used to configure a Vertex AI
+ // resource. The default value is `NO_RESERVATION`.
+ optional ReservationAffinityType reservation_affinity_type = 120;
+
+ // Corresponds to the label key of a reservation resource used by Vertex
+ // AI. To target a SPECIFIC_RESERVATION by name, use
+ // `compute.googleapis.com/reservation-name` as the key and specify the
+ // name of your reservation as its value.
+ optional string reservation_affinity_key = 121;
+
+ // Corresponds to the label values of a reservation resource used by
+ // Vertex AI. This must be the full resource name of the reservation or
+ // reservation block.
+ repeated string reservation_affinity_values = 122;
+ }
+
+ // Information about a single iteration of the training run.
+ message IterationResult {
+ // Information about a single cluster for clustering model.
+ message ClusterInfo {
+ // Centroid id.
+ int64 centroid_id = 1;
+
+ // Cluster radius, the average distance from centroid
+ // to each point assigned to the cluster.
+ google.protobuf.DoubleValue cluster_radius = 2;
+
+ // Cluster size, the total number of points assigned to the cluster.
+ google.protobuf.Int64Value cluster_size = 3;
+ }
+
+ // (Auto-)arima fitting result. Wrap everything in ArimaResult for easier
+ // refactoring if we want to use model-specific iteration results.
+ message ArimaResult {
+ // Arima coefficients.
+ message ArimaCoefficients {
+ // Auto-regressive coefficients, an array of double.
+ repeated double auto_regressive_coefficients = 1;
+
+ // Moving-average coefficients, an array of double.
+ repeated double moving_average_coefficients = 2;
+
+ // Intercept coefficient, just a double not an array.
+ google.protobuf.DoubleValue intercept_coefficient = 3;
+ }
+
+ // Arima model information.
+ message ArimaModelInfo {
+ // Non-seasonal order.
+ ArimaOrder non_seasonal_order = 1;
+
+ // Arima coefficients.
+ ArimaCoefficients arima_coefficients = 2;
+
+ // Arima fitting metrics.
+ ArimaFittingMetrics arima_fitting_metrics = 3;
+
+ // Whether Arima model fitted with drift or not. It is always false
+ // when d is not 1.
+ google.protobuf.BoolValue has_drift = 4;
+
+ // The time_series_id value for this time series. It will be one of
+ // the unique values from the time_series_id_column specified during
+ // ARIMA model training. Only present when time_series_id_column
+ // training option was used.
+ string time_series_id = 5;
+
+ // The tuple of time_series_ids identifying this time series. It will
+ // be one of the unique tuples of values present in the
+ // time_series_id_columns specified during ARIMA model training. Only
+ // present when time_series_id_columns training option was used and
+ // the order of values here are same as the order of
+ // time_series_id_columns.
+ repeated string time_series_ids = 10;
+
+ // Seasonal periods. Repeated because multiple periods are supported
+ // for one time series.
+ repeated SeasonalPeriod.SeasonalPeriodType seasonal_periods = 6;
+
+ // If true, holiday_effect is a part of time series decomposition
+ // result.
+ google.protobuf.BoolValue has_holiday_effect = 7;
+
+ // If true, spikes_and_dips is a part of time series decomposition
+ // result.
+ google.protobuf.BoolValue has_spikes_and_dips = 8;
+
+ // If true, step_changes is a part of time series decomposition
+ // result.
+ google.protobuf.BoolValue has_step_changes = 9;
+ }
+
+ // This message is repeated because there are multiple arima models
+ // fitted in auto-arima. For non-auto-arima model, its size is one.
+ repeated ArimaModelInfo arima_model_info = 1;
+
+ // Seasonal periods. Repeated because multiple periods are supported for
+ // one time series.
+ repeated SeasonalPeriod.SeasonalPeriodType seasonal_periods = 2;
+ }
+
+ // Principal component infos, used only for eigen decomposition based
+ // models, e.g., PCA. Ordered by explained_variance in the descending
+ // order.
+ message PrincipalComponentInfo {
+ // Id of the principal component.
+ google.protobuf.Int64Value principal_component_id = 1;
+
+ // Explained variance by this principal component, which is simply the
+ // eigenvalue.
+ google.protobuf.DoubleValue explained_variance = 2;
+
+ // Explained_variance over the total explained variance.
+ google.protobuf.DoubleValue explained_variance_ratio = 3;
+
+ // The explained_variance is pre-ordered in the descending order to
+ // compute the cumulative explained variance ratio.
+ google.protobuf.DoubleValue cumulative_explained_variance_ratio = 4;
+ }
+
+ // Index of the iteration, 0 based.
+ google.protobuf.Int32Value index = 1;
+
+ // Time taken to run the iteration in milliseconds.
+ google.protobuf.Int64Value duration_ms = 4;
+
+ // Loss computed on the training data at the end of iteration.
+ google.protobuf.DoubleValue training_loss = 5;
+
+ // Loss computed on the eval data at the end of iteration.
+ google.protobuf.DoubleValue eval_loss = 6;
+
+ // Learn rate used for this iteration.
+ double learn_rate = 7;
+
+ // Information about top clusters for clustering models.
+ repeated ClusterInfo cluster_infos = 8;
+
+ // Arima result.
+ ArimaResult arima_result = 9;
+
+ // The information of the principal components.
+ repeated PrincipalComponentInfo principal_component_infos = 10;
+ }
+
+ // Output only. Options that were used for this training run, includes
+ // user specified and default options that were used.
+ TrainingOptions training_options = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The start time of this training run.
+ google.protobuf.Timestamp start_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Output of each iteration run, results.size() <=
+ // max_iterations.
+ repeated IterationResult results = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The evaluation metrics over training/eval data that were
+ // computed at the end of training.
+ EvaluationMetrics evaluation_metrics = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Data split result of the training run. Only set when the
+ // input data is actually split.
+ DataSplitResult data_split_result = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Global explanation contains the explanation of top features
+ // on the model level. Applies to both regression and classification models.
+ GlobalExplanation model_level_global_explanation = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Global explanation contains the explanation of top features
+ // on the class level. Applies to classification models only.
+ repeated GlobalExplanation class_level_global_explanations = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The model id in the [Vertex AI Model
+ // Registry](https://cloud.google.com/vertex-ai/docs/model-registry/introduction)
+ // for this training run.
+ string vertex_ai_model_id = 14;
+
+ // Output only. The model version in the [Vertex AI Model
+ // Registry](https://cloud.google.com/vertex-ai/docs/model-registry/introduction)
+ // for this training run.
+ string vertex_ai_model_version = 15
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Search space for a double hyperparameter.
+ message DoubleHparamSearchSpace {
+ // Range of a double hyperparameter.
+ message DoubleRange {
+ // Min value of the double parameter.
+ google.protobuf.DoubleValue min = 1;
+
+ // Max value of the double parameter.
+ google.protobuf.DoubleValue max = 2;
+ }
+
+ // Discrete candidates of a double hyperparameter.
+ message DoubleCandidates {
+ // Candidates for the double parameter in increasing order.
+ repeated google.protobuf.DoubleValue candidates = 1;
+ }
+
+ // Search space.
+ oneof search_space {
+ // Range of the double hyperparameter.
+ DoubleRange range = 1;
+
+ // Candidates of the double hyperparameter.
+ DoubleCandidates candidates = 2;
+ }
+ }
+
+ // Search space for an int hyperparameter.
+ message IntHparamSearchSpace {
+ // Range of an int hyperparameter.
+ message IntRange {
+ // Min value of the int parameter.
+ google.protobuf.Int64Value min = 1;
+
+ // Max value of the int parameter.
+ google.protobuf.Int64Value max = 2;
+ }
+
+ // Discrete candidates of an int hyperparameter.
+ message IntCandidates {
+ // Candidates for the int parameter in increasing order.
+ repeated google.protobuf.Int64Value candidates = 1;
+ }
+
+ // Search space.
+ oneof search_space {
+ // Range of the int hyperparameter.
+ IntRange range = 1;
+
+ // Candidates of the int hyperparameter.
+ IntCandidates candidates = 2;
+ }
+ }
+
+ // Search space for string and enum.
+ message StringHparamSearchSpace {
+ // Canididates for the string or enum parameter in lower case.
+ repeated string candidates = 1;
+ }
+
+ // Search space for int array.
+ message IntArrayHparamSearchSpace {
+ // An array of int.
+ message IntArray {
+ // Elements in the int array.
+ repeated int64 elements = 1;
+ }
+
+ // Candidates for the int array parameter.
+ repeated IntArray candidates = 1;
+ }
+
+ // Hyperparameter search spaces.
+ // These should be a subset of training_options.
+ message HparamSearchSpaces {
+ // Learning rate of training jobs.
+ DoubleHparamSearchSpace learn_rate = 2;
+
+ // L1 regularization coefficient.
+ DoubleHparamSearchSpace l1_reg = 3;
+
+ // L2 regularization coefficient.
+ DoubleHparamSearchSpace l2_reg = 4;
+
+ // Number of clusters for k-means.
+ IntHparamSearchSpace num_clusters = 26;
+
+ // Number of latent factors to train on.
+ IntHparamSearchSpace num_factors = 31;
+
+ // Hidden units for neural network models.
+ IntArrayHparamSearchSpace hidden_units = 34;
+
+ // Mini batch sample size.
+ IntHparamSearchSpace batch_size = 37;
+
+ // Dropout probability for dnn model training and boosted tree models
+ // using dart booster.
+ DoubleHparamSearchSpace dropout = 38;
+
+ // Maximum depth of a tree for boosted tree models.
+ IntHparamSearchSpace max_tree_depth = 41;
+
+ // Subsample the training data to grow tree to prevent overfitting for
+ // boosted tree models.
+ DoubleHparamSearchSpace subsample = 42;
+
+ // Minimum split loss for boosted tree models.
+ DoubleHparamSearchSpace min_split_loss = 43;
+
+ // Hyperparameter for matrix factoration when implicit feedback type is
+ // specified.
+ DoubleHparamSearchSpace wals_alpha = 49;
+
+ // Booster type for boosted tree models.
+ StringHparamSearchSpace booster_type = 56;
+
+ // Number of parallel trees for boosted tree models.
+ IntHparamSearchSpace num_parallel_tree = 57;
+
+ // Dart normalization type for boosted tree models.
+ StringHparamSearchSpace dart_normalize_type = 58;
+
+ // Tree construction algorithm for boosted tree models.
+ StringHparamSearchSpace tree_method = 59;
+
+ // Minimum sum of instance weight needed in a child for boosted tree models.
+ IntHparamSearchSpace min_tree_child_weight = 60;
+
+ // Subsample ratio of columns when constructing each tree for boosted tree
+ // models.
+ DoubleHparamSearchSpace colsample_bytree = 61;
+
+ // Subsample ratio of columns for each level for boosted tree models.
+ DoubleHparamSearchSpace colsample_bylevel = 62;
+
+ // Subsample ratio of columns for each node(split) for boosted tree models.
+ DoubleHparamSearchSpace colsample_bynode = 63;
+
+ // Activation functions of neural network models.
+ StringHparamSearchSpace activation_fn = 67;
+
+ // Optimizer of TF models.
+ StringHparamSearchSpace optimizer = 68;
+ }
+
+ // Training info of a trial in [hyperparameter
+ // tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview)
+ // models.
+ message HparamTuningTrial {
+ // Current status of the trial.
+ enum TrialStatus {
+ // Default value.
+ TRIAL_STATUS_UNSPECIFIED = 0;
+
+ // Scheduled but not started.
+ NOT_STARTED = 1;
+
+ // Running state.
+ RUNNING = 2;
+
+ // The trial succeeded.
+ SUCCEEDED = 3;
+
+ // The trial failed.
+ FAILED = 4;
+
+ // The trial is infeasible due to the invalid params.
+ INFEASIBLE = 5;
+
+ // Trial stopped early because it's not promising.
+ STOPPED_EARLY = 6;
+ }
+
+ // 1-based index of the trial.
+ int64 trial_id = 1;
+
+ // Starting time of the trial.
+ int64 start_time_ms = 2;
+
+ // Ending time of the trial.
+ int64 end_time_ms = 3;
+
+ // The hyperprameters selected for this trial.
+ TrainingRun.TrainingOptions hparams = 4;
+
+ // Evaluation metrics of this trial calculated on the test data.
+ // Empty in Job API.
+ EvaluationMetrics evaluation_metrics = 5;
+
+ // The status of the trial.
+ TrialStatus status = 6;
+
+ // Error message for FAILED and INFEASIBLE trial.
+ string error_message = 7;
+
+ // Loss computed on the training data at the end of trial.
+ google.protobuf.DoubleValue training_loss = 8;
+
+ // Loss computed on the eval data at the end of trial.
+ google.protobuf.DoubleValue eval_loss = 9;
+
+ // Hyperparameter tuning evaluation metrics of this trial calculated on the
+ // eval data. Unlike evaluation_metrics, only the fields corresponding to
+ // the hparam_tuning_objectives are set.
+ EvaluationMetrics hparam_tuning_evaluation_metrics = 10;
+ }
+
+ // Output only. A hash of this resource.
+ string etag = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Unique identifier for this model.
+ ModelReference model_reference = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The time when this model was created, in millisecs since the
+ // epoch.
+ int64 creation_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when this model was last modified, in millisecs since
+ // the epoch.
+ int64 last_modified_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. A user-friendly description of this model.
+ string description = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A descriptive name for this model.
+ string friendly_name = 14 [(google.api.field_behavior) = OPTIONAL];
+
+ // The labels associated with this model. You can use these to organize
+ // and group your models. Label keys and values can be no longer
+ // than 63 characters, can only contain lowercase letters, numeric
+ // characters, underscores and dashes. International characters are allowed.
+ // Label values are optional. Label keys must start with a letter and each
+ // label in the list must have a different key.
+ map labels = 15;
+
+ // Optional. The time when this model expires, in milliseconds since the
+ // epoch. If not present, the model will persist indefinitely. Expired models
+ // will be deleted and their storage reclaimed. The defaultTableExpirationMs
+ // property of the encapsulating dataset can be used to set a default
+ // expirationTime on newly created models.
+ int64 expiration_time = 16 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The geographic location where the model resides. This value
+ // is inherited from the dataset.
+ string location = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Custom encryption configuration (e.g., Cloud KMS keys). This shows the
+ // encryption configuration of the model data while stored in BigQuery
+ // storage. This field can be used with PatchModel to update encryption key
+ // for an already encrypted model.
+ EncryptionConfiguration encryption_configuration = 17;
+
+ // Output only. Type of the model resource.
+ ModelType model_type = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Information for all training runs in increasing order of start_time.
+ repeated TrainingRun training_runs = 9;
+
+ // Output only. Input feature columns for the model inference. If the model is
+ // trained with TRANSFORM clause, these are the input of the TRANSFORM clause.
+ repeated StandardSqlField feature_columns = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Label columns that were used to train this model.
+ // The output of the model will have a "predicted_" prefix to these columns.
+ repeated StandardSqlField label_columns = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. This field will be populated if a TRANSFORM clause was used to
+ // train a model. TRANSFORM clause (if used) takes feature_columns as input
+ // and outputs transform_columns. transform_columns then are used to train the
+ // model.
+ repeated TransformColumn transform_columns = 26
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. All hyperparameter search spaces in this model.
+ HparamSearchSpaces hparam_search_spaces = 18
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The default trial_id to use in TVFs when the trial_id is not
+ // passed in. For single-objective [hyperparameter
+ // tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview)
+ // models, this is the best trial ID. For multi-objective [hyperparameter
+ // tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview)
+ // models, this is the smallest trial ID among all Pareto optimal trials.
+ int64 default_trial_id = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Trials of a [hyperparameter
+ // tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview)
+ // model sorted by trial_id.
+ repeated HparamTuningTrial hparam_trials = 20
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. For single-objective [hyperparameter
+ // tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview)
+ // models, it only contains the best trial. For multi-objective
+ // [hyperparameter
+ // tuning](https://cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview)
+ // models, it contains all Pareto optimal trials sorted by trial_id.
+ repeated int64 optimal_trial_ids = 22
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Remote model info
+ RemoteModelInfo remote_model_info = 25
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request format for getting information about a BigQuery ML model.
+message GetModelRequest {
+ // Required. Project ID of the requested model.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the requested model.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Model ID of the requested model.
+ string model_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+message PatchModelRequest {
+ // Required. Project ID of the model to patch.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the model to patch.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Model ID of the model to patch.
+ string model_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Patched model.
+ // Follows RFC5789 patch semantics. Missing fields are not updated.
+ // To clear a field, explicitly set to default value.
+ Model model = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request format for deleting BigQuery ML models.
+message DeleteModelRequest {
+ // Required. Project ID of the model to delete.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the model to delete.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Model ID of the model to delete.
+ string model_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request format for listing BigQuery ML models.
+message ListModelsRequest {
+ // Required. Project ID of the models to list.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the models to list.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum number of results to return in a single response page.
+ // Leverage the page tokens to iterate through the entire collection.
+ google.protobuf.UInt32Value max_results = 3;
+
+ // Page token, returned by a previous call to request the next page of
+ // results
+ string page_token = 4;
+}
+
+// Response format for a single page when listing BigQuery ML models.
+message ListModelsResponse {
+ // Models in the requested dataset. Only the following fields are populated:
+ // model_reference, model_type, creation_time, last_modified_time and
+ // labels.
+ repeated Model models = 1;
+
+ // A token to request the next page of results.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/model_reference.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/model_reference.proto
new file mode 100644
index 000000000000..a9da9ac32578
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/model_reference.proto
@@ -0,0 +1,37 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "ModelReferenceProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Id path of a model.
+message ModelReference {
+ // Required. The ID of the project containing this model.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the dataset containing this model.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the model. The ID must contain only
+ // letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
+ // length is 1,024 characters.
+ string model_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/partitioning_definition.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/partitioning_definition.proto
new file mode 100644
index 000000000000..1970ac7fc9ed
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/partitioning_definition.proto
@@ -0,0 +1,49 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "PartitioningDefinitionProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// The partitioning information, which includes managed table, external table
+// and metastore partitioned table partition information.
+message PartitioningDefinition {
+ // Optional. Details about each partitioning column. This field is output only
+ // for all partitioning types other than metastore partitioned tables.
+ // BigQuery native tables only support 1 partitioning column. Other table
+ // types may support 0, 1 or more partitioning columns.
+ // For metastore partitioned tables, the order must match the definition order
+ // in the Hive Metastore, where it must match the physical layout of the
+ // table. For example,
+ //
+ // CREATE TABLE a_table(id BIGINT, name STRING)
+ // PARTITIONED BY (city STRING, state STRING).
+ //
+ // In this case the values must be ['city', 'state'] in that order.
+ repeated PartitionedColumn partitioned_column = 1
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The partitioning column information.
+message PartitionedColumn {
+ // Required. The name of the partition column.
+ optional string field = 1 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/privacy_policy.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/privacy_policy.proto
new file mode 100644
index 000000000000..ea15b2103935
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/privacy_policy.proto
@@ -0,0 +1,169 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "PrivacyPolicyProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Represents privacy policy associated with "aggregation threshold" method.
+message AggregationThresholdPolicy {
+ // Optional. The threshold for the "aggregation threshold" policy.
+ optional int64 threshold = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The privacy unit column(s) associated with this policy.
+ // For now, only one column per data source object (table, view) is allowed as
+ // a privacy unit column.
+ // Representing as a repeated field in metadata for extensibility to
+ // multiple columns in future.
+ // Duplicates and Repeated struct fields are not allowed.
+ // For nested fields, use dot notation ("outer.inner")
+ repeated string privacy_unit_columns = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents privacy policy associated with "differential privacy" method.
+message DifferentialPrivacyPolicy {
+ // Optional. The maximum epsilon value that a query can consume. If the
+ // subscriber specifies epsilon as a parameter in a SELECT query, it must be
+ // less than or equal to this value. The epsilon parameter controls the amount
+ // of noise that is added to the groups — a higher epsilon means less noise.
+ optional double max_epsilon_per_query = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The delta value that is used per query. Delta represents the
+ // probability that any row will fail to be epsilon differentially private.
+ // Indicates the risk associated with exposing aggregate rows in the result of
+ // a query.
+ optional double delta_per_query = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum groups contributed value that is used per query.
+ // Represents the maximum number of groups to which each protected entity can
+ // contribute. Changing this value does not improve or worsen privacy. The
+ // best value for accuracy and utility depends on the query and data.
+ optional int64 max_groups_contributed = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The privacy unit column associated with this policy. Differential
+ // privacy policies can only have one privacy unit column per data source
+ // object (table, view).
+ optional string privacy_unit_column = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The total epsilon budget for all queries against the
+ // privacy-protected view. Each subscriber query against this view charges the
+ // amount of epsilon they request in their query. If there is sufficient
+ // budget, then the subscriber query attempts to complete. It might still fail
+ // due to other reasons, in which case the charge is refunded. If there is
+ // insufficient budget the query is rejected. There might be multiple charge
+ // attempts if a single query references multiple views. In this case there
+ // must be sufficient budget for all charges or the query is rejected and
+ // charges are refunded in best effort. The budget does not have a refresh
+ // policy and can only be updated via ALTER VIEW or circumvented by creating a
+ // new view that can be queried with a fresh budget.
+ optional double epsilon_budget = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The total delta budget for all queries against the
+ // privacy-protected view. Each subscriber query against this view charges the
+ // amount of delta that is pre-defined by the contributor through the privacy
+ // policy delta_per_query field. If there is sufficient budget, then the
+ // subscriber query attempts to complete. It might still fail due to other
+ // reasons, in which case the charge is refunded. If there is insufficient
+ // budget the query is rejected. There might be multiple charge attempts if a
+ // single query references multiple views. In this case there must be
+ // sufficient budget for all charges or the query is rejected and charges are
+ // refunded in best effort. The budget does not have a refresh policy and can
+ // only be updated via ALTER VIEW or circumvented by creating a new view that
+ // can be queried with a fresh budget.
+ optional double delta_budget = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The epsilon budget remaining. If budget is exhausted, no more
+ // queries are allowed. Note that the budget for queries that are in progress
+ // is deducted before the query executes. If the query fails or is cancelled
+ // then the budget is refunded. In this case the amount of budget remaining
+ // can increase.
+ optional double epsilon_budget_remaining = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The delta budget remaining. If budget is exhausted, no more
+ // queries are allowed. Note that the budget for queries that are in progress
+ // is deducted before the query executes. If the query fails or is cancelled
+ // then the budget is refunded. In this case the amount of budget remaining
+ // can increase.
+ optional double delta_budget_remaining = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Represents privacy policy associated with "join restrictions". Join
+// restriction gives data providers the ability to enforce joins on the
+// 'join_allowed_columns' when data is queried from a privacy protected view.
+message JoinRestrictionPolicy {
+ // Enum for Join Restrictions policy.
+ enum JoinCondition {
+ // A join is neither required nor restricted on any column. Default value.
+ JOIN_CONDITION_UNSPECIFIED = 0;
+
+ // A join is required on at least one of the specified columns.
+ JOIN_ANY = 1;
+
+ // A join is required on all specified columns.
+ JOIN_ALL = 2;
+
+ // A join is not required, but if present it is only permitted on
+ // 'join_allowed_columns'
+ JOIN_NOT_REQUIRED = 3;
+
+ // Joins are blocked for all queries.
+ JOIN_BLOCKED = 4;
+ }
+
+ // Optional. Specifies if a join is required or not on queries for the view.
+ // Default is JOIN_CONDITION_UNSPECIFIED.
+ optional JoinCondition join_condition = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The only columns that joins are allowed on.
+ // This field is must be specified for join_conditions JOIN_ANY and JOIN_ALL
+ // and it cannot be set for JOIN_BLOCKED.
+ repeated string join_allowed_columns = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents privacy policy that contains the privacy requirements specified by
+// the data owner. Currently, this is only supported on views.
+message PrivacyPolicy {
+ // Privacy policy associated with this requirement specification. Only one of
+ // the privacy methods is allowed per data source object.
+ oneof privacy_policy {
+ // Optional. Policy used for aggregation thresholds.
+ AggregationThresholdPolicy aggregation_threshold_policy = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Policy used for differential privacy.
+ DifferentialPrivacyPolicy differential_privacy_policy = 3
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. Join restriction policy is outside of the one of policies, since
+ // this policy can be set along with other policies. This policy gives data
+ // providers the ability to enforce joins on the 'join_allowed_columns' when
+ // data is queried from a privacy protected view.
+ optional JoinRestrictionPolicy join_restriction_policy = 1
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/project.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/project.proto
new file mode 100644
index 000000000000..f084a76ff5e4
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/project.proto
@@ -0,0 +1,58 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "ProjectProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// This service provides access to BigQuery functionality related to projects.
+service ProjectService {
+ option (google.api.default_host) = "bigquery.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ // RPC to get the service account for a project used for interactions with
+ // Google Cloud KMS
+ rpc GetServiceAccount(GetServiceAccountRequest)
+ returns (GetServiceAccountResponse) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/serviceAccount"
+ };
+ }
+}
+
+// Request object of GetServiceAccount
+message GetServiceAccountRequest {
+ // Required. ID of the project.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response object of GetServiceAccount
+message GetServiceAccountResponse {
+ // The resource type of the response.
+ string kind = 1;
+
+ // The service account email address.
+ string email = 2;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/property_graph_reference.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/property_graph_reference.proto
new file mode 100644
index 000000000000..197ba9ced5c2
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/property_graph_reference.proto
@@ -0,0 +1,38 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "PropertyGraphReferenceProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Id path of a property graph.
+message PropertyGraphReference {
+ // Required. The ID of the project containing this property graph.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the dataset containing this property graph.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the property graph. The ID must contain only
+ // letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
+ // length is 256 characters.
+ string property_graph_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/query_parameter.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/query_parameter.proto
new file mode 100644
index 000000000000..afb06b34da28
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/query_parameter.proto
@@ -0,0 +1,110 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "QueryParameterProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// The type of a struct parameter.
+message QueryParameterStructType {
+ // Optional. The name of this field.
+ string name = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The type of this field.
+ QueryParameterType type = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Human-oriented description of the field.
+ string description = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The type of a query parameter.
+message QueryParameterType {
+ // Required. The top level type of this field.
+ string type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Precision (maximum number of total digits in base 10) for seconds
+ // of TIMESTAMP type.
+ //
+ // Possible values include:
+ // * 6 (Default, for TIMESTAMP type with microsecond precision)
+ // * 12 (For TIMESTAMP type with picosecond precision)
+ optional int64 timestamp_precision = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type of the array's elements, if this is an array.
+ QueryParameterType array_type = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The types of the fields of this struct, in order, if this is a
+ // struct.
+ repeated QueryParameterStructType struct_types = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The element type of the range, if this is a range.
+ QueryParameterType range_element_type = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents the value of a range.
+message RangeValue {
+ // Optional. The start value of the range. A missing value represents an
+ // unbounded start.
+ QueryParameterValue start = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The end value of the range. A missing value represents an
+ // unbounded end.
+ QueryParameterValue end = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The value of a query parameter.
+message QueryParameterValue {
+ // Optional. The value of this value, if a simple scalar type.
+ google.protobuf.StringValue value = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The array values, if this is an array type.
+ repeated QueryParameterValue array_values = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // The struct field values.
+ map struct_values = 3;
+
+ // Optional. The range value, if this is a range type.
+ RangeValue range_value = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // This field should not be used.
+ repeated google.protobuf.Value alt_struct_values = 5;
+}
+
+// A parameter given to a query.
+message QueryParameter {
+ // Optional. If unset, this is a positional parameter. Otherwise, should be
+ // unique within a query.
+ string name = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The type of this parameter.
+ QueryParameterType parameter_type = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The value of this parameter.
+ QueryParameterValue parameter_value = 3
+ [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/range_partitioning.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/range_partitioning.proto
new file mode 100644
index 000000000000..4daa0a1a4696
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/range_partitioning.proto
@@ -0,0 +1,47 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "RangePartitioningProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+message RangePartitioning {
+ // Defines the ranges for range partitioning.
+ message Range {
+ // Required. The start of range partitioning, inclusive. This field is an
+ // INT64 value represented as a string.
+ string start = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The end of range partitioning, exclusive. This field is an
+ // INT64 value represented as a string.
+ string end = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The width of each interval. This field is an INT64 value
+ // represented as a string.
+ string interval = 3 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Required. The name of the column to partition the table on. It must be a
+ // top-level, INT64 column whose mode is NULLABLE or REQUIRED.
+ string field = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Defines the ranges for range partitioning.
+ Range range = 2;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/restriction_config.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/restriction_config.proto
new file mode 100644
index 000000000000..18de57d2293a
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/restriction_config.proto
@@ -0,0 +1,40 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "RestrictionConfigProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+message RestrictionConfig {
+ // RestrictionType specifies the type of dataset/table restriction.
+ enum RestrictionType {
+ // Should never be used.
+ RESTRICTION_TYPE_UNSPECIFIED = 0;
+
+ // Restrict data egress. See [Data
+ // egress](https://cloud.google.com/bigquery/docs/analytics-hub-introduction#data_egress)
+ // for more details.
+ RESTRICTED_DATA_EGRESS = 1;
+ }
+
+ // Output only. Specifies the type of dataset/table restriction.
+ RestrictionType type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/routine.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/routine.proto
new file mode 100644
index 000000000000..9a126bc6795f
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/routine.proto
@@ -0,0 +1,616 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/cloud/bigquery/v2/error.proto";
+import "google/cloud/bigquery/v2/routine_reference.proto";
+import "google/cloud/bigquery/v2/standard_sql.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "RoutineProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// RoutineService provides management access to BigQuery routines.
+service RoutineService {
+ option (google.api.default_host) = "bigquery.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ // Gets the specified routine resource by routine ID.
+ rpc GetRoutine(GetRoutineRequest) returns (Routine) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/routines/{routine_id=*}"
+ };
+ }
+
+ // Creates a new routine in the dataset.
+ rpc InsertRoutine(InsertRoutineRequest) returns (Routine) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/routines"
+ body: "routine"
+ };
+ }
+
+ // Updates information in an existing routine. The update method replaces the
+ // entire Routine resource.
+ rpc UpdateRoutine(UpdateRoutineRequest) returns (Routine) {
+ option (google.api.http) = {
+ put: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/routines/{routine_id=*}"
+ body: "routine"
+ };
+ }
+
+ // Deletes the routine specified by routineId from the dataset.
+ rpc DeleteRoutine(DeleteRoutineRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/routines/{routine_id=*}"
+ };
+ }
+
+ // Lists all routines in the specified dataset. Requires the READER dataset
+ // role.
+ rpc ListRoutines(ListRoutinesRequest) returns (ListRoutinesResponse) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/routines"
+ };
+ }
+}
+
+// A user-defined function or a stored procedure.
+message Routine {
+ // The fine-grained type of the routine.
+ enum RoutineType {
+ // Default value.
+ ROUTINE_TYPE_UNSPECIFIED = 0;
+
+ // Non-built-in persistent scalar function.
+ SCALAR_FUNCTION = 1;
+
+ // Stored procedure.
+ PROCEDURE = 2;
+
+ // Non-built-in persistent TVF.
+ TABLE_VALUED_FUNCTION = 3;
+
+ // Non-built-in persistent aggregate function.
+ AGGREGATE_FUNCTION = 4;
+ }
+
+ // The language of the routine.
+ enum Language {
+ // Default value.
+ LANGUAGE_UNSPECIFIED = 0;
+
+ // SQL language.
+ SQL = 1;
+
+ // JavaScript language.
+ JAVASCRIPT = 2;
+
+ // Python language.
+ PYTHON = 3;
+
+ // Java language.
+ JAVA = 4;
+
+ // Scala language.
+ SCALA = 5;
+ }
+
+ // Input/output argument of a function or a stored procedure.
+ message Argument {
+ // Represents the kind of a given argument.
+ enum ArgumentKind {
+ // Default value.
+ ARGUMENT_KIND_UNSPECIFIED = 0;
+
+ // The argument is a variable with fully specified type, which can be a
+ // struct or an array, but not a table.
+ FIXED_TYPE = 1;
+
+ // The argument is any type, including struct or array, but not a table.
+ ANY_TYPE = 2;
+ }
+
+ // The input/output mode of the argument.
+ enum Mode {
+ // Default value.
+ MODE_UNSPECIFIED = 0;
+
+ // The argument is input-only.
+ IN = 1;
+
+ // The argument is output-only.
+ OUT = 2;
+
+ // The argument is both an input and an output.
+ INOUT = 3;
+ }
+
+ // Optional. The name of this argument. Can be absent for function return
+ // argument.
+ string name = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Defaults to FIXED_TYPE.
+ ArgumentKind argument_kind = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies whether the argument is input or output.
+ // Can be set for procedures only.
+ Mode mode = 3;
+
+ // Set if argument_kind == FIXED_TYPE.
+ StandardSqlDataType data_type = 4;
+
+ // Optional. Whether the argument is an aggregate function parameter.
+ // Must be Unset for routine types other than AGGREGATE_FUNCTION.
+ // For AGGREGATE_FUNCTION, if set to false, it is equivalent to adding "NOT
+ // AGGREGATE" clause in DDL; Otherwise, it is equivalent to omitting "NOT
+ // AGGREGATE" clause in DDL.
+ google.protobuf.BoolValue is_aggregate = 6
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // JavaScript UDF determinism levels.
+ //
+ // If all JavaScript UDFs are DETERMINISTIC, the query result is
+ // potentially cacheable (see below). If any JavaScript UDF is
+ // NOT_DETERMINISTIC, the query result is not cacheable.
+ //
+ // Even if a JavaScript UDF is deterministic, many other factors can prevent
+ // usage of cached query results. Example factors include but not limited to:
+ // DDL/DML, non-deterministic SQL function calls, update of referenced
+ // tables/views/UDFs or imported JavaScript libraries.
+ //
+ // SQL UDFs cannot have determinism specified. Their determinism is
+ // automatically determined.
+ enum DeterminismLevel {
+ // The determinism of the UDF is unspecified.
+ DETERMINISM_LEVEL_UNSPECIFIED = 0;
+
+ // The UDF is deterministic, meaning that 2 function calls with the same
+ // inputs always produce the same result, even across 2 query runs.
+ DETERMINISTIC = 1;
+
+ // The UDF is not deterministic.
+ NOT_DETERMINISTIC = 2;
+ }
+
+ // Security mode.
+ enum SecurityMode {
+ // The security mode of the routine is unspecified.
+ SECURITY_MODE_UNSPECIFIED = 0;
+
+ // The routine is to be executed with the privileges of the user who
+ // defines it.
+ DEFINER = 1;
+
+ // The routine is to be executed with the privileges of the user who
+ // invokes it.
+ INVOKER = 2;
+ }
+
+ // Options for a remote user-defined function.
+ message RemoteFunctionOptions {
+ // Endpoint of the user-provided remote service, e.g.
+ // ```https://us-east1-my_gcf_project.cloudfunctions.net/remote_add```
+ string endpoint = 1;
+
+ // Fully qualified name of the user-provided connection object which holds
+ // the authentication information to send requests to the remote service.
+ // Format:
+ // ```"projects/{projectId}/locations/{locationId}/connections/{connectionId}"```
+ string connection = 2;
+
+ // User-defined context as a set of key/value pairs, which will be sent as
+ // function invocation context together with batched arguments in the
+ // requests to the remote service. The total number of bytes of keys and
+ // values must be less than 8KB.
+ map user_defined_context = 3;
+
+ // Max number of rows in each batch sent to the remote service.
+ // If absent or if 0, BigQuery dynamically decides the number of rows in a
+ // batch.
+ int64 max_batching_rows = 4;
+ }
+
+ // Data governance type values. Only supports `DATA_MASKING`.
+ enum DataGovernanceType {
+ // The data governance type is unspecified.
+ DATA_GOVERNANCE_TYPE_UNSPECIFIED = 0;
+
+ // The data governance type is data masking.
+ DATA_MASKING = 1;
+ }
+
+ // Output only. A hash of this resource.
+ string etag = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Reference describing the ID of this routine.
+ RoutineReference routine_reference = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The type of routine.
+ RoutineType routine_type = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The time when this routine was created, in milliseconds since
+ // the epoch.
+ int64 creation_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when this routine was last modified, in milliseconds
+ // since the epoch.
+ int64 last_modified_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Defaults to "SQL" if remote_function_options field is absent, not
+ // set otherwise.
+ Language language = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional.
+ repeated Argument arguments = 7;
+
+ // Optional if language = "SQL"; required otherwise.
+ // Cannot be set if routine_type = "TABLE_VALUED_FUNCTION".
+ //
+ // If absent, the return type is inferred from definition_body at query time
+ // in each query that references this routine. If present, then the evaluated
+ // result will be cast to the specified returned type at query time.
+ //
+ // For example, for the functions created with the following statements:
+ //
+ // * `CREATE FUNCTION Add(x FLOAT64, y FLOAT64) RETURNS FLOAT64 AS (x + y);`
+ //
+ // * `CREATE FUNCTION Increment(x FLOAT64) AS (Add(x, 1));`
+ //
+ // * `CREATE FUNCTION Decrement(x FLOAT64) RETURNS FLOAT64 AS (Add(x, -1));`
+ //
+ // The return_type is `{type_kind: "FLOAT64"}` for `Add` and `Decrement`, and
+ // is absent for `Increment` (inferred as FLOAT64 at query time).
+ //
+ // Suppose the function `Add` is replaced by
+ // `CREATE OR REPLACE FUNCTION Add(x INT64, y INT64) AS (x + y);`
+ //
+ // Then the inferred return type of `Increment` is automatically changed to
+ // INT64 at query time, while the return type of `Decrement` remains FLOAT64.
+ StandardSqlDataType return_type = 10;
+
+ // Optional. Can be set only if routine_type = "TABLE_VALUED_FUNCTION".
+ //
+ // If absent, the return table type is inferred from definition_body at query
+ // time in each query that references this routine. If present, then the
+ // columns in the evaluated table result will be cast to match the column
+ // types specified in return table type, at query time.
+ StandardSqlTableType return_table_type = 13
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If language = "JAVASCRIPT", this field stores the path of the
+ // imported JAVASCRIPT libraries.
+ repeated string imported_libraries = 8;
+
+ // Required. The body of the routine.
+ //
+ // For functions, this is the expression in the AS clause.
+ //
+ // If `language = "SQL"`, it is the substring inside (but excluding) the
+ // parentheses. For example, for the function created with the following
+ // statement:
+ //
+ // `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, "\n", y))`
+ //
+ // The definition_body is `concat(x, "\n", y)` (\n is not replaced with
+ // linebreak).
+ //
+ // If `language="JAVASCRIPT"`, it is the evaluated string in the AS clause.
+ // For example, for the function created with the following statement:
+ //
+ // `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'`
+ //
+ // The definition_body is
+ //
+ // `return "\n";\n`
+ //
+ // Note that both \n are replaced with linebreaks.
+ //
+ // If `definition_body` references another routine, then that routine must
+ // be fully qualified with its project ID.
+ string definition_body = 9;
+
+ // Optional. The description of the routine, if defined.
+ string description = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The determinism level of the JavaScript UDF, if defined.
+ DeterminismLevel determinism_level = 12
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The security mode of the routine, if defined. If not defined, the
+ // security mode is automatically determined from the routine's configuration.
+ SecurityMode security_mode = 18 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Use this option to catch many common errors. Error checking is
+ // not exhaustive, and successfully creating a procedure doesn't guarantee
+ // that the procedure will successfully execute at runtime. If `strictMode` is
+ // set to `TRUE`, the procedure body is further checked for errors such as
+ // non-existent tables or columns. The `CREATE PROCEDURE` statement fails if
+ // the body fails any of these checks.
+ //
+ // If `strictMode` is set to `FALSE`, the procedure body is checked only for
+ // syntax. For procedures that invoke themselves recursively, specify
+ // `strictMode=FALSE` to avoid non-existent procedure errors during
+ // validation.
+ //
+ // Default value is `TRUE`.
+ google.protobuf.BoolValue strict_mode = 14
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Remote function specific options.
+ RemoteFunctionOptions remote_function_options = 15
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Spark specific options.
+ SparkOptions spark_options = 16 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set to `DATA_MASKING`, the function is validated and made
+ // available as a masking function. For more information, see [Create custom
+ // masking
+ // routines](https://cloud.google.com/bigquery/docs/user-defined-functions#custom-mask).
+ DataGovernanceType data_governance_type = 17
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Options for the Python UDF.
+ // [Preview](https://cloud.google.com/products/#product-launch-stages)
+ PythonOptions python_options = 20 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Options for the runtime of the external system executing the
+ // routine. This field is only applicable for Python UDFs.
+ // [Preview](https://cloud.google.com/products/#product-launch-stages)
+ ExternalRuntimeOptions external_runtime_options = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The build status of the routine. This field is only applicable
+ // to Python UDFs.
+ // [Preview](https://cloud.google.com/products/#product-launch-stages)
+ RoutineBuildStatus build_status = 22
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Options for a user-defined Python function.
+message PythonOptions {
+ // Required. The name of the function defined in Python code as the entry
+ // point when the Python UDF is invoked.
+ string entry_point = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A list of Python package names along with versions to be
+ // installed. Example: ["pandas>=2.1", "google-cloud-translate==3.11"]. For
+ // more information, see [Use third-party
+ // packages](https://cloud.google.com/bigquery/docs/user-defined-functions-python#third-party-packages).
+ repeated string packages = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Options for the runtime of the external system.
+message ExternalRuntimeOptions {
+ // Optional. Amount of memory provisioned for a Python UDF container instance.
+ // Format: {number}{unit} where unit is one of "M", "G", "Mi" and "Gi" (e.g.
+ // 1G, 512Mi). If not specified, the default value is 512Mi. For more
+ // information, see [Configure container limits for Python
+ // UDFs](https://cloud.google.com/bigquery/docs/user-defined-functions-python#configure-container-limits)
+ string container_memory = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Amount of CPU provisioned for a Python UDF container instance.
+ // For more information, see [Configure container limits for Python
+ // UDFs](https://cloud.google.com/bigquery/docs/user-defined-functions-python#configure-container-limits)
+ double container_cpu = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Fully qualified name of the connection whose service account will
+ // be used to execute the code in the container. Format:
+ // ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"```
+ string runtime_connection = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Maximum number of rows in each batch sent to the external
+ // runtime. If absent or if 0, BigQuery dynamically decides the number of rows
+ // in a batch.
+ int64 max_batching_rows = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Language runtime version. Example: `python-3.11`.
+ string runtime_version = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Maximum number of requests that a Cloud Run instance can handle
+ // concurrently. If absent or if `0`, a default concurrency is used.
+ int64 container_request_concurrency = 6
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Options for a user-defined Spark routine.
+message SparkOptions {
+ // Fully qualified name of the user-provided Spark connection object. Format:
+ // ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"```
+ string connection = 1;
+
+ // Runtime version. If not specified, the default runtime version is used.
+ string runtime_version = 2;
+
+ // Custom container image for the runtime environment.
+ string container_image = 3;
+
+ // Configuration properties as a set of key/value pairs, which will be passed
+ // on to the Spark application. For more information, see
+ // [Apache Spark](https://spark.apache.org/docs/latest/index.html) and the
+ // [procedure option
+ // list](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#procedure_option_list).
+ map properties = 4;
+
+ // The main file/jar URI of the Spark application. Exactly one of the
+ // definition_body field and the main_file_uri field must be set for Python.
+ // Exactly one of main_class and main_file_uri field
+ // should be set for Java/Scala language type.
+ string main_file_uri = 5;
+
+ // Python files to be placed on the PYTHONPATH for PySpark application.
+ // Supported file types: `.py`, `.egg`, and `.zip`. For more information
+ // about Apache Spark, see
+ // [Apache Spark](https://spark.apache.org/docs/latest/index.html).
+ repeated string py_file_uris = 6;
+
+ // JARs to include on the driver and executor CLASSPATH.
+ // For more information about Apache Spark, see
+ // [Apache Spark](https://spark.apache.org/docs/latest/index.html).
+ repeated string jar_uris = 7;
+
+ // Files to be placed in the working directory of each executor.
+ // For more information about Apache Spark, see
+ // [Apache Spark](https://spark.apache.org/docs/latest/index.html).
+ repeated string file_uris = 8;
+
+ // Archive files to be extracted into the working directory of each executor.
+ // For more information about Apache Spark, see
+ // [Apache Spark](https://spark.apache.org/docs/latest/index.html).
+ repeated string archive_uris = 9;
+
+ // The fully qualified name of a class in jar_uris, for example,
+ // com.example.wordcount. Exactly one of main_class and main_jar_uri field
+ // should be set for Java/Scala language type.
+ string main_class = 10;
+}
+
+// The status of a routine build.
+message RoutineBuildStatus {
+ // The build state of a routine.
+ enum BuildState {
+ // Default value.
+ BUILD_STATE_UNSPECIFIED = 0;
+
+ // The build is in progress.
+ IN_PROGRESS = 1;
+
+ // The build has succeeded.
+ SUCCEEDED = 2;
+
+ // The build has failed.
+ FAILED = 3;
+ }
+
+ // Output only. The current build state of the routine.
+ BuildState build_state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A result object that will be present only if the build has
+ // failed.
+ ErrorProto error_result = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the build state was updated last.
+ google.protobuf.Timestamp build_state_update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time taken for the image build. Populated only after the
+ // build succeeds or fails.
+ google.protobuf.Duration build_duration = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The size of the image in bytes. Populated only after the build
+ // succeeds.
+ int64 image_size_bytes = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Describes the format for getting information about a routine.
+message GetRoutineRequest {
+ // Required. Project ID of the requested routine
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the requested routine
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Routine ID of the requested routine
+ string routine_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Describes the format for inserting a routine.
+message InsertRoutineRequest {
+ // Required. Project ID of the new routine
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the new routine
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A routine resource to insert
+ Routine routine = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Describes the format for updating a routine.
+message UpdateRoutineRequest {
+ // Required. Project ID of the routine to update
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the routine to update
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Routine ID of the routine to update
+ string routine_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A routine resource which will replace the specified routine
+ Routine routine = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Describes the format for deleting a routine.
+message DeleteRoutineRequest {
+ // Required. Project ID of the routine to delete
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the routine to delete
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Routine ID of the routine to delete
+ string routine_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Describes the format for listing routines.
+message ListRoutinesRequest {
+ // Required. Project ID of the routines to list
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the routines to list
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum number of results to return in a single response page.
+ // Leverage the page tokens to iterate through the entire collection.
+ google.protobuf.UInt32Value max_results = 3;
+
+ // Page token, returned by a previous call, to request the next page of
+ // results
+ string page_token = 4;
+
+ // If set, then only the Routines matching this filter are returned.
+ // The supported format is `routineType:{RoutineType}`, where `{RoutineType}`
+ // is a RoutineType enum. For example: `routineType:SCALAR_FUNCTION`.
+ string filter = 6;
+}
+
+// Describes the format of a single result page when listing routines.
+message ListRoutinesResponse {
+ // Routines in the requested dataset. Unless read_mask is set in the request,
+ // only the following fields are populated:
+ // etag, project_id, dataset_id, routine_id, routine_type, creation_time,
+ // last_modified_time, language, and remote_function_options.
+ repeated Routine routines = 1;
+
+ // A token to request the next page of results.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/routine_reference.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/routine_reference.proto
new file mode 100644
index 000000000000..2d40b6cb92ec
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/routine_reference.proto
@@ -0,0 +1,37 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "RoutineReferenceProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Id path of a routine.
+message RoutineReference {
+ // Required. The ID of the project containing this routine.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the dataset containing this routine.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the routine. The ID must contain only
+ // letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
+ // length is 256 characters.
+ string routine_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/row_access_policy.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/row_access_policy.proto
new file mode 100644
index 000000000000..b56bc1ecf19d
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/row_access_policy.proto
@@ -0,0 +1,270 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/cloud/bigquery/v2/row_access_policy_reference.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "RowAccessPolicyProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Service for interacting with row access policies.
+service RowAccessPolicyService {
+ option (google.api.default_host) = "bigquery.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ // Lists all row access policies on the specified table.
+ rpc ListRowAccessPolicies(ListRowAccessPoliciesRequest)
+ returns (ListRowAccessPoliciesResponse) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}/rowAccessPolicies"
+ };
+ }
+
+ // Gets the specified row access policy by policy ID.
+ rpc GetRowAccessPolicy(GetRowAccessPolicyRequest) returns (RowAccessPolicy) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}/rowAccessPolicies/{policy_id=*}"
+ };
+ }
+
+ // Creates a row access policy.
+ rpc CreateRowAccessPolicy(CreateRowAccessPolicyRequest)
+ returns (RowAccessPolicy) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}/rowAccessPolicies"
+ body: "row_access_policy"
+ };
+ }
+
+ // Updates a row access policy.
+ rpc UpdateRowAccessPolicy(UpdateRowAccessPolicyRequest)
+ returns (RowAccessPolicy) {
+ option (google.api.http) = {
+ put: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}/rowAccessPolicies/{policy_id=*}"
+ body: "row_access_policy"
+ };
+ }
+
+ // Deletes a row access policy.
+ rpc DeleteRowAccessPolicy(DeleteRowAccessPolicyRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}/rowAccessPolicies/{policy_id=*}"
+ };
+ }
+
+ // Deletes provided row access policies.
+ rpc BatchDeleteRowAccessPolicies(BatchDeleteRowAccessPoliciesRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}/rowAccessPolicies:batchDelete"
+ body: "*"
+ };
+ }
+}
+
+// Request message for the ListRowAccessPolicies method.
+message ListRowAccessPoliciesRequest {
+ // Required. Project ID of the row access policies to list.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of row access policies to list.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the table to list row access policies.
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Page token, returned by a previous call, to request the next page of
+ // results.
+ string page_token = 4;
+
+ // The maximum number of results to return in a single response page. Leverage
+ // the page tokens to iterate through the entire collection.
+ int32 page_size = 5;
+}
+
+// Response message for the ListRowAccessPolicies method.
+message ListRowAccessPoliciesResponse {
+ // Row access policies on the requested table.
+ repeated RowAccessPolicy row_access_policies = 1;
+
+ // A token to request the next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for the GetRowAccessPolicy method.
+message GetRowAccessPolicyRequest {
+ // Required. Project ID of the table to get the row access policy.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the table to get the row access policy.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the table to get the row access policy.
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Policy ID of the row access policy.
+ string policy_id = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the CreateRowAccessPolicy method.
+message CreateRowAccessPolicyRequest {
+ // Required. Project ID of the table to get the row access policy.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the table to get the row access policy.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the table to get the row access policy.
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The row access policy to create.
+ RowAccessPolicy row_access_policy = 4
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the UpdateRowAccessPolicy method.
+message UpdateRowAccessPolicyRequest {
+ // Required. Project ID of the table to get the row access policy.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the table to get the row access policy.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the table to get the row access policy.
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Policy ID of the row access policy.
+ string policy_id = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The row access policy to update.
+ RowAccessPolicy row_access_policy = 5
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for the DeleteRowAccessPolicy method.
+message DeleteRowAccessPolicyRequest {
+ // Required. Project ID of the table to delete the row access policy.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the table to delete the row access policy.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the table to delete the row access policy.
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Policy ID of the row access policy.
+ string policy_id = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // If set to true, it deletes the row access policy even if it's the last row
+ // access policy on the table and the deletion will widen the access rather
+ // narrowing it.
+ optional bool force = 5;
+}
+
+// Request message for the BatchDeleteRowAccessPoliciesRequest method.
+message BatchDeleteRowAccessPoliciesRequest {
+ // Required. Project ID of the table to delete the row access policies.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the table to delete the row access policies.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the table to delete the row access policies.
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Policy IDs of the row access policies.
+ repeated string policy_ids = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // If set to true, it deletes the row access policy even if it's the last row
+ // access policy on the table and the deletion will widen the access rather
+ // narrowing it.
+ optional bool force = 5;
+}
+
+// Represents access on a subset of rows on the specified table, defined by its
+// filter predicate. Access to the subset of rows is controlled by its IAM
+// policy.
+message RowAccessPolicy {
+ // Output only. A hash of this resource.
+ string etag = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Reference describing the ID of this row access policy.
+ RowAccessPolicyReference row_access_policy_reference = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A SQL boolean expression that represents the rows defined by this
+ // row access policy, similar to the boolean expression in a WHERE clause of a
+ // SELECT query on a table.
+ // References to other tables, routines, and temporary functions are not
+ // supported.
+ //
+ // Examples: region="EU"
+ // date_field = CAST('2019-9-27' as DATE)
+ // nullable_field is not NULL
+ // numeric_field BETWEEN 1.0 AND 5.0
+ string filter_predicate = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The time when this row access policy was created, in
+ // milliseconds since the epoch.
+ google.protobuf.Timestamp creation_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when this row access policy was last modified, in
+ // milliseconds since the epoch.
+ google.protobuf.Timestamp last_modified_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Input only. The optional list of iam_member users or groups that
+ // specifies the initial members that the row-level access policy should be
+ // created with.
+ //
+ // grantees types:
+ //
+ // - "user:alice@example.com": An email address that represents a specific
+ // Google account.
+ // - "serviceAccount:my-other-app@appspot.gserviceaccount.com": An email
+ // address that represents a service account.
+ // - "group:admins@example.com": An email address that represents a Google
+ // group.
+ // - "domain:example.com":The Google Workspace domain (primary) that
+ // represents all the users of that domain.
+ // - "allAuthenticatedUsers": A special identifier that represents all service
+ // accounts and all users on the internet who have authenticated with a Google
+ // Account. This identifier includes accounts that aren't connected to a
+ // Google Workspace or Cloud Identity domain, such as personal Gmail accounts.
+ // Users who aren't authenticated, such as anonymous visitors, aren't
+ // included.
+ // - "allUsers":A special identifier that represents anyone who is on
+ // the internet, including authenticated and unauthenticated users. Because
+ // BigQuery requires authentication before a user can access the service,
+ // allUsers includes only authenticated users.
+ repeated string grantees = 6 [
+ (google.api.field_behavior) = INPUT_ONLY,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/row_access_policy_reference.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/row_access_policy_reference.proto
new file mode 100644
index 000000000000..a06945537e01
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/row_access_policy_reference.proto
@@ -0,0 +1,41 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "RowAccessPolicyReferenceProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Id path of a row access policy.
+message RowAccessPolicyReference {
+ // Required. The ID of the project containing this row access policy.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the dataset containing this row access policy.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the table containing this row access policy.
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the row access policy. The ID must contain only
+ // letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
+ // length is 256 characters.
+ string policy_id = 4 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/session_info.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/session_info.proto
new file mode 100644
index 000000000000..04228010109f
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/session_info.proto
@@ -0,0 +1,30 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "SessionInfoProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// [Preview] Information related to sessions.
+message SessionInfo {
+ // Output only. The id of the session.
+ string session_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/standard_sql.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/standard_sql.proto
new file mode 100644
index 000000000000..527087a9c5ec
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/standard_sql.proto
@@ -0,0 +1,166 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "StandardSqlProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// The data type of a variable such as a function argument.
+// Examples include:
+//
+// * INT64: `{"typeKind": "INT64"}`
+//
+// * ARRAY:
+//
+// {
+// "typeKind": "ARRAY",
+// "arrayElementType": {"typeKind": "STRING"}
+// }
+//
+// * STRUCT>:
+//
+// {
+// "typeKind": "STRUCT",
+// "structType":
+// {
+// "fields":
+// [
+// {
+// "name": "x",
+// "type": {"typeKind": "STRING"}
+// },
+// {
+// "name": "y",
+// "type":
+// {
+// "typeKind": "ARRAY",
+// "arrayElementType": {"typeKind": "DATE"}
+// }
+// }
+// ]
+// }
+// }
+//
+// * RANGE:
+//
+// {
+// "typeKind": "RANGE",
+// "rangeElementType": {"typeKind": "DATE"}
+// }
+message StandardSqlDataType {
+ // The kind of the datatype.
+ enum TypeKind {
+ // Invalid type.
+ TYPE_KIND_UNSPECIFIED = 0;
+
+ // Encoded as a string in decimal format.
+ INT64 = 2;
+
+ // Encoded as a boolean "false" or "true".
+ BOOL = 5;
+
+ // Encoded as a number, or string "NaN", "Infinity" or "-Infinity".
+ FLOAT64 = 7;
+
+ // Encoded as a string value.
+ STRING = 8;
+
+ // Encoded as a base64 string per RFC 4648, section 4.
+ BYTES = 9;
+
+ // Encoded as an RFC 3339 timestamp with mandatory "Z" time zone string:
+ // 1985-04-12T23:20:50.52Z
+ TIMESTAMP = 19;
+
+ // Encoded as RFC 3339 full-date format string: 1985-04-12
+ DATE = 10;
+
+ // Encoded as RFC 3339 partial-time format string: 23:20:50.52
+ TIME = 20;
+
+ // Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52
+ DATETIME = 21;
+
+ // Encoded as fully qualified 3 part: 0-5 15 2:30:45.6
+ INTERVAL = 26;
+
+ // Encoded as WKT
+ GEOGRAPHY = 22;
+
+ // Encoded as a decimal string.
+ NUMERIC = 23;
+
+ // Encoded as a decimal string.
+ BIGNUMERIC = 24;
+
+ // Encoded as a string.
+ JSON = 25;
+
+ // Encoded as a list with types matching Type.array_type.
+ ARRAY = 16;
+
+ // Encoded as a list with fields of type Type.struct_type[i]. List is used
+ // because a JSON object cannot have duplicate field names.
+ STRUCT = 17;
+
+ // Encoded as a pair with types matching range_element_type. Pairs must
+ // begin with "[", end with ")", and be separated by ", ".
+ RANGE = 29;
+ }
+
+ // Required. The top level type of this field.
+ // Can be any GoogleSQL data type (e.g., "INT64", "DATE", "ARRAY").
+ TypeKind type_kind = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // For complex types, the sub type information.
+ oneof sub_type {
+ // The type of the array's elements, if type_kind = "ARRAY".
+ StandardSqlDataType array_element_type = 2;
+
+ // The fields of this struct, in order, if type_kind = "STRUCT".
+ StandardSqlStructType struct_type = 3;
+
+ // The type of the range's elements, if type_kind = "RANGE".
+ StandardSqlDataType range_element_type = 4;
+ }
+}
+
+// A field or a column.
+message StandardSqlField {
+ // Optional. The name of this field. Can be absent for struct fields.
+ string name = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The type of this parameter. Absent if not explicitly
+ // specified (e.g., CREATE FUNCTION statement can omit the return type;
+ // in this case the output parameter does not have this "type" field).
+ StandardSqlDataType type = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The representation of a SQL STRUCT type.
+message StandardSqlStructType {
+ // Fields within the struct.
+ repeated StandardSqlField fields = 1;
+}
+
+// A table type
+message StandardSqlTableType {
+ // The columns in this table type
+ repeated StandardSqlField columns = 1;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/system_variable.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/system_variable.proto
new file mode 100644
index 000000000000..f9e98ec7da6f
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/system_variable.proto
@@ -0,0 +1,36 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/bigquery/v2/standard_sql.proto";
+import "google/protobuf/struct.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_multiple_files = true;
+option java_outer_classname = "SystemVariableProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// System variables given to a query.
+message SystemVariables {
+ // Output only. Data type for each system variable.
+ map types = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Value for each system variable.
+ google.protobuf.Struct values = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table.proto
new file mode 100644
index 000000000000..d3079bd3848d
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table.proto
@@ -0,0 +1,738 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/cloud/bigquery/v2/biglake_config.proto";
+import "google/cloud/bigquery/v2/clustering.proto";
+import "google/cloud/bigquery/v2/encryption_config.proto";
+import "google/cloud/bigquery/v2/error.proto";
+import "google/cloud/bigquery/v2/external_catalog_table_options.proto";
+import "google/cloud/bigquery/v2/external_data_config.proto";
+import "google/cloud/bigquery/v2/managed_table_type.proto";
+import "google/cloud/bigquery/v2/partitioning_definition.proto";
+import "google/cloud/bigquery/v2/privacy_policy.proto";
+import "google/cloud/bigquery/v2/range_partitioning.proto";
+import "google/cloud/bigquery/v2/restriction_config.proto";
+import "google/cloud/bigquery/v2/table_constraints.proto";
+import "google/cloud/bigquery/v2/table_reference.proto";
+import "google/cloud/bigquery/v2/table_schema.proto";
+import "google/cloud/bigquery/v2/time_partitioning.proto";
+import "google/cloud/bigquery/v2/udf_resource.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "TableProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// TableService provides methods for managing BigQuery tables and table-like
+// entities such as views and snapshots.
+service TableService {
+ option (google.api.default_host) = "bigquery.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/bigquery,"
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ // Gets the specified table resource by table ID.
+ // This method does not return the data in the table, it only returns the
+ // table resource, which describes the structure of this table.
+ rpc GetTable(GetTableRequest) returns (Table) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}"
+ };
+ }
+
+ // Creates a new, empty table in the dataset.
+ rpc InsertTable(InsertTableRequest) returns (Table) {
+ option (google.api.http) = {
+ post: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables"
+ body: "table"
+ };
+ }
+
+ // Updates information in an existing table. The update method replaces the
+ // entire table resource, whereas the patch method only replaces fields that
+ // are provided in the submitted table resource.
+ // This method supports RFC5789 patch semantics.
+ rpc PatchTable(UpdateOrPatchTableRequest) returns (Table) {
+ option (google.api.http) = {
+ patch: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}"
+ body: "table"
+ };
+ }
+
+ // Updates information in an existing table. The update method replaces the
+ // entire Table resource, whereas the patch method only replaces fields that
+ // are provided in the submitted Table resource.
+ rpc UpdateTable(UpdateOrPatchTableRequest) returns (Table) {
+ option (google.api.http) = {
+ put: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}"
+ body: "table"
+ };
+ }
+
+ // Deletes the table specified by tableId from the dataset.
+ // If the table contains data, all the data will be deleted.
+ rpc DeleteTable(DeleteTableRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables/{table_id=*}"
+ };
+ }
+
+ // Lists all tables in the specified dataset. Requires the READER dataset
+ // role.
+ rpc ListTables(ListTablesRequest) returns (TableList) {
+ option (google.api.http) = {
+ get: "/bigquery/v2/projects/{project_id=*}/datasets/{dataset_id=*}/tables"
+ };
+ }
+}
+
+// Replication info of a table created using `AS REPLICA` DDL like:
+// `CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv`
+message TableReplicationInfo {
+ // Replication status of the table created using `AS REPLICA` like:
+ // `CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv`
+ enum ReplicationStatus {
+ // Default value.
+ REPLICATION_STATUS_UNSPECIFIED = 0;
+
+ // Replication is Active with no errors.
+ ACTIVE = 1;
+
+ // Source object is deleted.
+ SOURCE_DELETED = 2;
+
+ // Source revoked replication permissions.
+ PERMISSION_DENIED = 3;
+
+ // Source configuration doesn’t allow replication.
+ UNSUPPORTED_CONFIGURATION = 4;
+ }
+
+ // Required. Source table reference that is replicated.
+ TableReference source_table = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Specifies the interval at which the source table is polled for
+ // updates.
+ // It's Optional. If not specified, default replication interval would be
+ // applied.
+ int64 replication_interval_ms = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Output only. If source is a materialized view, this field
+ // signifies the last refresh time of the source.
+ int64 replicated_source_last_refresh_time = 3 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. Output only. Replication status of configured replication.
+ ReplicationStatus replication_status = 4 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. Output only. Replication error that will permanently stopped
+ // table replication.
+ ErrorProto replication_error = 5 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Describes the definition of a logical view.
+message ViewDefinition {
+ // Required. A query that BigQuery executes when the view is referenced.
+ string query = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Describes user-defined function resources used in the query.
+ repeated UserDefinedFunctionResource user_defined_function_resources = 2;
+
+ // Specifies whether to use BigQuery's legacy SQL for this view.
+ // The default value is true. If set to false, the view uses
+ // BigQuery's
+ // [GoogleSQL](https://docs.cloud.google.com/bigquery/docs/introduction-sql).
+ //
+ // Queries and views that reference this view must use the same flag value.
+ // A wrapper is used here because the default value is True.
+ google.protobuf.BoolValue use_legacy_sql = 3;
+
+ // True if the column names are explicitly specified. For example by using the
+ // 'CREATE VIEW v(c1, c2) AS ...' syntax.
+ // Can only be set for GoogleSQL views.
+ bool use_explicit_column_names = 4;
+
+ // Optional. Specifies the privacy policy for the view.
+ PrivacyPolicy privacy_policy = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Foreign view representations.
+ repeated ForeignViewDefinition foreign_definitions = 6
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A view can be represented in multiple ways. Each representation has its own
+// dialect. This message stores the metadata required for these representations.
+message ForeignViewDefinition {
+ // Required. The query that defines the view.
+ string query = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Represents the dialect of the query.
+ string dialect = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Definition and configuration of a materialized view.
+message MaterializedViewDefinition {
+ // Required. A query whose results are persisted.
+ string query = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The time when this materialized view was last refreshed, in
+ // milliseconds since the epoch.
+ int64 last_refresh_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Enable automatic refresh of the materialized view when the base
+ // table is updated. The default value is "true".
+ google.protobuf.BoolValue enable_refresh = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum frequency at which this materialized view will be
+ // refreshed. The default value is "1800000" (30 minutes).
+ google.protobuf.UInt64Value refresh_interval_ms = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. This option declares the intention to construct a materialized
+ // view that isn't refreshed incrementally. Non-incremental materialized views
+ // support an expanded range of SQL queries. The
+ // `allow_non_incremental_definition` option can't be changed after the
+ // materialized view is created.
+ google.protobuf.BoolValue allow_non_incremental_definition = 6
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Status of a materialized view.
+// The last refresh timestamp status is omitted here, but is present in the
+// MaterializedViewDefinition message.
+message MaterializedViewStatus {
+ // Output only. Refresh watermark of materialized view. The base tables' data
+ // were collected into the materialized view cache until this time.
+ google.protobuf.Timestamp refresh_watermark = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Error result of the last automatic refresh. If present,
+ // indicates that the last automatic refresh was unsuccessful.
+ ErrorProto last_refresh_status = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Information about base table and snapshot time of the snapshot.
+message SnapshotDefinition {
+ // Required. Reference describing the ID of the table that was snapshot.
+ TableReference base_table_reference = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The time at which the base table was snapshot. This value is
+ // reported in the JSON response using RFC3339 format.
+ google.protobuf.Timestamp snapshot_time = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Information about base table and clone time of a table clone.
+message CloneDefinition {
+ // Required. Reference describing the ID of the table that was cloned.
+ TableReference base_table_reference = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The time at which the base table was cloned. This value is
+ // reported in the JSON response using RFC3339 format.
+ google.protobuf.Timestamp clone_time = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+message Streamingbuffer {
+ // Output only. A lower-bound estimate of the number of bytes currently in
+ // the streaming buffer.
+ uint64 estimated_bytes = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A lower-bound estimate of the number of rows currently in the
+ // streaming buffer.
+ uint64 estimated_rows = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Contains the timestamp of the oldest entry in the streaming
+ // buffer, in milliseconds since the epoch, if the streaming buffer is
+ // available.
+ fixed64 oldest_entry_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+message Table {
+ // The type of resource ID.
+ string kind = 1;
+
+ // Output only. A hash of this resource.
+ string etag = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. An opaque ID uniquely identifying the table.
+ string id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A URL that can be used to access this resource again.
+ string self_link = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Reference describing the ID of this table.
+ TableReference table_reference = 5 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A descriptive name for this table.
+ google.protobuf.StringValue friendly_name = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A user-friendly description of this table.
+ google.protobuf.StringValue description = 7
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // The labels associated with this table. You can use these to organize and
+ // group your tables. Label keys and values can be no longer than 63
+ // characters, can only contain lowercase letters, numeric characters,
+ // underscores and dashes. International characters are allowed. Label values
+ // are optional. Label keys must start with a letter and each label in the
+ // list must have a different key.
+ map labels = 8;
+
+ // Optional. Describes the schema of this table.
+ TableSchema schema = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // If specified, configures time-based partitioning for this table.
+ TimePartitioning time_partitioning = 10;
+
+ // If specified, configures range partitioning for this table.
+ RangePartitioning range_partitioning = 27;
+
+ // Clustering specification for the table. Must be specified with time-based
+ // partitioning, data in the table will be first partitioned and subsequently
+ // clustered.
+ Clustering clustering = 23;
+
+ // Optional. If set to true, queries over this table require
+ // a partition filter that can be used for partition elimination to be
+ // specified.
+ google.protobuf.BoolValue require_partition_filter = 28
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The partition information for all table formats, including
+ // managed partitioned tables, hive partitioned tables, iceberg partitioned,
+ // and metastore partitioned tables. This field is only populated for
+ // metastore partitioned tables. For other table formats, this is an output
+ // only field.
+ optional PartitioningDefinition partition_definition = 51
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The size of this table in logical bytes, excluding any data in
+ // the streaming buffer.
+ google.protobuf.Int64Value num_bytes = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The physical size of this table in bytes. This includes
+ // storage used for time travel.
+ google.protobuf.Int64Value num_physical_bytes = 26
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The number of logical bytes in the table that are considered
+ // "long-term storage".
+ google.protobuf.Int64Value num_long_term_bytes = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The number of rows of data in this table, excluding any data
+ // in the streaming buffer.
+ google.protobuf.UInt64Value num_rows = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when this table was created, in milliseconds since
+ // the epoch.
+ int64 creation_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The time when this table expires, in milliseconds since the
+ // epoch. If not present, the table will persist indefinitely. Expired tables
+ // will be deleted and their storage reclaimed. The defaultTableExpirationMs
+ // property of the encapsulating dataset can be used to set a default
+ // expirationTime on newly created tables.
+ google.protobuf.Int64Value expiration_time = 15
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The time when this table was last modified, in milliseconds
+ // since the epoch.
+ fixed64 last_modified_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Describes the table type. The following values are supported:
+ //
+ // * `TABLE`: A normal BigQuery table.
+ // * `VIEW`: A virtual table defined by a SQL query.
+ // * `EXTERNAL`: A table that references data stored in an external storage
+ // system, such as Google Cloud Storage.
+ // * `MATERIALIZED_VIEW`: A precomputed view defined by a SQL query.
+ // * `SNAPSHOT`: An immutable BigQuery table that preserves the contents of a
+ // base table at a particular time. See additional information on
+ // [table
+ // snapshots](https://cloud.google.com/bigquery/docs/table-snapshots-intro).
+ //
+ // The default value is `TABLE`.
+ string type = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The view definition.
+ ViewDefinition view = 18 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The materialized view definition.
+ MaterializedViewDefinition materialized_view = 25
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The materialized view status.
+ MaterializedViewStatus materialized_view_status = 42
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Describes the data format, location, and other properties of
+ // a table stored outside of BigQuery. By defining these properties, the data
+ // source can then be queried as if it were a standard BigQuery table.
+ ExternalDataConfiguration external_data_configuration = 19
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the configuration of a BigQuery table for Apache
+ // Iceberg.
+ BigLakeConfiguration biglake_configuration = 45
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set, overrides the default managed table type configured in
+ // the dataset.
+ ManagedTableType managed_table_type = 55
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The geographic location where the table resides. This value
+ // is inherited from the dataset.
+ string location = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Contains information regarding this table's streaming buffer,
+ // if one is present. This field will be absent if the table is not being
+ // streamed to or if there is no data in the streaming buffer.
+ Streamingbuffer streaming_buffer = 21
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Custom encryption configuration (e.g., Cloud KMS keys).
+ EncryptionConfiguration encryption_configuration = 22;
+
+ // Output only. Contains information about the snapshot. This value is set via
+ // snapshot creation.
+ SnapshotDefinition snapshot_definition = 29
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Defines the default collation specification of new STRING fields
+ // in the table. During table creation or update, if a STRING field is added
+ // to this table without explicit collation specified, then the table inherits
+ // the table default collation. A change to this field affects only fields
+ // added afterwards, and does not alter the existing fields.
+ // The following values are supported:
+ //
+ // * 'und:ci': undetermined locale, case insensitive.
+ // * '': empty string. Default to case-sensitive behavior.
+ google.protobuf.StringValue default_collation = 30
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Defines the default rounding mode specification of new decimal
+ // fields (NUMERIC OR BIGNUMERIC) in the table. During table creation or
+ // update, if a decimal field is added to this table without an explicit
+ // rounding mode specified, then the field inherits the table default
+ // rounding mode. Changing this field doesn't affect existing fields.
+ TableFieldSchema.RoundingMode default_rounding_mode = 44
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Contains information about the clone. This value is set via
+ // the clone operation.
+ CloneDefinition clone_definition = 31
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of physical bytes used by time travel storage (deleted
+ // or changed data). This data is not kept in real time, and might be delayed
+ // by a few seconds to a few minutes.
+ google.protobuf.Int64Value num_time_travel_physical_bytes = 33
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Total number of logical bytes in the table or materialized
+ // view.
+ google.protobuf.Int64Value num_total_logical_bytes = 34
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of logical bytes that are less than 90 days old.
+ google.protobuf.Int64Value num_active_logical_bytes = 35
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of logical bytes that are more than 90 days old.
+ google.protobuf.Int64Value num_long_term_logical_bytes = 36
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of physical bytes used by current live data storage.
+ // This data is not kept in real time, and might be delayed by a few seconds
+ // to a few minutes.
+ google.protobuf.Int64Value num_current_physical_bytes = 53
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The physical size of this table in bytes. This also includes
+ // storage used for time travel. This data is not kept in real time, and might
+ // be delayed by a few seconds to a few minutes.
+ google.protobuf.Int64Value num_total_physical_bytes = 37
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of physical bytes less than 90 days old. This data is
+ // not kept in real time, and might be delayed by a few seconds to a few
+ // minutes.
+ google.protobuf.Int64Value num_active_physical_bytes = 38
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of physical bytes more than 90 days old.
+ // This data is not kept in real time, and might be delayed by a few seconds
+ // to a few minutes.
+ google.protobuf.Int64Value num_long_term_physical_bytes = 39
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The number of partitions present in the table or materialized
+ // view. This data is not kept in real time, and might be delayed by a few
+ // seconds to a few minutes.
+ google.protobuf.Int64Value num_partitions = 40
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The maximum staleness of data that could be returned when the
+ // table (or stale MV) is queried. Staleness encoded as a string encoding
+ // of sql IntervalValue type.
+ string max_staleness = 41 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Output only. Restriction config for table. If set, restrict
+ // certain accesses on the table based on the config. See [Data
+ // egress](https://cloud.google.com/bigquery/docs/analytics-hub-introduction#data_egress)
+ // for more details.
+ RestrictionConfig restrictions = 46 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // Optional. Tables Primary Key and Foreign Key information
+ TableConstraints table_constraints = 47
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The [tags](https://cloud.google.com/bigquery/docs/tags) attached
+ // to this table. Tag keys are globally unique. Tag key is expected to be in
+ // the namespaced format, for example "123456789012/environment" where
+ // 123456789012 is the ID of the parent organization or project resource for
+ // this tag key. Tag value is expected to be the short name, for example
+ // "Production". See [Tag
+ // definitions](https://cloud.google.com/iam/docs/tags-access-control#definitions)
+ // for more details.
+ map resource_tags = 48
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Table replication info for table created `AS REPLICA` DDL like:
+ // `CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv`
+ TableReplicationInfo table_replication_info = 49
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Output only. Table references of all replicas currently active on
+ // the table.
+ repeated TableReference replicas = 50 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // Optional. Options defining open source compatible table.
+ ExternalCatalogTableOptions external_catalog_table_options = 54
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request format for getting table metadata.
+message GetTableRequest {
+ // TableMetadataView specifies which table information is returned.
+ enum TableMetadataView {
+ // The default value.
+ // Default to the STORAGE_STATS view.
+ TABLE_METADATA_VIEW_UNSPECIFIED = 0;
+
+ // Includes basic table information including schema and
+ // partitioning specification. This view does not include storage statistics
+ // such as numRows or numBytes. This view is significantly more efficient
+ // and should be used to support high query rates.
+ BASIC = 1;
+
+ // Includes all information in the BASIC view as well as storage statistics
+ // (numBytes, numLongTermBytes, numRows and lastModifiedTime).
+ STORAGE_STATS = 2;
+
+ // Includes all table information, including storage statistics.
+ // It returns same information as STORAGE_STATS view, but may contain
+ // additional information in the future.
+ FULL = 3;
+ }
+
+ // Required. Project ID of the requested table
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the requested table
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the requested table
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // List of table schema fields to return (comma-separated).
+ // If unspecified, all fields are returned.
+ // A fieldMask cannot be used here because the fields will automatically be
+ // converted from camelCase to snake_case and the conversion will fail if
+ // there are underscores. Since these are fields in BigQuery table schemas,
+ // underscores are allowed.
+ string selected_fields = 4;
+
+ // Optional. Specifies the view that determines which table information is
+ // returned. By default, basic table information and storage statistics
+ // (STORAGE_STATS) are returned.
+ TableMetadataView view = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request format for inserting table metadata.
+message InsertTableRequest {
+ // Required. Project ID of the new table
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the new table
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A tables resource to insert
+ Table table = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+message UpdateOrPatchTableRequest {
+ // Required. Project ID of the table to update
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the table to update
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the table to update
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A tables resource which will replace or patch the specified table
+ Table table = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. When true will autodetect schema, else will keep original schema.
+ bool autodetect_schema = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request format for deleting a table.
+message DeleteTableRequest {
+ // Required. Project ID of the table to delete
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the table to delete
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Table ID of the table to delete
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request format for enumerating tables.
+message ListTablesRequest {
+ // Required. Project ID of the tables to list
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Dataset ID of the tables to list
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The maximum number of results to return in a single response page.
+ // Leverage the page tokens to iterate through the entire collection.
+ google.protobuf.UInt32Value max_results = 3;
+
+ // Page token, returned by a previous call, to request the next page of
+ // results
+ string page_token = 4;
+}
+
+// Information about a logical view.
+message ListFormatView {
+ // True if view is defined in legacy SQL dialect,
+ // false if in GoogleSQL.
+ google.protobuf.BoolValue use_legacy_sql = 1;
+
+ // Specifies the privacy policy for the view.
+ PrivacyPolicy privacy_policy = 2;
+}
+
+message ListFormatTable {
+ // The resource type.
+ string kind = 1;
+
+ // An opaque ID of the table.
+ string id = 2;
+
+ // A reference uniquely identifying table.
+ TableReference table_reference = 3;
+
+ // The user-friendly name for this table.
+ google.protobuf.StringValue friendly_name = 4;
+
+ // The type of table.
+ string type = 5;
+
+ // The time-based partitioning for this table.
+ TimePartitioning time_partitioning = 6;
+
+ // The range partitioning for this table.
+ RangePartitioning range_partitioning = 12;
+
+ // Clustering specification for this table, if configured.
+ Clustering clustering = 11;
+
+ // The labels associated with this table. You can use these to organize
+ // and group your tables.
+ map labels = 7;
+
+ // Additional details for a view.
+ ListFormatView view = 8;
+
+ // Output only. The time when this table was created, in milliseconds since
+ // the epoch.
+ int64 creation_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The time when this table expires, in milliseconds since the
+ // epoch. If not present, the table will persist indefinitely. Expired tables
+ // will be deleted and their storage reclaimed.
+ int64 expiration_time = 10;
+
+ // Optional. If set to true, queries including this table must specify a
+ // partition filter. This filter is used for partition elimination.
+ google.protobuf.BoolValue require_partition_filter = 14
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Partial projection of the metadata for a given table in a list response.
+message TableList {
+ // The type of list.
+ string kind = 1;
+
+ // A hash of this page of results.
+ string etag = 2;
+
+ // A token to request the next page of results.
+ string next_page_token = 3;
+
+ // Tables in the requested dataset.
+ repeated ListFormatTable tables = 4;
+
+ // The total number of tables in the dataset.
+ google.protobuf.Int32Value total_items = 5;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_constraints.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_constraints.proto
new file mode 100644
index 000000000000..f188d920fbf4
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_constraints.proto
@@ -0,0 +1,66 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/cloud/bigquery/v2/table_reference.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "TableConstraintsProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Represents the primary key constraint on a table's columns.
+message PrimaryKey {
+ // Required. The columns that are composed of the primary key constraint.
+ repeated string columns = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The pair of the foreign key column and primary key column.
+message ColumnReference {
+ // Required. The column that composes the foreign key.
+ string referencing_column = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The column in the primary key that are referenced by the
+ // referencing_column.
+ string referenced_column = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Represents a foreign key constraint on a table's columns.
+message ForeignKey {
+ // Optional. Set only if the foreign key constraint is named.
+ string name = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The table that holds the primary key and is referenced by this
+ // foreign key.
+ TableReference referenced_table = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The columns that compose the foreign key.
+ repeated ColumnReference column_references = 3
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// The TableConstraints defines the primary key and foreign key.
+message TableConstraints {
+ // Optional. Represents a primary key constraint on a table's columns.
+ // Present only if the table has a primary key.
+ // The primary key is not enforced.
+ PrimaryKey primary_key = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Present only if the table has a foreign key.
+ // The foreign key is not enforced.
+ repeated ForeignKey foreign_keys = 2 [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_reference.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_reference.proto
new file mode 100644
index 000000000000..04f2034e58f4
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_reference.proto
@@ -0,0 +1,40 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "TableReferenceProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+message TableReference {
+ // Required. The ID of the project containing this table.
+ string project_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the dataset containing this table.
+ string dataset_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID of the table. The ID can contain Unicode characters in
+ // category L (letter), M (mark), N (number), Pc (connector, including
+ // underscore), Pd (dash), and Zs (space). For more information, see [General
+ // Category](https://wikipedia.org/wiki/Unicode_character_property#General_Category).
+ // The maximum length is 1,024 characters. Certain operations allow suffixing
+ // of the table ID with a partition decorator, such as
+ // `sample_table$20190123`.
+ string table_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_schema.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_schema.proto
new file mode 100644
index 000000000000..1f4d6f25358d
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/table_schema.proto
@@ -0,0 +1,342 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "TableSchemaProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+// Schema of a table
+message TableSchema {
+ // Describes the fields in a table.
+ repeated TableFieldSchema fields = 1;
+
+ // Optional. Specifies metadata of the foreign data type definition in field
+ // schema
+ // ([TableFieldSchema.foreign_type_definition][google.cloud.bigquery.v2.TableFieldSchema.foreign_type_definition]).
+ ForeignTypeInfo foreign_type_info = 3
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Metadata about the foreign data type definition such as the system
+// in which the type is defined.
+message ForeignTypeInfo {
+ // External systems, such as query engines or table formats, that have their
+ // own data types.
+ enum TypeSystem {
+ // TypeSystem not specified.
+ TYPE_SYSTEM_UNSPECIFIED = 0;
+
+ // Represents Hive data types.
+ HIVE = 1;
+ }
+
+ // Required. Specifies the system which defines the foreign data type.
+ TypeSystem type_system = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Data policy option. For more information, see
+// [Mask data by applying data policies to a
+// column](https://docs.cloud.google.com/bigquery/docs/column-data-masking#data-policies-on-column).
+message DataPolicyOption {
+ // Data policy resource name in the form of
+ // projects/project_id/locations/location_id/dataPolicies/data_policy_id.
+ optional string name = 1;
+}
+
+// A list of data policy options. For more information, see
+// [Mask data by applying data policies to a
+// column](https://docs.cloud.google.com/bigquery/docs/column-data-masking#data-policies-on-column).
+message DataPolicyList {
+ // Contains a list of data policy options. At most 9 data policies are
+ // allowed per field.
+ repeated DataPolicyOption data_policies = 1;
+}
+
+// A field in TableSchema
+message TableFieldSchema {
+ message PolicyTagList {
+ // A list of policy tag resource names. For example,
+ // "projects/1/locations/eu/taxonomies/2/policyTags/3". At most 1 policy tag
+ // is currently allowed.
+ repeated string names = 1;
+ }
+
+ message DataGovernanceTagsInfo {
+ // Optional. The data governance tags added to this field are used for
+ // field-level access control. Only one data governance tag is currently
+ // supported on a field. Tag keys are globally unique. Tag key is expected
+ // to be in the namespaced format, for example "123456789012/pii" where
+ // 123456789012 is the ID of the parent organization or project resource for
+ // this tag key. Tag value is expected to be the short name, for example
+ // "sensitive". See [Tag
+ // definitions](https://cloud.google.com/iam/docs/tags-access-control#definitions)
+ // for more details. For example:
+ // "123456789012/pii": "sensitive",
+ // "myProject/cost_center": "sales"
+ map data_governance_tags = 1
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Rounding mode options that can be used when storing NUMERIC
+ // or BIGNUMERIC values.
+ enum RoundingMode {
+ // Unspecified will default to using ROUND_HALF_AWAY_FROM_ZERO.
+ ROUNDING_MODE_UNSPECIFIED = 0;
+
+ // ROUND_HALF_AWAY_FROM_ZERO rounds half values away from zero
+ // when applying precision and scale upon writing of NUMERIC and BIGNUMERIC
+ // values.
+ // For Scale: 0
+ // 1.1, 1.2, 1.3, 1.4 => 1
+ // 1.5, 1.6, 1.7, 1.8, 1.9 => 2
+ ROUND_HALF_AWAY_FROM_ZERO = 1;
+
+ // ROUND_HALF_EVEN rounds half values to the nearest even value
+ // when applying precision and scale upon writing of NUMERIC and BIGNUMERIC
+ // values.
+ // For Scale: 0
+ // 1.1, 1.2, 1.3, 1.4 => 1
+ // 1.5 => 2
+ // 1.6, 1.7, 1.8, 1.9 => 2
+ // 2.5 => 2
+ ROUND_HALF_EVEN = 2;
+ }
+
+ // Represents the type of a field element.
+ message FieldElementType {
+ // Required. The type of a field element. For more information, see
+ // [TableFieldSchema.type][google.cloud.bigquery.v2.TableFieldSchema.type].
+ string type = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Definition of the expression used to generate the field.
+ message GeneratedExpressionInfo {
+ // Optional. The generation expression (e.g. AI.EMBED(...)) used to
+ // generated the field.
+ optional string generation_expression = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether the column generation is done asynchronously.
+ optional bool asynchronous = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether the generated column is stored in the table.
+ optional bool stored = 3 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. Definition of how values are generated for the field.
+ // Only valid for top-level schema fields (not nested fields).
+ message GeneratedColumn {
+ // Dictates when system generated values are used to populate the field.
+ enum GeneratedMode {
+ // Unspecified GeneratedMode will default to GENERATED_ALWAYS.
+ GENERATED_MODE_UNSPECIFIED = 0;
+
+ // Field can only have system generated values. Users cannot manually
+ // insert values into the field.
+ GENERATED_ALWAYS = 1;
+
+ // Use system generated values only if the user does not explicitly
+ // provide a value.
+ GENERATED_BY_DEFAULT = 2;
+ }
+
+ // Optional. Dictates when system generated values are used to populate the
+ // field.
+ optional GeneratedMode generated_mode = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Captures the metadata for the generated column. Could be either an
+ // identity column or a generated column.
+ oneof definition {
+ // Definition of the expression used to generate the field.
+ GeneratedExpressionInfo generated_expression_info = 3;
+ }
+ }
+
+ // Required. The field name. The name must contain only letters (a-z, A-Z),
+ // numbers (0-9), or underscores (_), and must start with a letter or
+ // underscore. The maximum length is 300 characters.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The field data type. Possible values include:
+ //
+ // * STRING
+ // * BYTES
+ // * INTEGER (or INT64)
+ // * FLOAT (or FLOAT64)
+ // * BOOLEAN (or BOOL)
+ // * TIMESTAMP
+ // * DATE
+ // * TIME
+ // * DATETIME
+ // * GEOGRAPHY
+ // * NUMERIC
+ // * BIGNUMERIC
+ // * JSON
+ // * RECORD (or STRUCT)
+ // * RANGE
+ //
+ // Use of RECORD/STRUCT indicates that the field contains a nested schema.
+ string type = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The field mode. Possible values include NULLABLE, REQUIRED and
+ // REPEATED. The default value is NULLABLE.
+ string mode = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Describes the nested schema fields if the type property is set
+ // to RECORD.
+ repeated TableFieldSchema fields = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The field description. The maximum length is 1,024 characters.
+ google.protobuf.StringValue description = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The policy tags attached to this field, used for field-level
+ // access control. If not set, defaults to empty policy_tags.
+ PolicyTagList policy_tags = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the data governance tags on this field. This field
+ // works with other column-level security fields as follows:
+ // - Precedence: If a data governance tag is attached to a column, it takes
+ // precedence over the policy tag attached to the column.
+ // However, if a data policy is attached to a column, it takes precedence
+ // over the data governance tag.
+ //
+ // - Patching behavior (how this field behaves during a `Table.patch` schema
+ // update):
+ // - Unset: If the `data_governance_tags_info` field is omitted
+ // from the update request, the existing tags on the column are preserved.
+ // - Empty Field: To clear data governance tags from a column, send the
+ // `data_governance_tags_info` field as an empty object. This will remove
+ // all tags from the column.
+ // - Updating tags: To replace existing tag, send the field with the
+ // new tag.
+ DataGovernanceTagsInfo data_governance_tags_info = 30
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Data policies attached to this field, used for field-level access
+ // control.
+ repeated DataPolicyOption data_policies = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies data policies attached to this field, used for
+ // field-level access control. When set, this will be the source of truth for
+ // data policy information.
+ DataPolicyList data_policy_list = 29 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Maximum length of values of this field for STRINGS or BYTES.
+ //
+ // If max_length is not specified, no maximum length constraint is imposed
+ // on this field.
+ //
+ // If type = "STRING", then max_length represents the maximum UTF-8
+ // length of strings in this field.
+ //
+ // If type = "BYTES", then max_length represents the maximum number of
+ // bytes in this field.
+ //
+ // It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES".
+ int64 max_length = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Precision (maximum number of total digits in base 10) and scale
+ // (maximum number of digits in the fractional part in base 10) constraints
+ // for values of this field for NUMERIC or BIGNUMERIC.
+ //
+ // It is invalid to set precision or scale if type ≠ "NUMERIC" and ≠
+ // "BIGNUMERIC".
+ //
+ // If precision and scale are not specified, no value range constraint is
+ // imposed on this field insofar as values are permitted by the type.
+ //
+ // Values of this NUMERIC or BIGNUMERIC field must be in this range when:
+ //
+ // * Precision (P) and scale (S) are specified:
+ // [-10P-S + 10-S,
+ // 10P-S - 10-S]
+ // * Precision (P) is specified but not scale (and thus scale is
+ // interpreted to be equal to zero):
+ // [-10P + 1, 10P - 1].
+ //
+ // Acceptable values for precision and scale if both are specified:
+ //
+ // * If type = "NUMERIC":
+ // 1 ≤ precision - scale ≤ 29 and 0 ≤ scale ≤ 9.
+ // * If type = "BIGNUMERIC":
+ // 1 ≤ precision - scale ≤ 38 and 0 ≤ scale ≤ 38.
+ //
+ // Acceptable values for precision if only precision is specified but not
+ // scale (and thus scale is interpreted to be equal to zero):
+ //
+ // * If type = "NUMERIC": 1 ≤ precision ≤ 29.
+ // * If type = "BIGNUMERIC": 1 ≤ precision ≤ 38.
+ //
+ // If scale is specified but not precision, then it is invalid.
+ int64 precision = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. See documentation for precision.
+ int64 scale = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Precision (maximum number of total digits in base 10) for seconds
+ // of TIMESTAMP type.
+ //
+ // Possible values include:
+ // * 6 (Default, for TIMESTAMP type with microsecond precision)
+ // * 12 (For TIMESTAMP type with picosecond precision)
+ google.protobuf.Int64Value timestamp_precision = 27
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the rounding mode to be used when storing values of
+ // NUMERIC and BIGNUMERIC type.
+ RoundingMode rounding_mode = 15 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Field collation can be set only when the type of field is STRING.
+ // The following values are supported:
+ //
+ // * 'und:ci': undetermined locale, case insensitive.
+ // * '': empty string. Default to case-sensitive behavior.
+ google.protobuf.StringValue collation = 13
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A SQL expression to specify the [default value]
+ // (https://cloud.google.com/bigquery/docs/default-values) for this field.
+ google.protobuf.StringValue default_value_expression = 14
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The subtype of the RANGE, if the type of this field is RANGE. If
+ // the type is RANGE, this field is required. Values for the field element
+ // type can be the following:
+ //
+ // * DATE
+ // * DATETIME
+ // * TIMESTAMP
+ FieldElementType range_element_type = 18
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Definition of the foreign data type.
+ // Only valid for top-level schema fields (not nested fields).
+ // If the type is FOREIGN, this field is required.
+ string foreign_type_definition = 23 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Definition of how values are generated for the field.
+ // Only valid for top-level schema fields (not nested fields).
+ GeneratedColumn generated_column = 28
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/time_partitioning.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/time_partitioning.proto
new file mode 100644
index 000000000000..502b09c84349
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/time_partitioning.proto
@@ -0,0 +1,44 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "TimePartitioningProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+message TimePartitioning {
+ // Required. The supported types are DAY, HOUR, MONTH, and YEAR, which will
+ // generate one partition per day, hour, month, and year, respectively.
+ string type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Number of milliseconds for which to keep the storage for a
+ // partition.
+ // A wrapper is used here because 0 is an invalid value.
+ google.protobuf.Int64Value expiration_ms = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If not set, the table is partitioned by pseudo
+ // column '_PARTITIONTIME'; if set, the table is partitioned by this field.
+ // The field must be a top-level TIMESTAMP or DATE field. Its mode must be
+ // NULLABLE or REQUIRED.
+ // A wrapper is used here because an empty string is an invalid value.
+ google.protobuf.StringValue field = 3
+ [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/udf_resource.proto b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/udf_resource.proto
new file mode 100644
index 000000000000..5e1f41bdcbb5
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/google/cloud/bigquery/v2/udf_resource.proto
@@ -0,0 +1,42 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.bigquery.v2;
+
+import "google/protobuf/wrappers.proto";
+
+option go_package = "cloud.google.com/go/bigquery/v2/apiv2/bigquerypb;bigquerypb";
+option java_outer_classname = "UdfProto";
+option java_package = "com.google.cloud.bigquery.v2";
+
+//
+// This is used for defining User Defined Function (UDF) resources only when
+// using legacy SQL. Users of GoogleSQL should leverage either DDL (e.g.
+// CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF
+// resources.
+//
+// For additional information on migrating, see:
+// https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
+message UserDefinedFunctionResource {
+ // [Pick one] A code resource to load from a Google Cloud Storage URI
+ // (gs://bucket/path).
+ google.protobuf.StringValue resource_uri = 1;
+
+ // [Pick one] An inline resource that contains code for a user-defined
+ // function (UDF). Providing a inline code resource is equivalent to providing
+ // a URI for a file containing the same code.
+ google.protobuf.StringValue inline_code = 2;
+}
diff --git a/packages/google-cloud-bigquery-api/protos/protos.d.ts b/packages/google-cloud-bigquery-api/protos/protos.d.ts
new file mode 100644
index 000000000000..eda4e5077dfa
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/protos.d.ts
@@ -0,0 +1,40969 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace bigquery. */
+ namespace bigquery {
+
+ /** Namespace v2. */
+ namespace v2 {
+
+ /** Properties of a BigLakeConfiguration. */
+ interface IBigLakeConfiguration {
+
+ /** BigLakeConfiguration connectionId */
+ connectionId?: (string|null);
+
+ /** BigLakeConfiguration storageUri */
+ storageUri?: (string|null);
+
+ /** BigLakeConfiguration fileFormat */
+ fileFormat?: (google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat|keyof typeof google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat|null);
+
+ /** BigLakeConfiguration tableFormat */
+ tableFormat?: (google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat|keyof typeof google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat|null);
+ }
+
+ /** Represents a BigLakeConfiguration. */
+ class BigLakeConfiguration implements IBigLakeConfiguration {
+
+ /**
+ * Constructs a new BigLakeConfiguration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IBigLakeConfiguration);
+
+ /** BigLakeConfiguration connectionId. */
+ public connectionId: string;
+
+ /** BigLakeConfiguration storageUri. */
+ public storageUri: string;
+
+ /** BigLakeConfiguration fileFormat. */
+ public fileFormat: (google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat|keyof typeof google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat);
+
+ /** BigLakeConfiguration tableFormat. */
+ public tableFormat: (google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat|keyof typeof google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat);
+
+ /**
+ * Creates a new BigLakeConfiguration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BigLakeConfiguration instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IBigLakeConfiguration): google.cloud.bigquery.v2.BigLakeConfiguration;
+
+ /**
+ * Encodes the specified BigLakeConfiguration message. Does not implicitly {@link google.cloud.bigquery.v2.BigLakeConfiguration.verify|verify} messages.
+ * @param message BigLakeConfiguration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IBigLakeConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BigLakeConfiguration message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BigLakeConfiguration.verify|verify} messages.
+ * @param message BigLakeConfiguration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IBigLakeConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BigLakeConfiguration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BigLakeConfiguration
+ * @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.cloud.bigquery.v2.BigLakeConfiguration;
+
+ /**
+ * Decodes a BigLakeConfiguration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BigLakeConfiguration
+ * @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.cloud.bigquery.v2.BigLakeConfiguration;
+
+ /**
+ * Verifies a BigLakeConfiguration 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 BigLakeConfiguration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BigLakeConfiguration
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.BigLakeConfiguration;
+
+ /**
+ * Creates a plain object from a BigLakeConfiguration message. Also converts values to other types if specified.
+ * @param message BigLakeConfiguration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.BigLakeConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BigLakeConfiguration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BigLakeConfiguration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BigLakeConfiguration {
+
+ /** FileFormat enum. */
+ enum FileFormat {
+ FILE_FORMAT_UNSPECIFIED = 0,
+ PARQUET = 1
+ }
+
+ /** TableFormat enum. */
+ enum TableFormat {
+ TABLE_FORMAT_UNSPECIFIED = 0,
+ ICEBERG = 1
+ }
+ }
+
+ /** Properties of a Clustering. */
+ interface IClustering {
+
+ /** Clustering fields */
+ fields?: (string[]|null);
+ }
+
+ /** Represents a Clustering. */
+ class Clustering implements IClustering {
+
+ /**
+ * Constructs a new Clustering.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IClustering);
+
+ /** Clustering fields. */
+ public fields: string[];
+
+ /**
+ * Creates a new Clustering instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Clustering instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IClustering): google.cloud.bigquery.v2.Clustering;
+
+ /**
+ * Encodes the specified Clustering message. Does not implicitly {@link google.cloud.bigquery.v2.Clustering.verify|verify} messages.
+ * @param message Clustering message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IClustering, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Clustering message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Clustering.verify|verify} messages.
+ * @param message Clustering message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IClustering, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Clustering message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Clustering
+ * @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.cloud.bigquery.v2.Clustering;
+
+ /**
+ * Decodes a Clustering message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Clustering
+ * @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.cloud.bigquery.v2.Clustering;
+
+ /**
+ * Verifies a Clustering 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 Clustering message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Clustering
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Clustering;
+
+ /**
+ * Creates a plain object from a Clustering message. Also converts values to other types if specified.
+ * @param message Clustering
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Clustering, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Clustering to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Clustering
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataFormatOptions. */
+ interface IDataFormatOptions {
+
+ /** DataFormatOptions useInt64Timestamp */
+ useInt64Timestamp?: (boolean|null);
+
+ /** DataFormatOptions timestampOutputFormat */
+ timestampOutputFormat?: (google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat|keyof typeof google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat|null);
+ }
+
+ /** Represents a DataFormatOptions. */
+ class DataFormatOptions implements IDataFormatOptions {
+
+ /**
+ * Constructs a new DataFormatOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDataFormatOptions);
+
+ /** DataFormatOptions useInt64Timestamp. */
+ public useInt64Timestamp: boolean;
+
+ /** DataFormatOptions timestampOutputFormat. */
+ public timestampOutputFormat: (google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat|keyof typeof google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat);
+
+ /**
+ * Creates a new DataFormatOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataFormatOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDataFormatOptions): google.cloud.bigquery.v2.DataFormatOptions;
+
+ /**
+ * Encodes the specified DataFormatOptions message. Does not implicitly {@link google.cloud.bigquery.v2.DataFormatOptions.verify|verify} messages.
+ * @param message DataFormatOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDataFormatOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataFormatOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DataFormatOptions.verify|verify} messages.
+ * @param message DataFormatOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDataFormatOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataFormatOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataFormatOptions
+ * @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.cloud.bigquery.v2.DataFormatOptions;
+
+ /**
+ * Decodes a DataFormatOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataFormatOptions
+ * @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.cloud.bigquery.v2.DataFormatOptions;
+
+ /**
+ * Verifies a DataFormatOptions 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 DataFormatOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataFormatOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DataFormatOptions;
+
+ /**
+ * Creates a plain object from a DataFormatOptions message. Also converts values to other types if specified.
+ * @param message DataFormatOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DataFormatOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataFormatOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataFormatOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DataFormatOptions {
+
+ /** TimestampOutputFormat enum. */
+ enum TimestampOutputFormat {
+ TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED = 0,
+ FLOAT64 = 1,
+ INT64 = 2,
+ ISO8601_STRING = 3
+ }
+ }
+
+ /** Represents a DatasetService */
+ class DatasetService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DatasetService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new DatasetService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DatasetService;
+
+ /**
+ * Calls GetDataset.
+ * @param request GetDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public getDataset(request: google.cloud.bigquery.v2.IGetDatasetRequest, callback: google.cloud.bigquery.v2.DatasetService.GetDatasetCallback): void;
+
+ /**
+ * Calls GetDataset.
+ * @param request GetDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public getDataset(request: google.cloud.bigquery.v2.IGetDatasetRequest): Promise;
+
+ /**
+ * Calls InsertDataset.
+ * @param request InsertDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public insertDataset(request: google.cloud.bigquery.v2.IInsertDatasetRequest, callback: google.cloud.bigquery.v2.DatasetService.InsertDatasetCallback): void;
+
+ /**
+ * Calls InsertDataset.
+ * @param request InsertDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public insertDataset(request: google.cloud.bigquery.v2.IInsertDatasetRequest): Promise;
+
+ /**
+ * Calls PatchDataset.
+ * @param request UpdateOrPatchDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public patchDataset(request: google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest, callback: google.cloud.bigquery.v2.DatasetService.PatchDatasetCallback): void;
+
+ /**
+ * Calls PatchDataset.
+ * @param request UpdateOrPatchDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public patchDataset(request: google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest): Promise;
+
+ /**
+ * Calls UpdateDataset.
+ * @param request UpdateOrPatchDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public updateDataset(request: google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest, callback: google.cloud.bigquery.v2.DatasetService.UpdateDatasetCallback): void;
+
+ /**
+ * Calls UpdateDataset.
+ * @param request UpdateOrPatchDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public updateDataset(request: google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest): Promise;
+
+ /**
+ * Calls DeleteDataset.
+ * @param request DeleteDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteDataset(request: google.cloud.bigquery.v2.IDeleteDatasetRequest, callback: google.cloud.bigquery.v2.DatasetService.DeleteDatasetCallback): void;
+
+ /**
+ * Calls DeleteDataset.
+ * @param request DeleteDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDataset(request: google.cloud.bigquery.v2.IDeleteDatasetRequest): Promise;
+
+ /**
+ * Calls ListDatasets.
+ * @param request ListDatasetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and DatasetList
+ */
+ public listDatasets(request: google.cloud.bigquery.v2.IListDatasetsRequest, callback: google.cloud.bigquery.v2.DatasetService.ListDatasetsCallback): void;
+
+ /**
+ * Calls ListDatasets.
+ * @param request ListDatasetsRequest message or plain object
+ * @returns Promise
+ */
+ public listDatasets(request: google.cloud.bigquery.v2.IListDatasetsRequest): Promise;
+
+ /**
+ * Calls UndeleteDataset.
+ * @param request UndeleteDatasetRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Dataset
+ */
+ public undeleteDataset(request: google.cloud.bigquery.v2.IUndeleteDatasetRequest, callback: google.cloud.bigquery.v2.DatasetService.UndeleteDatasetCallback): void;
+
+ /**
+ * Calls UndeleteDataset.
+ * @param request UndeleteDatasetRequest message or plain object
+ * @returns Promise
+ */
+ public undeleteDataset(request: google.cloud.bigquery.v2.IUndeleteDatasetRequest): Promise;
+ }
+
+ namespace DatasetService {
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|getDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type GetDatasetCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|insertDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type InsertDatasetCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|patchDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type PatchDatasetCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|updateDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Dataset) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|deleteDataset}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteDatasetCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|listDatasets}.
+ * @param error Error, if any
+ * @param [response] DatasetList
+ */
+ type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.DatasetList) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|undeleteDataset}.
+ * @param error Error, if any
+ * @param [response] Dataset
+ */
+ type UndeleteDatasetCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Dataset) => void;
+ }
+
+ /** Properties of a DatasetAccessEntry. */
+ interface IDatasetAccessEntry {
+
+ /** DatasetAccessEntry dataset */
+ dataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** DatasetAccessEntry targetTypes */
+ targetTypes?: (google.cloud.bigquery.v2.DatasetAccessEntry.TargetType[]|null);
+ }
+
+ /** Represents a DatasetAccessEntry. */
+ class DatasetAccessEntry implements IDatasetAccessEntry {
+
+ /**
+ * Constructs a new DatasetAccessEntry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDatasetAccessEntry);
+
+ /** DatasetAccessEntry dataset. */
+ public dataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** DatasetAccessEntry targetTypes. */
+ public targetTypes: google.cloud.bigquery.v2.DatasetAccessEntry.TargetType[];
+
+ /**
+ * Creates a new DatasetAccessEntry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatasetAccessEntry instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDatasetAccessEntry): google.cloud.bigquery.v2.DatasetAccessEntry;
+
+ /**
+ * Encodes the specified DatasetAccessEntry message. Does not implicitly {@link google.cloud.bigquery.v2.DatasetAccessEntry.verify|verify} messages.
+ * @param message DatasetAccessEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDatasetAccessEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatasetAccessEntry message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DatasetAccessEntry.verify|verify} messages.
+ * @param message DatasetAccessEntry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDatasetAccessEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatasetAccessEntry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatasetAccessEntry
+ * @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.cloud.bigquery.v2.DatasetAccessEntry;
+
+ /**
+ * Decodes a DatasetAccessEntry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatasetAccessEntry
+ * @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.cloud.bigquery.v2.DatasetAccessEntry;
+
+ /**
+ * Verifies a DatasetAccessEntry 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 DatasetAccessEntry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatasetAccessEntry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DatasetAccessEntry;
+
+ /**
+ * Creates a plain object from a DatasetAccessEntry message. Also converts values to other types if specified.
+ * @param message DatasetAccessEntry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DatasetAccessEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatasetAccessEntry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatasetAccessEntry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DatasetAccessEntry {
+
+ /** TargetType enum. */
+ enum TargetType {
+ TARGET_TYPE_UNSPECIFIED = 0,
+ VIEWS = 1,
+ ROUTINES = 2
+ }
+ }
+
+ /** Properties of an Access. */
+ interface IAccess {
+
+ /** Access role */
+ role?: (string|null);
+
+ /** Access userByEmail */
+ userByEmail?: (string|null);
+
+ /** Access groupByEmail */
+ groupByEmail?: (string|null);
+
+ /** Access domain */
+ domain?: (string|null);
+
+ /** Access specialGroup */
+ specialGroup?: (string|null);
+
+ /** Access iamMember */
+ iamMember?: (string|null);
+
+ /** Access view */
+ view?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** Access routine */
+ routine?: (google.cloud.bigquery.v2.IRoutineReference|null);
+
+ /** Access dataset */
+ dataset?: (google.cloud.bigquery.v2.IDatasetAccessEntry|null);
+
+ /** Access condition */
+ condition?: (google.type.IExpr|null);
+ }
+
+ /** Represents an Access. */
+ class Access implements IAccess {
+
+ /**
+ * Constructs a new Access.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IAccess);
+
+ /** Access role. */
+ public role: string;
+
+ /** Access userByEmail. */
+ public userByEmail: string;
+
+ /** Access groupByEmail. */
+ public groupByEmail: string;
+
+ /** Access domain. */
+ public domain: string;
+
+ /** Access specialGroup. */
+ public specialGroup: string;
+
+ /** Access iamMember. */
+ public iamMember: string;
+
+ /** Access view. */
+ public view?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** Access routine. */
+ public routine?: (google.cloud.bigquery.v2.IRoutineReference|null);
+
+ /** Access dataset. */
+ public dataset?: (google.cloud.bigquery.v2.IDatasetAccessEntry|null);
+
+ /** Access condition. */
+ public condition?: (google.type.IExpr|null);
+
+ /**
+ * Creates a new Access instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Access instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IAccess): google.cloud.bigquery.v2.Access;
+
+ /**
+ * Encodes the specified Access message. Does not implicitly {@link google.cloud.bigquery.v2.Access.verify|verify} messages.
+ * @param message Access message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IAccess, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Access message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Access.verify|verify} messages.
+ * @param message Access message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IAccess, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Access message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Access
+ * @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.cloud.bigquery.v2.Access;
+
+ /**
+ * Decodes an Access message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Access
+ * @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.cloud.bigquery.v2.Access;
+
+ /**
+ * Verifies an Access 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 Access message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Access
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Access;
+
+ /**
+ * Creates a plain object from an Access message. Also converts values to other types if specified.
+ * @param message Access
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Access, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Access to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Access
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Dataset. */
+ interface IDataset {
+
+ /** Dataset kind */
+ kind?: (string|null);
+
+ /** Dataset etag */
+ etag?: (string|null);
+
+ /** Dataset id */
+ id?: (string|null);
+
+ /** Dataset selfLink */
+ selfLink?: (string|null);
+
+ /** Dataset datasetReference */
+ datasetReference?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** Dataset friendlyName */
+ friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** Dataset description */
+ description?: (google.protobuf.IStringValue|null);
+
+ /** Dataset defaultTableExpirationMs */
+ defaultTableExpirationMs?: (google.protobuf.IInt64Value|null);
+
+ /** Dataset defaultPartitionExpirationMs */
+ defaultPartitionExpirationMs?: (google.protobuf.IInt64Value|null);
+
+ /** Dataset labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Dataset access */
+ access?: (google.cloud.bigquery.v2.IAccess[]|null);
+
+ /** Dataset creationTime */
+ creationTime?: (number|Long|string|null);
+
+ /** Dataset lastModifiedTime */
+ lastModifiedTime?: (number|Long|string|null);
+
+ /** Dataset location */
+ location?: (string|null);
+
+ /** Dataset defaultEncryptionConfiguration */
+ defaultEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** Dataset satisfiesPzs */
+ satisfiesPzs?: (google.protobuf.IBoolValue|null);
+
+ /** Dataset satisfiesPzi */
+ satisfiesPzi?: (google.protobuf.IBoolValue|null);
+
+ /** Dataset type */
+ type?: (string|null);
+
+ /** Dataset catalogSource */
+ catalogSource?: (string|null);
+
+ /** Dataset linkedDatasetSource */
+ linkedDatasetSource?: (google.cloud.bigquery.v2.ILinkedDatasetSource|null);
+
+ /** Dataset linkedDatasetMetadata */
+ linkedDatasetMetadata?: (google.cloud.bigquery.v2.ILinkedDatasetMetadata|null);
+
+ /** Dataset externalDatasetReference */
+ externalDatasetReference?: (google.cloud.bigquery.v2.IExternalDatasetReference|null);
+
+ /** Dataset externalCatalogDatasetOptions */
+ externalCatalogDatasetOptions?: (google.cloud.bigquery.v2.IExternalCatalogDatasetOptions|null);
+
+ /** Dataset isCaseInsensitive */
+ isCaseInsensitive?: (google.protobuf.IBoolValue|null);
+
+ /** Dataset defaultCollation */
+ defaultCollation?: (google.protobuf.IStringValue|null);
+
+ /** Dataset defaultRoundingMode */
+ defaultRoundingMode?: (google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|keyof typeof google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|null);
+
+ /** Dataset maxTimeTravelHours */
+ maxTimeTravelHours?: (google.protobuf.IInt64Value|null);
+
+ /** Dataset tags */
+ tags?: (google.cloud.bigquery.v2.IGcpTag[]|null);
+
+ /** Dataset storageBillingModel */
+ storageBillingModel?: (google.cloud.bigquery.v2.Dataset.StorageBillingModel|keyof typeof google.cloud.bigquery.v2.Dataset.StorageBillingModel|null);
+
+ /** Dataset restrictions */
+ restrictions?: (google.cloud.bigquery.v2.IRestrictionConfig|null);
+
+ /** Dataset resourceTags */
+ resourceTags?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a Dataset. */
+ class Dataset implements IDataset {
+
+ /**
+ * Constructs a new Dataset.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDataset);
+
+ /** Dataset kind. */
+ public kind: string;
+
+ /** Dataset etag. */
+ public etag: string;
+
+ /** Dataset id. */
+ public id: string;
+
+ /** Dataset selfLink. */
+ public selfLink: string;
+
+ /** Dataset datasetReference. */
+ public datasetReference?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** Dataset friendlyName. */
+ public friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** Dataset description. */
+ public description?: (google.protobuf.IStringValue|null);
+
+ /** Dataset defaultTableExpirationMs. */
+ public defaultTableExpirationMs?: (google.protobuf.IInt64Value|null);
+
+ /** Dataset defaultPartitionExpirationMs. */
+ public defaultPartitionExpirationMs?: (google.protobuf.IInt64Value|null);
+
+ /** Dataset labels. */
+ public labels: { [k: string]: string };
+
+ /** Dataset access. */
+ public access: google.cloud.bigquery.v2.IAccess[];
+
+ /** Dataset creationTime. */
+ public creationTime: (number|Long|string);
+
+ /** Dataset lastModifiedTime. */
+ public lastModifiedTime: (number|Long|string);
+
+ /** Dataset location. */
+ public location: string;
+
+ /** Dataset defaultEncryptionConfiguration. */
+ public defaultEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** Dataset satisfiesPzs. */
+ public satisfiesPzs?: (google.protobuf.IBoolValue|null);
+
+ /** Dataset satisfiesPzi. */
+ public satisfiesPzi?: (google.protobuf.IBoolValue|null);
+
+ /** Dataset type. */
+ public type: string;
+
+ /** Dataset catalogSource. */
+ public catalogSource?: (string|null);
+
+ /** Dataset linkedDatasetSource. */
+ public linkedDatasetSource?: (google.cloud.bigquery.v2.ILinkedDatasetSource|null);
+
+ /** Dataset linkedDatasetMetadata. */
+ public linkedDatasetMetadata?: (google.cloud.bigquery.v2.ILinkedDatasetMetadata|null);
+
+ /** Dataset externalDatasetReference. */
+ public externalDatasetReference?: (google.cloud.bigquery.v2.IExternalDatasetReference|null);
+
+ /** Dataset externalCatalogDatasetOptions. */
+ public externalCatalogDatasetOptions?: (google.cloud.bigquery.v2.IExternalCatalogDatasetOptions|null);
+
+ /** Dataset isCaseInsensitive. */
+ public isCaseInsensitive?: (google.protobuf.IBoolValue|null);
+
+ /** Dataset defaultCollation. */
+ public defaultCollation?: (google.protobuf.IStringValue|null);
+
+ /** Dataset defaultRoundingMode. */
+ public defaultRoundingMode: (google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|keyof typeof google.cloud.bigquery.v2.TableFieldSchema.RoundingMode);
+
+ /** Dataset maxTimeTravelHours. */
+ public maxTimeTravelHours?: (google.protobuf.IInt64Value|null);
+
+ /** Dataset tags. */
+ public tags: google.cloud.bigquery.v2.IGcpTag[];
+
+ /** Dataset storageBillingModel. */
+ public storageBillingModel: (google.cloud.bigquery.v2.Dataset.StorageBillingModel|keyof typeof google.cloud.bigquery.v2.Dataset.StorageBillingModel);
+
+ /** Dataset restrictions. */
+ public restrictions?: (google.cloud.bigquery.v2.IRestrictionConfig|null);
+
+ /** Dataset resourceTags. */
+ public resourceTags: { [k: string]: string };
+
+ /**
+ * Creates a new Dataset instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Dataset instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDataset): google.cloud.bigquery.v2.Dataset;
+
+ /**
+ * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.bigquery.v2.Dataset.verify|verify} messages.
+ * @param message Dataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Dataset.verify|verify} messages.
+ * @param message Dataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Dataset
+ * @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.cloud.bigquery.v2.Dataset;
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Dataset
+ * @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.cloud.bigquery.v2.Dataset;
+
+ /**
+ * Verifies a Dataset 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 Dataset message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Dataset
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Dataset;
+
+ /**
+ * Creates a plain object from a Dataset message. Also converts values to other types if specified.
+ * @param message Dataset
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Dataset to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Dataset
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Dataset {
+
+ /** StorageBillingModel enum. */
+ enum StorageBillingModel {
+ STORAGE_BILLING_MODEL_UNSPECIFIED = 0,
+ LOGICAL = 1,
+ PHYSICAL = 2
+ }
+ }
+
+ /** Properties of a GcpTag. */
+ interface IGcpTag {
+
+ /** GcpTag tagKey */
+ tagKey?: (string|null);
+
+ /** GcpTag tagValue */
+ tagValue?: (string|null);
+ }
+
+ /** Represents a GcpTag. */
+ class GcpTag implements IGcpTag {
+
+ /**
+ * Constructs a new GcpTag.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGcpTag);
+
+ /** GcpTag tagKey. */
+ public tagKey: string;
+
+ /** GcpTag tagValue. */
+ public tagValue: string;
+
+ /**
+ * Creates a new GcpTag instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcpTag instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGcpTag): google.cloud.bigquery.v2.GcpTag;
+
+ /**
+ * Encodes the specified GcpTag message. Does not implicitly {@link google.cloud.bigquery.v2.GcpTag.verify|verify} messages.
+ * @param message GcpTag message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGcpTag, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcpTag message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GcpTag.verify|verify} messages.
+ * @param message GcpTag message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGcpTag, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcpTag message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcpTag
+ * @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.cloud.bigquery.v2.GcpTag;
+
+ /**
+ * Decodes a GcpTag message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcpTag
+ * @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.cloud.bigquery.v2.GcpTag;
+
+ /**
+ * Verifies a GcpTag 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 GcpTag message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcpTag
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GcpTag;
+
+ /**
+ * Creates a plain object from a GcpTag message. Also converts values to other types if specified.
+ * @param message GcpTag
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GcpTag, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcpTag to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcpTag
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LinkedDatasetSource. */
+ interface ILinkedDatasetSource {
+
+ /** LinkedDatasetSource sourceDataset */
+ sourceDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+ }
+
+ /** Represents a LinkedDatasetSource. */
+ class LinkedDatasetSource implements ILinkedDatasetSource {
+
+ /**
+ * Constructs a new LinkedDatasetSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ILinkedDatasetSource);
+
+ /** LinkedDatasetSource sourceDataset. */
+ public sourceDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /**
+ * Creates a new LinkedDatasetSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LinkedDatasetSource instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ILinkedDatasetSource): google.cloud.bigquery.v2.LinkedDatasetSource;
+
+ /**
+ * Encodes the specified LinkedDatasetSource message. Does not implicitly {@link google.cloud.bigquery.v2.LinkedDatasetSource.verify|verify} messages.
+ * @param message LinkedDatasetSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ILinkedDatasetSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LinkedDatasetSource message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.LinkedDatasetSource.verify|verify} messages.
+ * @param message LinkedDatasetSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ILinkedDatasetSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LinkedDatasetSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LinkedDatasetSource
+ * @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.cloud.bigquery.v2.LinkedDatasetSource;
+
+ /**
+ * Decodes a LinkedDatasetSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LinkedDatasetSource
+ * @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.cloud.bigquery.v2.LinkedDatasetSource;
+
+ /**
+ * Verifies a LinkedDatasetSource 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 LinkedDatasetSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LinkedDatasetSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.LinkedDatasetSource;
+
+ /**
+ * Creates a plain object from a LinkedDatasetSource message. Also converts values to other types if specified.
+ * @param message LinkedDatasetSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.LinkedDatasetSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LinkedDatasetSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LinkedDatasetSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LinkedDatasetMetadata. */
+ interface ILinkedDatasetMetadata {
+
+ /** LinkedDatasetMetadata linkState */
+ linkState?: (google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState|keyof typeof google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState|null);
+ }
+
+ /** Represents a LinkedDatasetMetadata. */
+ class LinkedDatasetMetadata implements ILinkedDatasetMetadata {
+
+ /**
+ * Constructs a new LinkedDatasetMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ILinkedDatasetMetadata);
+
+ /** LinkedDatasetMetadata linkState. */
+ public linkState: (google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState|keyof typeof google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState);
+
+ /**
+ * Creates a new LinkedDatasetMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LinkedDatasetMetadata instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ILinkedDatasetMetadata): google.cloud.bigquery.v2.LinkedDatasetMetadata;
+
+ /**
+ * Encodes the specified LinkedDatasetMetadata message. Does not implicitly {@link google.cloud.bigquery.v2.LinkedDatasetMetadata.verify|verify} messages.
+ * @param message LinkedDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ILinkedDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LinkedDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.LinkedDatasetMetadata.verify|verify} messages.
+ * @param message LinkedDatasetMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ILinkedDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LinkedDatasetMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LinkedDatasetMetadata
+ * @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.cloud.bigquery.v2.LinkedDatasetMetadata;
+
+ /**
+ * Decodes a LinkedDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LinkedDatasetMetadata
+ * @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.cloud.bigquery.v2.LinkedDatasetMetadata;
+
+ /**
+ * Verifies a LinkedDatasetMetadata 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 LinkedDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LinkedDatasetMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.LinkedDatasetMetadata;
+
+ /**
+ * Creates a plain object from a LinkedDatasetMetadata message. Also converts values to other types if specified.
+ * @param message LinkedDatasetMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.LinkedDatasetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LinkedDatasetMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LinkedDatasetMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LinkedDatasetMetadata {
+
+ /** LinkState enum. */
+ enum LinkState {
+ LINK_STATE_UNSPECIFIED = 0,
+ LINKED = 1,
+ UNLINKED = 2
+ }
+ }
+
+ /** Properties of a GetDatasetRequest. */
+ interface IGetDatasetRequest {
+
+ /** GetDatasetRequest projectId */
+ projectId?: (string|null);
+
+ /** GetDatasetRequest datasetId */
+ datasetId?: (string|null);
+
+ /** GetDatasetRequest datasetView */
+ datasetView?: (google.cloud.bigquery.v2.GetDatasetRequest.DatasetView|keyof typeof google.cloud.bigquery.v2.GetDatasetRequest.DatasetView|null);
+
+ /** GetDatasetRequest accessPolicyVersion */
+ accessPolicyVersion?: (number|null);
+ }
+
+ /** Represents a GetDatasetRequest. */
+ class GetDatasetRequest implements IGetDatasetRequest {
+
+ /**
+ * Constructs a new GetDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetDatasetRequest);
+
+ /** GetDatasetRequest projectId. */
+ public projectId: string;
+
+ /** GetDatasetRequest datasetId. */
+ public datasetId: string;
+
+ /** GetDatasetRequest datasetView. */
+ public datasetView: (google.cloud.bigquery.v2.GetDatasetRequest.DatasetView|keyof typeof google.cloud.bigquery.v2.GetDatasetRequest.DatasetView);
+
+ /** GetDatasetRequest accessPolicyVersion. */
+ public accessPolicyVersion: number;
+
+ /**
+ * Creates a new GetDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetDatasetRequest): google.cloud.bigquery.v2.GetDatasetRequest;
+
+ /**
+ * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetDatasetRequest.verify|verify} messages.
+ * @param message GetDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetDatasetRequest.verify|verify} messages.
+ * @param message GetDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDatasetRequest
+ * @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.cloud.bigquery.v2.GetDatasetRequest;
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDatasetRequest
+ * @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.cloud.bigquery.v2.GetDatasetRequest;
+
+ /**
+ * Verifies a GetDatasetRequest 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 GetDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetDatasetRequest;
+
+ /**
+ * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified.
+ * @param message GetDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GetDatasetRequest {
+
+ /** DatasetView enum. */
+ enum DatasetView {
+ DATASET_VIEW_UNSPECIFIED = 0,
+ METADATA = 1,
+ ACL = 2,
+ FULL = 3
+ }
+ }
+
+ /** Properties of an InsertDatasetRequest. */
+ interface IInsertDatasetRequest {
+
+ /** InsertDatasetRequest projectId */
+ projectId?: (string|null);
+
+ /** InsertDatasetRequest dataset */
+ dataset?: (google.cloud.bigquery.v2.IDataset|null);
+
+ /** InsertDatasetRequest accessPolicyVersion */
+ accessPolicyVersion?: (number|null);
+ }
+
+ /** Represents an InsertDatasetRequest. */
+ class InsertDatasetRequest implements IInsertDatasetRequest {
+
+ /**
+ * Constructs a new InsertDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IInsertDatasetRequest);
+
+ /** InsertDatasetRequest projectId. */
+ public projectId: string;
+
+ /** InsertDatasetRequest dataset. */
+ public dataset?: (google.cloud.bigquery.v2.IDataset|null);
+
+ /** InsertDatasetRequest accessPolicyVersion. */
+ public accessPolicyVersion: number;
+
+ /**
+ * Creates a new InsertDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InsertDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IInsertDatasetRequest): google.cloud.bigquery.v2.InsertDatasetRequest;
+
+ /**
+ * Encodes the specified InsertDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.InsertDatasetRequest.verify|verify} messages.
+ * @param message InsertDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IInsertDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InsertDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.InsertDatasetRequest.verify|verify} messages.
+ * @param message InsertDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IInsertDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InsertDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InsertDatasetRequest
+ * @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.cloud.bigquery.v2.InsertDatasetRequest;
+
+ /**
+ * Decodes an InsertDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InsertDatasetRequest
+ * @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.cloud.bigquery.v2.InsertDatasetRequest;
+
+ /**
+ * Verifies an InsertDatasetRequest 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 InsertDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InsertDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.InsertDatasetRequest;
+
+ /**
+ * Creates a plain object from an InsertDatasetRequest message. Also converts values to other types if specified.
+ * @param message InsertDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.InsertDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InsertDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InsertDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateOrPatchDatasetRequest. */
+ interface IUpdateOrPatchDatasetRequest {
+
+ /** UpdateOrPatchDatasetRequest projectId */
+ projectId?: (string|null);
+
+ /** UpdateOrPatchDatasetRequest datasetId */
+ datasetId?: (string|null);
+
+ /** UpdateOrPatchDatasetRequest dataset */
+ dataset?: (google.cloud.bigquery.v2.IDataset|null);
+
+ /** UpdateOrPatchDatasetRequest updateMode */
+ updateMode?: (google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode|keyof typeof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode|null);
+
+ /** UpdateOrPatchDatasetRequest accessPolicyVersion */
+ accessPolicyVersion?: (number|null);
+ }
+
+ /** Represents an UpdateOrPatchDatasetRequest. */
+ class UpdateOrPatchDatasetRequest implements IUpdateOrPatchDatasetRequest {
+
+ /**
+ * Constructs a new UpdateOrPatchDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest);
+
+ /** UpdateOrPatchDatasetRequest projectId. */
+ public projectId: string;
+
+ /** UpdateOrPatchDatasetRequest datasetId. */
+ public datasetId: string;
+
+ /** UpdateOrPatchDatasetRequest dataset. */
+ public dataset?: (google.cloud.bigquery.v2.IDataset|null);
+
+ /** UpdateOrPatchDatasetRequest updateMode. */
+ public updateMode: (google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode|keyof typeof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode);
+
+ /** UpdateOrPatchDatasetRequest accessPolicyVersion. */
+ public accessPolicyVersion: number;
+
+ /**
+ * Creates a new UpdateOrPatchDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateOrPatchDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest): google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest;
+
+ /**
+ * Encodes the specified UpdateOrPatchDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.verify|verify} messages.
+ * @param message UpdateOrPatchDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateOrPatchDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.verify|verify} messages.
+ * @param message UpdateOrPatchDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateOrPatchDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateOrPatchDatasetRequest
+ * @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.cloud.bigquery.v2.UpdateOrPatchDatasetRequest;
+
+ /**
+ * Decodes an UpdateOrPatchDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateOrPatchDatasetRequest
+ * @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.cloud.bigquery.v2.UpdateOrPatchDatasetRequest;
+
+ /**
+ * Verifies an UpdateOrPatchDatasetRequest 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 UpdateOrPatchDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateOrPatchDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest;
+
+ /**
+ * Creates a plain object from an UpdateOrPatchDatasetRequest message. Also converts values to other types if specified.
+ * @param message UpdateOrPatchDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateOrPatchDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateOrPatchDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UpdateOrPatchDatasetRequest {
+
+ /** UpdateMode enum. */
+ enum UpdateMode {
+ UPDATE_MODE_UNSPECIFIED = 0,
+ UPDATE_METADATA = 1,
+ UPDATE_ACL = 2,
+ UPDATE_FULL = 3
+ }
+ }
+
+ /** Properties of a DeleteDatasetRequest. */
+ interface IDeleteDatasetRequest {
+
+ /** DeleteDatasetRequest projectId */
+ projectId?: (string|null);
+
+ /** DeleteDatasetRequest datasetId */
+ datasetId?: (string|null);
+
+ /** DeleteDatasetRequest deleteContents */
+ deleteContents?: (boolean|null);
+ }
+
+ /** Represents a DeleteDatasetRequest. */
+ class DeleteDatasetRequest implements IDeleteDatasetRequest {
+
+ /**
+ * Constructs a new DeleteDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDeleteDatasetRequest);
+
+ /** DeleteDatasetRequest projectId. */
+ public projectId: string;
+
+ /** DeleteDatasetRequest datasetId. */
+ public datasetId: string;
+
+ /** DeleteDatasetRequest deleteContents. */
+ public deleteContents: boolean;
+
+ /**
+ * Creates a new DeleteDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDeleteDatasetRequest): google.cloud.bigquery.v2.DeleteDatasetRequest;
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.DeleteDatasetRequest.verify|verify} messages.
+ * @param message DeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DeleteDatasetRequest.verify|verify} messages.
+ * @param message DeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDatasetRequest
+ * @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.cloud.bigquery.v2.DeleteDatasetRequest;
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDatasetRequest
+ * @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.cloud.bigquery.v2.DeleteDatasetRequest;
+
+ /**
+ * Verifies a DeleteDatasetRequest 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 DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DeleteDatasetRequest;
+
+ /**
+ * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified.
+ * @param message DeleteDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatasetsRequest. */
+ interface IListDatasetsRequest {
+
+ /** ListDatasetsRequest projectId */
+ projectId?: (string|null);
+
+ /** ListDatasetsRequest maxResults */
+ maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** ListDatasetsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListDatasetsRequest all */
+ all?: (boolean|null);
+
+ /** ListDatasetsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListDatasetsRequest. */
+ class ListDatasetsRequest implements IListDatasetsRequest {
+
+ /**
+ * Constructs a new ListDatasetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListDatasetsRequest);
+
+ /** ListDatasetsRequest projectId. */
+ public projectId: string;
+
+ /** ListDatasetsRequest maxResults. */
+ public maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** ListDatasetsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListDatasetsRequest all. */
+ public all: boolean;
+
+ /** ListDatasetsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListDatasetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatasetsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListDatasetsRequest): google.cloud.bigquery.v2.ListDatasetsRequest;
+
+ /**
+ * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.bigquery.v2.ListDatasetsRequest.verify|verify} messages.
+ * @param message ListDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListDatasetsRequest.verify|verify} messages.
+ * @param message ListDatasetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatasetsRequest
+ * @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.cloud.bigquery.v2.ListDatasetsRequest;
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatasetsRequest
+ * @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.cloud.bigquery.v2.ListDatasetsRequest;
+
+ /**
+ * Verifies a ListDatasetsRequest 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 ListDatasetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatasetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListDatasetsRequest;
+
+ /**
+ * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified.
+ * @param message ListDatasetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatasetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatasetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFormatDataset. */
+ interface IListFormatDataset {
+
+ /** ListFormatDataset kind */
+ kind?: (string|null);
+
+ /** ListFormatDataset id */
+ id?: (string|null);
+
+ /** ListFormatDataset datasetReference */
+ datasetReference?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** ListFormatDataset labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ListFormatDataset friendlyName */
+ friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** ListFormatDataset location */
+ location?: (string|null);
+
+ /** ListFormatDataset type */
+ type?: (string|null);
+
+ /** ListFormatDataset catalogSource */
+ catalogSource?: (string|null);
+
+ /** ListFormatDataset externalDatasetReference */
+ externalDatasetReference?: (google.cloud.bigquery.v2.IExternalDatasetReference|null);
+ }
+
+ /** Represents a ListFormatDataset. */
+ class ListFormatDataset implements IListFormatDataset {
+
+ /**
+ * Constructs a new ListFormatDataset.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListFormatDataset);
+
+ /** ListFormatDataset kind. */
+ public kind: string;
+
+ /** ListFormatDataset id. */
+ public id: string;
+
+ /** ListFormatDataset datasetReference. */
+ public datasetReference?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** ListFormatDataset labels. */
+ public labels: { [k: string]: string };
+
+ /** ListFormatDataset friendlyName. */
+ public friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** ListFormatDataset location. */
+ public location: string;
+
+ /** ListFormatDataset type. */
+ public type: string;
+
+ /** ListFormatDataset catalogSource. */
+ public catalogSource?: (string|null);
+
+ /** ListFormatDataset externalDatasetReference. */
+ public externalDatasetReference?: (google.cloud.bigquery.v2.IExternalDatasetReference|null);
+
+ /**
+ * Creates a new ListFormatDataset instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFormatDataset instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListFormatDataset): google.cloud.bigquery.v2.ListFormatDataset;
+
+ /**
+ * Encodes the specified ListFormatDataset message. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatDataset.verify|verify} messages.
+ * @param message ListFormatDataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListFormatDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFormatDataset message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatDataset.verify|verify} messages.
+ * @param message ListFormatDataset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListFormatDataset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFormatDataset message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFormatDataset
+ * @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.cloud.bigquery.v2.ListFormatDataset;
+
+ /**
+ * Decodes a ListFormatDataset message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFormatDataset
+ * @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.cloud.bigquery.v2.ListFormatDataset;
+
+ /**
+ * Verifies a ListFormatDataset 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 ListFormatDataset message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFormatDataset
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListFormatDataset;
+
+ /**
+ * Creates a plain object from a ListFormatDataset message. Also converts values to other types if specified.
+ * @param message ListFormatDataset
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListFormatDataset, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFormatDataset to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFormatDataset
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DatasetList. */
+ interface IDatasetList {
+
+ /** DatasetList kind */
+ kind?: (string|null);
+
+ /** DatasetList etag */
+ etag?: (string|null);
+
+ /** DatasetList nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** DatasetList datasets */
+ datasets?: (google.cloud.bigquery.v2.IListFormatDataset[]|null);
+
+ /** DatasetList unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a DatasetList. */
+ class DatasetList implements IDatasetList {
+
+ /**
+ * Constructs a new DatasetList.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDatasetList);
+
+ /** DatasetList kind. */
+ public kind: string;
+
+ /** DatasetList etag. */
+ public etag: string;
+
+ /** DatasetList nextPageToken. */
+ public nextPageToken: string;
+
+ /** DatasetList datasets. */
+ public datasets: google.cloud.bigquery.v2.IListFormatDataset[];
+
+ /** DatasetList unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new DatasetList instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatasetList instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDatasetList): google.cloud.bigquery.v2.DatasetList;
+
+ /**
+ * Encodes the specified DatasetList message. Does not implicitly {@link google.cloud.bigquery.v2.DatasetList.verify|verify} messages.
+ * @param message DatasetList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDatasetList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatasetList message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DatasetList.verify|verify} messages.
+ * @param message DatasetList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDatasetList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatasetList message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatasetList
+ * @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.cloud.bigquery.v2.DatasetList;
+
+ /**
+ * Decodes a DatasetList message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatasetList
+ * @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.cloud.bigquery.v2.DatasetList;
+
+ /**
+ * Verifies a DatasetList 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 DatasetList message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatasetList
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DatasetList;
+
+ /**
+ * Creates a plain object from a DatasetList message. Also converts values to other types if specified.
+ * @param message DatasetList
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DatasetList, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatasetList to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatasetList
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeleteDatasetRequest. */
+ interface IUndeleteDatasetRequest {
+
+ /** UndeleteDatasetRequest projectId */
+ projectId?: (string|null);
+
+ /** UndeleteDatasetRequest datasetId */
+ datasetId?: (string|null);
+
+ /** UndeleteDatasetRequest deletionTime */
+ deletionTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an UndeleteDatasetRequest. */
+ class UndeleteDatasetRequest implements IUndeleteDatasetRequest {
+
+ /**
+ * Constructs a new UndeleteDatasetRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IUndeleteDatasetRequest);
+
+ /** UndeleteDatasetRequest projectId. */
+ public projectId: string;
+
+ /** UndeleteDatasetRequest datasetId. */
+ public datasetId: string;
+
+ /** UndeleteDatasetRequest deletionTime. */
+ public deletionTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new UndeleteDatasetRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeleteDatasetRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IUndeleteDatasetRequest): google.cloud.bigquery.v2.UndeleteDatasetRequest;
+
+ /**
+ * Encodes the specified UndeleteDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.UndeleteDatasetRequest.verify|verify} messages.
+ * @param message UndeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IUndeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.UndeleteDatasetRequest.verify|verify} messages.
+ * @param message UndeleteDatasetRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IUndeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeleteDatasetRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeleteDatasetRequest
+ * @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.cloud.bigquery.v2.UndeleteDatasetRequest;
+
+ /**
+ * Decodes an UndeleteDatasetRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeleteDatasetRequest
+ * @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.cloud.bigquery.v2.UndeleteDatasetRequest;
+
+ /**
+ * Verifies an UndeleteDatasetRequest 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 UndeleteDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeleteDatasetRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.UndeleteDatasetRequest;
+
+ /**
+ * Creates a plain object from an UndeleteDatasetRequest message. Also converts values to other types if specified.
+ * @param message UndeleteDatasetRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.UndeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeleteDatasetRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeleteDatasetRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DatasetReference. */
+ interface IDatasetReference {
+
+ /** DatasetReference datasetId */
+ datasetId?: (string|null);
+
+ /** DatasetReference projectId */
+ projectId?: (string|null);
+ }
+
+ /** Represents a DatasetReference. */
+ class DatasetReference implements IDatasetReference {
+
+ /**
+ * Constructs a new DatasetReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDatasetReference);
+
+ /** DatasetReference datasetId. */
+ public datasetId: string;
+
+ /** DatasetReference projectId. */
+ public projectId: string;
+
+ /**
+ * Creates a new DatasetReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatasetReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDatasetReference): google.cloud.bigquery.v2.DatasetReference;
+
+ /**
+ * Encodes the specified DatasetReference message. Does not implicitly {@link google.cloud.bigquery.v2.DatasetReference.verify|verify} messages.
+ * @param message DatasetReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDatasetReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatasetReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DatasetReference.verify|verify} messages.
+ * @param message DatasetReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDatasetReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatasetReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatasetReference
+ * @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.cloud.bigquery.v2.DatasetReference;
+
+ /**
+ * Decodes a DatasetReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatasetReference
+ * @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.cloud.bigquery.v2.DatasetReference;
+
+ /**
+ * Verifies a DatasetReference 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 DatasetReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatasetReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DatasetReference;
+
+ /**
+ * Creates a plain object from a DatasetReference message. Also converts values to other types if specified.
+ * @param message DatasetReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DatasetReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatasetReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatasetReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EncryptionConfiguration. */
+ interface IEncryptionConfiguration {
+
+ /** EncryptionConfiguration kmsKeyName */
+ kmsKeyName?: (google.protobuf.IStringValue|null);
+ }
+
+ /** Represents an EncryptionConfiguration. */
+ class EncryptionConfiguration implements IEncryptionConfiguration {
+
+ /**
+ * Constructs a new EncryptionConfiguration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IEncryptionConfiguration);
+
+ /** EncryptionConfiguration kmsKeyName. */
+ public kmsKeyName?: (google.protobuf.IStringValue|null);
+
+ /**
+ * Creates a new EncryptionConfiguration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EncryptionConfiguration instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IEncryptionConfiguration): google.cloud.bigquery.v2.EncryptionConfiguration;
+
+ /**
+ * Encodes the specified EncryptionConfiguration message. Does not implicitly {@link google.cloud.bigquery.v2.EncryptionConfiguration.verify|verify} messages.
+ * @param message EncryptionConfiguration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IEncryptionConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EncryptionConfiguration message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.EncryptionConfiguration.verify|verify} messages.
+ * @param message EncryptionConfiguration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IEncryptionConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EncryptionConfiguration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EncryptionConfiguration
+ * @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.cloud.bigquery.v2.EncryptionConfiguration;
+
+ /**
+ * Decodes an EncryptionConfiguration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EncryptionConfiguration
+ * @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.cloud.bigquery.v2.EncryptionConfiguration;
+
+ /**
+ * Verifies an EncryptionConfiguration 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 EncryptionConfiguration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EncryptionConfiguration
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.EncryptionConfiguration;
+
+ /**
+ * Creates a plain object from an EncryptionConfiguration message. Also converts values to other types if specified.
+ * @param message EncryptionConfiguration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.EncryptionConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EncryptionConfiguration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EncryptionConfiguration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExternalCatalogDatasetOptions. */
+ interface IExternalCatalogDatasetOptions {
+
+ /** ExternalCatalogDatasetOptions parameters */
+ parameters?: ({ [k: string]: string }|null);
+
+ /** ExternalCatalogDatasetOptions defaultStorageLocationUri */
+ defaultStorageLocationUri?: (string|null);
+ }
+
+ /** Represents an ExternalCatalogDatasetOptions. */
+ class ExternalCatalogDatasetOptions implements IExternalCatalogDatasetOptions {
+
+ /**
+ * Constructs a new ExternalCatalogDatasetOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExternalCatalogDatasetOptions);
+
+ /** ExternalCatalogDatasetOptions parameters. */
+ public parameters: { [k: string]: string };
+
+ /** ExternalCatalogDatasetOptions defaultStorageLocationUri. */
+ public defaultStorageLocationUri: string;
+
+ /**
+ * Creates a new ExternalCatalogDatasetOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExternalCatalogDatasetOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExternalCatalogDatasetOptions): google.cloud.bigquery.v2.ExternalCatalogDatasetOptions;
+
+ /**
+ * Encodes the specified ExternalCatalogDatasetOptions message. Does not implicitly {@link google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.verify|verify} messages.
+ * @param message ExternalCatalogDatasetOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExternalCatalogDatasetOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExternalCatalogDatasetOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.verify|verify} messages.
+ * @param message ExternalCatalogDatasetOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExternalCatalogDatasetOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExternalCatalogDatasetOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExternalCatalogDatasetOptions
+ * @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.cloud.bigquery.v2.ExternalCatalogDatasetOptions;
+
+ /**
+ * Decodes an ExternalCatalogDatasetOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExternalCatalogDatasetOptions
+ * @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.cloud.bigquery.v2.ExternalCatalogDatasetOptions;
+
+ /**
+ * Verifies an ExternalCatalogDatasetOptions 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 ExternalCatalogDatasetOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExternalCatalogDatasetOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExternalCatalogDatasetOptions;
+
+ /**
+ * Creates a plain object from an ExternalCatalogDatasetOptions message. Also converts values to other types if specified.
+ * @param message ExternalCatalogDatasetOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExternalCatalogDatasetOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExternalCatalogDatasetOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExternalCatalogDatasetOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExternalDatasetReference. */
+ interface IExternalDatasetReference {
+
+ /** ExternalDatasetReference externalSource */
+ externalSource?: (string|null);
+
+ /** ExternalDatasetReference connection */
+ connection?: (string|null);
+ }
+
+ /** Represents an ExternalDatasetReference. */
+ class ExternalDatasetReference implements IExternalDatasetReference {
+
+ /**
+ * Constructs a new ExternalDatasetReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExternalDatasetReference);
+
+ /** ExternalDatasetReference externalSource. */
+ public externalSource: string;
+
+ /** ExternalDatasetReference connection. */
+ public connection: string;
+
+ /**
+ * Creates a new ExternalDatasetReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExternalDatasetReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExternalDatasetReference): google.cloud.bigquery.v2.ExternalDatasetReference;
+
+ /**
+ * Encodes the specified ExternalDatasetReference message. Does not implicitly {@link google.cloud.bigquery.v2.ExternalDatasetReference.verify|verify} messages.
+ * @param message ExternalDatasetReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExternalDatasetReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExternalDatasetReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExternalDatasetReference.verify|verify} messages.
+ * @param message ExternalDatasetReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExternalDatasetReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExternalDatasetReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExternalDatasetReference
+ * @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.cloud.bigquery.v2.ExternalDatasetReference;
+
+ /**
+ * Decodes an ExternalDatasetReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExternalDatasetReference
+ * @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.cloud.bigquery.v2.ExternalDatasetReference;
+
+ /**
+ * Verifies an ExternalDatasetReference 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 ExternalDatasetReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExternalDatasetReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExternalDatasetReference;
+
+ /**
+ * Creates a plain object from an ExternalDatasetReference message. Also converts values to other types if specified.
+ * @param message ExternalDatasetReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExternalDatasetReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExternalDatasetReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExternalDatasetReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestrictionConfig. */
+ interface IRestrictionConfig {
+
+ /** RestrictionConfig type */
+ type?: (google.cloud.bigquery.v2.RestrictionConfig.RestrictionType|keyof typeof google.cloud.bigquery.v2.RestrictionConfig.RestrictionType|null);
+ }
+
+ /** Represents a RestrictionConfig. */
+ class RestrictionConfig implements IRestrictionConfig {
+
+ /**
+ * Constructs a new RestrictionConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRestrictionConfig);
+
+ /** RestrictionConfig type. */
+ public type: (google.cloud.bigquery.v2.RestrictionConfig.RestrictionType|keyof typeof google.cloud.bigquery.v2.RestrictionConfig.RestrictionType);
+
+ /**
+ * Creates a new RestrictionConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestrictionConfig instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRestrictionConfig): google.cloud.bigquery.v2.RestrictionConfig;
+
+ /**
+ * Encodes the specified RestrictionConfig message. Does not implicitly {@link google.cloud.bigquery.v2.RestrictionConfig.verify|verify} messages.
+ * @param message RestrictionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRestrictionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestrictionConfig message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RestrictionConfig.verify|verify} messages.
+ * @param message RestrictionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRestrictionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestrictionConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestrictionConfig
+ * @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.cloud.bigquery.v2.RestrictionConfig;
+
+ /**
+ * Decodes a RestrictionConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestrictionConfig
+ * @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.cloud.bigquery.v2.RestrictionConfig;
+
+ /**
+ * Verifies a RestrictionConfig 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 RestrictionConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestrictionConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RestrictionConfig;
+
+ /**
+ * Creates a plain object from a RestrictionConfig message. Also converts values to other types if specified.
+ * @param message RestrictionConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RestrictionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestrictionConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestrictionConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RestrictionConfig {
+
+ /** RestrictionType enum. */
+ enum RestrictionType {
+ RESTRICTION_TYPE_UNSPECIFIED = 0,
+ RESTRICTED_DATA_EGRESS = 1
+ }
+ }
+
+ /** Properties of a RoutineReference. */
+ interface IRoutineReference {
+
+ /** RoutineReference projectId */
+ projectId?: (string|null);
+
+ /** RoutineReference datasetId */
+ datasetId?: (string|null);
+
+ /** RoutineReference routineId */
+ routineId?: (string|null);
+ }
+
+ /** Represents a RoutineReference. */
+ class RoutineReference implements IRoutineReference {
+
+ /**
+ * Constructs a new RoutineReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRoutineReference);
+
+ /** RoutineReference projectId. */
+ public projectId: string;
+
+ /** RoutineReference datasetId. */
+ public datasetId: string;
+
+ /** RoutineReference routineId. */
+ public routineId: string;
+
+ /**
+ * Creates a new RoutineReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RoutineReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRoutineReference): google.cloud.bigquery.v2.RoutineReference;
+
+ /**
+ * Encodes the specified RoutineReference message. Does not implicitly {@link google.cloud.bigquery.v2.RoutineReference.verify|verify} messages.
+ * @param message RoutineReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRoutineReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RoutineReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RoutineReference.verify|verify} messages.
+ * @param message RoutineReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRoutineReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RoutineReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RoutineReference
+ * @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.cloud.bigquery.v2.RoutineReference;
+
+ /**
+ * Decodes a RoutineReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RoutineReference
+ * @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.cloud.bigquery.v2.RoutineReference;
+
+ /**
+ * Verifies a RoutineReference 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 RoutineReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RoutineReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RoutineReference;
+
+ /**
+ * Creates a plain object from a RoutineReference message. Also converts values to other types if specified.
+ * @param message RoutineReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RoutineReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RoutineReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RoutineReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableReference. */
+ interface ITableReference {
+
+ /** TableReference projectId */
+ projectId?: (string|null);
+
+ /** TableReference datasetId */
+ datasetId?: (string|null);
+
+ /** TableReference tableId */
+ tableId?: (string|null);
+ }
+
+ /** Represents a TableReference. */
+ class TableReference implements ITableReference {
+
+ /**
+ * Constructs a new TableReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITableReference);
+
+ /** TableReference projectId. */
+ public projectId: string;
+
+ /** TableReference datasetId. */
+ public datasetId: string;
+
+ /** TableReference tableId. */
+ public tableId: string;
+
+ /**
+ * Creates a new TableReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITableReference): google.cloud.bigquery.v2.TableReference;
+
+ /**
+ * Encodes the specified TableReference message. Does not implicitly {@link google.cloud.bigquery.v2.TableReference.verify|verify} messages.
+ * @param message TableReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITableReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableReference.verify|verify} messages.
+ * @param message TableReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITableReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableReference
+ * @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.cloud.bigquery.v2.TableReference;
+
+ /**
+ * Decodes a TableReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableReference
+ * @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.cloud.bigquery.v2.TableReference;
+
+ /**
+ * Verifies a TableReference 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 TableReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableReference;
+
+ /**
+ * Creates a plain object from a TableReference message. Also converts values to other types if specified.
+ * @param message TableReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableSchema. */
+ interface ITableSchema {
+
+ /** TableSchema fields */
+ fields?: (google.cloud.bigquery.v2.ITableFieldSchema[]|null);
+
+ /** TableSchema foreignTypeInfo */
+ foreignTypeInfo?: (google.cloud.bigquery.v2.IForeignTypeInfo|null);
+ }
+
+ /** Represents a TableSchema. */
+ class TableSchema implements ITableSchema {
+
+ /**
+ * Constructs a new TableSchema.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITableSchema);
+
+ /** TableSchema fields. */
+ public fields: google.cloud.bigquery.v2.ITableFieldSchema[];
+
+ /** TableSchema foreignTypeInfo. */
+ public foreignTypeInfo?: (google.cloud.bigquery.v2.IForeignTypeInfo|null);
+
+ /**
+ * Creates a new TableSchema instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableSchema instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITableSchema): google.cloud.bigquery.v2.TableSchema;
+
+ /**
+ * Encodes the specified TableSchema message. Does not implicitly {@link google.cloud.bigquery.v2.TableSchema.verify|verify} messages.
+ * @param message TableSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITableSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableSchema message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableSchema.verify|verify} messages.
+ * @param message TableSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITableSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableSchema message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableSchema
+ * @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.cloud.bigquery.v2.TableSchema;
+
+ /**
+ * Decodes a TableSchema message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableSchema
+ * @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.cloud.bigquery.v2.TableSchema;
+
+ /**
+ * Verifies a TableSchema 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 TableSchema message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableSchema
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableSchema;
+
+ /**
+ * Creates a plain object from a TableSchema message. Also converts values to other types if specified.
+ * @param message TableSchema
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableSchema, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableSchema to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableSchema
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ForeignTypeInfo. */
+ interface IForeignTypeInfo {
+
+ /** ForeignTypeInfo typeSystem */
+ typeSystem?: (google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem|keyof typeof google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem|null);
+ }
+
+ /** Represents a ForeignTypeInfo. */
+ class ForeignTypeInfo implements IForeignTypeInfo {
+
+ /**
+ * Constructs a new ForeignTypeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IForeignTypeInfo);
+
+ /** ForeignTypeInfo typeSystem. */
+ public typeSystem: (google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem|keyof typeof google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem);
+
+ /**
+ * Creates a new ForeignTypeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ForeignTypeInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IForeignTypeInfo): google.cloud.bigquery.v2.ForeignTypeInfo;
+
+ /**
+ * Encodes the specified ForeignTypeInfo message. Does not implicitly {@link google.cloud.bigquery.v2.ForeignTypeInfo.verify|verify} messages.
+ * @param message ForeignTypeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IForeignTypeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ForeignTypeInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ForeignTypeInfo.verify|verify} messages.
+ * @param message ForeignTypeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IForeignTypeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ForeignTypeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ForeignTypeInfo
+ * @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.cloud.bigquery.v2.ForeignTypeInfo;
+
+ /**
+ * Decodes a ForeignTypeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ForeignTypeInfo
+ * @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.cloud.bigquery.v2.ForeignTypeInfo;
+
+ /**
+ * Verifies a ForeignTypeInfo 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 ForeignTypeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ForeignTypeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ForeignTypeInfo;
+
+ /**
+ * Creates a plain object from a ForeignTypeInfo message. Also converts values to other types if specified.
+ * @param message ForeignTypeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ForeignTypeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ForeignTypeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ForeignTypeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ForeignTypeInfo {
+
+ /** TypeSystem enum. */
+ enum TypeSystem {
+ TYPE_SYSTEM_UNSPECIFIED = 0,
+ HIVE = 1
+ }
+ }
+
+ /** Properties of a DataPolicyOption. */
+ interface IDataPolicyOption {
+
+ /** DataPolicyOption name */
+ name?: (string|null);
+ }
+
+ /** Represents a DataPolicyOption. */
+ class DataPolicyOption implements IDataPolicyOption {
+
+ /**
+ * Constructs a new DataPolicyOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDataPolicyOption);
+
+ /** DataPolicyOption name. */
+ public name?: (string|null);
+
+ /**
+ * Creates a new DataPolicyOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataPolicyOption instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDataPolicyOption): google.cloud.bigquery.v2.DataPolicyOption;
+
+ /**
+ * Encodes the specified DataPolicyOption message. Does not implicitly {@link google.cloud.bigquery.v2.DataPolicyOption.verify|verify} messages.
+ * @param message DataPolicyOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDataPolicyOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataPolicyOption message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DataPolicyOption.verify|verify} messages.
+ * @param message DataPolicyOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDataPolicyOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataPolicyOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataPolicyOption
+ * @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.cloud.bigquery.v2.DataPolicyOption;
+
+ /**
+ * Decodes a DataPolicyOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataPolicyOption
+ * @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.cloud.bigquery.v2.DataPolicyOption;
+
+ /**
+ * Verifies a DataPolicyOption 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 DataPolicyOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataPolicyOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DataPolicyOption;
+
+ /**
+ * Creates a plain object from a DataPolicyOption message. Also converts values to other types if specified.
+ * @param message DataPolicyOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DataPolicyOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataPolicyOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataPolicyOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataPolicyList. */
+ interface IDataPolicyList {
+
+ /** DataPolicyList dataPolicies */
+ dataPolicies?: (google.cloud.bigquery.v2.IDataPolicyOption[]|null);
+ }
+
+ /** Represents a DataPolicyList. */
+ class DataPolicyList implements IDataPolicyList {
+
+ /**
+ * Constructs a new DataPolicyList.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDataPolicyList);
+
+ /** DataPolicyList dataPolicies. */
+ public dataPolicies: google.cloud.bigquery.v2.IDataPolicyOption[];
+
+ /**
+ * Creates a new DataPolicyList instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataPolicyList instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDataPolicyList): google.cloud.bigquery.v2.DataPolicyList;
+
+ /**
+ * Encodes the specified DataPolicyList message. Does not implicitly {@link google.cloud.bigquery.v2.DataPolicyList.verify|verify} messages.
+ * @param message DataPolicyList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDataPolicyList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataPolicyList message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DataPolicyList.verify|verify} messages.
+ * @param message DataPolicyList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDataPolicyList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataPolicyList message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataPolicyList
+ * @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.cloud.bigquery.v2.DataPolicyList;
+
+ /**
+ * Decodes a DataPolicyList message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataPolicyList
+ * @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.cloud.bigquery.v2.DataPolicyList;
+
+ /**
+ * Verifies a DataPolicyList 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 DataPolicyList message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataPolicyList
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DataPolicyList;
+
+ /**
+ * Creates a plain object from a DataPolicyList message. Also converts values to other types if specified.
+ * @param message DataPolicyList
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DataPolicyList, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataPolicyList to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataPolicyList
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableFieldSchema. */
+ interface ITableFieldSchema {
+
+ /** TableFieldSchema name */
+ name?: (string|null);
+
+ /** TableFieldSchema type */
+ type?: (string|null);
+
+ /** TableFieldSchema mode */
+ mode?: (string|null);
+
+ /** TableFieldSchema fields */
+ fields?: (google.cloud.bigquery.v2.ITableFieldSchema[]|null);
+
+ /** TableFieldSchema description */
+ description?: (google.protobuf.IStringValue|null);
+
+ /** TableFieldSchema policyTags */
+ policyTags?: (google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList|null);
+
+ /** TableFieldSchema dataGovernanceTagsInfo */
+ dataGovernanceTagsInfo?: (google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo|null);
+
+ /** TableFieldSchema dataPolicies */
+ dataPolicies?: (google.cloud.bigquery.v2.IDataPolicyOption[]|null);
+
+ /** TableFieldSchema dataPolicyList */
+ dataPolicyList?: (google.cloud.bigquery.v2.IDataPolicyList|null);
+
+ /** TableFieldSchema maxLength */
+ maxLength?: (number|Long|string|null);
+
+ /** TableFieldSchema precision */
+ precision?: (number|Long|string|null);
+
+ /** TableFieldSchema scale */
+ scale?: (number|Long|string|null);
+
+ /** TableFieldSchema timestampPrecision */
+ timestampPrecision?: (google.protobuf.IInt64Value|null);
+
+ /** TableFieldSchema roundingMode */
+ roundingMode?: (google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|keyof typeof google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|null);
+
+ /** TableFieldSchema collation */
+ collation?: (google.protobuf.IStringValue|null);
+
+ /** TableFieldSchema defaultValueExpression */
+ defaultValueExpression?: (google.protobuf.IStringValue|null);
+
+ /** TableFieldSchema rangeElementType */
+ rangeElementType?: (google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType|null);
+
+ /** TableFieldSchema foreignTypeDefinition */
+ foreignTypeDefinition?: (string|null);
+
+ /** TableFieldSchema generatedColumn */
+ generatedColumn?: (google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn|null);
+ }
+
+ /** Represents a TableFieldSchema. */
+ class TableFieldSchema implements ITableFieldSchema {
+
+ /**
+ * Constructs a new TableFieldSchema.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITableFieldSchema);
+
+ /** TableFieldSchema name. */
+ public name: string;
+
+ /** TableFieldSchema type. */
+ public type: string;
+
+ /** TableFieldSchema mode. */
+ public mode: string;
+
+ /** TableFieldSchema fields. */
+ public fields: google.cloud.bigquery.v2.ITableFieldSchema[];
+
+ /** TableFieldSchema description. */
+ public description?: (google.protobuf.IStringValue|null);
+
+ /** TableFieldSchema policyTags. */
+ public policyTags?: (google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList|null);
+
+ /** TableFieldSchema dataGovernanceTagsInfo. */
+ public dataGovernanceTagsInfo?: (google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo|null);
+
+ /** TableFieldSchema dataPolicies. */
+ public dataPolicies: google.cloud.bigquery.v2.IDataPolicyOption[];
+
+ /** TableFieldSchema dataPolicyList. */
+ public dataPolicyList?: (google.cloud.bigquery.v2.IDataPolicyList|null);
+
+ /** TableFieldSchema maxLength. */
+ public maxLength: (number|Long|string);
+
+ /** TableFieldSchema precision. */
+ public precision: (number|Long|string);
+
+ /** TableFieldSchema scale. */
+ public scale: (number|Long|string);
+
+ /** TableFieldSchema timestampPrecision. */
+ public timestampPrecision?: (google.protobuf.IInt64Value|null);
+
+ /** TableFieldSchema roundingMode. */
+ public roundingMode: (google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|keyof typeof google.cloud.bigquery.v2.TableFieldSchema.RoundingMode);
+
+ /** TableFieldSchema collation. */
+ public collation?: (google.protobuf.IStringValue|null);
+
+ /** TableFieldSchema defaultValueExpression. */
+ public defaultValueExpression?: (google.protobuf.IStringValue|null);
+
+ /** TableFieldSchema rangeElementType. */
+ public rangeElementType?: (google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType|null);
+
+ /** TableFieldSchema foreignTypeDefinition. */
+ public foreignTypeDefinition: string;
+
+ /** TableFieldSchema generatedColumn. */
+ public generatedColumn?: (google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn|null);
+
+ /**
+ * Creates a new TableFieldSchema instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableFieldSchema instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITableFieldSchema): google.cloud.bigquery.v2.TableFieldSchema;
+
+ /**
+ * Encodes the specified TableFieldSchema message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.verify|verify} messages.
+ * @param message TableFieldSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITableFieldSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableFieldSchema message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.verify|verify} messages.
+ * @param message TableFieldSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITableFieldSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableFieldSchema message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableFieldSchema
+ * @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.cloud.bigquery.v2.TableFieldSchema;
+
+ /**
+ * Decodes a TableFieldSchema message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableFieldSchema
+ * @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.cloud.bigquery.v2.TableFieldSchema;
+
+ /**
+ * Verifies a TableFieldSchema 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 TableFieldSchema message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableFieldSchema
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableFieldSchema;
+
+ /**
+ * Creates a plain object from a TableFieldSchema message. Also converts values to other types if specified.
+ * @param message TableFieldSchema
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableFieldSchema, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableFieldSchema to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableFieldSchema
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TableFieldSchema {
+
+ /** Properties of a PolicyTagList. */
+ interface IPolicyTagList {
+
+ /** PolicyTagList names */
+ names?: (string[]|null);
+ }
+
+ /** Represents a PolicyTagList. */
+ class PolicyTagList implements IPolicyTagList {
+
+ /**
+ * Constructs a new PolicyTagList.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList);
+
+ /** PolicyTagList names. */
+ public names: string[];
+
+ /**
+ * Creates a new PolicyTagList instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PolicyTagList instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList): google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList;
+
+ /**
+ * Encodes the specified PolicyTagList message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.verify|verify} messages.
+ * @param message PolicyTagList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PolicyTagList message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.verify|verify} messages.
+ * @param message PolicyTagList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PolicyTagList message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PolicyTagList
+ * @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.cloud.bigquery.v2.TableFieldSchema.PolicyTagList;
+
+ /**
+ * Decodes a PolicyTagList message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PolicyTagList
+ * @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.cloud.bigquery.v2.TableFieldSchema.PolicyTagList;
+
+ /**
+ * Verifies a PolicyTagList 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 PolicyTagList message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PolicyTagList
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList;
+
+ /**
+ * Creates a plain object from a PolicyTagList message. Also converts values to other types if specified.
+ * @param message PolicyTagList
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PolicyTagList to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PolicyTagList
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataGovernanceTagsInfo. */
+ interface IDataGovernanceTagsInfo {
+
+ /** DataGovernanceTagsInfo dataGovernanceTags */
+ dataGovernanceTags?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a DataGovernanceTagsInfo. */
+ class DataGovernanceTagsInfo implements IDataGovernanceTagsInfo {
+
+ /**
+ * Constructs a new DataGovernanceTagsInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo);
+
+ /** DataGovernanceTagsInfo dataGovernanceTags. */
+ public dataGovernanceTags: { [k: string]: string };
+
+ /**
+ * Creates a new DataGovernanceTagsInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataGovernanceTagsInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo): google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo;
+
+ /**
+ * Encodes the specified DataGovernanceTagsInfo message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.verify|verify} messages.
+ * @param message DataGovernanceTagsInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataGovernanceTagsInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.verify|verify} messages.
+ * @param message DataGovernanceTagsInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataGovernanceTagsInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataGovernanceTagsInfo
+ * @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.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo;
+
+ /**
+ * Decodes a DataGovernanceTagsInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataGovernanceTagsInfo
+ * @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.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo;
+
+ /**
+ * Verifies a DataGovernanceTagsInfo 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 DataGovernanceTagsInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataGovernanceTagsInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo;
+
+ /**
+ * Creates a plain object from a DataGovernanceTagsInfo message. Also converts values to other types if specified.
+ * @param message DataGovernanceTagsInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataGovernanceTagsInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataGovernanceTagsInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** RoundingMode enum. */
+ enum RoundingMode {
+ ROUNDING_MODE_UNSPECIFIED = 0,
+ ROUND_HALF_AWAY_FROM_ZERO = 1,
+ ROUND_HALF_EVEN = 2
+ }
+
+ /** Properties of a FieldElementType. */
+ interface IFieldElementType {
+
+ /** FieldElementType type */
+ type?: (string|null);
+ }
+
+ /** Represents a FieldElementType. */
+ class FieldElementType implements IFieldElementType {
+
+ /**
+ * Constructs a new FieldElementType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType);
+
+ /** FieldElementType type. */
+ public type: string;
+
+ /**
+ * Creates a new FieldElementType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldElementType instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType): google.cloud.bigquery.v2.TableFieldSchema.FieldElementType;
+
+ /**
+ * Encodes the specified FieldElementType message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.verify|verify} messages.
+ * @param message FieldElementType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldElementType message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.verify|verify} messages.
+ * @param message FieldElementType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldElementType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldElementType
+ * @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.cloud.bigquery.v2.TableFieldSchema.FieldElementType;
+
+ /**
+ * Decodes a FieldElementType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldElementType
+ * @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.cloud.bigquery.v2.TableFieldSchema.FieldElementType;
+
+ /**
+ * Verifies a FieldElementType 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 FieldElementType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldElementType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableFieldSchema.FieldElementType;
+
+ /**
+ * Creates a plain object from a FieldElementType message. Also converts values to other types if specified.
+ * @param message FieldElementType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableFieldSchema.FieldElementType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldElementType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldElementType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GeneratedExpressionInfo. */
+ interface IGeneratedExpressionInfo {
+
+ /** GeneratedExpressionInfo generationExpression */
+ generationExpression?: (string|null);
+
+ /** GeneratedExpressionInfo asynchronous */
+ asynchronous?: (boolean|null);
+
+ /** GeneratedExpressionInfo stored */
+ stored?: (boolean|null);
+ }
+
+ /** Represents a GeneratedExpressionInfo. */
+ class GeneratedExpressionInfo implements IGeneratedExpressionInfo {
+
+ /**
+ * Constructs a new GeneratedExpressionInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo);
+
+ /** GeneratedExpressionInfo generationExpression. */
+ public generationExpression?: (string|null);
+
+ /** GeneratedExpressionInfo asynchronous. */
+ public asynchronous?: (boolean|null);
+
+ /** GeneratedExpressionInfo stored. */
+ public stored?: (boolean|null);
+
+ /**
+ * Creates a new GeneratedExpressionInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedExpressionInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo): google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo;
+
+ /**
+ * Encodes the specified GeneratedExpressionInfo message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.verify|verify} messages.
+ * @param message GeneratedExpressionInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedExpressionInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.verify|verify} messages.
+ * @param message GeneratedExpressionInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedExpressionInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedExpressionInfo
+ * @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.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo;
+
+ /**
+ * Decodes a GeneratedExpressionInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedExpressionInfo
+ * @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.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo;
+
+ /**
+ * Verifies a GeneratedExpressionInfo 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 GeneratedExpressionInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedExpressionInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo;
+
+ /**
+ * Creates a plain object from a GeneratedExpressionInfo message. Also converts values to other types if specified.
+ * @param message GeneratedExpressionInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedExpressionInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedExpressionInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GeneratedColumn. */
+ interface IGeneratedColumn {
+
+ /** GeneratedColumn generatedMode */
+ generatedMode?: (google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode|keyof typeof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode|null);
+
+ /** GeneratedColumn generatedExpressionInfo */
+ generatedExpressionInfo?: (google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo|null);
+ }
+
+ /** Represents a GeneratedColumn. */
+ class GeneratedColumn implements IGeneratedColumn {
+
+ /**
+ * Constructs a new GeneratedColumn.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn);
+
+ /** GeneratedColumn generatedMode. */
+ public generatedMode?: (google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode|keyof typeof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode|null);
+
+ /** GeneratedColumn generatedExpressionInfo. */
+ public generatedExpressionInfo?: (google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo|null);
+
+ /** GeneratedColumn definition. */
+ public definition?: "generatedExpressionInfo";
+
+ /**
+ * Creates a new GeneratedColumn instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedColumn instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn): google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn;
+
+ /**
+ * Encodes the specified GeneratedColumn message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.verify|verify} messages.
+ * @param message GeneratedColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedColumn message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.verify|verify} messages.
+ * @param message GeneratedColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedColumn message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedColumn
+ * @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.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn;
+
+ /**
+ * Decodes a GeneratedColumn message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedColumn
+ * @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.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn;
+
+ /**
+ * Verifies a GeneratedColumn 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 GeneratedColumn message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedColumn
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn;
+
+ /**
+ * Creates a plain object from a GeneratedColumn message. Also converts values to other types if specified.
+ * @param message GeneratedColumn
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedColumn to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedColumn
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedColumn {
+
+ /** GeneratedMode enum. */
+ enum GeneratedMode {
+ GENERATED_MODE_UNSPECIFIED = 0,
+ GENERATED_ALWAYS = 1,
+ GENERATED_BY_DEFAULT = 2
+ }
+ }
+ }
+
+ /** DecimalTargetType enum. */
+ enum DecimalTargetType {
+ DECIMAL_TARGET_TYPE_UNSPECIFIED = 0,
+ NUMERIC = 1,
+ BIGNUMERIC = 2,
+ STRING = 3
+ }
+
+ /** Properties of an ErrorProto. */
+ interface IErrorProto {
+
+ /** ErrorProto reason */
+ reason?: (string|null);
+
+ /** ErrorProto location */
+ location?: (string|null);
+
+ /** ErrorProto debugInfo */
+ debugInfo?: (string|null);
+
+ /** ErrorProto message */
+ message?: (string|null);
+ }
+
+ /** Represents an ErrorProto. */
+ class ErrorProto implements IErrorProto {
+
+ /**
+ * Constructs a new ErrorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IErrorProto);
+
+ /** ErrorProto reason. */
+ public reason: string;
+
+ /** ErrorProto location. */
+ public location: string;
+
+ /** ErrorProto debugInfo. */
+ public debugInfo: string;
+
+ /** ErrorProto message. */
+ public message: string;
+
+ /**
+ * Creates a new ErrorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ErrorProto instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IErrorProto): google.cloud.bigquery.v2.ErrorProto;
+
+ /**
+ * Encodes the specified ErrorProto message. Does not implicitly {@link google.cloud.bigquery.v2.ErrorProto.verify|verify} messages.
+ * @param message ErrorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IErrorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ErrorProto message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ErrorProto.verify|verify} messages.
+ * @param message ErrorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IErrorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ErrorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ErrorProto
+ * @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.cloud.bigquery.v2.ErrorProto;
+
+ /**
+ * Decodes an ErrorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ErrorProto
+ * @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.cloud.bigquery.v2.ErrorProto;
+
+ /**
+ * Verifies an ErrorProto 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 ErrorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ErrorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ErrorProto;
+
+ /**
+ * Creates a plain object from an ErrorProto message. Also converts values to other types if specified.
+ * @param message ErrorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ErrorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ErrorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ErrorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExternalCatalogTableOptions. */
+ interface IExternalCatalogTableOptions {
+
+ /** ExternalCatalogTableOptions parameters */
+ parameters?: ({ [k: string]: string }|null);
+
+ /** ExternalCatalogTableOptions storageDescriptor */
+ storageDescriptor?: (google.cloud.bigquery.v2.IStorageDescriptor|null);
+
+ /** ExternalCatalogTableOptions connectionId */
+ connectionId?: (string|null);
+ }
+
+ /** Represents an ExternalCatalogTableOptions. */
+ class ExternalCatalogTableOptions implements IExternalCatalogTableOptions {
+
+ /**
+ * Constructs a new ExternalCatalogTableOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExternalCatalogTableOptions);
+
+ /** ExternalCatalogTableOptions parameters. */
+ public parameters: { [k: string]: string };
+
+ /** ExternalCatalogTableOptions storageDescriptor. */
+ public storageDescriptor?: (google.cloud.bigquery.v2.IStorageDescriptor|null);
+
+ /** ExternalCatalogTableOptions connectionId. */
+ public connectionId: string;
+
+ /**
+ * Creates a new ExternalCatalogTableOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExternalCatalogTableOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExternalCatalogTableOptions): google.cloud.bigquery.v2.ExternalCatalogTableOptions;
+
+ /**
+ * Encodes the specified ExternalCatalogTableOptions message. Does not implicitly {@link google.cloud.bigquery.v2.ExternalCatalogTableOptions.verify|verify} messages.
+ * @param message ExternalCatalogTableOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExternalCatalogTableOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExternalCatalogTableOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExternalCatalogTableOptions.verify|verify} messages.
+ * @param message ExternalCatalogTableOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExternalCatalogTableOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExternalCatalogTableOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExternalCatalogTableOptions
+ * @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.cloud.bigquery.v2.ExternalCatalogTableOptions;
+
+ /**
+ * Decodes an ExternalCatalogTableOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExternalCatalogTableOptions
+ * @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.cloud.bigquery.v2.ExternalCatalogTableOptions;
+
+ /**
+ * Verifies an ExternalCatalogTableOptions 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 ExternalCatalogTableOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExternalCatalogTableOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExternalCatalogTableOptions;
+
+ /**
+ * Creates a plain object from an ExternalCatalogTableOptions message. Also converts values to other types if specified.
+ * @param message ExternalCatalogTableOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExternalCatalogTableOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExternalCatalogTableOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExternalCatalogTableOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StorageDescriptor. */
+ interface IStorageDescriptor {
+
+ /** StorageDescriptor locationUri */
+ locationUri?: (string|null);
+
+ /** StorageDescriptor inputFormat */
+ inputFormat?: (string|null);
+
+ /** StorageDescriptor outputFormat */
+ outputFormat?: (string|null);
+
+ /** StorageDescriptor serdeInfo */
+ serdeInfo?: (google.cloud.bigquery.v2.ISerDeInfo|null);
+ }
+
+ /** Represents a StorageDescriptor. */
+ class StorageDescriptor implements IStorageDescriptor {
+
+ /**
+ * Constructs a new StorageDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStorageDescriptor);
+
+ /** StorageDescriptor locationUri. */
+ public locationUri: string;
+
+ /** StorageDescriptor inputFormat. */
+ public inputFormat: string;
+
+ /** StorageDescriptor outputFormat. */
+ public outputFormat: string;
+
+ /** StorageDescriptor serdeInfo. */
+ public serdeInfo?: (google.cloud.bigquery.v2.ISerDeInfo|null);
+
+ /**
+ * Creates a new StorageDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StorageDescriptor instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStorageDescriptor): google.cloud.bigquery.v2.StorageDescriptor;
+
+ /**
+ * Encodes the specified StorageDescriptor message. Does not implicitly {@link google.cloud.bigquery.v2.StorageDescriptor.verify|verify} messages.
+ * @param message StorageDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStorageDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StorageDescriptor message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StorageDescriptor.verify|verify} messages.
+ * @param message StorageDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStorageDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StorageDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StorageDescriptor
+ * @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.cloud.bigquery.v2.StorageDescriptor;
+
+ /**
+ * Decodes a StorageDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StorageDescriptor
+ * @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.cloud.bigquery.v2.StorageDescriptor;
+
+ /**
+ * Verifies a StorageDescriptor 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 StorageDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StorageDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StorageDescriptor;
+
+ /**
+ * Creates a plain object from a StorageDescriptor message. Also converts values to other types if specified.
+ * @param message StorageDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StorageDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StorageDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StorageDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SerDeInfo. */
+ interface ISerDeInfo {
+
+ /** SerDeInfo name */
+ name?: (string|null);
+
+ /** SerDeInfo serializationLibrary */
+ serializationLibrary?: (string|null);
+
+ /** SerDeInfo parameters */
+ parameters?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a SerDeInfo. */
+ class SerDeInfo implements ISerDeInfo {
+
+ /**
+ * Constructs a new SerDeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ISerDeInfo);
+
+ /** SerDeInfo name. */
+ public name: string;
+
+ /** SerDeInfo serializationLibrary. */
+ public serializationLibrary: string;
+
+ /** SerDeInfo parameters. */
+ public parameters: { [k: string]: string };
+
+ /**
+ * Creates a new SerDeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SerDeInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ISerDeInfo): google.cloud.bigquery.v2.SerDeInfo;
+
+ /**
+ * Encodes the specified SerDeInfo message. Does not implicitly {@link google.cloud.bigquery.v2.SerDeInfo.verify|verify} messages.
+ * @param message SerDeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ISerDeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SerDeInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.SerDeInfo.verify|verify} messages.
+ * @param message SerDeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ISerDeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SerDeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SerDeInfo
+ * @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.cloud.bigquery.v2.SerDeInfo;
+
+ /**
+ * Decodes a SerDeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SerDeInfo
+ * @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.cloud.bigquery.v2.SerDeInfo;
+
+ /**
+ * Verifies a SerDeInfo 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 SerDeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SerDeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.SerDeInfo;
+
+ /**
+ * Creates a plain object from a SerDeInfo message. Also converts values to other types if specified.
+ * @param message SerDeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.SerDeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SerDeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SerDeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AvroOptions. */
+ interface IAvroOptions {
+
+ /** AvroOptions useAvroLogicalTypes */
+ useAvroLogicalTypes?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents an AvroOptions. */
+ class AvroOptions implements IAvroOptions {
+
+ /**
+ * Constructs a new AvroOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IAvroOptions);
+
+ /** AvroOptions useAvroLogicalTypes. */
+ public useAvroLogicalTypes?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new AvroOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AvroOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IAvroOptions): google.cloud.bigquery.v2.AvroOptions;
+
+ /**
+ * Encodes the specified AvroOptions message. Does not implicitly {@link google.cloud.bigquery.v2.AvroOptions.verify|verify} messages.
+ * @param message AvroOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IAvroOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AvroOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.AvroOptions.verify|verify} messages.
+ * @param message AvroOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IAvroOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AvroOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AvroOptions
+ * @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.cloud.bigquery.v2.AvroOptions;
+
+ /**
+ * Decodes an AvroOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AvroOptions
+ * @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.cloud.bigquery.v2.AvroOptions;
+
+ /**
+ * Verifies an AvroOptions 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 AvroOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AvroOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.AvroOptions;
+
+ /**
+ * Creates a plain object from an AvroOptions message. Also converts values to other types if specified.
+ * @param message AvroOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.AvroOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AvroOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AvroOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ParquetOptions. */
+ interface IParquetOptions {
+
+ /** ParquetOptions enumAsString */
+ enumAsString?: (google.protobuf.IBoolValue|null);
+
+ /** ParquetOptions enableListInference */
+ enableListInference?: (google.protobuf.IBoolValue|null);
+
+ /** ParquetOptions mapTargetType */
+ mapTargetType?: (google.cloud.bigquery.v2.MapTargetType|keyof typeof google.cloud.bigquery.v2.MapTargetType|null);
+ }
+
+ /** Represents a ParquetOptions. */
+ class ParquetOptions implements IParquetOptions {
+
+ /**
+ * Constructs a new ParquetOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IParquetOptions);
+
+ /** ParquetOptions enumAsString. */
+ public enumAsString?: (google.protobuf.IBoolValue|null);
+
+ /** ParquetOptions enableListInference. */
+ public enableListInference?: (google.protobuf.IBoolValue|null);
+
+ /** ParquetOptions mapTargetType. */
+ public mapTargetType: (google.cloud.bigquery.v2.MapTargetType|keyof typeof google.cloud.bigquery.v2.MapTargetType);
+
+ /**
+ * Creates a new ParquetOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ParquetOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IParquetOptions): google.cloud.bigquery.v2.ParquetOptions;
+
+ /**
+ * Encodes the specified ParquetOptions message. Does not implicitly {@link google.cloud.bigquery.v2.ParquetOptions.verify|verify} messages.
+ * @param message ParquetOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IParquetOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ParquetOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ParquetOptions.verify|verify} messages.
+ * @param message ParquetOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IParquetOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ParquetOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ParquetOptions
+ * @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.cloud.bigquery.v2.ParquetOptions;
+
+ /**
+ * Decodes a ParquetOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ParquetOptions
+ * @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.cloud.bigquery.v2.ParquetOptions;
+
+ /**
+ * Verifies a ParquetOptions 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 ParquetOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ParquetOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ParquetOptions;
+
+ /**
+ * Creates a plain object from a ParquetOptions message. Also converts values to other types if specified.
+ * @param message ParquetOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ParquetOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ParquetOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ParquetOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CsvOptions. */
+ interface ICsvOptions {
+
+ /** CsvOptions fieldDelimiter */
+ fieldDelimiter?: (string|null);
+
+ /** CsvOptions skipLeadingRows */
+ skipLeadingRows?: (google.protobuf.IInt64Value|null);
+
+ /** CsvOptions quote */
+ quote?: (google.protobuf.IStringValue|null);
+
+ /** CsvOptions allowQuotedNewlines */
+ allowQuotedNewlines?: (google.protobuf.IBoolValue|null);
+
+ /** CsvOptions allowJaggedRows */
+ allowJaggedRows?: (google.protobuf.IBoolValue|null);
+
+ /** CsvOptions encoding */
+ encoding?: (string|null);
+
+ /** CsvOptions preserveAsciiControlCharacters */
+ preserveAsciiControlCharacters?: (google.protobuf.IBoolValue|null);
+
+ /** CsvOptions nullMarker */
+ nullMarker?: (google.protobuf.IStringValue|null);
+
+ /** CsvOptions nullMarkers */
+ nullMarkers?: (string[]|null);
+
+ /** CsvOptions sourceColumnMatch */
+ sourceColumnMatch?: (string|null);
+ }
+
+ /** Represents a CsvOptions. */
+ class CsvOptions implements ICsvOptions {
+
+ /**
+ * Constructs a new CsvOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ICsvOptions);
+
+ /** CsvOptions fieldDelimiter. */
+ public fieldDelimiter: string;
+
+ /** CsvOptions skipLeadingRows. */
+ public skipLeadingRows?: (google.protobuf.IInt64Value|null);
+
+ /** CsvOptions quote. */
+ public quote?: (google.protobuf.IStringValue|null);
+
+ /** CsvOptions allowQuotedNewlines. */
+ public allowQuotedNewlines?: (google.protobuf.IBoolValue|null);
+
+ /** CsvOptions allowJaggedRows. */
+ public allowJaggedRows?: (google.protobuf.IBoolValue|null);
+
+ /** CsvOptions encoding. */
+ public encoding: string;
+
+ /** CsvOptions preserveAsciiControlCharacters. */
+ public preserveAsciiControlCharacters?: (google.protobuf.IBoolValue|null);
+
+ /** CsvOptions nullMarker. */
+ public nullMarker?: (google.protobuf.IStringValue|null);
+
+ /** CsvOptions nullMarkers. */
+ public nullMarkers: string[];
+
+ /** CsvOptions sourceColumnMatch. */
+ public sourceColumnMatch: string;
+
+ /**
+ * Creates a new CsvOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CsvOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ICsvOptions): google.cloud.bigquery.v2.CsvOptions;
+
+ /**
+ * Encodes the specified CsvOptions message. Does not implicitly {@link google.cloud.bigquery.v2.CsvOptions.verify|verify} messages.
+ * @param message CsvOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ICsvOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CsvOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.CsvOptions.verify|verify} messages.
+ * @param message CsvOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ICsvOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CsvOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CsvOptions
+ * @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.cloud.bigquery.v2.CsvOptions;
+
+ /**
+ * Decodes a CsvOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CsvOptions
+ * @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.cloud.bigquery.v2.CsvOptions;
+
+ /**
+ * Verifies a CsvOptions 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 CsvOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CsvOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.CsvOptions;
+
+ /**
+ * Creates a plain object from a CsvOptions message. Also converts values to other types if specified.
+ * @param message CsvOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.CsvOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CsvOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CsvOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JsonOptions. */
+ interface IJsonOptions {
+
+ /** JsonOptions encoding */
+ encoding?: (string|null);
+ }
+
+ /** Represents a JsonOptions. */
+ class JsonOptions implements IJsonOptions {
+
+ /**
+ * Constructs a new JsonOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJsonOptions);
+
+ /** JsonOptions encoding. */
+ public encoding: string;
+
+ /**
+ * Creates a new JsonOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JsonOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJsonOptions): google.cloud.bigquery.v2.JsonOptions;
+
+ /**
+ * Encodes the specified JsonOptions message. Does not implicitly {@link google.cloud.bigquery.v2.JsonOptions.verify|verify} messages.
+ * @param message JsonOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJsonOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JsonOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JsonOptions.verify|verify} messages.
+ * @param message JsonOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJsonOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JsonOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JsonOptions
+ * @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.cloud.bigquery.v2.JsonOptions;
+
+ /**
+ * Decodes a JsonOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JsonOptions
+ * @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.cloud.bigquery.v2.JsonOptions;
+
+ /**
+ * Verifies a JsonOptions 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 JsonOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JsonOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JsonOptions;
+
+ /**
+ * Creates a plain object from a JsonOptions message. Also converts values to other types if specified.
+ * @param message JsonOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JsonOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JsonOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JsonOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BigtableProtoConfig. */
+ interface IBigtableProtoConfig {
+
+ /** BigtableProtoConfig schemaBundleId */
+ schemaBundleId?: (string|null);
+
+ /** BigtableProtoConfig protoMessageName */
+ protoMessageName?: (string|null);
+ }
+
+ /** Represents a BigtableProtoConfig. */
+ class BigtableProtoConfig implements IBigtableProtoConfig {
+
+ /**
+ * Constructs a new BigtableProtoConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IBigtableProtoConfig);
+
+ /** BigtableProtoConfig schemaBundleId. */
+ public schemaBundleId: string;
+
+ /** BigtableProtoConfig protoMessageName. */
+ public protoMessageName: string;
+
+ /**
+ * Creates a new BigtableProtoConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BigtableProtoConfig instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IBigtableProtoConfig): google.cloud.bigquery.v2.BigtableProtoConfig;
+
+ /**
+ * Encodes the specified BigtableProtoConfig message. Does not implicitly {@link google.cloud.bigquery.v2.BigtableProtoConfig.verify|verify} messages.
+ * @param message BigtableProtoConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IBigtableProtoConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BigtableProtoConfig message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BigtableProtoConfig.verify|verify} messages.
+ * @param message BigtableProtoConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IBigtableProtoConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BigtableProtoConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BigtableProtoConfig
+ * @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.cloud.bigquery.v2.BigtableProtoConfig;
+
+ /**
+ * Decodes a BigtableProtoConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BigtableProtoConfig
+ * @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.cloud.bigquery.v2.BigtableProtoConfig;
+
+ /**
+ * Verifies a BigtableProtoConfig 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 BigtableProtoConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BigtableProtoConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.BigtableProtoConfig;
+
+ /**
+ * Creates a plain object from a BigtableProtoConfig message. Also converts values to other types if specified.
+ * @param message BigtableProtoConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.BigtableProtoConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BigtableProtoConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BigtableProtoConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BigtableColumn. */
+ interface IBigtableColumn {
+
+ /** BigtableColumn qualifierEncoded */
+ qualifierEncoded?: (google.protobuf.IBytesValue|null);
+
+ /** BigtableColumn qualifierString */
+ qualifierString?: (google.protobuf.IStringValue|null);
+
+ /** BigtableColumn fieldName */
+ fieldName?: (string|null);
+
+ /** BigtableColumn type */
+ type?: (string|null);
+
+ /** BigtableColumn encoding */
+ encoding?: (string|null);
+
+ /** BigtableColumn onlyReadLatest */
+ onlyReadLatest?: (google.protobuf.IBoolValue|null);
+
+ /** BigtableColumn protoConfig */
+ protoConfig?: (google.cloud.bigquery.v2.IBigtableProtoConfig|null);
+ }
+
+ /** Represents a BigtableColumn. */
+ class BigtableColumn implements IBigtableColumn {
+
+ /**
+ * Constructs a new BigtableColumn.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IBigtableColumn);
+
+ /** BigtableColumn qualifierEncoded. */
+ public qualifierEncoded?: (google.protobuf.IBytesValue|null);
+
+ /** BigtableColumn qualifierString. */
+ public qualifierString?: (google.protobuf.IStringValue|null);
+
+ /** BigtableColumn fieldName. */
+ public fieldName: string;
+
+ /** BigtableColumn type. */
+ public type: string;
+
+ /** BigtableColumn encoding. */
+ public encoding: string;
+
+ /** BigtableColumn onlyReadLatest. */
+ public onlyReadLatest?: (google.protobuf.IBoolValue|null);
+
+ /** BigtableColumn protoConfig. */
+ public protoConfig?: (google.cloud.bigquery.v2.IBigtableProtoConfig|null);
+
+ /**
+ * Creates a new BigtableColumn instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BigtableColumn instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IBigtableColumn): google.cloud.bigquery.v2.BigtableColumn;
+
+ /**
+ * Encodes the specified BigtableColumn message. Does not implicitly {@link google.cloud.bigquery.v2.BigtableColumn.verify|verify} messages.
+ * @param message BigtableColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IBigtableColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BigtableColumn message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BigtableColumn.verify|verify} messages.
+ * @param message BigtableColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IBigtableColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BigtableColumn message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BigtableColumn
+ * @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.cloud.bigquery.v2.BigtableColumn;
+
+ /**
+ * Decodes a BigtableColumn message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BigtableColumn
+ * @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.cloud.bigquery.v2.BigtableColumn;
+
+ /**
+ * Verifies a BigtableColumn 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 BigtableColumn message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BigtableColumn
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.BigtableColumn;
+
+ /**
+ * Creates a plain object from a BigtableColumn message. Also converts values to other types if specified.
+ * @param message BigtableColumn
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.BigtableColumn, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BigtableColumn to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BigtableColumn
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BigtableColumnFamily. */
+ interface IBigtableColumnFamily {
+
+ /** BigtableColumnFamily familyId */
+ familyId?: (string|null);
+
+ /** BigtableColumnFamily type */
+ type?: (string|null);
+
+ /** BigtableColumnFamily encoding */
+ encoding?: (string|null);
+
+ /** BigtableColumnFamily columns */
+ columns?: (google.cloud.bigquery.v2.IBigtableColumn[]|null);
+
+ /** BigtableColumnFamily onlyReadLatest */
+ onlyReadLatest?: (google.protobuf.IBoolValue|null);
+
+ /** BigtableColumnFamily protoConfig */
+ protoConfig?: (google.cloud.bigquery.v2.IBigtableProtoConfig|null);
+ }
+
+ /** Represents a BigtableColumnFamily. */
+ class BigtableColumnFamily implements IBigtableColumnFamily {
+
+ /**
+ * Constructs a new BigtableColumnFamily.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IBigtableColumnFamily);
+
+ /** BigtableColumnFamily familyId. */
+ public familyId: string;
+
+ /** BigtableColumnFamily type. */
+ public type: string;
+
+ /** BigtableColumnFamily encoding. */
+ public encoding: string;
+
+ /** BigtableColumnFamily columns. */
+ public columns: google.cloud.bigquery.v2.IBigtableColumn[];
+
+ /** BigtableColumnFamily onlyReadLatest. */
+ public onlyReadLatest?: (google.protobuf.IBoolValue|null);
+
+ /** BigtableColumnFamily protoConfig. */
+ public protoConfig?: (google.cloud.bigquery.v2.IBigtableProtoConfig|null);
+
+ /**
+ * Creates a new BigtableColumnFamily instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BigtableColumnFamily instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IBigtableColumnFamily): google.cloud.bigquery.v2.BigtableColumnFamily;
+
+ /**
+ * Encodes the specified BigtableColumnFamily message. Does not implicitly {@link google.cloud.bigquery.v2.BigtableColumnFamily.verify|verify} messages.
+ * @param message BigtableColumnFamily message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IBigtableColumnFamily, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BigtableColumnFamily message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BigtableColumnFamily.verify|verify} messages.
+ * @param message BigtableColumnFamily message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IBigtableColumnFamily, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BigtableColumnFamily message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BigtableColumnFamily
+ * @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.cloud.bigquery.v2.BigtableColumnFamily;
+
+ /**
+ * Decodes a BigtableColumnFamily message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BigtableColumnFamily
+ * @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.cloud.bigquery.v2.BigtableColumnFamily;
+
+ /**
+ * Verifies a BigtableColumnFamily 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 BigtableColumnFamily message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BigtableColumnFamily
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.BigtableColumnFamily;
+
+ /**
+ * Creates a plain object from a BigtableColumnFamily message. Also converts values to other types if specified.
+ * @param message BigtableColumnFamily
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.BigtableColumnFamily, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BigtableColumnFamily to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BigtableColumnFamily
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BigtableOptions. */
+ interface IBigtableOptions {
+
+ /** BigtableOptions columnFamilies */
+ columnFamilies?: (google.cloud.bigquery.v2.IBigtableColumnFamily[]|null);
+
+ /** BigtableOptions ignoreUnspecifiedColumnFamilies */
+ ignoreUnspecifiedColumnFamilies?: (google.protobuf.IBoolValue|null);
+
+ /** BigtableOptions readRowkeyAsString */
+ readRowkeyAsString?: (google.protobuf.IBoolValue|null);
+
+ /** BigtableOptions outputColumnFamiliesAsJson */
+ outputColumnFamiliesAsJson?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents a BigtableOptions. */
+ class BigtableOptions implements IBigtableOptions {
+
+ /**
+ * Constructs a new BigtableOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IBigtableOptions);
+
+ /** BigtableOptions columnFamilies. */
+ public columnFamilies: google.cloud.bigquery.v2.IBigtableColumnFamily[];
+
+ /** BigtableOptions ignoreUnspecifiedColumnFamilies. */
+ public ignoreUnspecifiedColumnFamilies?: (google.protobuf.IBoolValue|null);
+
+ /** BigtableOptions readRowkeyAsString. */
+ public readRowkeyAsString?: (google.protobuf.IBoolValue|null);
+
+ /** BigtableOptions outputColumnFamiliesAsJson. */
+ public outputColumnFamiliesAsJson?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new BigtableOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BigtableOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IBigtableOptions): google.cloud.bigquery.v2.BigtableOptions;
+
+ /**
+ * Encodes the specified BigtableOptions message. Does not implicitly {@link google.cloud.bigquery.v2.BigtableOptions.verify|verify} messages.
+ * @param message BigtableOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IBigtableOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BigtableOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BigtableOptions.verify|verify} messages.
+ * @param message BigtableOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IBigtableOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BigtableOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BigtableOptions
+ * @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.cloud.bigquery.v2.BigtableOptions;
+
+ /**
+ * Decodes a BigtableOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BigtableOptions
+ * @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.cloud.bigquery.v2.BigtableOptions;
+
+ /**
+ * Verifies a BigtableOptions 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 BigtableOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BigtableOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.BigtableOptions;
+
+ /**
+ * Creates a plain object from a BigtableOptions message. Also converts values to other types if specified.
+ * @param message BigtableOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.BigtableOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BigtableOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BigtableOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoogleSheetsOptions. */
+ interface IGoogleSheetsOptions {
+
+ /** GoogleSheetsOptions skipLeadingRows */
+ skipLeadingRows?: (google.protobuf.IInt64Value|null);
+
+ /** GoogleSheetsOptions range */
+ range?: (string|null);
+ }
+
+ /** Represents a GoogleSheetsOptions. */
+ class GoogleSheetsOptions implements IGoogleSheetsOptions {
+
+ /**
+ * Constructs a new GoogleSheetsOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGoogleSheetsOptions);
+
+ /** GoogleSheetsOptions skipLeadingRows. */
+ public skipLeadingRows?: (google.protobuf.IInt64Value|null);
+
+ /** GoogleSheetsOptions range. */
+ public range: string;
+
+ /**
+ * Creates a new GoogleSheetsOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoogleSheetsOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGoogleSheetsOptions): google.cloud.bigquery.v2.GoogleSheetsOptions;
+
+ /**
+ * Encodes the specified GoogleSheetsOptions message. Does not implicitly {@link google.cloud.bigquery.v2.GoogleSheetsOptions.verify|verify} messages.
+ * @param message GoogleSheetsOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGoogleSheetsOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoogleSheetsOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GoogleSheetsOptions.verify|verify} messages.
+ * @param message GoogleSheetsOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGoogleSheetsOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoogleSheetsOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoogleSheetsOptions
+ * @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.cloud.bigquery.v2.GoogleSheetsOptions;
+
+ /**
+ * Decodes a GoogleSheetsOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoogleSheetsOptions
+ * @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.cloud.bigquery.v2.GoogleSheetsOptions;
+
+ /**
+ * Verifies a GoogleSheetsOptions 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 GoogleSheetsOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoogleSheetsOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GoogleSheetsOptions;
+
+ /**
+ * Creates a plain object from a GoogleSheetsOptions message. Also converts values to other types if specified.
+ * @param message GoogleSheetsOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GoogleSheetsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoogleSheetsOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoogleSheetsOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExternalDataConfiguration. */
+ interface IExternalDataConfiguration {
+
+ /** ExternalDataConfiguration sourceUris */
+ sourceUris?: (string[]|null);
+
+ /** ExternalDataConfiguration fileSetSpecType */
+ fileSetSpecType?: (google.cloud.bigquery.v2.FileSetSpecType|keyof typeof google.cloud.bigquery.v2.FileSetSpecType|null);
+
+ /** ExternalDataConfiguration schema */
+ schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** ExternalDataConfiguration sourceFormat */
+ sourceFormat?: (string|null);
+
+ /** ExternalDataConfiguration maxBadRecords */
+ maxBadRecords?: (google.protobuf.IInt32Value|null);
+
+ /** ExternalDataConfiguration autodetect */
+ autodetect?: (google.protobuf.IBoolValue|null);
+
+ /** ExternalDataConfiguration ignoreUnknownValues */
+ ignoreUnknownValues?: (google.protobuf.IBoolValue|null);
+
+ /** ExternalDataConfiguration compression */
+ compression?: (string|null);
+
+ /** ExternalDataConfiguration csvOptions */
+ csvOptions?: (google.cloud.bigquery.v2.ICsvOptions|null);
+
+ /** ExternalDataConfiguration jsonOptions */
+ jsonOptions?: (google.cloud.bigquery.v2.IJsonOptions|null);
+
+ /** ExternalDataConfiguration bigtableOptions */
+ bigtableOptions?: (google.cloud.bigquery.v2.IBigtableOptions|null);
+
+ /** ExternalDataConfiguration googleSheetsOptions */
+ googleSheetsOptions?: (google.cloud.bigquery.v2.IGoogleSheetsOptions|null);
+
+ /** ExternalDataConfiguration hivePartitioningOptions */
+ hivePartitioningOptions?: (google.cloud.bigquery.v2.IHivePartitioningOptions|null);
+
+ /** ExternalDataConfiguration connectionId */
+ connectionId?: (string|null);
+
+ /** ExternalDataConfiguration decimalTargetTypes */
+ decimalTargetTypes?: (google.cloud.bigquery.v2.DecimalTargetType[]|null);
+
+ /** ExternalDataConfiguration avroOptions */
+ avroOptions?: (google.cloud.bigquery.v2.IAvroOptions|null);
+
+ /** ExternalDataConfiguration jsonExtension */
+ jsonExtension?: (google.cloud.bigquery.v2.JsonExtension|keyof typeof google.cloud.bigquery.v2.JsonExtension|null);
+
+ /** ExternalDataConfiguration parquetOptions */
+ parquetOptions?: (google.cloud.bigquery.v2.IParquetOptions|null);
+
+ /** ExternalDataConfiguration objectMetadata */
+ objectMetadata?: (google.cloud.bigquery.v2.ExternalDataConfiguration.ObjectMetadata|keyof typeof google.cloud.bigquery.v2.ExternalDataConfiguration.ObjectMetadata|null);
+
+ /** ExternalDataConfiguration referenceFileSchemaUri */
+ referenceFileSchemaUri?: (google.protobuf.IStringValue|null);
+
+ /** ExternalDataConfiguration metadataCacheMode */
+ metadataCacheMode?: (google.cloud.bigquery.v2.ExternalDataConfiguration.MetadataCacheMode|keyof typeof google.cloud.bigquery.v2.ExternalDataConfiguration.MetadataCacheMode|null);
+
+ /** ExternalDataConfiguration timeZone */
+ timeZone?: (string|null);
+
+ /** ExternalDataConfiguration dateFormat */
+ dateFormat?: (string|null);
+
+ /** ExternalDataConfiguration datetimeFormat */
+ datetimeFormat?: (string|null);
+
+ /** ExternalDataConfiguration timeFormat */
+ timeFormat?: (string|null);
+
+ /** ExternalDataConfiguration timestampFormat */
+ timestampFormat?: (string|null);
+
+ /** ExternalDataConfiguration timestampTargetPrecision */
+ timestampTargetPrecision?: (number[]|null);
+ }
+
+ /** Represents an ExternalDataConfiguration. */
+ class ExternalDataConfiguration implements IExternalDataConfiguration {
+
+ /**
+ * Constructs a new ExternalDataConfiguration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExternalDataConfiguration);
+
+ /** ExternalDataConfiguration sourceUris. */
+ public sourceUris: string[];
+
+ /** ExternalDataConfiguration fileSetSpecType. */
+ public fileSetSpecType: (google.cloud.bigquery.v2.FileSetSpecType|keyof typeof google.cloud.bigquery.v2.FileSetSpecType);
+
+ /** ExternalDataConfiguration schema. */
+ public schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** ExternalDataConfiguration sourceFormat. */
+ public sourceFormat: string;
+
+ /** ExternalDataConfiguration maxBadRecords. */
+ public maxBadRecords?: (google.protobuf.IInt32Value|null);
+
+ /** ExternalDataConfiguration autodetect. */
+ public autodetect?: (google.protobuf.IBoolValue|null);
+
+ /** ExternalDataConfiguration ignoreUnknownValues. */
+ public ignoreUnknownValues?: (google.protobuf.IBoolValue|null);
+
+ /** ExternalDataConfiguration compression. */
+ public compression: string;
+
+ /** ExternalDataConfiguration csvOptions. */
+ public csvOptions?: (google.cloud.bigquery.v2.ICsvOptions|null);
+
+ /** ExternalDataConfiguration jsonOptions. */
+ public jsonOptions?: (google.cloud.bigquery.v2.IJsonOptions|null);
+
+ /** ExternalDataConfiguration bigtableOptions. */
+ public bigtableOptions?: (google.cloud.bigquery.v2.IBigtableOptions|null);
+
+ /** ExternalDataConfiguration googleSheetsOptions. */
+ public googleSheetsOptions?: (google.cloud.bigquery.v2.IGoogleSheetsOptions|null);
+
+ /** ExternalDataConfiguration hivePartitioningOptions. */
+ public hivePartitioningOptions?: (google.cloud.bigquery.v2.IHivePartitioningOptions|null);
+
+ /** ExternalDataConfiguration connectionId. */
+ public connectionId: string;
+
+ /** ExternalDataConfiguration decimalTargetTypes. */
+ public decimalTargetTypes: google.cloud.bigquery.v2.DecimalTargetType[];
+
+ /** ExternalDataConfiguration avroOptions. */
+ public avroOptions?: (google.cloud.bigquery.v2.IAvroOptions|null);
+
+ /** ExternalDataConfiguration jsonExtension. */
+ public jsonExtension: (google.cloud.bigquery.v2.JsonExtension|keyof typeof google.cloud.bigquery.v2.JsonExtension);
+
+ /** ExternalDataConfiguration parquetOptions. */
+ public parquetOptions?: (google.cloud.bigquery.v2.IParquetOptions|null);
+
+ /** ExternalDataConfiguration objectMetadata. */
+ public objectMetadata?: (google.cloud.bigquery.v2.ExternalDataConfiguration.ObjectMetadata|keyof typeof google.cloud.bigquery.v2.ExternalDataConfiguration.ObjectMetadata|null);
+
+ /** ExternalDataConfiguration referenceFileSchemaUri. */
+ public referenceFileSchemaUri?: (google.protobuf.IStringValue|null);
+
+ /** ExternalDataConfiguration metadataCacheMode. */
+ public metadataCacheMode: (google.cloud.bigquery.v2.ExternalDataConfiguration.MetadataCacheMode|keyof typeof google.cloud.bigquery.v2.ExternalDataConfiguration.MetadataCacheMode);
+
+ /** ExternalDataConfiguration timeZone. */
+ public timeZone?: (string|null);
+
+ /** ExternalDataConfiguration dateFormat. */
+ public dateFormat?: (string|null);
+
+ /** ExternalDataConfiguration datetimeFormat. */
+ public datetimeFormat?: (string|null);
+
+ /** ExternalDataConfiguration timeFormat. */
+ public timeFormat?: (string|null);
+
+ /** ExternalDataConfiguration timestampFormat. */
+ public timestampFormat?: (string|null);
+
+ /** ExternalDataConfiguration timestampTargetPrecision. */
+ public timestampTargetPrecision: number[];
+
+ /**
+ * Creates a new ExternalDataConfiguration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExternalDataConfiguration instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExternalDataConfiguration): google.cloud.bigquery.v2.ExternalDataConfiguration;
+
+ /**
+ * Encodes the specified ExternalDataConfiguration message. Does not implicitly {@link google.cloud.bigquery.v2.ExternalDataConfiguration.verify|verify} messages.
+ * @param message ExternalDataConfiguration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExternalDataConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExternalDataConfiguration message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExternalDataConfiguration.verify|verify} messages.
+ * @param message ExternalDataConfiguration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExternalDataConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExternalDataConfiguration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExternalDataConfiguration
+ * @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.cloud.bigquery.v2.ExternalDataConfiguration;
+
+ /**
+ * Decodes an ExternalDataConfiguration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExternalDataConfiguration
+ * @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.cloud.bigquery.v2.ExternalDataConfiguration;
+
+ /**
+ * Verifies an ExternalDataConfiguration 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 ExternalDataConfiguration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExternalDataConfiguration
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExternalDataConfiguration;
+
+ /**
+ * Creates a plain object from an ExternalDataConfiguration message. Also converts values to other types if specified.
+ * @param message ExternalDataConfiguration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExternalDataConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExternalDataConfiguration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExternalDataConfiguration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExternalDataConfiguration {
+
+ /** ObjectMetadata enum. */
+ enum ObjectMetadata {
+ OBJECT_METADATA_UNSPECIFIED = 0,
+ DIRECTORY = 1,
+ SIMPLE = 2
+ }
+
+ /** MetadataCacheMode enum. */
+ enum MetadataCacheMode {
+ METADATA_CACHE_MODE_UNSPECIFIED = 0,
+ AUTOMATIC = 1,
+ MANUAL = 2
+ }
+ }
+
+ /** FileSetSpecType enum. */
+ enum FileSetSpecType {
+ FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH = 0,
+ FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST = 1
+ }
+
+ /** Properties of a HivePartitioningOptions. */
+ interface IHivePartitioningOptions {
+
+ /** HivePartitioningOptions mode */
+ mode?: (string|null);
+
+ /** HivePartitioningOptions sourceUriPrefix */
+ sourceUriPrefix?: (string|null);
+
+ /** HivePartitioningOptions requirePartitionFilter */
+ requirePartitionFilter?: (google.protobuf.IBoolValue|null);
+
+ /** HivePartitioningOptions fields */
+ fields?: (string[]|null);
+ }
+
+ /** Represents a HivePartitioningOptions. */
+ class HivePartitioningOptions implements IHivePartitioningOptions {
+
+ /**
+ * Constructs a new HivePartitioningOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IHivePartitioningOptions);
+
+ /** HivePartitioningOptions mode. */
+ public mode: string;
+
+ /** HivePartitioningOptions sourceUriPrefix. */
+ public sourceUriPrefix: string;
+
+ /** HivePartitioningOptions requirePartitionFilter. */
+ public requirePartitionFilter?: (google.protobuf.IBoolValue|null);
+
+ /** HivePartitioningOptions fields. */
+ public fields: string[];
+
+ /**
+ * Creates a new HivePartitioningOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HivePartitioningOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IHivePartitioningOptions): google.cloud.bigquery.v2.HivePartitioningOptions;
+
+ /**
+ * Encodes the specified HivePartitioningOptions message. Does not implicitly {@link google.cloud.bigquery.v2.HivePartitioningOptions.verify|verify} messages.
+ * @param message HivePartitioningOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IHivePartitioningOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HivePartitioningOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.HivePartitioningOptions.verify|verify} messages.
+ * @param message HivePartitioningOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IHivePartitioningOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HivePartitioningOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HivePartitioningOptions
+ * @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.cloud.bigquery.v2.HivePartitioningOptions;
+
+ /**
+ * Decodes a HivePartitioningOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HivePartitioningOptions
+ * @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.cloud.bigquery.v2.HivePartitioningOptions;
+
+ /**
+ * Verifies a HivePartitioningOptions 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 HivePartitioningOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HivePartitioningOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.HivePartitioningOptions;
+
+ /**
+ * Creates a plain object from a HivePartitioningOptions message. Also converts values to other types if specified.
+ * @param message HivePartitioningOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.HivePartitioningOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HivePartitioningOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HivePartitioningOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** JsonExtension enum. */
+ enum JsonExtension {
+ JSON_EXTENSION_UNSPECIFIED = 0,
+ GEOJSON = 1
+ }
+
+ /** MapTargetType enum. */
+ enum MapTargetType {
+ MAP_TARGET_TYPE_UNSPECIFIED = 0,
+ ARRAY_OF_STRUCT = 1
+ }
+
+ /** Properties of a GenAiFunctionErrorStats. */
+ interface IGenAiFunctionErrorStats {
+
+ /** GenAiFunctionErrorStats errors */
+ errors?: (string[]|null);
+
+ /** GenAiFunctionErrorStats numFailedRows */
+ numFailedRows?: (number|Long|string|null);
+ }
+
+ /** Represents a GenAiFunctionErrorStats. */
+ class GenAiFunctionErrorStats implements IGenAiFunctionErrorStats {
+
+ /**
+ * Constructs a new GenAiFunctionErrorStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGenAiFunctionErrorStats);
+
+ /** GenAiFunctionErrorStats errors. */
+ public errors: string[];
+
+ /** GenAiFunctionErrorStats numFailedRows. */
+ public numFailedRows: (number|Long|string);
+
+ /**
+ * Creates a new GenAiFunctionErrorStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenAiFunctionErrorStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGenAiFunctionErrorStats): google.cloud.bigquery.v2.GenAiFunctionErrorStats;
+
+ /**
+ * Encodes the specified GenAiFunctionErrorStats message. Does not implicitly {@link google.cloud.bigquery.v2.GenAiFunctionErrorStats.verify|verify} messages.
+ * @param message GenAiFunctionErrorStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGenAiFunctionErrorStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenAiFunctionErrorStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GenAiFunctionErrorStats.verify|verify} messages.
+ * @param message GenAiFunctionErrorStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGenAiFunctionErrorStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenAiFunctionErrorStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenAiFunctionErrorStats
+ * @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.cloud.bigquery.v2.GenAiFunctionErrorStats;
+
+ /**
+ * Decodes a GenAiFunctionErrorStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenAiFunctionErrorStats
+ * @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.cloud.bigquery.v2.GenAiFunctionErrorStats;
+
+ /**
+ * Verifies a GenAiFunctionErrorStats 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 GenAiFunctionErrorStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenAiFunctionErrorStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GenAiFunctionErrorStats;
+
+ /**
+ * Creates a plain object from a GenAiFunctionErrorStats message. Also converts values to other types if specified.
+ * @param message GenAiFunctionErrorStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GenAiFunctionErrorStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenAiFunctionErrorStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenAiFunctionErrorStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenAiFunctionCostOptimizationStats. */
+ interface IGenAiFunctionCostOptimizationStats {
+
+ /** GenAiFunctionCostOptimizationStats numCostOptimizedRows */
+ numCostOptimizedRows?: (number|Long|string|null);
+
+ /** GenAiFunctionCostOptimizationStats message */
+ message?: (string|null);
+ }
+
+ /** Represents a GenAiFunctionCostOptimizationStats. */
+ class GenAiFunctionCostOptimizationStats implements IGenAiFunctionCostOptimizationStats {
+
+ /**
+ * Constructs a new GenAiFunctionCostOptimizationStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGenAiFunctionCostOptimizationStats);
+
+ /** GenAiFunctionCostOptimizationStats numCostOptimizedRows. */
+ public numCostOptimizedRows?: (number|Long|string|null);
+
+ /** GenAiFunctionCostOptimizationStats message. */
+ public message?: (string|null);
+
+ /**
+ * Creates a new GenAiFunctionCostOptimizationStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenAiFunctionCostOptimizationStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGenAiFunctionCostOptimizationStats): google.cloud.bigquery.v2.GenAiFunctionCostOptimizationStats;
+
+ /**
+ * Encodes the specified GenAiFunctionCostOptimizationStats message. Does not implicitly {@link google.cloud.bigquery.v2.GenAiFunctionCostOptimizationStats.verify|verify} messages.
+ * @param message GenAiFunctionCostOptimizationStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGenAiFunctionCostOptimizationStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenAiFunctionCostOptimizationStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GenAiFunctionCostOptimizationStats.verify|verify} messages.
+ * @param message GenAiFunctionCostOptimizationStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGenAiFunctionCostOptimizationStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenAiFunctionCostOptimizationStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenAiFunctionCostOptimizationStats
+ * @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.cloud.bigquery.v2.GenAiFunctionCostOptimizationStats;
+
+ /**
+ * Decodes a GenAiFunctionCostOptimizationStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenAiFunctionCostOptimizationStats
+ * @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.cloud.bigquery.v2.GenAiFunctionCostOptimizationStats;
+
+ /**
+ * Verifies a GenAiFunctionCostOptimizationStats 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 GenAiFunctionCostOptimizationStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenAiFunctionCostOptimizationStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GenAiFunctionCostOptimizationStats;
+
+ /**
+ * Creates a plain object from a GenAiFunctionCostOptimizationStats message. Also converts values to other types if specified.
+ * @param message GenAiFunctionCostOptimizationStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GenAiFunctionCostOptimizationStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenAiFunctionCostOptimizationStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenAiFunctionCostOptimizationStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenAiFunctionCacheStats. */
+ interface IGenAiFunctionCacheStats {
+
+ /** GenAiFunctionCacheStats numCacheHitRows */
+ numCacheHitRows?: (number|Long|string|null);
+ }
+
+ /** Represents a GenAiFunctionCacheStats. */
+ class GenAiFunctionCacheStats implements IGenAiFunctionCacheStats {
+
+ /**
+ * Constructs a new GenAiFunctionCacheStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGenAiFunctionCacheStats);
+
+ /** GenAiFunctionCacheStats numCacheHitRows. */
+ public numCacheHitRows?: (number|Long|string|null);
+
+ /**
+ * Creates a new GenAiFunctionCacheStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenAiFunctionCacheStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGenAiFunctionCacheStats): google.cloud.bigquery.v2.GenAiFunctionCacheStats;
+
+ /**
+ * Encodes the specified GenAiFunctionCacheStats message. Does not implicitly {@link google.cloud.bigquery.v2.GenAiFunctionCacheStats.verify|verify} messages.
+ * @param message GenAiFunctionCacheStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGenAiFunctionCacheStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenAiFunctionCacheStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GenAiFunctionCacheStats.verify|verify} messages.
+ * @param message GenAiFunctionCacheStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGenAiFunctionCacheStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenAiFunctionCacheStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenAiFunctionCacheStats
+ * @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.cloud.bigquery.v2.GenAiFunctionCacheStats;
+
+ /**
+ * Decodes a GenAiFunctionCacheStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenAiFunctionCacheStats
+ * @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.cloud.bigquery.v2.GenAiFunctionCacheStats;
+
+ /**
+ * Verifies a GenAiFunctionCacheStats 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 GenAiFunctionCacheStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenAiFunctionCacheStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GenAiFunctionCacheStats;
+
+ /**
+ * Creates a plain object from a GenAiFunctionCacheStats message. Also converts values to other types if specified.
+ * @param message GenAiFunctionCacheStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GenAiFunctionCacheStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenAiFunctionCacheStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenAiFunctionCacheStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenAiFunctionStats. */
+ interface IGenAiFunctionStats {
+
+ /** GenAiFunctionStats functionName */
+ functionName?: (string|null);
+
+ /** GenAiFunctionStats prompt */
+ prompt?: (string|null);
+
+ /** GenAiFunctionStats numProcessedRows */
+ numProcessedRows?: (number|Long|string|null);
+
+ /** GenAiFunctionStats errorStats */
+ errorStats?: (google.cloud.bigquery.v2.IGenAiFunctionErrorStats|null);
+
+ /** GenAiFunctionStats costOptimizationStats */
+ costOptimizationStats?: (google.cloud.bigquery.v2.IGenAiFunctionCostOptimizationStats|null);
+
+ /** GenAiFunctionStats cacheStats */
+ cacheStats?: (google.cloud.bigquery.v2.IGenAiFunctionCacheStats|null);
+ }
+
+ /** Represents a GenAiFunctionStats. */
+ class GenAiFunctionStats implements IGenAiFunctionStats {
+
+ /**
+ * Constructs a new GenAiFunctionStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGenAiFunctionStats);
+
+ /** GenAiFunctionStats functionName. */
+ public functionName?: (string|null);
+
+ /** GenAiFunctionStats prompt. */
+ public prompt?: (string|null);
+
+ /** GenAiFunctionStats numProcessedRows. */
+ public numProcessedRows?: (number|Long|string|null);
+
+ /** GenAiFunctionStats errorStats. */
+ public errorStats?: (google.cloud.bigquery.v2.IGenAiFunctionErrorStats|null);
+
+ /** GenAiFunctionStats costOptimizationStats. */
+ public costOptimizationStats?: (google.cloud.bigquery.v2.IGenAiFunctionCostOptimizationStats|null);
+
+ /** GenAiFunctionStats cacheStats. */
+ public cacheStats?: (google.cloud.bigquery.v2.IGenAiFunctionCacheStats|null);
+
+ /**
+ * Creates a new GenAiFunctionStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenAiFunctionStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGenAiFunctionStats): google.cloud.bigquery.v2.GenAiFunctionStats;
+
+ /**
+ * Encodes the specified GenAiFunctionStats message. Does not implicitly {@link google.cloud.bigquery.v2.GenAiFunctionStats.verify|verify} messages.
+ * @param message GenAiFunctionStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGenAiFunctionStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenAiFunctionStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GenAiFunctionStats.verify|verify} messages.
+ * @param message GenAiFunctionStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGenAiFunctionStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenAiFunctionStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenAiFunctionStats
+ * @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.cloud.bigquery.v2.GenAiFunctionStats;
+
+ /**
+ * Decodes a GenAiFunctionStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenAiFunctionStats
+ * @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.cloud.bigquery.v2.GenAiFunctionStats;
+
+ /**
+ * Verifies a GenAiFunctionStats 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 GenAiFunctionStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenAiFunctionStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GenAiFunctionStats;
+
+ /**
+ * Creates a plain object from a GenAiFunctionStats message. Also converts values to other types if specified.
+ * @param message GenAiFunctionStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GenAiFunctionStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenAiFunctionStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenAiFunctionStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenAiErrorStats. */
+ interface IGenAiErrorStats {
+
+ /** GenAiErrorStats errors */
+ errors?: (string[]|null);
+ }
+
+ /** Represents a GenAiErrorStats. */
+ class GenAiErrorStats implements IGenAiErrorStats {
+
+ /**
+ * Constructs a new GenAiErrorStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGenAiErrorStats);
+
+ /** GenAiErrorStats errors. */
+ public errors: string[];
+
+ /**
+ * Creates a new GenAiErrorStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenAiErrorStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGenAiErrorStats): google.cloud.bigquery.v2.GenAiErrorStats;
+
+ /**
+ * Encodes the specified GenAiErrorStats message. Does not implicitly {@link google.cloud.bigquery.v2.GenAiErrorStats.verify|verify} messages.
+ * @param message GenAiErrorStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGenAiErrorStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenAiErrorStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GenAiErrorStats.verify|verify} messages.
+ * @param message GenAiErrorStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGenAiErrorStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenAiErrorStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenAiErrorStats
+ * @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.cloud.bigquery.v2.GenAiErrorStats;
+
+ /**
+ * Decodes a GenAiErrorStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenAiErrorStats
+ * @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.cloud.bigquery.v2.GenAiErrorStats;
+
+ /**
+ * Verifies a GenAiErrorStats 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 GenAiErrorStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenAiErrorStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GenAiErrorStats;
+
+ /**
+ * Creates a plain object from a GenAiErrorStats message. Also converts values to other types if specified.
+ * @param message GenAiErrorStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GenAiErrorStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenAiErrorStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenAiErrorStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenAiStats. */
+ interface IGenAiStats {
+
+ /** GenAiStats errorStats */
+ errorStats?: (google.cloud.bigquery.v2.IGenAiErrorStats|null);
+
+ /** GenAiStats functionStats */
+ functionStats?: (google.cloud.bigquery.v2.IGenAiFunctionStats[]|null);
+ }
+
+ /** Represents a GenAiStats. */
+ class GenAiStats implements IGenAiStats {
+
+ /**
+ * Constructs a new GenAiStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGenAiStats);
+
+ /** GenAiStats errorStats. */
+ public errorStats?: (google.cloud.bigquery.v2.IGenAiErrorStats|null);
+
+ /** GenAiStats functionStats. */
+ public functionStats: google.cloud.bigquery.v2.IGenAiFunctionStats[];
+
+ /**
+ * Creates a new GenAiStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenAiStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGenAiStats): google.cloud.bigquery.v2.GenAiStats;
+
+ /**
+ * Encodes the specified GenAiStats message. Does not implicitly {@link google.cloud.bigquery.v2.GenAiStats.verify|verify} messages.
+ * @param message GenAiStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGenAiStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenAiStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GenAiStats.verify|verify} messages.
+ * @param message GenAiStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGenAiStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenAiStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenAiStats
+ * @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.cloud.bigquery.v2.GenAiStats;
+
+ /**
+ * Decodes a GenAiStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenAiStats
+ * @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.cloud.bigquery.v2.GenAiStats;
+
+ /**
+ * Verifies a GenAiStats 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 GenAiStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenAiStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GenAiStats;
+
+ /**
+ * Creates a plain object from a GenAiStats message. Also converts values to other types if specified.
+ * @param message GenAiStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GenAiStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenAiStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenAiStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a JobService */
+ class JobService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new JobService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new JobService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService;
+
+ /**
+ * Calls CancelJob.
+ * @param request CancelJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and JobCancelResponse
+ */
+ public cancelJob(request: google.cloud.bigquery.v2.ICancelJobRequest, callback: google.cloud.bigquery.v2.JobService.CancelJobCallback): void;
+
+ /**
+ * Calls CancelJob.
+ * @param request CancelJobRequest message or plain object
+ * @returns Promise
+ */
+ public cancelJob(request: google.cloud.bigquery.v2.ICancelJobRequest): Promise;
+
+ /**
+ * Calls GetJob.
+ * @param request GetJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Job
+ */
+ public getJob(request: google.cloud.bigquery.v2.IGetJobRequest, callback: google.cloud.bigquery.v2.JobService.GetJobCallback): void;
+
+ /**
+ * Calls GetJob.
+ * @param request GetJobRequest message or plain object
+ * @returns Promise
+ */
+ public getJob(request: google.cloud.bigquery.v2.IGetJobRequest): Promise;
+
+ /**
+ * Calls InsertJob.
+ * @param request InsertJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Job
+ */
+ public insertJob(request: google.cloud.bigquery.v2.IInsertJobRequest, callback: google.cloud.bigquery.v2.JobService.InsertJobCallback): void;
+
+ /**
+ * Calls InsertJob.
+ * @param request InsertJobRequest message or plain object
+ * @returns Promise
+ */
+ public insertJob(request: google.cloud.bigquery.v2.IInsertJobRequest): Promise;
+
+ /**
+ * Calls DeleteJob.
+ * @param request DeleteJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteJob(request: google.cloud.bigquery.v2.IDeleteJobRequest, callback: google.cloud.bigquery.v2.JobService.DeleteJobCallback): void;
+
+ /**
+ * Calls DeleteJob.
+ * @param request DeleteJobRequest message or plain object
+ * @returns Promise
+ */
+ public deleteJob(request: google.cloud.bigquery.v2.IDeleteJobRequest): Promise;
+
+ /**
+ * Calls ListJobs.
+ * @param request ListJobsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and JobList
+ */
+ public listJobs(request: google.cloud.bigquery.v2.IListJobsRequest, callback: google.cloud.bigquery.v2.JobService.ListJobsCallback): void;
+
+ /**
+ * Calls ListJobs.
+ * @param request ListJobsRequest message or plain object
+ * @returns Promise
+ */
+ public listJobs(request: google.cloud.bigquery.v2.IListJobsRequest): Promise;
+
+ /**
+ * Calls GetQueryResults.
+ * @param request GetQueryResultsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GetQueryResultsResponse
+ */
+ public getQueryResults(request: google.cloud.bigquery.v2.IGetQueryResultsRequest, callback: google.cloud.bigquery.v2.JobService.GetQueryResultsCallback): void;
+
+ /**
+ * Calls GetQueryResults.
+ * @param request GetQueryResultsRequest message or plain object
+ * @returns Promise
+ */
+ public getQueryResults(request: google.cloud.bigquery.v2.IGetQueryResultsRequest): Promise;
+
+ /**
+ * Calls Query.
+ * @param request PostQueryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and QueryResponse
+ */
+ public query(request: google.cloud.bigquery.v2.IPostQueryRequest, callback: google.cloud.bigquery.v2.JobService.QueryCallback): void;
+
+ /**
+ * Calls Query.
+ * @param request PostQueryRequest message or plain object
+ * @returns Promise
+ */
+ public query(request: google.cloud.bigquery.v2.IPostQueryRequest): Promise;
+ }
+
+ namespace JobService {
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.JobService|cancelJob}.
+ * @param error Error, if any
+ * @param [response] JobCancelResponse
+ */
+ type CancelJobCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.JobCancelResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.JobService|getJob}.
+ * @param error Error, if any
+ * @param [response] Job
+ */
+ type GetJobCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Job) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.JobService|insertJob}.
+ * @param error Error, if any
+ * @param [response] Job
+ */
+ type InsertJobCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Job) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.JobService|deleteJob}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.JobService|listJobs}.
+ * @param error Error, if any
+ * @param [response] JobList
+ */
+ type ListJobsCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.JobList) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.JobService|getQueryResults}.
+ * @param error Error, if any
+ * @param [response] GetQueryResultsResponse
+ */
+ type GetQueryResultsCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.GetQueryResultsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.JobService|query}.
+ * @param error Error, if any
+ * @param [response] QueryResponse
+ */
+ type QueryCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.QueryResponse) => void;
+ }
+
+ /** Properties of a Job. */
+ interface IJob {
+
+ /** Job kind */
+ kind?: (string|null);
+
+ /** Job etag */
+ etag?: (string|null);
+
+ /** Job id */
+ id?: (string|null);
+
+ /** Job selfLink */
+ selfLink?: (string|null);
+
+ /** Job userEmail */
+ userEmail?: (string|null);
+
+ /** Job configuration */
+ configuration?: (google.cloud.bigquery.v2.IJobConfiguration|null);
+
+ /** Job jobReference */
+ jobReference?: (google.cloud.bigquery.v2.IJobReference|null);
+
+ /** Job statistics */
+ statistics?: (google.cloud.bigquery.v2.IJobStatistics|null);
+
+ /** Job status */
+ status?: (google.cloud.bigquery.v2.IJobStatus|null);
+
+ /** Job principalSubject */
+ principalSubject?: (string|null);
+
+ /** Job jobCreationReason */
+ jobCreationReason?: (google.cloud.bigquery.v2.IJobCreationReason|null);
+ }
+
+ /** Represents a Job. */
+ class Job implements IJob {
+
+ /**
+ * Constructs a new Job.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJob);
+
+ /** Job kind. */
+ public kind: string;
+
+ /** Job etag. */
+ public etag: string;
+
+ /** Job id. */
+ public id: string;
+
+ /** Job selfLink. */
+ public selfLink: string;
+
+ /** Job userEmail. */
+ public userEmail: string;
+
+ /** Job configuration. */
+ public configuration?: (google.cloud.bigquery.v2.IJobConfiguration|null);
+
+ /** Job jobReference. */
+ public jobReference?: (google.cloud.bigquery.v2.IJobReference|null);
+
+ /** Job statistics. */
+ public statistics?: (google.cloud.bigquery.v2.IJobStatistics|null);
+
+ /** Job status. */
+ public status?: (google.cloud.bigquery.v2.IJobStatus|null);
+
+ /** Job principalSubject. */
+ public principalSubject: string;
+
+ /** Job jobCreationReason. */
+ public jobCreationReason?: (google.cloud.bigquery.v2.IJobCreationReason|null);
+
+ /**
+ * Creates a new Job instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Job instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJob): google.cloud.bigquery.v2.Job;
+
+ /**
+ * Encodes the specified Job message. Does not implicitly {@link google.cloud.bigquery.v2.Job.verify|verify} messages.
+ * @param message Job message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Job message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Job.verify|verify} messages.
+ * @param message Job message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Job message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Job
+ * @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.cloud.bigquery.v2.Job;
+
+ /**
+ * Decodes a Job message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Job
+ * @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.cloud.bigquery.v2.Job;
+
+ /**
+ * Verifies a Job 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 Job message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Job
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Job;
+
+ /**
+ * Creates a plain object from a Job message. Also converts values to other types if specified.
+ * @param message Job
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Job, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Job to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Job
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelJobRequest. */
+ interface ICancelJobRequest {
+
+ /** CancelJobRequest projectId */
+ projectId?: (string|null);
+
+ /** CancelJobRequest jobId */
+ jobId?: (string|null);
+
+ /** CancelJobRequest location */
+ location?: (string|null);
+ }
+
+ /** Represents a CancelJobRequest. */
+ class CancelJobRequest implements ICancelJobRequest {
+
+ /**
+ * Constructs a new CancelJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ICancelJobRequest);
+
+ /** CancelJobRequest projectId. */
+ public projectId: string;
+
+ /** CancelJobRequest jobId. */
+ public jobId: string;
+
+ /** CancelJobRequest location. */
+ public location: string;
+
+ /**
+ * Creates a new CancelJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelJobRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ICancelJobRequest): google.cloud.bigquery.v2.CancelJobRequest;
+
+ /**
+ * Encodes the specified CancelJobRequest message. Does not implicitly {@link google.cloud.bigquery.v2.CancelJobRequest.verify|verify} messages.
+ * @param message CancelJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ICancelJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelJobRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.CancelJobRequest.verify|verify} messages.
+ * @param message CancelJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ICancelJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelJobRequest
+ * @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.cloud.bigquery.v2.CancelJobRequest;
+
+ /**
+ * Decodes a CancelJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelJobRequest
+ * @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.cloud.bigquery.v2.CancelJobRequest;
+
+ /**
+ * Verifies a CancelJobRequest 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 CancelJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.CancelJobRequest;
+
+ /**
+ * Creates a plain object from a CancelJobRequest message. Also converts values to other types if specified.
+ * @param message CancelJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.CancelJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JobCancelResponse. */
+ interface IJobCancelResponse {
+
+ /** JobCancelResponse kind */
+ kind?: (string|null);
+
+ /** JobCancelResponse job */
+ job?: (google.cloud.bigquery.v2.IJob|null);
+ }
+
+ /** Represents a JobCancelResponse. */
+ class JobCancelResponse implements IJobCancelResponse {
+
+ /**
+ * Constructs a new JobCancelResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobCancelResponse);
+
+ /** JobCancelResponse kind. */
+ public kind: string;
+
+ /** JobCancelResponse job. */
+ public job?: (google.cloud.bigquery.v2.IJob|null);
+
+ /**
+ * Creates a new JobCancelResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobCancelResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobCancelResponse): google.cloud.bigquery.v2.JobCancelResponse;
+
+ /**
+ * Encodes the specified JobCancelResponse message. Does not implicitly {@link google.cloud.bigquery.v2.JobCancelResponse.verify|verify} messages.
+ * @param message JobCancelResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobCancelResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobCancelResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobCancelResponse.verify|verify} messages.
+ * @param message JobCancelResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobCancelResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobCancelResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobCancelResponse
+ * @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.cloud.bigquery.v2.JobCancelResponse;
+
+ /**
+ * Decodes a JobCancelResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobCancelResponse
+ * @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.cloud.bigquery.v2.JobCancelResponse;
+
+ /**
+ * Verifies a JobCancelResponse 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 JobCancelResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobCancelResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobCancelResponse;
+
+ /**
+ * Creates a plain object from a JobCancelResponse message. Also converts values to other types if specified.
+ * @param message JobCancelResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobCancelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobCancelResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobCancelResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetJobRequest. */
+ interface IGetJobRequest {
+
+ /** GetJobRequest projectId */
+ projectId?: (string|null);
+
+ /** GetJobRequest jobId */
+ jobId?: (string|null);
+
+ /** GetJobRequest location */
+ location?: (string|null);
+ }
+
+ /** Represents a GetJobRequest. */
+ class GetJobRequest implements IGetJobRequest {
+
+ /**
+ * Constructs a new GetJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetJobRequest);
+
+ /** GetJobRequest projectId. */
+ public projectId: string;
+
+ /** GetJobRequest jobId. */
+ public jobId: string;
+
+ /** GetJobRequest location. */
+ public location: string;
+
+ /**
+ * Creates a new GetJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetJobRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetJobRequest): google.cloud.bigquery.v2.GetJobRequest;
+
+ /**
+ * Encodes the specified GetJobRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetJobRequest.verify|verify} messages.
+ * @param message GetJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetJobRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetJobRequest.verify|verify} messages.
+ * @param message GetJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetJobRequest
+ * @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.cloud.bigquery.v2.GetJobRequest;
+
+ /**
+ * Decodes a GetJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetJobRequest
+ * @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.cloud.bigquery.v2.GetJobRequest;
+
+ /**
+ * Verifies a GetJobRequest 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 GetJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetJobRequest;
+
+ /**
+ * Creates a plain object from a GetJobRequest message. Also converts values to other types if specified.
+ * @param message GetJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InsertJobRequest. */
+ interface IInsertJobRequest {
+
+ /** InsertJobRequest projectId */
+ projectId?: (string|null);
+
+ /** InsertJobRequest job */
+ job?: (google.cloud.bigquery.v2.IJob|null);
+ }
+
+ /** Represents an InsertJobRequest. */
+ class InsertJobRequest implements IInsertJobRequest {
+
+ /**
+ * Constructs a new InsertJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IInsertJobRequest);
+
+ /** InsertJobRequest projectId. */
+ public projectId: string;
+
+ /** InsertJobRequest job. */
+ public job?: (google.cloud.bigquery.v2.IJob|null);
+
+ /**
+ * Creates a new InsertJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InsertJobRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IInsertJobRequest): google.cloud.bigquery.v2.InsertJobRequest;
+
+ /**
+ * Encodes the specified InsertJobRequest message. Does not implicitly {@link google.cloud.bigquery.v2.InsertJobRequest.verify|verify} messages.
+ * @param message InsertJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IInsertJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InsertJobRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.InsertJobRequest.verify|verify} messages.
+ * @param message InsertJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IInsertJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InsertJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InsertJobRequest
+ * @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.cloud.bigquery.v2.InsertJobRequest;
+
+ /**
+ * Decodes an InsertJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InsertJobRequest
+ * @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.cloud.bigquery.v2.InsertJobRequest;
+
+ /**
+ * Verifies an InsertJobRequest 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 InsertJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InsertJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.InsertJobRequest;
+
+ /**
+ * Creates a plain object from an InsertJobRequest message. Also converts values to other types if specified.
+ * @param message InsertJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.InsertJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InsertJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InsertJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteJobRequest. */
+ interface IDeleteJobRequest {
+
+ /** DeleteJobRequest projectId */
+ projectId?: (string|null);
+
+ /** DeleteJobRequest jobId */
+ jobId?: (string|null);
+
+ /** DeleteJobRequest location */
+ location?: (string|null);
+ }
+
+ /** Represents a DeleteJobRequest. */
+ class DeleteJobRequest implements IDeleteJobRequest {
+
+ /**
+ * Constructs a new DeleteJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDeleteJobRequest);
+
+ /** DeleteJobRequest projectId. */
+ public projectId: string;
+
+ /** DeleteJobRequest jobId. */
+ public jobId: string;
+
+ /** DeleteJobRequest location. */
+ public location: string;
+
+ /**
+ * Creates a new DeleteJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteJobRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDeleteJobRequest): google.cloud.bigquery.v2.DeleteJobRequest;
+
+ /**
+ * Encodes the specified DeleteJobRequest message. Does not implicitly {@link google.cloud.bigquery.v2.DeleteJobRequest.verify|verify} messages.
+ * @param message DeleteJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteJobRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DeleteJobRequest.verify|verify} messages.
+ * @param message DeleteJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDeleteJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteJobRequest
+ * @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.cloud.bigquery.v2.DeleteJobRequest;
+
+ /**
+ * Decodes a DeleteJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteJobRequest
+ * @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.cloud.bigquery.v2.DeleteJobRequest;
+
+ /**
+ * Verifies a DeleteJobRequest 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 DeleteJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DeleteJobRequest;
+
+ /**
+ * Creates a plain object from a DeleteJobRequest message. Also converts values to other types if specified.
+ * @param message DeleteJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DeleteJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListJobsRequest. */
+ interface IListJobsRequest {
+
+ /** ListJobsRequest projectId */
+ projectId?: (string|null);
+
+ /** ListJobsRequest allUsers */
+ allUsers?: (boolean|null);
+
+ /** ListJobsRequest maxResults */
+ maxResults?: (google.protobuf.IInt32Value|null);
+
+ /** ListJobsRequest minCreationTime */
+ minCreationTime?: (number|Long|string|null);
+
+ /** ListJobsRequest maxCreationTime */
+ maxCreationTime?: (google.protobuf.IUInt64Value|null);
+
+ /** ListJobsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListJobsRequest projection */
+ projection?: (google.cloud.bigquery.v2.ListJobsRequest.Projection|keyof typeof google.cloud.bigquery.v2.ListJobsRequest.Projection|null);
+
+ /** ListJobsRequest stateFilter */
+ stateFilter?: (google.cloud.bigquery.v2.ListJobsRequest.StateFilter[]|null);
+
+ /** ListJobsRequest parentJobId */
+ parentJobId?: (string|null);
+ }
+
+ /** Represents a ListJobsRequest. */
+ class ListJobsRequest implements IListJobsRequest {
+
+ /**
+ * Constructs a new ListJobsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListJobsRequest);
+
+ /** ListJobsRequest projectId. */
+ public projectId: string;
+
+ /** ListJobsRequest allUsers. */
+ public allUsers: boolean;
+
+ /** ListJobsRequest maxResults. */
+ public maxResults?: (google.protobuf.IInt32Value|null);
+
+ /** ListJobsRequest minCreationTime. */
+ public minCreationTime: (number|Long|string);
+
+ /** ListJobsRequest maxCreationTime. */
+ public maxCreationTime?: (google.protobuf.IUInt64Value|null);
+
+ /** ListJobsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListJobsRequest projection. */
+ public projection: (google.cloud.bigquery.v2.ListJobsRequest.Projection|keyof typeof google.cloud.bigquery.v2.ListJobsRequest.Projection);
+
+ /** ListJobsRequest stateFilter. */
+ public stateFilter: google.cloud.bigquery.v2.ListJobsRequest.StateFilter[];
+
+ /** ListJobsRequest parentJobId. */
+ public parentJobId: string;
+
+ /**
+ * Creates a new ListJobsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListJobsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListJobsRequest): google.cloud.bigquery.v2.ListJobsRequest;
+
+ /**
+ * Encodes the specified ListJobsRequest message. Does not implicitly {@link google.cloud.bigquery.v2.ListJobsRequest.verify|verify} messages.
+ * @param message ListJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListJobsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListJobsRequest.verify|verify} messages.
+ * @param message ListJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListJobsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListJobsRequest
+ * @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.cloud.bigquery.v2.ListJobsRequest;
+
+ /**
+ * Decodes a ListJobsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListJobsRequest
+ * @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.cloud.bigquery.v2.ListJobsRequest;
+
+ /**
+ * Verifies a ListJobsRequest 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 ListJobsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListJobsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListJobsRequest;
+
+ /**
+ * Creates a plain object from a ListJobsRequest message. Also converts values to other types if specified.
+ * @param message ListJobsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListJobsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListJobsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ListJobsRequest {
+
+ /** Projection enum. */
+ enum Projection {
+ minimal = 0,
+ MINIMAL = 0,
+ full = 1,
+ FULL = 1
+ }
+
+ /** StateFilter enum. */
+ enum StateFilter {
+ done = 0,
+ DONE = 0,
+ pending = 1,
+ PENDING = 1,
+ running = 2,
+ RUNNING = 2
+ }
+ }
+
+ /** Properties of a ListFormatJob. */
+ interface IListFormatJob {
+
+ /** ListFormatJob id */
+ id?: (string|null);
+
+ /** ListFormatJob kind */
+ kind?: (string|null);
+
+ /** ListFormatJob jobReference */
+ jobReference?: (google.cloud.bigquery.v2.IJobReference|null);
+
+ /** ListFormatJob state */
+ state?: (string|null);
+
+ /** ListFormatJob errorResult */
+ errorResult?: (google.cloud.bigquery.v2.IErrorProto|null);
+
+ /** ListFormatJob statistics */
+ statistics?: (google.cloud.bigquery.v2.IJobStatistics|null);
+
+ /** ListFormatJob configuration */
+ configuration?: (google.cloud.bigquery.v2.IJobConfiguration|null);
+
+ /** ListFormatJob status */
+ status?: (google.cloud.bigquery.v2.IJobStatus|null);
+
+ /** ListFormatJob userEmail */
+ userEmail?: (string|null);
+
+ /** ListFormatJob principalSubject */
+ principalSubject?: (string|null);
+ }
+
+ /** Represents a ListFormatJob. */
+ class ListFormatJob implements IListFormatJob {
+
+ /**
+ * Constructs a new ListFormatJob.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListFormatJob);
+
+ /** ListFormatJob id. */
+ public id: string;
+
+ /** ListFormatJob kind. */
+ public kind: string;
+
+ /** ListFormatJob jobReference. */
+ public jobReference?: (google.cloud.bigquery.v2.IJobReference|null);
+
+ /** ListFormatJob state. */
+ public state: string;
+
+ /** ListFormatJob errorResult. */
+ public errorResult?: (google.cloud.bigquery.v2.IErrorProto|null);
+
+ /** ListFormatJob statistics. */
+ public statistics?: (google.cloud.bigquery.v2.IJobStatistics|null);
+
+ /** ListFormatJob configuration. */
+ public configuration?: (google.cloud.bigquery.v2.IJobConfiguration|null);
+
+ /** ListFormatJob status. */
+ public status?: (google.cloud.bigquery.v2.IJobStatus|null);
+
+ /** ListFormatJob userEmail. */
+ public userEmail: string;
+
+ /** ListFormatJob principalSubject. */
+ public principalSubject: string;
+
+ /**
+ * Creates a new ListFormatJob instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFormatJob instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListFormatJob): google.cloud.bigquery.v2.ListFormatJob;
+
+ /**
+ * Encodes the specified ListFormatJob message. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatJob.verify|verify} messages.
+ * @param message ListFormatJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListFormatJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFormatJob message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatJob.verify|verify} messages.
+ * @param message ListFormatJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListFormatJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFormatJob message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFormatJob
+ * @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.cloud.bigquery.v2.ListFormatJob;
+
+ /**
+ * Decodes a ListFormatJob message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFormatJob
+ * @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.cloud.bigquery.v2.ListFormatJob;
+
+ /**
+ * Verifies a ListFormatJob 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 ListFormatJob message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFormatJob
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListFormatJob;
+
+ /**
+ * Creates a plain object from a ListFormatJob message. Also converts values to other types if specified.
+ * @param message ListFormatJob
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListFormatJob, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFormatJob to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFormatJob
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JobList. */
+ interface IJobList {
+
+ /** JobList etag */
+ etag?: (string|null);
+
+ /** JobList kind */
+ kind?: (string|null);
+
+ /** JobList nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** JobList jobs */
+ jobs?: (google.cloud.bigquery.v2.IListFormatJob[]|null);
+
+ /** JobList unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a JobList. */
+ class JobList implements IJobList {
+
+ /**
+ * Constructs a new JobList.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobList);
+
+ /** JobList etag. */
+ public etag: string;
+
+ /** JobList kind. */
+ public kind: string;
+
+ /** JobList nextPageToken. */
+ public nextPageToken: string;
+
+ /** JobList jobs. */
+ public jobs: google.cloud.bigquery.v2.IListFormatJob[];
+
+ /** JobList unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new JobList instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobList instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobList): google.cloud.bigquery.v2.JobList;
+
+ /**
+ * Encodes the specified JobList message. Does not implicitly {@link google.cloud.bigquery.v2.JobList.verify|verify} messages.
+ * @param message JobList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobList message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobList.verify|verify} messages.
+ * @param message JobList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobList message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobList
+ * @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.cloud.bigquery.v2.JobList;
+
+ /**
+ * Decodes a JobList message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobList
+ * @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.cloud.bigquery.v2.JobList;
+
+ /**
+ * Verifies a JobList 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 JobList message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobList
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobList;
+
+ /**
+ * Creates a plain object from a JobList message. Also converts values to other types if specified.
+ * @param message JobList
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobList, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobList to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobList
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetQueryResultsRequest. */
+ interface IGetQueryResultsRequest {
+
+ /** GetQueryResultsRequest projectId */
+ projectId?: (string|null);
+
+ /** GetQueryResultsRequest jobId */
+ jobId?: (string|null);
+
+ /** GetQueryResultsRequest startIndex */
+ startIndex?: (google.protobuf.IUInt64Value|null);
+
+ /** GetQueryResultsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** GetQueryResultsRequest maxResults */
+ maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** GetQueryResultsRequest timeoutMs */
+ timeoutMs?: (google.protobuf.IUInt32Value|null);
+
+ /** GetQueryResultsRequest location */
+ location?: (string|null);
+
+ /** GetQueryResultsRequest formatOptions */
+ formatOptions?: (google.cloud.bigquery.v2.IDataFormatOptions|null);
+ }
+
+ /** Represents a GetQueryResultsRequest. */
+ class GetQueryResultsRequest implements IGetQueryResultsRequest {
+
+ /**
+ * Constructs a new GetQueryResultsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetQueryResultsRequest);
+
+ /** GetQueryResultsRequest projectId. */
+ public projectId: string;
+
+ /** GetQueryResultsRequest jobId. */
+ public jobId: string;
+
+ /** GetQueryResultsRequest startIndex. */
+ public startIndex?: (google.protobuf.IUInt64Value|null);
+
+ /** GetQueryResultsRequest pageToken. */
+ public pageToken: string;
+
+ /** GetQueryResultsRequest maxResults. */
+ public maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** GetQueryResultsRequest timeoutMs. */
+ public timeoutMs?: (google.protobuf.IUInt32Value|null);
+
+ /** GetQueryResultsRequest location. */
+ public location: string;
+
+ /** GetQueryResultsRequest formatOptions. */
+ public formatOptions?: (google.cloud.bigquery.v2.IDataFormatOptions|null);
+
+ /**
+ * Creates a new GetQueryResultsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetQueryResultsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetQueryResultsRequest): google.cloud.bigquery.v2.GetQueryResultsRequest;
+
+ /**
+ * Encodes the specified GetQueryResultsRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetQueryResultsRequest.verify|verify} messages.
+ * @param message GetQueryResultsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetQueryResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetQueryResultsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetQueryResultsRequest.verify|verify} messages.
+ * @param message GetQueryResultsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetQueryResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetQueryResultsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetQueryResultsRequest
+ * @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.cloud.bigquery.v2.GetQueryResultsRequest;
+
+ /**
+ * Decodes a GetQueryResultsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetQueryResultsRequest
+ * @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.cloud.bigquery.v2.GetQueryResultsRequest;
+
+ /**
+ * Verifies a GetQueryResultsRequest 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 GetQueryResultsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetQueryResultsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetQueryResultsRequest;
+
+ /**
+ * Creates a plain object from a GetQueryResultsRequest message. Also converts values to other types if specified.
+ * @param message GetQueryResultsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetQueryResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetQueryResultsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetQueryResultsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetQueryResultsResponse. */
+ interface IGetQueryResultsResponse {
+
+ /** GetQueryResultsResponse kind */
+ kind?: (string|null);
+
+ /** GetQueryResultsResponse etag */
+ etag?: (string|null);
+
+ /** GetQueryResultsResponse schema */
+ schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** GetQueryResultsResponse jobReference */
+ jobReference?: (google.cloud.bigquery.v2.IJobReference|null);
+
+ /** GetQueryResultsResponse totalRows */
+ totalRows?: (google.protobuf.IUInt64Value|null);
+
+ /** GetQueryResultsResponse pageToken */
+ pageToken?: (string|null);
+
+ /** GetQueryResultsResponse rows */
+ rows?: (google.protobuf.IStruct[]|null);
+
+ /** GetQueryResultsResponse totalBytesProcessed */
+ totalBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** GetQueryResultsResponse jobComplete */
+ jobComplete?: (google.protobuf.IBoolValue|null);
+
+ /** GetQueryResultsResponse errors */
+ errors?: (google.cloud.bigquery.v2.IErrorProto[]|null);
+
+ /** GetQueryResultsResponse cacheHit */
+ cacheHit?: (google.protobuf.IBoolValue|null);
+
+ /** GetQueryResultsResponse numDmlAffectedRows */
+ numDmlAffectedRows?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a GetQueryResultsResponse. */
+ class GetQueryResultsResponse implements IGetQueryResultsResponse {
+
+ /**
+ * Constructs a new GetQueryResultsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetQueryResultsResponse);
+
+ /** GetQueryResultsResponse kind. */
+ public kind: string;
+
+ /** GetQueryResultsResponse etag. */
+ public etag: string;
+
+ /** GetQueryResultsResponse schema. */
+ public schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** GetQueryResultsResponse jobReference. */
+ public jobReference?: (google.cloud.bigquery.v2.IJobReference|null);
+
+ /** GetQueryResultsResponse totalRows. */
+ public totalRows?: (google.protobuf.IUInt64Value|null);
+
+ /** GetQueryResultsResponse pageToken. */
+ public pageToken: string;
+
+ /** GetQueryResultsResponse rows. */
+ public rows: google.protobuf.IStruct[];
+
+ /** GetQueryResultsResponse totalBytesProcessed. */
+ public totalBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** GetQueryResultsResponse jobComplete. */
+ public jobComplete?: (google.protobuf.IBoolValue|null);
+
+ /** GetQueryResultsResponse errors. */
+ public errors: google.cloud.bigquery.v2.IErrorProto[];
+
+ /** GetQueryResultsResponse cacheHit. */
+ public cacheHit?: (google.protobuf.IBoolValue|null);
+
+ /** GetQueryResultsResponse numDmlAffectedRows. */
+ public numDmlAffectedRows?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new GetQueryResultsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetQueryResultsResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetQueryResultsResponse): google.cloud.bigquery.v2.GetQueryResultsResponse;
+
+ /**
+ * Encodes the specified GetQueryResultsResponse message. Does not implicitly {@link google.cloud.bigquery.v2.GetQueryResultsResponse.verify|verify} messages.
+ * @param message GetQueryResultsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetQueryResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetQueryResultsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetQueryResultsResponse.verify|verify} messages.
+ * @param message GetQueryResultsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetQueryResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetQueryResultsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetQueryResultsResponse
+ * @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.cloud.bigquery.v2.GetQueryResultsResponse;
+
+ /**
+ * Decodes a GetQueryResultsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetQueryResultsResponse
+ * @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.cloud.bigquery.v2.GetQueryResultsResponse;
+
+ /**
+ * Verifies a GetQueryResultsResponse 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 GetQueryResultsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetQueryResultsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetQueryResultsResponse;
+
+ /**
+ * Creates a plain object from a GetQueryResultsResponse message. Also converts values to other types if specified.
+ * @param message GetQueryResultsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetQueryResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetQueryResultsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetQueryResultsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PostQueryRequest. */
+ interface IPostQueryRequest {
+
+ /** PostQueryRequest projectId */
+ projectId?: (string|null);
+
+ /** PostQueryRequest queryRequest */
+ queryRequest?: (google.cloud.bigquery.v2.IQueryRequest|null);
+ }
+
+ /** Represents a PostQueryRequest. */
+ class PostQueryRequest implements IPostQueryRequest {
+
+ /**
+ * Constructs a new PostQueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPostQueryRequest);
+
+ /** PostQueryRequest projectId. */
+ public projectId: string;
+
+ /** PostQueryRequest queryRequest. */
+ public queryRequest?: (google.cloud.bigquery.v2.IQueryRequest|null);
+
+ /**
+ * Creates a new PostQueryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PostQueryRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPostQueryRequest): google.cloud.bigquery.v2.PostQueryRequest;
+
+ /**
+ * Encodes the specified PostQueryRequest message. Does not implicitly {@link google.cloud.bigquery.v2.PostQueryRequest.verify|verify} messages.
+ * @param message PostQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPostQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PostQueryRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PostQueryRequest.verify|verify} messages.
+ * @param message PostQueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPostQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PostQueryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PostQueryRequest
+ * @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.cloud.bigquery.v2.PostQueryRequest;
+
+ /**
+ * Decodes a PostQueryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PostQueryRequest
+ * @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.cloud.bigquery.v2.PostQueryRequest;
+
+ /**
+ * Verifies a PostQueryRequest 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 PostQueryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PostQueryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PostQueryRequest;
+
+ /**
+ * Creates a plain object from a PostQueryRequest message. Also converts values to other types if specified.
+ * @param message PostQueryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PostQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PostQueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PostQueryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryRequest. */
+ interface IQueryRequest {
+
+ /** QueryRequest kind */
+ kind?: (string|null);
+
+ /** QueryRequest query */
+ query?: (string|null);
+
+ /** QueryRequest maxResults */
+ maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** QueryRequest defaultDataset */
+ defaultDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** QueryRequest timeoutMs */
+ timeoutMs?: (google.protobuf.IUInt32Value|null);
+
+ /** QueryRequest jobTimeoutMs */
+ jobTimeoutMs?: (number|Long|string|null);
+
+ /** QueryRequest maxSlots */
+ maxSlots?: (number|null);
+
+ /** QueryRequest destinationEncryptionConfiguration */
+ destinationEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** QueryRequest dryRun */
+ dryRun?: (boolean|null);
+
+ /** QueryRequest useQueryCache */
+ useQueryCache?: (google.protobuf.IBoolValue|null);
+
+ /** QueryRequest useLegacySql */
+ useLegacySql?: (google.protobuf.IBoolValue|null);
+
+ /** QueryRequest parameterMode */
+ parameterMode?: (string|null);
+
+ /** QueryRequest queryParameters */
+ queryParameters?: (google.cloud.bigquery.v2.IQueryParameter[]|null);
+
+ /** QueryRequest location */
+ location?: (string|null);
+
+ /** QueryRequest formatOptions */
+ formatOptions?: (google.cloud.bigquery.v2.IDataFormatOptions|null);
+
+ /** QueryRequest connectionProperties */
+ connectionProperties?: (google.cloud.bigquery.v2.IConnectionProperty[]|null);
+
+ /** QueryRequest labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** QueryRequest maximumBytesBilled */
+ maximumBytesBilled?: (google.protobuf.IInt64Value|null);
+
+ /** QueryRequest requestId */
+ requestId?: (string|null);
+
+ /** QueryRequest createSession */
+ createSession?: (google.protobuf.IBoolValue|null);
+
+ /** QueryRequest jobCreationMode */
+ jobCreationMode?: (google.cloud.bigquery.v2.QueryRequest.JobCreationMode|keyof typeof google.cloud.bigquery.v2.QueryRequest.JobCreationMode|null);
+
+ /** QueryRequest reservation */
+ reservation?: (string|null);
+
+ /** QueryRequest writeIncrementalResults */
+ writeIncrementalResults?: (boolean|null);
+ }
+
+ /** Represents a QueryRequest. */
+ class QueryRequest implements IQueryRequest {
+
+ /**
+ * Constructs a new QueryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IQueryRequest);
+
+ /** QueryRequest kind. */
+ public kind: string;
+
+ /** QueryRequest query. */
+ public query: string;
+
+ /** QueryRequest maxResults. */
+ public maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** QueryRequest defaultDataset. */
+ public defaultDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** QueryRequest timeoutMs. */
+ public timeoutMs?: (google.protobuf.IUInt32Value|null);
+
+ /** QueryRequest jobTimeoutMs. */
+ public jobTimeoutMs?: (number|Long|string|null);
+
+ /** QueryRequest maxSlots. */
+ public maxSlots?: (number|null);
+
+ /** QueryRequest destinationEncryptionConfiguration. */
+ public destinationEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** QueryRequest dryRun. */
+ public dryRun: boolean;
+
+ /** QueryRequest useQueryCache. */
+ public useQueryCache?: (google.protobuf.IBoolValue|null);
+
+ /** QueryRequest useLegacySql. */
+ public useLegacySql?: (google.protobuf.IBoolValue|null);
+
+ /** QueryRequest parameterMode. */
+ public parameterMode: string;
+
+ /** QueryRequest queryParameters. */
+ public queryParameters: google.cloud.bigquery.v2.IQueryParameter[];
+
+ /** QueryRequest location. */
+ public location: string;
+
+ /** QueryRequest formatOptions. */
+ public formatOptions?: (google.cloud.bigquery.v2.IDataFormatOptions|null);
+
+ /** QueryRequest connectionProperties. */
+ public connectionProperties: google.cloud.bigquery.v2.IConnectionProperty[];
+
+ /** QueryRequest labels. */
+ public labels: { [k: string]: string };
+
+ /** QueryRequest maximumBytesBilled. */
+ public maximumBytesBilled?: (google.protobuf.IInt64Value|null);
+
+ /** QueryRequest requestId. */
+ public requestId: string;
+
+ /** QueryRequest createSession. */
+ public createSession?: (google.protobuf.IBoolValue|null);
+
+ /** QueryRequest jobCreationMode. */
+ public jobCreationMode: (google.cloud.bigquery.v2.QueryRequest.JobCreationMode|keyof typeof google.cloud.bigquery.v2.QueryRequest.JobCreationMode);
+
+ /** QueryRequest reservation. */
+ public reservation?: (string|null);
+
+ /** QueryRequest writeIncrementalResults. */
+ public writeIncrementalResults: boolean;
+
+ /**
+ * Creates a new QueryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IQueryRequest): google.cloud.bigquery.v2.QueryRequest;
+
+ /**
+ * Encodes the specified QueryRequest message. Does not implicitly {@link google.cloud.bigquery.v2.QueryRequest.verify|verify} messages.
+ * @param message QueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.QueryRequest.verify|verify} messages.
+ * @param message QueryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryRequest
+ * @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.cloud.bigquery.v2.QueryRequest;
+
+ /**
+ * Decodes a QueryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryRequest
+ * @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.cloud.bigquery.v2.QueryRequest;
+
+ /**
+ * Verifies a QueryRequest 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 QueryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.QueryRequest;
+
+ /**
+ * Creates a plain object from a QueryRequest message. Also converts values to other types if specified.
+ * @param message QueryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.QueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace QueryRequest {
+
+ /** JobCreationMode enum. */
+ enum JobCreationMode {
+ JOB_CREATION_MODE_UNSPECIFIED = 0,
+ JOB_CREATION_REQUIRED = 1,
+ JOB_CREATION_OPTIONAL = 2
+ }
+ }
+
+ /** Properties of a QueryResponse. */
+ interface IQueryResponse {
+
+ /** QueryResponse kind */
+ kind?: (string|null);
+
+ /** QueryResponse schema */
+ schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** QueryResponse jobReference */
+ jobReference?: (google.cloud.bigquery.v2.IJobReference|null);
+
+ /** QueryResponse jobCreationReason */
+ jobCreationReason?: (google.cloud.bigquery.v2.IJobCreationReason|null);
+
+ /** QueryResponse queryId */
+ queryId?: (string|null);
+
+ /** QueryResponse location */
+ location?: (string|null);
+
+ /** QueryResponse totalRows */
+ totalRows?: (google.protobuf.IUInt64Value|null);
+
+ /** QueryResponse pageToken */
+ pageToken?: (string|null);
+
+ /** QueryResponse rows */
+ rows?: (google.protobuf.IStruct[]|null);
+
+ /** QueryResponse totalBytesProcessed */
+ totalBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** QueryResponse totalBytesBilled */
+ totalBytesBilled?: (number|Long|string|null);
+
+ /** QueryResponse totalSlotMs */
+ totalSlotMs?: (number|Long|string|null);
+
+ /** QueryResponse jobComplete */
+ jobComplete?: (google.protobuf.IBoolValue|null);
+
+ /** QueryResponse errors */
+ errors?: (google.cloud.bigquery.v2.IErrorProto[]|null);
+
+ /** QueryResponse cacheHit */
+ cacheHit?: (google.protobuf.IBoolValue|null);
+
+ /** QueryResponse numDmlAffectedRows */
+ numDmlAffectedRows?: (google.protobuf.IInt64Value|null);
+
+ /** QueryResponse sessionInfo */
+ sessionInfo?: (google.cloud.bigquery.v2.ISessionInfo|null);
+
+ /** QueryResponse dmlStats */
+ dmlStats?: (google.cloud.bigquery.v2.IDmlStats|null);
+
+ /** QueryResponse creationTime */
+ creationTime?: (number|Long|string|null);
+
+ /** QueryResponse startTime */
+ startTime?: (number|Long|string|null);
+
+ /** QueryResponse endTime */
+ endTime?: (number|Long|string|null);
+ }
+
+ /** Represents a QueryResponse. */
+ class QueryResponse implements IQueryResponse {
+
+ /**
+ * Constructs a new QueryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IQueryResponse);
+
+ /** QueryResponse kind. */
+ public kind: string;
+
+ /** QueryResponse schema. */
+ public schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** QueryResponse jobReference. */
+ public jobReference?: (google.cloud.bigquery.v2.IJobReference|null);
+
+ /** QueryResponse jobCreationReason. */
+ public jobCreationReason?: (google.cloud.bigquery.v2.IJobCreationReason|null);
+
+ /** QueryResponse queryId. */
+ public queryId: string;
+
+ /** QueryResponse location. */
+ public location: string;
+
+ /** QueryResponse totalRows. */
+ public totalRows?: (google.protobuf.IUInt64Value|null);
+
+ /** QueryResponse pageToken. */
+ public pageToken: string;
+
+ /** QueryResponse rows. */
+ public rows: google.protobuf.IStruct[];
+
+ /** QueryResponse totalBytesProcessed. */
+ public totalBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** QueryResponse totalBytesBilled. */
+ public totalBytesBilled?: (number|Long|string|null);
+
+ /** QueryResponse totalSlotMs. */
+ public totalSlotMs?: (number|Long|string|null);
+
+ /** QueryResponse jobComplete. */
+ public jobComplete?: (google.protobuf.IBoolValue|null);
+
+ /** QueryResponse errors. */
+ public errors: google.cloud.bigquery.v2.IErrorProto[];
+
+ /** QueryResponse cacheHit. */
+ public cacheHit?: (google.protobuf.IBoolValue|null);
+
+ /** QueryResponse numDmlAffectedRows. */
+ public numDmlAffectedRows?: (google.protobuf.IInt64Value|null);
+
+ /** QueryResponse sessionInfo. */
+ public sessionInfo?: (google.cloud.bigquery.v2.ISessionInfo|null);
+
+ /** QueryResponse dmlStats. */
+ public dmlStats?: (google.cloud.bigquery.v2.IDmlStats|null);
+
+ /** QueryResponse creationTime. */
+ public creationTime?: (number|Long|string|null);
+
+ /** QueryResponse startTime. */
+ public startTime?: (number|Long|string|null);
+
+ /** QueryResponse endTime. */
+ public endTime?: (number|Long|string|null);
+
+ /**
+ * Creates a new QueryResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IQueryResponse): google.cloud.bigquery.v2.QueryResponse;
+
+ /**
+ * Encodes the specified QueryResponse message. Does not implicitly {@link google.cloud.bigquery.v2.QueryResponse.verify|verify} messages.
+ * @param message QueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.QueryResponse.verify|verify} messages.
+ * @param message QueryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryResponse
+ * @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.cloud.bigquery.v2.QueryResponse;
+
+ /**
+ * Decodes a QueryResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryResponse
+ * @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.cloud.bigquery.v2.QueryResponse;
+
+ /**
+ * Verifies a QueryResponse 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 QueryResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.QueryResponse;
+
+ /**
+ * Creates a plain object from a QueryResponse message. Also converts values to other types if specified.
+ * @param message QueryResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.QueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DestinationTableProperties. */
+ interface IDestinationTableProperties {
+
+ /** DestinationTableProperties friendlyName */
+ friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** DestinationTableProperties description */
+ description?: (google.protobuf.IStringValue|null);
+
+ /** DestinationTableProperties labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a DestinationTableProperties. */
+ class DestinationTableProperties implements IDestinationTableProperties {
+
+ /**
+ * Constructs a new DestinationTableProperties.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDestinationTableProperties);
+
+ /** DestinationTableProperties friendlyName. */
+ public friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** DestinationTableProperties description. */
+ public description?: (google.protobuf.IStringValue|null);
+
+ /** DestinationTableProperties labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new DestinationTableProperties instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DestinationTableProperties instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDestinationTableProperties): google.cloud.bigquery.v2.DestinationTableProperties;
+
+ /**
+ * Encodes the specified DestinationTableProperties message. Does not implicitly {@link google.cloud.bigquery.v2.DestinationTableProperties.verify|verify} messages.
+ * @param message DestinationTableProperties message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDestinationTableProperties, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DestinationTableProperties message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DestinationTableProperties.verify|verify} messages.
+ * @param message DestinationTableProperties message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDestinationTableProperties, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DestinationTableProperties message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DestinationTableProperties
+ * @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.cloud.bigquery.v2.DestinationTableProperties;
+
+ /**
+ * Decodes a DestinationTableProperties message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DestinationTableProperties
+ * @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.cloud.bigquery.v2.DestinationTableProperties;
+
+ /**
+ * Verifies a DestinationTableProperties 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 DestinationTableProperties message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DestinationTableProperties
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DestinationTableProperties;
+
+ /**
+ * Creates a plain object from a DestinationTableProperties message. Also converts values to other types if specified.
+ * @param message DestinationTableProperties
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DestinationTableProperties, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DestinationTableProperties to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DestinationTableProperties
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConnectionProperty. */
+ interface IConnectionProperty {
+
+ /** ConnectionProperty key */
+ key?: (string|null);
+
+ /** ConnectionProperty value */
+ value?: (string|null);
+ }
+
+ /** Represents a ConnectionProperty. */
+ class ConnectionProperty implements IConnectionProperty {
+
+ /**
+ * Constructs a new ConnectionProperty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IConnectionProperty);
+
+ /** ConnectionProperty key. */
+ public key: string;
+
+ /** ConnectionProperty value. */
+ public value: string;
+
+ /**
+ * Creates a new ConnectionProperty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConnectionProperty instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IConnectionProperty): google.cloud.bigquery.v2.ConnectionProperty;
+
+ /**
+ * Encodes the specified ConnectionProperty message. Does not implicitly {@link google.cloud.bigquery.v2.ConnectionProperty.verify|verify} messages.
+ * @param message ConnectionProperty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IConnectionProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConnectionProperty message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ConnectionProperty.verify|verify} messages.
+ * @param message ConnectionProperty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IConnectionProperty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConnectionProperty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConnectionProperty
+ * @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.cloud.bigquery.v2.ConnectionProperty;
+
+ /**
+ * Decodes a ConnectionProperty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConnectionProperty
+ * @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.cloud.bigquery.v2.ConnectionProperty;
+
+ /**
+ * Verifies a ConnectionProperty 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 ConnectionProperty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConnectionProperty
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ConnectionProperty;
+
+ /**
+ * Creates a plain object from a ConnectionProperty message. Also converts values to other types if specified.
+ * @param message ConnectionProperty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ConnectionProperty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConnectionProperty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConnectionProperty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JobConfigurationQuery. */
+ interface IJobConfigurationQuery {
+
+ /** JobConfigurationQuery query */
+ query?: (string|null);
+
+ /** JobConfigurationQuery destinationTable */
+ destinationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationQuery externalTableDefinitions */
+ externalTableDefinitions?: ({ [k: string]: google.cloud.bigquery.v2.IExternalDataConfiguration }|null);
+
+ /** JobConfigurationQuery userDefinedFunctionResources */
+ userDefinedFunctionResources?: (google.cloud.bigquery.v2.IUserDefinedFunctionResource[]|null);
+
+ /** JobConfigurationQuery createDisposition */
+ createDisposition?: (string|null);
+
+ /** JobConfigurationQuery writeDisposition */
+ writeDisposition?: (string|null);
+
+ /** JobConfigurationQuery defaultDataset */
+ defaultDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** JobConfigurationQuery priority */
+ priority?: (string|null);
+
+ /** JobConfigurationQuery allowLargeResults */
+ allowLargeResults?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery useQueryCache */
+ useQueryCache?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery flattenResults */
+ flattenResults?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery maximumBytesBilled */
+ maximumBytesBilled?: (google.protobuf.IInt64Value|null);
+
+ /** JobConfigurationQuery useLegacySql */
+ useLegacySql?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery parameterMode */
+ parameterMode?: (string|null);
+
+ /** JobConfigurationQuery queryParameters */
+ queryParameters?: (google.cloud.bigquery.v2.IQueryParameter[]|null);
+
+ /** JobConfigurationQuery systemVariables */
+ systemVariables?: (google.cloud.bigquery.v2.ISystemVariables|null);
+
+ /** JobConfigurationQuery schemaUpdateOptions */
+ schemaUpdateOptions?: (string[]|null);
+
+ /** JobConfigurationQuery timePartitioning */
+ timePartitioning?: (google.cloud.bigquery.v2.ITimePartitioning|null);
+
+ /** JobConfigurationQuery rangePartitioning */
+ rangePartitioning?: (google.cloud.bigquery.v2.IRangePartitioning|null);
+
+ /** JobConfigurationQuery clustering */
+ clustering?: (google.cloud.bigquery.v2.IClustering|null);
+
+ /** JobConfigurationQuery destinationEncryptionConfiguration */
+ destinationEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** JobConfigurationQuery scriptOptions */
+ scriptOptions?: (google.cloud.bigquery.v2.IScriptOptions|null);
+
+ /** JobConfigurationQuery connectionProperties */
+ connectionProperties?: (google.cloud.bigquery.v2.IConnectionProperty[]|null);
+
+ /** JobConfigurationQuery createSession */
+ createSession?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery continuous */
+ continuous?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery writeIncrementalResults */
+ writeIncrementalResults?: (boolean|null);
+ }
+
+ /** Represents a JobConfigurationQuery. */
+ class JobConfigurationQuery implements IJobConfigurationQuery {
+
+ /**
+ * Constructs a new JobConfigurationQuery.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobConfigurationQuery);
+
+ /** JobConfigurationQuery query. */
+ public query: string;
+
+ /** JobConfigurationQuery destinationTable. */
+ public destinationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationQuery externalTableDefinitions. */
+ public externalTableDefinitions: { [k: string]: google.cloud.bigquery.v2.IExternalDataConfiguration };
+
+ /** JobConfigurationQuery userDefinedFunctionResources. */
+ public userDefinedFunctionResources: google.cloud.bigquery.v2.IUserDefinedFunctionResource[];
+
+ /** JobConfigurationQuery createDisposition. */
+ public createDisposition: string;
+
+ /** JobConfigurationQuery writeDisposition. */
+ public writeDisposition: string;
+
+ /** JobConfigurationQuery defaultDataset. */
+ public defaultDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** JobConfigurationQuery priority. */
+ public priority: string;
+
+ /** JobConfigurationQuery allowLargeResults. */
+ public allowLargeResults?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery useQueryCache. */
+ public useQueryCache?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery flattenResults. */
+ public flattenResults?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery maximumBytesBilled. */
+ public maximumBytesBilled?: (google.protobuf.IInt64Value|null);
+
+ /** JobConfigurationQuery useLegacySql. */
+ public useLegacySql?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery parameterMode. */
+ public parameterMode: string;
+
+ /** JobConfigurationQuery queryParameters. */
+ public queryParameters: google.cloud.bigquery.v2.IQueryParameter[];
+
+ /** JobConfigurationQuery systemVariables. */
+ public systemVariables?: (google.cloud.bigquery.v2.ISystemVariables|null);
+
+ /** JobConfigurationQuery schemaUpdateOptions. */
+ public schemaUpdateOptions: string[];
+
+ /** JobConfigurationQuery timePartitioning. */
+ public timePartitioning?: (google.cloud.bigquery.v2.ITimePartitioning|null);
+
+ /** JobConfigurationQuery rangePartitioning. */
+ public rangePartitioning?: (google.cloud.bigquery.v2.IRangePartitioning|null);
+
+ /** JobConfigurationQuery clustering. */
+ public clustering?: (google.cloud.bigquery.v2.IClustering|null);
+
+ /** JobConfigurationQuery destinationEncryptionConfiguration. */
+ public destinationEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** JobConfigurationQuery scriptOptions. */
+ public scriptOptions?: (google.cloud.bigquery.v2.IScriptOptions|null);
+
+ /** JobConfigurationQuery connectionProperties. */
+ public connectionProperties: google.cloud.bigquery.v2.IConnectionProperty[];
+
+ /** JobConfigurationQuery createSession. */
+ public createSession?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery continuous. */
+ public continuous?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationQuery writeIncrementalResults. */
+ public writeIncrementalResults: boolean;
+
+ /**
+ * Creates a new JobConfigurationQuery instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobConfigurationQuery instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobConfigurationQuery): google.cloud.bigquery.v2.JobConfigurationQuery;
+
+ /**
+ * Encodes the specified JobConfigurationQuery message. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationQuery.verify|verify} messages.
+ * @param message JobConfigurationQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobConfigurationQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobConfigurationQuery message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationQuery.verify|verify} messages.
+ * @param message JobConfigurationQuery message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobConfigurationQuery, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobConfigurationQuery message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobConfigurationQuery
+ * @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.cloud.bigquery.v2.JobConfigurationQuery;
+
+ /**
+ * Decodes a JobConfigurationQuery message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobConfigurationQuery
+ * @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.cloud.bigquery.v2.JobConfigurationQuery;
+
+ /**
+ * Verifies a JobConfigurationQuery 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 JobConfigurationQuery message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobConfigurationQuery
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobConfigurationQuery;
+
+ /**
+ * Creates a plain object from a JobConfigurationQuery message. Also converts values to other types if specified.
+ * @param message JobConfigurationQuery
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobConfigurationQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobConfigurationQuery to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobConfigurationQuery
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ScriptOptions. */
+ interface IScriptOptions {
+
+ /** ScriptOptions statementTimeoutMs */
+ statementTimeoutMs?: (google.protobuf.IInt64Value|null);
+
+ /** ScriptOptions statementByteBudget */
+ statementByteBudget?: (google.protobuf.IInt64Value|null);
+
+ /** ScriptOptions keyResultStatement */
+ keyResultStatement?: (google.cloud.bigquery.v2.ScriptOptions.KeyResultStatementKind|keyof typeof google.cloud.bigquery.v2.ScriptOptions.KeyResultStatementKind|null);
+ }
+
+ /** Represents a ScriptOptions. */
+ class ScriptOptions implements IScriptOptions {
+
+ /**
+ * Constructs a new ScriptOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IScriptOptions);
+
+ /** ScriptOptions statementTimeoutMs. */
+ public statementTimeoutMs?: (google.protobuf.IInt64Value|null);
+
+ /** ScriptOptions statementByteBudget. */
+ public statementByteBudget?: (google.protobuf.IInt64Value|null);
+
+ /** ScriptOptions keyResultStatement. */
+ public keyResultStatement: (google.cloud.bigquery.v2.ScriptOptions.KeyResultStatementKind|keyof typeof google.cloud.bigquery.v2.ScriptOptions.KeyResultStatementKind);
+
+ /**
+ * Creates a new ScriptOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScriptOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IScriptOptions): google.cloud.bigquery.v2.ScriptOptions;
+
+ /**
+ * Encodes the specified ScriptOptions message. Does not implicitly {@link google.cloud.bigquery.v2.ScriptOptions.verify|verify} messages.
+ * @param message ScriptOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IScriptOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScriptOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ScriptOptions.verify|verify} messages.
+ * @param message ScriptOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IScriptOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScriptOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScriptOptions
+ * @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.cloud.bigquery.v2.ScriptOptions;
+
+ /**
+ * Decodes a ScriptOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScriptOptions
+ * @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.cloud.bigquery.v2.ScriptOptions;
+
+ /**
+ * Verifies a ScriptOptions 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 ScriptOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScriptOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ScriptOptions;
+
+ /**
+ * Creates a plain object from a ScriptOptions message. Also converts values to other types if specified.
+ * @param message ScriptOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ScriptOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScriptOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScriptOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScriptOptions {
+
+ /** KeyResultStatementKind enum. */
+ enum KeyResultStatementKind {
+ KEY_RESULT_STATEMENT_KIND_UNSPECIFIED = 0,
+ LAST = 1,
+ FIRST_SELECT = 2
+ }
+ }
+
+ /** Properties of a JobConfigurationLoad. */
+ interface IJobConfigurationLoad {
+
+ /** JobConfigurationLoad sourceUris */
+ sourceUris?: (string[]|null);
+
+ /** JobConfigurationLoad fileSetSpecType */
+ fileSetSpecType?: (google.cloud.bigquery.v2.FileSetSpecType|keyof typeof google.cloud.bigquery.v2.FileSetSpecType|null);
+
+ /** JobConfigurationLoad schema */
+ schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** JobConfigurationLoad destinationTable */
+ destinationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationLoad destinationTableProperties */
+ destinationTableProperties?: (google.cloud.bigquery.v2.IDestinationTableProperties|null);
+
+ /** JobConfigurationLoad createDisposition */
+ createDisposition?: (string|null);
+
+ /** JobConfigurationLoad writeDisposition */
+ writeDisposition?: (string|null);
+
+ /** JobConfigurationLoad nullMarker */
+ nullMarker?: (google.protobuf.IStringValue|null);
+
+ /** JobConfigurationLoad fieldDelimiter */
+ fieldDelimiter?: (string|null);
+
+ /** JobConfigurationLoad skipLeadingRows */
+ skipLeadingRows?: (google.protobuf.IInt32Value|null);
+
+ /** JobConfigurationLoad encoding */
+ encoding?: (string|null);
+
+ /** JobConfigurationLoad quote */
+ quote?: (google.protobuf.IStringValue|null);
+
+ /** JobConfigurationLoad maxBadRecords */
+ maxBadRecords?: (google.protobuf.IInt32Value|null);
+
+ /** JobConfigurationLoad allowQuotedNewlines */
+ allowQuotedNewlines?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad sourceFormat */
+ sourceFormat?: (string|null);
+
+ /** JobConfigurationLoad allowJaggedRows */
+ allowJaggedRows?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad ignoreUnknownValues */
+ ignoreUnknownValues?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad projectionFields */
+ projectionFields?: (string[]|null);
+
+ /** JobConfigurationLoad autodetect */
+ autodetect?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad schemaUpdateOptions */
+ schemaUpdateOptions?: (string[]|null);
+
+ /** JobConfigurationLoad timePartitioning */
+ timePartitioning?: (google.cloud.bigquery.v2.ITimePartitioning|null);
+
+ /** JobConfigurationLoad rangePartitioning */
+ rangePartitioning?: (google.cloud.bigquery.v2.IRangePartitioning|null);
+
+ /** JobConfigurationLoad clustering */
+ clustering?: (google.cloud.bigquery.v2.IClustering|null);
+
+ /** JobConfigurationLoad destinationEncryptionConfiguration */
+ destinationEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** JobConfigurationLoad useAvroLogicalTypes */
+ useAvroLogicalTypes?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad referenceFileSchemaUri */
+ referenceFileSchemaUri?: (google.protobuf.IStringValue|null);
+
+ /** JobConfigurationLoad hivePartitioningOptions */
+ hivePartitioningOptions?: (google.cloud.bigquery.v2.IHivePartitioningOptions|null);
+
+ /** JobConfigurationLoad decimalTargetTypes */
+ decimalTargetTypes?: (google.cloud.bigquery.v2.DecimalTargetType[]|null);
+
+ /** JobConfigurationLoad jsonExtension */
+ jsonExtension?: (google.cloud.bigquery.v2.JsonExtension|keyof typeof google.cloud.bigquery.v2.JsonExtension|null);
+
+ /** JobConfigurationLoad parquetOptions */
+ parquetOptions?: (google.cloud.bigquery.v2.IParquetOptions|null);
+
+ /** JobConfigurationLoad preserveAsciiControlCharacters */
+ preserveAsciiControlCharacters?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad connectionProperties */
+ connectionProperties?: (google.cloud.bigquery.v2.IConnectionProperty[]|null);
+
+ /** JobConfigurationLoad createSession */
+ createSession?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad columnNameCharacterMap */
+ columnNameCharacterMap?: (google.cloud.bigquery.v2.JobConfigurationLoad.ColumnNameCharacterMap|keyof typeof google.cloud.bigquery.v2.JobConfigurationLoad.ColumnNameCharacterMap|null);
+
+ /** JobConfigurationLoad copyFilesOnly */
+ copyFilesOnly?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad timeZone */
+ timeZone?: (google.protobuf.IStringValue|null);
+
+ /** JobConfigurationLoad nullMarkers */
+ nullMarkers?: (string[]|null);
+
+ /** JobConfigurationLoad dateFormat */
+ dateFormat?: (string|null);
+
+ /** JobConfigurationLoad datetimeFormat */
+ datetimeFormat?: (string|null);
+
+ /** JobConfigurationLoad timeFormat */
+ timeFormat?: (string|null);
+
+ /** JobConfigurationLoad timestampFormat */
+ timestampFormat?: (string|null);
+
+ /** JobConfigurationLoad sourceColumnMatch */
+ sourceColumnMatch?: (google.cloud.bigquery.v2.JobConfigurationLoad.SourceColumnMatch|keyof typeof google.cloud.bigquery.v2.JobConfigurationLoad.SourceColumnMatch|null);
+
+ /** JobConfigurationLoad timestampTargetPrecision */
+ timestampTargetPrecision?: (number[]|null);
+ }
+
+ /** Represents a JobConfigurationLoad. */
+ class JobConfigurationLoad implements IJobConfigurationLoad {
+
+ /**
+ * Constructs a new JobConfigurationLoad.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobConfigurationLoad);
+
+ /** JobConfigurationLoad sourceUris. */
+ public sourceUris: string[];
+
+ /** JobConfigurationLoad fileSetSpecType. */
+ public fileSetSpecType: (google.cloud.bigquery.v2.FileSetSpecType|keyof typeof google.cloud.bigquery.v2.FileSetSpecType);
+
+ /** JobConfigurationLoad schema. */
+ public schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** JobConfigurationLoad destinationTable. */
+ public destinationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationLoad destinationTableProperties. */
+ public destinationTableProperties?: (google.cloud.bigquery.v2.IDestinationTableProperties|null);
+
+ /** JobConfigurationLoad createDisposition. */
+ public createDisposition: string;
+
+ /** JobConfigurationLoad writeDisposition. */
+ public writeDisposition: string;
+
+ /** JobConfigurationLoad nullMarker. */
+ public nullMarker?: (google.protobuf.IStringValue|null);
+
+ /** JobConfigurationLoad fieldDelimiter. */
+ public fieldDelimiter: string;
+
+ /** JobConfigurationLoad skipLeadingRows. */
+ public skipLeadingRows?: (google.protobuf.IInt32Value|null);
+
+ /** JobConfigurationLoad encoding. */
+ public encoding: string;
+
+ /** JobConfigurationLoad quote. */
+ public quote?: (google.protobuf.IStringValue|null);
+
+ /** JobConfigurationLoad maxBadRecords. */
+ public maxBadRecords?: (google.protobuf.IInt32Value|null);
+
+ /** JobConfigurationLoad allowQuotedNewlines. */
+ public allowQuotedNewlines?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad sourceFormat. */
+ public sourceFormat: string;
+
+ /** JobConfigurationLoad allowJaggedRows. */
+ public allowJaggedRows?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad ignoreUnknownValues. */
+ public ignoreUnknownValues?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad projectionFields. */
+ public projectionFields: string[];
+
+ /** JobConfigurationLoad autodetect. */
+ public autodetect?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad schemaUpdateOptions. */
+ public schemaUpdateOptions: string[];
+
+ /** JobConfigurationLoad timePartitioning. */
+ public timePartitioning?: (google.cloud.bigquery.v2.ITimePartitioning|null);
+
+ /** JobConfigurationLoad rangePartitioning. */
+ public rangePartitioning?: (google.cloud.bigquery.v2.IRangePartitioning|null);
+
+ /** JobConfigurationLoad clustering. */
+ public clustering?: (google.cloud.bigquery.v2.IClustering|null);
+
+ /** JobConfigurationLoad destinationEncryptionConfiguration. */
+ public destinationEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** JobConfigurationLoad useAvroLogicalTypes. */
+ public useAvroLogicalTypes?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad referenceFileSchemaUri. */
+ public referenceFileSchemaUri?: (google.protobuf.IStringValue|null);
+
+ /** JobConfigurationLoad hivePartitioningOptions. */
+ public hivePartitioningOptions?: (google.cloud.bigquery.v2.IHivePartitioningOptions|null);
+
+ /** JobConfigurationLoad decimalTargetTypes. */
+ public decimalTargetTypes: google.cloud.bigquery.v2.DecimalTargetType[];
+
+ /** JobConfigurationLoad jsonExtension. */
+ public jsonExtension: (google.cloud.bigquery.v2.JsonExtension|keyof typeof google.cloud.bigquery.v2.JsonExtension);
+
+ /** JobConfigurationLoad parquetOptions. */
+ public parquetOptions?: (google.cloud.bigquery.v2.IParquetOptions|null);
+
+ /** JobConfigurationLoad preserveAsciiControlCharacters. */
+ public preserveAsciiControlCharacters?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad connectionProperties. */
+ public connectionProperties: google.cloud.bigquery.v2.IConnectionProperty[];
+
+ /** JobConfigurationLoad createSession. */
+ public createSession?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad columnNameCharacterMap. */
+ public columnNameCharacterMap: (google.cloud.bigquery.v2.JobConfigurationLoad.ColumnNameCharacterMap|keyof typeof google.cloud.bigquery.v2.JobConfigurationLoad.ColumnNameCharacterMap);
+
+ /** JobConfigurationLoad copyFilesOnly. */
+ public copyFilesOnly?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationLoad timeZone. */
+ public timeZone?: (google.protobuf.IStringValue|null);
+
+ /** JobConfigurationLoad nullMarkers. */
+ public nullMarkers: string[];
+
+ /** JobConfigurationLoad dateFormat. */
+ public dateFormat?: (string|null);
+
+ /** JobConfigurationLoad datetimeFormat. */
+ public datetimeFormat?: (string|null);
+
+ /** JobConfigurationLoad timeFormat. */
+ public timeFormat?: (string|null);
+
+ /** JobConfigurationLoad timestampFormat. */
+ public timestampFormat?: (string|null);
+
+ /** JobConfigurationLoad sourceColumnMatch. */
+ public sourceColumnMatch: (google.cloud.bigquery.v2.JobConfigurationLoad.SourceColumnMatch|keyof typeof google.cloud.bigquery.v2.JobConfigurationLoad.SourceColumnMatch);
+
+ /** JobConfigurationLoad timestampTargetPrecision. */
+ public timestampTargetPrecision: number[];
+
+ /**
+ * Creates a new JobConfigurationLoad instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobConfigurationLoad instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobConfigurationLoad): google.cloud.bigquery.v2.JobConfigurationLoad;
+
+ /**
+ * Encodes the specified JobConfigurationLoad message. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationLoad.verify|verify} messages.
+ * @param message JobConfigurationLoad message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobConfigurationLoad, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobConfigurationLoad message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationLoad.verify|verify} messages.
+ * @param message JobConfigurationLoad message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobConfigurationLoad, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobConfigurationLoad message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobConfigurationLoad
+ * @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.cloud.bigquery.v2.JobConfigurationLoad;
+
+ /**
+ * Decodes a JobConfigurationLoad message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobConfigurationLoad
+ * @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.cloud.bigquery.v2.JobConfigurationLoad;
+
+ /**
+ * Verifies a JobConfigurationLoad 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 JobConfigurationLoad message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobConfigurationLoad
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobConfigurationLoad;
+
+ /**
+ * Creates a plain object from a JobConfigurationLoad message. Also converts values to other types if specified.
+ * @param message JobConfigurationLoad
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobConfigurationLoad, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobConfigurationLoad to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobConfigurationLoad
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace JobConfigurationLoad {
+
+ /** ColumnNameCharacterMap enum. */
+ enum ColumnNameCharacterMap {
+ COLUMN_NAME_CHARACTER_MAP_UNSPECIFIED = 0,
+ STRICT = 1,
+ V1 = 2,
+ V2 = 3
+ }
+
+ /** SourceColumnMatch enum. */
+ enum SourceColumnMatch {
+ SOURCE_COLUMN_MATCH_UNSPECIFIED = 0,
+ POSITION = 1,
+ NAME = 2
+ }
+ }
+
+ /** Properties of a JobConfigurationTableCopy. */
+ interface IJobConfigurationTableCopy {
+
+ /** JobConfigurationTableCopy sourceTable */
+ sourceTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationTableCopy sourceTables */
+ sourceTables?: (google.cloud.bigquery.v2.ITableReference[]|null);
+
+ /** JobConfigurationTableCopy destinationTable */
+ destinationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationTableCopy createDisposition */
+ createDisposition?: (string|null);
+
+ /** JobConfigurationTableCopy writeDisposition */
+ writeDisposition?: (string|null);
+
+ /** JobConfigurationTableCopy destinationEncryptionConfiguration */
+ destinationEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** JobConfigurationTableCopy operationType */
+ operationType?: (google.cloud.bigquery.v2.JobConfigurationTableCopy.OperationType|keyof typeof google.cloud.bigquery.v2.JobConfigurationTableCopy.OperationType|null);
+
+ /** JobConfigurationTableCopy destinationExpirationTime */
+ destinationExpirationTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a JobConfigurationTableCopy. */
+ class JobConfigurationTableCopy implements IJobConfigurationTableCopy {
+
+ /**
+ * Constructs a new JobConfigurationTableCopy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobConfigurationTableCopy);
+
+ /** JobConfigurationTableCopy sourceTable. */
+ public sourceTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationTableCopy sourceTables. */
+ public sourceTables: google.cloud.bigquery.v2.ITableReference[];
+
+ /** JobConfigurationTableCopy destinationTable. */
+ public destinationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationTableCopy createDisposition. */
+ public createDisposition: string;
+
+ /** JobConfigurationTableCopy writeDisposition. */
+ public writeDisposition: string;
+
+ /** JobConfigurationTableCopy destinationEncryptionConfiguration. */
+ public destinationEncryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** JobConfigurationTableCopy operationType. */
+ public operationType: (google.cloud.bigquery.v2.JobConfigurationTableCopy.OperationType|keyof typeof google.cloud.bigquery.v2.JobConfigurationTableCopy.OperationType);
+
+ /** JobConfigurationTableCopy destinationExpirationTime. */
+ public destinationExpirationTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new JobConfigurationTableCopy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobConfigurationTableCopy instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobConfigurationTableCopy): google.cloud.bigquery.v2.JobConfigurationTableCopy;
+
+ /**
+ * Encodes the specified JobConfigurationTableCopy message. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationTableCopy.verify|verify} messages.
+ * @param message JobConfigurationTableCopy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobConfigurationTableCopy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobConfigurationTableCopy message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationTableCopy.verify|verify} messages.
+ * @param message JobConfigurationTableCopy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobConfigurationTableCopy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobConfigurationTableCopy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobConfigurationTableCopy
+ * @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.cloud.bigquery.v2.JobConfigurationTableCopy;
+
+ /**
+ * Decodes a JobConfigurationTableCopy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobConfigurationTableCopy
+ * @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.cloud.bigquery.v2.JobConfigurationTableCopy;
+
+ /**
+ * Verifies a JobConfigurationTableCopy 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 JobConfigurationTableCopy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobConfigurationTableCopy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobConfigurationTableCopy;
+
+ /**
+ * Creates a plain object from a JobConfigurationTableCopy message. Also converts values to other types if specified.
+ * @param message JobConfigurationTableCopy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobConfigurationTableCopy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobConfigurationTableCopy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobConfigurationTableCopy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace JobConfigurationTableCopy {
+
+ /** OperationType enum. */
+ enum OperationType {
+ OPERATION_TYPE_UNSPECIFIED = 0,
+ COPY = 1,
+ SNAPSHOT = 2,
+ RESTORE = 3,
+ CLONE = 4
+ }
+ }
+
+ /** Properties of a JobConfigurationExtract. */
+ interface IJobConfigurationExtract {
+
+ /** JobConfigurationExtract sourceTable */
+ sourceTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationExtract sourceModel */
+ sourceModel?: (google.cloud.bigquery.v2.IModelReference|null);
+
+ /** JobConfigurationExtract destinationUris */
+ destinationUris?: (string[]|null);
+
+ /** JobConfigurationExtract printHeader */
+ printHeader?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationExtract fieldDelimiter */
+ fieldDelimiter?: (string|null);
+
+ /** JobConfigurationExtract destinationFormat */
+ destinationFormat?: (string|null);
+
+ /** JobConfigurationExtract compression */
+ compression?: (string|null);
+
+ /** JobConfigurationExtract useAvroLogicalTypes */
+ useAvroLogicalTypes?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationExtract modelExtractOptions */
+ modelExtractOptions?: (google.cloud.bigquery.v2.JobConfigurationExtract.IModelExtractOptions|null);
+ }
+
+ /** Represents a JobConfigurationExtract. */
+ class JobConfigurationExtract implements IJobConfigurationExtract {
+
+ /**
+ * Constructs a new JobConfigurationExtract.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobConfigurationExtract);
+
+ /** JobConfigurationExtract sourceTable. */
+ public sourceTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobConfigurationExtract sourceModel. */
+ public sourceModel?: (google.cloud.bigquery.v2.IModelReference|null);
+
+ /** JobConfigurationExtract destinationUris. */
+ public destinationUris: string[];
+
+ /** JobConfigurationExtract printHeader. */
+ public printHeader?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationExtract fieldDelimiter. */
+ public fieldDelimiter: string;
+
+ /** JobConfigurationExtract destinationFormat. */
+ public destinationFormat: string;
+
+ /** JobConfigurationExtract compression. */
+ public compression: string;
+
+ /** JobConfigurationExtract useAvroLogicalTypes. */
+ public useAvroLogicalTypes?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfigurationExtract modelExtractOptions. */
+ public modelExtractOptions?: (google.cloud.bigquery.v2.JobConfigurationExtract.IModelExtractOptions|null);
+
+ /** JobConfigurationExtract source. */
+ public source?: ("sourceTable"|"sourceModel");
+
+ /**
+ * Creates a new JobConfigurationExtract instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobConfigurationExtract instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobConfigurationExtract): google.cloud.bigquery.v2.JobConfigurationExtract;
+
+ /**
+ * Encodes the specified JobConfigurationExtract message. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationExtract.verify|verify} messages.
+ * @param message JobConfigurationExtract message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobConfigurationExtract, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobConfigurationExtract message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationExtract.verify|verify} messages.
+ * @param message JobConfigurationExtract message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobConfigurationExtract, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobConfigurationExtract message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobConfigurationExtract
+ * @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.cloud.bigquery.v2.JobConfigurationExtract;
+
+ /**
+ * Decodes a JobConfigurationExtract message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobConfigurationExtract
+ * @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.cloud.bigquery.v2.JobConfigurationExtract;
+
+ /**
+ * Verifies a JobConfigurationExtract 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 JobConfigurationExtract message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobConfigurationExtract
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobConfigurationExtract;
+
+ /**
+ * Creates a plain object from a JobConfigurationExtract message. Also converts values to other types if specified.
+ * @param message JobConfigurationExtract
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobConfigurationExtract, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobConfigurationExtract to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobConfigurationExtract
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace JobConfigurationExtract {
+
+ /** Properties of a ModelExtractOptions. */
+ interface IModelExtractOptions {
+
+ /** ModelExtractOptions trialId */
+ trialId?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a ModelExtractOptions. */
+ class ModelExtractOptions implements IModelExtractOptions {
+
+ /**
+ * Constructs a new ModelExtractOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.JobConfigurationExtract.IModelExtractOptions);
+
+ /** ModelExtractOptions trialId. */
+ public trialId?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new ModelExtractOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ModelExtractOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.JobConfigurationExtract.IModelExtractOptions): google.cloud.bigquery.v2.JobConfigurationExtract.ModelExtractOptions;
+
+ /**
+ * Encodes the specified ModelExtractOptions message. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationExtract.ModelExtractOptions.verify|verify} messages.
+ * @param message ModelExtractOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.JobConfigurationExtract.IModelExtractOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ModelExtractOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobConfigurationExtract.ModelExtractOptions.verify|verify} messages.
+ * @param message ModelExtractOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.JobConfigurationExtract.IModelExtractOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ModelExtractOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ModelExtractOptions
+ * @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.cloud.bigquery.v2.JobConfigurationExtract.ModelExtractOptions;
+
+ /**
+ * Decodes a ModelExtractOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ModelExtractOptions
+ * @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.cloud.bigquery.v2.JobConfigurationExtract.ModelExtractOptions;
+
+ /**
+ * Verifies a ModelExtractOptions 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 ModelExtractOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ModelExtractOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobConfigurationExtract.ModelExtractOptions;
+
+ /**
+ * Creates a plain object from a ModelExtractOptions message. Also converts values to other types if specified.
+ * @param message ModelExtractOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobConfigurationExtract.ModelExtractOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ModelExtractOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ModelExtractOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a JobConfiguration. */
+ interface IJobConfiguration {
+
+ /** JobConfiguration jobType */
+ jobType?: (string|null);
+
+ /** JobConfiguration query */
+ query?: (google.cloud.bigquery.v2.IJobConfigurationQuery|null);
+
+ /** JobConfiguration load */
+ load?: (google.cloud.bigquery.v2.IJobConfigurationLoad|null);
+
+ /** JobConfiguration copy */
+ copy?: (google.cloud.bigquery.v2.IJobConfigurationTableCopy|null);
+
+ /** JobConfiguration extract */
+ extract?: (google.cloud.bigquery.v2.IJobConfigurationExtract|null);
+
+ /** JobConfiguration dryRun */
+ dryRun?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfiguration jobTimeoutMs */
+ jobTimeoutMs?: (google.protobuf.IInt64Value|null);
+
+ /** JobConfiguration maxSlots */
+ maxSlots?: (number|null);
+
+ /** JobConfiguration labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** JobConfiguration reservation */
+ reservation?: (string|null);
+ }
+
+ /** Represents a JobConfiguration. */
+ class JobConfiguration implements IJobConfiguration {
+
+ /**
+ * Constructs a new JobConfiguration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobConfiguration);
+
+ /** JobConfiguration jobType. */
+ public jobType: string;
+
+ /** JobConfiguration query. */
+ public query?: (google.cloud.bigquery.v2.IJobConfigurationQuery|null);
+
+ /** JobConfiguration load. */
+ public load?: (google.cloud.bigquery.v2.IJobConfigurationLoad|null);
+
+ /** JobConfiguration copy. */
+ public copy?: (google.cloud.bigquery.v2.IJobConfigurationTableCopy|null);
+
+ /** JobConfiguration extract. */
+ public extract?: (google.cloud.bigquery.v2.IJobConfigurationExtract|null);
+
+ /** JobConfiguration dryRun. */
+ public dryRun?: (google.protobuf.IBoolValue|null);
+
+ /** JobConfiguration jobTimeoutMs. */
+ public jobTimeoutMs?: (google.protobuf.IInt64Value|null);
+
+ /** JobConfiguration maxSlots. */
+ public maxSlots?: (number|null);
+
+ /** JobConfiguration labels. */
+ public labels: { [k: string]: string };
+
+ /** JobConfiguration reservation. */
+ public reservation?: (string|null);
+
+ /**
+ * Creates a new JobConfiguration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobConfiguration instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobConfiguration): google.cloud.bigquery.v2.JobConfiguration;
+
+ /**
+ * Encodes the specified JobConfiguration message. Does not implicitly {@link google.cloud.bigquery.v2.JobConfiguration.verify|verify} messages.
+ * @param message JobConfiguration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobConfiguration message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobConfiguration.verify|verify} messages.
+ * @param message JobConfiguration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobConfiguration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobConfiguration
+ * @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.cloud.bigquery.v2.JobConfiguration;
+
+ /**
+ * Decodes a JobConfiguration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobConfiguration
+ * @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.cloud.bigquery.v2.JobConfiguration;
+
+ /**
+ * Verifies a JobConfiguration 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 JobConfiguration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobConfiguration
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobConfiguration;
+
+ /**
+ * Creates a plain object from a JobConfiguration message. Also converts values to other types if specified.
+ * @param message JobConfiguration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobConfiguration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobConfiguration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ModelReference. */
+ interface IModelReference {
+
+ /** ModelReference projectId */
+ projectId?: (string|null);
+
+ /** ModelReference datasetId */
+ datasetId?: (string|null);
+
+ /** ModelReference modelId */
+ modelId?: (string|null);
+ }
+
+ /** Represents a ModelReference. */
+ class ModelReference implements IModelReference {
+
+ /**
+ * Constructs a new ModelReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IModelReference);
+
+ /** ModelReference projectId. */
+ public projectId: string;
+
+ /** ModelReference datasetId. */
+ public datasetId: string;
+
+ /** ModelReference modelId. */
+ public modelId: string;
+
+ /**
+ * Creates a new ModelReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ModelReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IModelReference): google.cloud.bigquery.v2.ModelReference;
+
+ /**
+ * Encodes the specified ModelReference message. Does not implicitly {@link google.cloud.bigquery.v2.ModelReference.verify|verify} messages.
+ * @param message ModelReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IModelReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ModelReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ModelReference.verify|verify} messages.
+ * @param message ModelReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IModelReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ModelReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ModelReference
+ * @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.cloud.bigquery.v2.ModelReference;
+
+ /**
+ * Decodes a ModelReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ModelReference
+ * @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.cloud.bigquery.v2.ModelReference;
+
+ /**
+ * Verifies a ModelReference 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 ModelReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ModelReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ModelReference;
+
+ /**
+ * Creates a plain object from a ModelReference message. Also converts values to other types if specified.
+ * @param message ModelReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ModelReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ModelReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ModelReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryParameterStructType. */
+ interface IQueryParameterStructType {
+
+ /** QueryParameterStructType name */
+ name?: (string|null);
+
+ /** QueryParameterStructType type */
+ type?: (google.cloud.bigquery.v2.IQueryParameterType|null);
+
+ /** QueryParameterStructType description */
+ description?: (string|null);
+ }
+
+ /** Represents a QueryParameterStructType. */
+ class QueryParameterStructType implements IQueryParameterStructType {
+
+ /**
+ * Constructs a new QueryParameterStructType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IQueryParameterStructType);
+
+ /** QueryParameterStructType name. */
+ public name: string;
+
+ /** QueryParameterStructType type. */
+ public type?: (google.cloud.bigquery.v2.IQueryParameterType|null);
+
+ /** QueryParameterStructType description. */
+ public description: string;
+
+ /**
+ * Creates a new QueryParameterStructType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryParameterStructType instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IQueryParameterStructType): google.cloud.bigquery.v2.QueryParameterStructType;
+
+ /**
+ * Encodes the specified QueryParameterStructType message. Does not implicitly {@link google.cloud.bigquery.v2.QueryParameterStructType.verify|verify} messages.
+ * @param message QueryParameterStructType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IQueryParameterStructType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryParameterStructType message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.QueryParameterStructType.verify|verify} messages.
+ * @param message QueryParameterStructType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IQueryParameterStructType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryParameterStructType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryParameterStructType
+ * @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.cloud.bigquery.v2.QueryParameterStructType;
+
+ /**
+ * Decodes a QueryParameterStructType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryParameterStructType
+ * @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.cloud.bigquery.v2.QueryParameterStructType;
+
+ /**
+ * Verifies a QueryParameterStructType 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 QueryParameterStructType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryParameterStructType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.QueryParameterStructType;
+
+ /**
+ * Creates a plain object from a QueryParameterStructType message. Also converts values to other types if specified.
+ * @param message QueryParameterStructType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.QueryParameterStructType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryParameterStructType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryParameterStructType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryParameterType. */
+ interface IQueryParameterType {
+
+ /** QueryParameterType type */
+ type?: (string|null);
+
+ /** QueryParameterType timestampPrecision */
+ timestampPrecision?: (number|Long|string|null);
+
+ /** QueryParameterType arrayType */
+ arrayType?: (google.cloud.bigquery.v2.IQueryParameterType|null);
+
+ /** QueryParameterType structTypes */
+ structTypes?: (google.cloud.bigquery.v2.IQueryParameterStructType[]|null);
+
+ /** QueryParameterType rangeElementType */
+ rangeElementType?: (google.cloud.bigquery.v2.IQueryParameterType|null);
+ }
+
+ /** Represents a QueryParameterType. */
+ class QueryParameterType implements IQueryParameterType {
+
+ /**
+ * Constructs a new QueryParameterType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IQueryParameterType);
+
+ /** QueryParameterType type. */
+ public type: string;
+
+ /** QueryParameterType timestampPrecision. */
+ public timestampPrecision?: (number|Long|string|null);
+
+ /** QueryParameterType arrayType. */
+ public arrayType?: (google.cloud.bigquery.v2.IQueryParameterType|null);
+
+ /** QueryParameterType structTypes. */
+ public structTypes: google.cloud.bigquery.v2.IQueryParameterStructType[];
+
+ /** QueryParameterType rangeElementType. */
+ public rangeElementType?: (google.cloud.bigquery.v2.IQueryParameterType|null);
+
+ /**
+ * Creates a new QueryParameterType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryParameterType instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IQueryParameterType): google.cloud.bigquery.v2.QueryParameterType;
+
+ /**
+ * Encodes the specified QueryParameterType message. Does not implicitly {@link google.cloud.bigquery.v2.QueryParameterType.verify|verify} messages.
+ * @param message QueryParameterType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IQueryParameterType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryParameterType message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.QueryParameterType.verify|verify} messages.
+ * @param message QueryParameterType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IQueryParameterType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryParameterType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryParameterType
+ * @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.cloud.bigquery.v2.QueryParameterType;
+
+ /**
+ * Decodes a QueryParameterType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryParameterType
+ * @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.cloud.bigquery.v2.QueryParameterType;
+
+ /**
+ * Verifies a QueryParameterType 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 QueryParameterType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryParameterType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.QueryParameterType;
+
+ /**
+ * Creates a plain object from a QueryParameterType message. Also converts values to other types if specified.
+ * @param message QueryParameterType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.QueryParameterType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryParameterType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryParameterType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RangeValue. */
+ interface IRangeValue {
+
+ /** RangeValue start */
+ start?: (google.cloud.bigquery.v2.IQueryParameterValue|null);
+
+ /** RangeValue end */
+ end?: (google.cloud.bigquery.v2.IQueryParameterValue|null);
+ }
+
+ /** Represents a RangeValue. */
+ class RangeValue implements IRangeValue {
+
+ /**
+ * Constructs a new RangeValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRangeValue);
+
+ /** RangeValue start. */
+ public start?: (google.cloud.bigquery.v2.IQueryParameterValue|null);
+
+ /** RangeValue end. */
+ public end?: (google.cloud.bigquery.v2.IQueryParameterValue|null);
+
+ /**
+ * Creates a new RangeValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RangeValue instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRangeValue): google.cloud.bigquery.v2.RangeValue;
+
+ /**
+ * Encodes the specified RangeValue message. Does not implicitly {@link google.cloud.bigquery.v2.RangeValue.verify|verify} messages.
+ * @param message RangeValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRangeValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RangeValue message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RangeValue.verify|verify} messages.
+ * @param message RangeValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRangeValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RangeValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RangeValue
+ * @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.cloud.bigquery.v2.RangeValue;
+
+ /**
+ * Decodes a RangeValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RangeValue
+ * @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.cloud.bigquery.v2.RangeValue;
+
+ /**
+ * Verifies a RangeValue 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 RangeValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RangeValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RangeValue;
+
+ /**
+ * Creates a plain object from a RangeValue message. Also converts values to other types if specified.
+ * @param message RangeValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RangeValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RangeValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RangeValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryParameterValue. */
+ interface IQueryParameterValue {
+
+ /** QueryParameterValue value */
+ value?: (google.protobuf.IStringValue|null);
+
+ /** QueryParameterValue arrayValues */
+ arrayValues?: (google.cloud.bigquery.v2.IQueryParameterValue[]|null);
+
+ /** QueryParameterValue structValues */
+ structValues?: ({ [k: string]: google.cloud.bigquery.v2.IQueryParameterValue }|null);
+
+ /** QueryParameterValue rangeValue */
+ rangeValue?: (google.cloud.bigquery.v2.IRangeValue|null);
+
+ /** QueryParameterValue altStructValues */
+ altStructValues?: (google.protobuf.IValue[]|null);
+ }
+
+ /** Represents a QueryParameterValue. */
+ class QueryParameterValue implements IQueryParameterValue {
+
+ /**
+ * Constructs a new QueryParameterValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IQueryParameterValue);
+
+ /** QueryParameterValue value. */
+ public value?: (google.protobuf.IStringValue|null);
+
+ /** QueryParameterValue arrayValues. */
+ public arrayValues: google.cloud.bigquery.v2.IQueryParameterValue[];
+
+ /** QueryParameterValue structValues. */
+ public structValues: { [k: string]: google.cloud.bigquery.v2.IQueryParameterValue };
+
+ /** QueryParameterValue rangeValue. */
+ public rangeValue?: (google.cloud.bigquery.v2.IRangeValue|null);
+
+ /** QueryParameterValue altStructValues. */
+ public altStructValues: google.protobuf.IValue[];
+
+ /**
+ * Creates a new QueryParameterValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryParameterValue instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IQueryParameterValue): google.cloud.bigquery.v2.QueryParameterValue;
+
+ /**
+ * Encodes the specified QueryParameterValue message. Does not implicitly {@link google.cloud.bigquery.v2.QueryParameterValue.verify|verify} messages.
+ * @param message QueryParameterValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IQueryParameterValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryParameterValue message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.QueryParameterValue.verify|verify} messages.
+ * @param message QueryParameterValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IQueryParameterValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryParameterValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryParameterValue
+ * @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.cloud.bigquery.v2.QueryParameterValue;
+
+ /**
+ * Decodes a QueryParameterValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryParameterValue
+ * @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.cloud.bigquery.v2.QueryParameterValue;
+
+ /**
+ * Verifies a QueryParameterValue 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 QueryParameterValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryParameterValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.QueryParameterValue;
+
+ /**
+ * Creates a plain object from a QueryParameterValue message. Also converts values to other types if specified.
+ * @param message QueryParameterValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.QueryParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryParameterValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryParameterValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryParameter. */
+ interface IQueryParameter {
+
+ /** QueryParameter name */
+ name?: (string|null);
+
+ /** QueryParameter parameterType */
+ parameterType?: (google.cloud.bigquery.v2.IQueryParameterType|null);
+
+ /** QueryParameter parameterValue */
+ parameterValue?: (google.cloud.bigquery.v2.IQueryParameterValue|null);
+ }
+
+ /** Represents a QueryParameter. */
+ class QueryParameter implements IQueryParameter {
+
+ /**
+ * Constructs a new QueryParameter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IQueryParameter);
+
+ /** QueryParameter name. */
+ public name: string;
+
+ /** QueryParameter parameterType. */
+ public parameterType?: (google.cloud.bigquery.v2.IQueryParameterType|null);
+
+ /** QueryParameter parameterValue. */
+ public parameterValue?: (google.cloud.bigquery.v2.IQueryParameterValue|null);
+
+ /**
+ * Creates a new QueryParameter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryParameter instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IQueryParameter): google.cloud.bigquery.v2.QueryParameter;
+
+ /**
+ * Encodes the specified QueryParameter message. Does not implicitly {@link google.cloud.bigquery.v2.QueryParameter.verify|verify} messages.
+ * @param message QueryParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IQueryParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryParameter message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.QueryParameter.verify|verify} messages.
+ * @param message QueryParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IQueryParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryParameter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryParameter
+ * @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.cloud.bigquery.v2.QueryParameter;
+
+ /**
+ * Decodes a QueryParameter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryParameter
+ * @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.cloud.bigquery.v2.QueryParameter;
+
+ /**
+ * Verifies a QueryParameter 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 QueryParameter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryParameter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.QueryParameter;
+
+ /**
+ * Creates a plain object from a QueryParameter message. Also converts values to other types if specified.
+ * @param message QueryParameter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.QueryParameter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryParameter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryParameter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RangePartitioning. */
+ interface IRangePartitioning {
+
+ /** RangePartitioning field */
+ field?: (string|null);
+
+ /** RangePartitioning range */
+ range?: (google.cloud.bigquery.v2.RangePartitioning.IRange|null);
+ }
+
+ /** Represents a RangePartitioning. */
+ class RangePartitioning implements IRangePartitioning {
+
+ /**
+ * Constructs a new RangePartitioning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRangePartitioning);
+
+ /** RangePartitioning field. */
+ public field: string;
+
+ /** RangePartitioning range. */
+ public range?: (google.cloud.bigquery.v2.RangePartitioning.IRange|null);
+
+ /**
+ * Creates a new RangePartitioning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RangePartitioning instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRangePartitioning): google.cloud.bigquery.v2.RangePartitioning;
+
+ /**
+ * Encodes the specified RangePartitioning message. Does not implicitly {@link google.cloud.bigquery.v2.RangePartitioning.verify|verify} messages.
+ * @param message RangePartitioning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRangePartitioning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RangePartitioning message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RangePartitioning.verify|verify} messages.
+ * @param message RangePartitioning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRangePartitioning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RangePartitioning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RangePartitioning
+ * @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.cloud.bigquery.v2.RangePartitioning;
+
+ /**
+ * Decodes a RangePartitioning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RangePartitioning
+ * @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.cloud.bigquery.v2.RangePartitioning;
+
+ /**
+ * Verifies a RangePartitioning 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 RangePartitioning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RangePartitioning
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RangePartitioning;
+
+ /**
+ * Creates a plain object from a RangePartitioning message. Also converts values to other types if specified.
+ * @param message RangePartitioning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RangePartitioning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RangePartitioning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RangePartitioning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RangePartitioning {
+
+ /** Properties of a Range. */
+ interface IRange {
+
+ /** Range start */
+ start?: (string|null);
+
+ /** Range end */
+ end?: (string|null);
+
+ /** Range interval */
+ interval?: (string|null);
+ }
+
+ /** Represents a Range. */
+ class Range implements IRange {
+
+ /**
+ * Constructs a new Range.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.RangePartitioning.IRange);
+
+ /** Range start. */
+ public start: string;
+
+ /** Range end. */
+ public end: string;
+
+ /** Range interval. */
+ public interval: string;
+
+ /**
+ * Creates a new Range instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Range instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.RangePartitioning.IRange): google.cloud.bigquery.v2.RangePartitioning.Range;
+
+ /**
+ * Encodes the specified Range message. Does not implicitly {@link google.cloud.bigquery.v2.RangePartitioning.Range.verify|verify} messages.
+ * @param message Range message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.RangePartitioning.IRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Range message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RangePartitioning.Range.verify|verify} messages.
+ * @param message Range message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.RangePartitioning.IRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Range message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Range
+ * @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.cloud.bigquery.v2.RangePartitioning.Range;
+
+ /**
+ * Decodes a Range message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Range
+ * @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.cloud.bigquery.v2.RangePartitioning.Range;
+
+ /**
+ * Verifies a Range 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 Range message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Range
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RangePartitioning.Range;
+
+ /**
+ * Creates a plain object from a Range message. Also converts values to other types if specified.
+ * @param message Range
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RangePartitioning.Range, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Range to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Range
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SystemVariables. */
+ interface ISystemVariables {
+
+ /** SystemVariables types */
+ types?: ({ [k: string]: google.cloud.bigquery.v2.IStandardSqlDataType }|null);
+
+ /** SystemVariables values */
+ values?: (google.protobuf.IStruct|null);
+ }
+
+ /** Represents a SystemVariables. */
+ class SystemVariables implements ISystemVariables {
+
+ /**
+ * Constructs a new SystemVariables.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ISystemVariables);
+
+ /** SystemVariables types. */
+ public types: { [k: string]: google.cloud.bigquery.v2.IStandardSqlDataType };
+
+ /** SystemVariables values. */
+ public values?: (google.protobuf.IStruct|null);
+
+ /**
+ * Creates a new SystemVariables instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SystemVariables instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ISystemVariables): google.cloud.bigquery.v2.SystemVariables;
+
+ /**
+ * Encodes the specified SystemVariables message. Does not implicitly {@link google.cloud.bigquery.v2.SystemVariables.verify|verify} messages.
+ * @param message SystemVariables message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ISystemVariables, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SystemVariables message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.SystemVariables.verify|verify} messages.
+ * @param message SystemVariables message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ISystemVariables, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SystemVariables message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SystemVariables
+ * @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.cloud.bigquery.v2.SystemVariables;
+
+ /**
+ * Decodes a SystemVariables message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SystemVariables
+ * @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.cloud.bigquery.v2.SystemVariables;
+
+ /**
+ * Verifies a SystemVariables 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 SystemVariables message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SystemVariables
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.SystemVariables;
+
+ /**
+ * Creates a plain object from a SystemVariables message. Also converts values to other types if specified.
+ * @param message SystemVariables
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.SystemVariables, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SystemVariables to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SystemVariables
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StandardSqlDataType. */
+ interface IStandardSqlDataType {
+
+ /** StandardSqlDataType typeKind */
+ typeKind?: (google.cloud.bigquery.v2.StandardSqlDataType.TypeKind|keyof typeof google.cloud.bigquery.v2.StandardSqlDataType.TypeKind|null);
+
+ /** StandardSqlDataType arrayElementType */
+ arrayElementType?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** StandardSqlDataType structType */
+ structType?: (google.cloud.bigquery.v2.IStandardSqlStructType|null);
+
+ /** StandardSqlDataType rangeElementType */
+ rangeElementType?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+ }
+
+ /** Represents a StandardSqlDataType. */
+ class StandardSqlDataType implements IStandardSqlDataType {
+
+ /**
+ * Constructs a new StandardSqlDataType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStandardSqlDataType);
+
+ /** StandardSqlDataType typeKind. */
+ public typeKind: (google.cloud.bigquery.v2.StandardSqlDataType.TypeKind|keyof typeof google.cloud.bigquery.v2.StandardSqlDataType.TypeKind);
+
+ /** StandardSqlDataType arrayElementType. */
+ public arrayElementType?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** StandardSqlDataType structType. */
+ public structType?: (google.cloud.bigquery.v2.IStandardSqlStructType|null);
+
+ /** StandardSqlDataType rangeElementType. */
+ public rangeElementType?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** StandardSqlDataType subType. */
+ public subType?: ("arrayElementType"|"structType"|"rangeElementType");
+
+ /**
+ * Creates a new StandardSqlDataType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StandardSqlDataType instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStandardSqlDataType): google.cloud.bigquery.v2.StandardSqlDataType;
+
+ /**
+ * Encodes the specified StandardSqlDataType message. Does not implicitly {@link google.cloud.bigquery.v2.StandardSqlDataType.verify|verify} messages.
+ * @param message StandardSqlDataType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStandardSqlDataType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StandardSqlDataType message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StandardSqlDataType.verify|verify} messages.
+ * @param message StandardSqlDataType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStandardSqlDataType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StandardSqlDataType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StandardSqlDataType
+ * @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.cloud.bigquery.v2.StandardSqlDataType;
+
+ /**
+ * Decodes a StandardSqlDataType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StandardSqlDataType
+ * @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.cloud.bigquery.v2.StandardSqlDataType;
+
+ /**
+ * Verifies a StandardSqlDataType 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 StandardSqlDataType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StandardSqlDataType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StandardSqlDataType;
+
+ /**
+ * Creates a plain object from a StandardSqlDataType message. Also converts values to other types if specified.
+ * @param message StandardSqlDataType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StandardSqlDataType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StandardSqlDataType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StandardSqlDataType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StandardSqlDataType {
+
+ /** TypeKind enum. */
+ enum TypeKind {
+ TYPE_KIND_UNSPECIFIED = 0,
+ INT64 = 2,
+ BOOL = 5,
+ FLOAT64 = 7,
+ STRING = 8,
+ BYTES = 9,
+ TIMESTAMP = 19,
+ DATE = 10,
+ TIME = 20,
+ DATETIME = 21,
+ INTERVAL = 26,
+ GEOGRAPHY = 22,
+ NUMERIC = 23,
+ BIGNUMERIC = 24,
+ JSON = 25,
+ ARRAY = 16,
+ STRUCT = 17,
+ RANGE = 29
+ }
+ }
+
+ /** Properties of a StandardSqlField. */
+ interface IStandardSqlField {
+
+ /** StandardSqlField name */
+ name?: (string|null);
+
+ /** StandardSqlField type */
+ type?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+ }
+
+ /** Represents a StandardSqlField. */
+ class StandardSqlField implements IStandardSqlField {
+
+ /**
+ * Constructs a new StandardSqlField.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStandardSqlField);
+
+ /** StandardSqlField name. */
+ public name: string;
+
+ /** StandardSqlField type. */
+ public type?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /**
+ * Creates a new StandardSqlField instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StandardSqlField instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStandardSqlField): google.cloud.bigquery.v2.StandardSqlField;
+
+ /**
+ * Encodes the specified StandardSqlField message. Does not implicitly {@link google.cloud.bigquery.v2.StandardSqlField.verify|verify} messages.
+ * @param message StandardSqlField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStandardSqlField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StandardSqlField message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StandardSqlField.verify|verify} messages.
+ * @param message StandardSqlField message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStandardSqlField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StandardSqlField message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StandardSqlField
+ * @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.cloud.bigquery.v2.StandardSqlField;
+
+ /**
+ * Decodes a StandardSqlField message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StandardSqlField
+ * @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.cloud.bigquery.v2.StandardSqlField;
+
+ /**
+ * Verifies a StandardSqlField 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 StandardSqlField message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StandardSqlField
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StandardSqlField;
+
+ /**
+ * Creates a plain object from a StandardSqlField message. Also converts values to other types if specified.
+ * @param message StandardSqlField
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StandardSqlField, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StandardSqlField to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StandardSqlField
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StandardSqlStructType. */
+ interface IStandardSqlStructType {
+
+ /** StandardSqlStructType fields */
+ fields?: (google.cloud.bigquery.v2.IStandardSqlField[]|null);
+ }
+
+ /** Represents a StandardSqlStructType. */
+ class StandardSqlStructType implements IStandardSqlStructType {
+
+ /**
+ * Constructs a new StandardSqlStructType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStandardSqlStructType);
+
+ /** StandardSqlStructType fields. */
+ public fields: google.cloud.bigquery.v2.IStandardSqlField[];
+
+ /**
+ * Creates a new StandardSqlStructType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StandardSqlStructType instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStandardSqlStructType): google.cloud.bigquery.v2.StandardSqlStructType;
+
+ /**
+ * Encodes the specified StandardSqlStructType message. Does not implicitly {@link google.cloud.bigquery.v2.StandardSqlStructType.verify|verify} messages.
+ * @param message StandardSqlStructType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStandardSqlStructType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StandardSqlStructType message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StandardSqlStructType.verify|verify} messages.
+ * @param message StandardSqlStructType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStandardSqlStructType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StandardSqlStructType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StandardSqlStructType
+ * @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.cloud.bigquery.v2.StandardSqlStructType;
+
+ /**
+ * Decodes a StandardSqlStructType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StandardSqlStructType
+ * @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.cloud.bigquery.v2.StandardSqlStructType;
+
+ /**
+ * Verifies a StandardSqlStructType 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 StandardSqlStructType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StandardSqlStructType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StandardSqlStructType;
+
+ /**
+ * Creates a plain object from a StandardSqlStructType message. Also converts values to other types if specified.
+ * @param message StandardSqlStructType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StandardSqlStructType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StandardSqlStructType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StandardSqlStructType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StandardSqlTableType. */
+ interface IStandardSqlTableType {
+
+ /** StandardSqlTableType columns */
+ columns?: (google.cloud.bigquery.v2.IStandardSqlField[]|null);
+ }
+
+ /** Represents a StandardSqlTableType. */
+ class StandardSqlTableType implements IStandardSqlTableType {
+
+ /**
+ * Constructs a new StandardSqlTableType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStandardSqlTableType);
+
+ /** StandardSqlTableType columns. */
+ public columns: google.cloud.bigquery.v2.IStandardSqlField[];
+
+ /**
+ * Creates a new StandardSqlTableType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StandardSqlTableType instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStandardSqlTableType): google.cloud.bigquery.v2.StandardSqlTableType;
+
+ /**
+ * Encodes the specified StandardSqlTableType message. Does not implicitly {@link google.cloud.bigquery.v2.StandardSqlTableType.verify|verify} messages.
+ * @param message StandardSqlTableType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStandardSqlTableType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StandardSqlTableType message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StandardSqlTableType.verify|verify} messages.
+ * @param message StandardSqlTableType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStandardSqlTableType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StandardSqlTableType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StandardSqlTableType
+ * @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.cloud.bigquery.v2.StandardSqlTableType;
+
+ /**
+ * Decodes a StandardSqlTableType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StandardSqlTableType
+ * @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.cloud.bigquery.v2.StandardSqlTableType;
+
+ /**
+ * Verifies a StandardSqlTableType 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 StandardSqlTableType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StandardSqlTableType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StandardSqlTableType;
+
+ /**
+ * Creates a plain object from a StandardSqlTableType message. Also converts values to other types if specified.
+ * @param message StandardSqlTableType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StandardSqlTableType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StandardSqlTableType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StandardSqlTableType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimePartitioning. */
+ interface ITimePartitioning {
+
+ /** TimePartitioning type */
+ type?: (string|null);
+
+ /** TimePartitioning expirationMs */
+ expirationMs?: (google.protobuf.IInt64Value|null);
+
+ /** TimePartitioning field */
+ field?: (google.protobuf.IStringValue|null);
+ }
+
+ /** Represents a TimePartitioning. */
+ class TimePartitioning implements ITimePartitioning {
+
+ /**
+ * Constructs a new TimePartitioning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITimePartitioning);
+
+ /** TimePartitioning type. */
+ public type: string;
+
+ /** TimePartitioning expirationMs. */
+ public expirationMs?: (google.protobuf.IInt64Value|null);
+
+ /** TimePartitioning field. */
+ public field?: (google.protobuf.IStringValue|null);
+
+ /**
+ * Creates a new TimePartitioning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimePartitioning instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITimePartitioning): google.cloud.bigquery.v2.TimePartitioning;
+
+ /**
+ * Encodes the specified TimePartitioning message. Does not implicitly {@link google.cloud.bigquery.v2.TimePartitioning.verify|verify} messages.
+ * @param message TimePartitioning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITimePartitioning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimePartitioning message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TimePartitioning.verify|verify} messages.
+ * @param message TimePartitioning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITimePartitioning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimePartitioning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimePartitioning
+ * @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.cloud.bigquery.v2.TimePartitioning;
+
+ /**
+ * Decodes a TimePartitioning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimePartitioning
+ * @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.cloud.bigquery.v2.TimePartitioning;
+
+ /**
+ * Verifies a TimePartitioning 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 TimePartitioning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimePartitioning
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TimePartitioning;
+
+ /**
+ * Creates a plain object from a TimePartitioning message. Also converts values to other types if specified.
+ * @param message TimePartitioning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TimePartitioning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimePartitioning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimePartitioning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UserDefinedFunctionResource. */
+ interface IUserDefinedFunctionResource {
+
+ /** UserDefinedFunctionResource resourceUri */
+ resourceUri?: (google.protobuf.IStringValue|null);
+
+ /** UserDefinedFunctionResource inlineCode */
+ inlineCode?: (google.protobuf.IStringValue|null);
+ }
+
+ /** Represents a UserDefinedFunctionResource. */
+ class UserDefinedFunctionResource implements IUserDefinedFunctionResource {
+
+ /**
+ * Constructs a new UserDefinedFunctionResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IUserDefinedFunctionResource);
+
+ /** UserDefinedFunctionResource resourceUri. */
+ public resourceUri?: (google.protobuf.IStringValue|null);
+
+ /** UserDefinedFunctionResource inlineCode. */
+ public inlineCode?: (google.protobuf.IStringValue|null);
+
+ /**
+ * Creates a new UserDefinedFunctionResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UserDefinedFunctionResource instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IUserDefinedFunctionResource): google.cloud.bigquery.v2.UserDefinedFunctionResource;
+
+ /**
+ * Encodes the specified UserDefinedFunctionResource message. Does not implicitly {@link google.cloud.bigquery.v2.UserDefinedFunctionResource.verify|verify} messages.
+ * @param message UserDefinedFunctionResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IUserDefinedFunctionResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UserDefinedFunctionResource message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.UserDefinedFunctionResource.verify|verify} messages.
+ * @param message UserDefinedFunctionResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IUserDefinedFunctionResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UserDefinedFunctionResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UserDefinedFunctionResource
+ * @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.cloud.bigquery.v2.UserDefinedFunctionResource;
+
+ /**
+ * Decodes a UserDefinedFunctionResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UserDefinedFunctionResource
+ * @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.cloud.bigquery.v2.UserDefinedFunctionResource;
+
+ /**
+ * Verifies a UserDefinedFunctionResource 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 UserDefinedFunctionResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UserDefinedFunctionResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.UserDefinedFunctionResource;
+
+ /**
+ * Creates a plain object from a UserDefinedFunctionResource message. Also converts values to other types if specified.
+ * @param message UserDefinedFunctionResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.UserDefinedFunctionResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UserDefinedFunctionResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UserDefinedFunctionResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JobCreationReason. */
+ interface IJobCreationReason {
+
+ /** JobCreationReason code */
+ code?: (google.cloud.bigquery.v2.JobCreationReason.Code|keyof typeof google.cloud.bigquery.v2.JobCreationReason.Code|null);
+ }
+
+ /** Represents a JobCreationReason. */
+ class JobCreationReason implements IJobCreationReason {
+
+ /**
+ * Constructs a new JobCreationReason.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobCreationReason);
+
+ /** JobCreationReason code. */
+ public code: (google.cloud.bigquery.v2.JobCreationReason.Code|keyof typeof google.cloud.bigquery.v2.JobCreationReason.Code);
+
+ /**
+ * Creates a new JobCreationReason instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobCreationReason instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobCreationReason): google.cloud.bigquery.v2.JobCreationReason;
+
+ /**
+ * Encodes the specified JobCreationReason message. Does not implicitly {@link google.cloud.bigquery.v2.JobCreationReason.verify|verify} messages.
+ * @param message JobCreationReason message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobCreationReason, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobCreationReason message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobCreationReason.verify|verify} messages.
+ * @param message JobCreationReason message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobCreationReason, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobCreationReason message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobCreationReason
+ * @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.cloud.bigquery.v2.JobCreationReason;
+
+ /**
+ * Decodes a JobCreationReason message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobCreationReason
+ * @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.cloud.bigquery.v2.JobCreationReason;
+
+ /**
+ * Verifies a JobCreationReason 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 JobCreationReason message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobCreationReason
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobCreationReason;
+
+ /**
+ * Creates a plain object from a JobCreationReason message. Also converts values to other types if specified.
+ * @param message JobCreationReason
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobCreationReason, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobCreationReason to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobCreationReason
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace JobCreationReason {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ REQUESTED = 1,
+ LONG_RUNNING = 2,
+ LARGE_RESULTS = 3,
+ OTHER = 4
+ }
+ }
+
+ /** Properties of a JobReference. */
+ interface IJobReference {
+
+ /** JobReference projectId */
+ projectId?: (string|null);
+
+ /** JobReference jobId */
+ jobId?: (string|null);
+
+ /** JobReference location */
+ location?: (google.protobuf.IStringValue|null);
+ }
+
+ /** Represents a JobReference. */
+ class JobReference implements IJobReference {
+
+ /**
+ * Constructs a new JobReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobReference);
+
+ /** JobReference projectId. */
+ public projectId: string;
+
+ /** JobReference jobId. */
+ public jobId: string;
+
+ /** JobReference location. */
+ public location?: (google.protobuf.IStringValue|null);
+
+ /**
+ * Creates a new JobReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobReference): google.cloud.bigquery.v2.JobReference;
+
+ /**
+ * Encodes the specified JobReference message. Does not implicitly {@link google.cloud.bigquery.v2.JobReference.verify|verify} messages.
+ * @param message JobReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobReference.verify|verify} messages.
+ * @param message JobReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobReference
+ * @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.cloud.bigquery.v2.JobReference;
+
+ /**
+ * Decodes a JobReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobReference
+ * @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.cloud.bigquery.v2.JobReference;
+
+ /**
+ * Verifies a JobReference 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 JobReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobReference;
+
+ /**
+ * Creates a plain object from a JobReference message. Also converts values to other types if specified.
+ * @param message JobReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExplainQueryStep. */
+ interface IExplainQueryStep {
+
+ /** ExplainQueryStep kind */
+ kind?: (string|null);
+
+ /** ExplainQueryStep substeps */
+ substeps?: (string[]|null);
+ }
+
+ /** Represents an ExplainQueryStep. */
+ class ExplainQueryStep implements IExplainQueryStep {
+
+ /**
+ * Constructs a new ExplainQueryStep.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExplainQueryStep);
+
+ /** ExplainQueryStep kind. */
+ public kind: string;
+
+ /** ExplainQueryStep substeps. */
+ public substeps: string[];
+
+ /**
+ * Creates a new ExplainQueryStep instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExplainQueryStep instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExplainQueryStep): google.cloud.bigquery.v2.ExplainQueryStep;
+
+ /**
+ * Encodes the specified ExplainQueryStep message. Does not implicitly {@link google.cloud.bigquery.v2.ExplainQueryStep.verify|verify} messages.
+ * @param message ExplainQueryStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExplainQueryStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExplainQueryStep message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExplainQueryStep.verify|verify} messages.
+ * @param message ExplainQueryStep message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExplainQueryStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExplainQueryStep message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExplainQueryStep
+ * @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.cloud.bigquery.v2.ExplainQueryStep;
+
+ /**
+ * Decodes an ExplainQueryStep message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExplainQueryStep
+ * @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.cloud.bigquery.v2.ExplainQueryStep;
+
+ /**
+ * Verifies an ExplainQueryStep 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 ExplainQueryStep message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExplainQueryStep
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExplainQueryStep;
+
+ /**
+ * Creates a plain object from an ExplainQueryStep message. Also converts values to other types if specified.
+ * @param message ExplainQueryStep
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExplainQueryStep, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExplainQueryStep to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExplainQueryStep
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExplainQueryStage. */
+ interface IExplainQueryStage {
+
+ /** ExplainQueryStage name */
+ name?: (string|null);
+
+ /** ExplainQueryStage id */
+ id?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage startMs */
+ startMs?: (number|Long|string|null);
+
+ /** ExplainQueryStage endMs */
+ endMs?: (number|Long|string|null);
+
+ /** ExplainQueryStage inputStages */
+ inputStages?: ((number|Long|string)[]|null);
+
+ /** ExplainQueryStage waitRatioAvg */
+ waitRatioAvg?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage waitMsAvg */
+ waitMsAvg?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage waitRatioMax */
+ waitRatioMax?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage waitMsMax */
+ waitMsMax?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage readRatioAvg */
+ readRatioAvg?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage readMsAvg */
+ readMsAvg?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage readRatioMax */
+ readRatioMax?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage readMsMax */
+ readMsMax?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage computeRatioAvg */
+ computeRatioAvg?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage computeMsAvg */
+ computeMsAvg?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage computeRatioMax */
+ computeRatioMax?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage computeMsMax */
+ computeMsMax?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage writeRatioAvg */
+ writeRatioAvg?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage writeMsAvg */
+ writeMsAvg?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage writeRatioMax */
+ writeRatioMax?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage writeMsMax */
+ writeMsMax?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage shuffleOutputBytes */
+ shuffleOutputBytes?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage shuffleOutputBytesSpilled */
+ shuffleOutputBytesSpilled?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage recordsRead */
+ recordsRead?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage recordsWritten */
+ recordsWritten?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage parallelInputs */
+ parallelInputs?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage completedParallelInputs */
+ completedParallelInputs?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage status */
+ status?: (string|null);
+
+ /** ExplainQueryStage steps */
+ steps?: (google.cloud.bigquery.v2.IExplainQueryStep[]|null);
+
+ /** ExplainQueryStage slotMs */
+ slotMs?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage computeMode */
+ computeMode?: (google.cloud.bigquery.v2.ExplainQueryStage.ComputeMode|keyof typeof google.cloud.bigquery.v2.ExplainQueryStage.ComputeMode|null);
+ }
+
+ /** Represents an ExplainQueryStage. */
+ class ExplainQueryStage implements IExplainQueryStage {
+
+ /**
+ * Constructs a new ExplainQueryStage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExplainQueryStage);
+
+ /** ExplainQueryStage name. */
+ public name: string;
+
+ /** ExplainQueryStage id. */
+ public id?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage startMs. */
+ public startMs: (number|Long|string);
+
+ /** ExplainQueryStage endMs. */
+ public endMs: (number|Long|string);
+
+ /** ExplainQueryStage inputStages. */
+ public inputStages: (number|Long|string)[];
+
+ /** ExplainQueryStage waitRatioAvg. */
+ public waitRatioAvg?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage waitMsAvg. */
+ public waitMsAvg?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage waitRatioMax. */
+ public waitRatioMax?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage waitMsMax. */
+ public waitMsMax?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage readRatioAvg. */
+ public readRatioAvg?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage readMsAvg. */
+ public readMsAvg?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage readRatioMax. */
+ public readRatioMax?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage readMsMax. */
+ public readMsMax?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage computeRatioAvg. */
+ public computeRatioAvg?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage computeMsAvg. */
+ public computeMsAvg?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage computeRatioMax. */
+ public computeRatioMax?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage computeMsMax. */
+ public computeMsMax?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage writeRatioAvg. */
+ public writeRatioAvg?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage writeMsAvg. */
+ public writeMsAvg?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage writeRatioMax. */
+ public writeRatioMax?: (google.protobuf.IDoubleValue|null);
+
+ /** ExplainQueryStage writeMsMax. */
+ public writeMsMax?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage shuffleOutputBytes. */
+ public shuffleOutputBytes?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage shuffleOutputBytesSpilled. */
+ public shuffleOutputBytesSpilled?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage recordsRead. */
+ public recordsRead?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage recordsWritten. */
+ public recordsWritten?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage parallelInputs. */
+ public parallelInputs?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage completedParallelInputs. */
+ public completedParallelInputs?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage status. */
+ public status: string;
+
+ /** ExplainQueryStage steps. */
+ public steps: google.cloud.bigquery.v2.IExplainQueryStep[];
+
+ /** ExplainQueryStage slotMs. */
+ public slotMs?: (google.protobuf.IInt64Value|null);
+
+ /** ExplainQueryStage computeMode. */
+ public computeMode: (google.cloud.bigquery.v2.ExplainQueryStage.ComputeMode|keyof typeof google.cloud.bigquery.v2.ExplainQueryStage.ComputeMode);
+
+ /**
+ * Creates a new ExplainQueryStage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExplainQueryStage instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExplainQueryStage): google.cloud.bigquery.v2.ExplainQueryStage;
+
+ /**
+ * Encodes the specified ExplainQueryStage message. Does not implicitly {@link google.cloud.bigquery.v2.ExplainQueryStage.verify|verify} messages.
+ * @param message ExplainQueryStage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExplainQueryStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExplainQueryStage message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExplainQueryStage.verify|verify} messages.
+ * @param message ExplainQueryStage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExplainQueryStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExplainQueryStage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExplainQueryStage
+ * @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.cloud.bigquery.v2.ExplainQueryStage;
+
+ /**
+ * Decodes an ExplainQueryStage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExplainQueryStage
+ * @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.cloud.bigquery.v2.ExplainQueryStage;
+
+ /**
+ * Verifies an ExplainQueryStage 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 ExplainQueryStage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExplainQueryStage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExplainQueryStage;
+
+ /**
+ * Creates a plain object from an ExplainQueryStage message. Also converts values to other types if specified.
+ * @param message ExplainQueryStage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExplainQueryStage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExplainQueryStage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExplainQueryStage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExplainQueryStage {
+
+ /** ComputeMode enum. */
+ enum ComputeMode {
+ COMPUTE_MODE_UNSPECIFIED = 0,
+ BIGQUERY = 1,
+ BI_ENGINE = 2
+ }
+ }
+
+ /** Properties of a QueryTimelineSample. */
+ interface IQueryTimelineSample {
+
+ /** QueryTimelineSample elapsedMs */
+ elapsedMs?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample totalSlotMs */
+ totalSlotMs?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample pendingUnits */
+ pendingUnits?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample completedUnits */
+ completedUnits?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample activeUnits */
+ activeUnits?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample shuffleRamUsageRatio */
+ shuffleRamUsageRatio?: (google.protobuf.IDoubleValue|null);
+
+ /** QueryTimelineSample estimatedRunnableUnits */
+ estimatedRunnableUnits?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a QueryTimelineSample. */
+ class QueryTimelineSample implements IQueryTimelineSample {
+
+ /**
+ * Constructs a new QueryTimelineSample.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IQueryTimelineSample);
+
+ /** QueryTimelineSample elapsedMs. */
+ public elapsedMs?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample totalSlotMs. */
+ public totalSlotMs?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample pendingUnits. */
+ public pendingUnits?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample completedUnits. */
+ public completedUnits?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample activeUnits. */
+ public activeUnits?: (google.protobuf.IInt64Value|null);
+
+ /** QueryTimelineSample shuffleRamUsageRatio. */
+ public shuffleRamUsageRatio?: (google.protobuf.IDoubleValue|null);
+
+ /** QueryTimelineSample estimatedRunnableUnits. */
+ public estimatedRunnableUnits?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new QueryTimelineSample instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryTimelineSample instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IQueryTimelineSample): google.cloud.bigquery.v2.QueryTimelineSample;
+
+ /**
+ * Encodes the specified QueryTimelineSample message. Does not implicitly {@link google.cloud.bigquery.v2.QueryTimelineSample.verify|verify} messages.
+ * @param message QueryTimelineSample message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IQueryTimelineSample, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryTimelineSample message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.QueryTimelineSample.verify|verify} messages.
+ * @param message QueryTimelineSample message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IQueryTimelineSample, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryTimelineSample message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryTimelineSample
+ * @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.cloud.bigquery.v2.QueryTimelineSample;
+
+ /**
+ * Decodes a QueryTimelineSample message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryTimelineSample
+ * @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.cloud.bigquery.v2.QueryTimelineSample;
+
+ /**
+ * Verifies a QueryTimelineSample 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 QueryTimelineSample message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryTimelineSample
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.QueryTimelineSample;
+
+ /**
+ * Creates a plain object from a QueryTimelineSample message. Also converts values to other types if specified.
+ * @param message QueryTimelineSample
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.QueryTimelineSample, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryTimelineSample to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryTimelineSample
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExternalServiceCost. */
+ interface IExternalServiceCost {
+
+ /** ExternalServiceCost externalService */
+ externalService?: (string|null);
+
+ /** ExternalServiceCost bytesProcessed */
+ bytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** ExternalServiceCost bytesBilled */
+ bytesBilled?: (google.protobuf.IInt64Value|null);
+
+ /** ExternalServiceCost slotMs */
+ slotMs?: (google.protobuf.IInt64Value|null);
+
+ /** ExternalServiceCost reservedSlotCount */
+ reservedSlotCount?: (number|Long|string|null);
+
+ /** ExternalServiceCost billingMethod */
+ billingMethod?: (string|null);
+ }
+
+ /** Represents an ExternalServiceCost. */
+ class ExternalServiceCost implements IExternalServiceCost {
+
+ /**
+ * Constructs a new ExternalServiceCost.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExternalServiceCost);
+
+ /** ExternalServiceCost externalService. */
+ public externalService: string;
+
+ /** ExternalServiceCost bytesProcessed. */
+ public bytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** ExternalServiceCost bytesBilled. */
+ public bytesBilled?: (google.protobuf.IInt64Value|null);
+
+ /** ExternalServiceCost slotMs. */
+ public slotMs?: (google.protobuf.IInt64Value|null);
+
+ /** ExternalServiceCost reservedSlotCount. */
+ public reservedSlotCount: (number|Long|string);
+
+ /** ExternalServiceCost billingMethod. */
+ public billingMethod: string;
+
+ /**
+ * Creates a new ExternalServiceCost instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExternalServiceCost instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExternalServiceCost): google.cloud.bigquery.v2.ExternalServiceCost;
+
+ /**
+ * Encodes the specified ExternalServiceCost message. Does not implicitly {@link google.cloud.bigquery.v2.ExternalServiceCost.verify|verify} messages.
+ * @param message ExternalServiceCost message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExternalServiceCost, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExternalServiceCost message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExternalServiceCost.verify|verify} messages.
+ * @param message ExternalServiceCost message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExternalServiceCost, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExternalServiceCost message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExternalServiceCost
+ * @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.cloud.bigquery.v2.ExternalServiceCost;
+
+ /**
+ * Decodes an ExternalServiceCost message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExternalServiceCost
+ * @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.cloud.bigquery.v2.ExternalServiceCost;
+
+ /**
+ * Verifies an ExternalServiceCost 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 ExternalServiceCost message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExternalServiceCost
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExternalServiceCost;
+
+ /**
+ * Creates a plain object from an ExternalServiceCost message. Also converts values to other types if specified.
+ * @param message ExternalServiceCost
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExternalServiceCost, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExternalServiceCost to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExternalServiceCost
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExportDataStatistics. */
+ interface IExportDataStatistics {
+
+ /** ExportDataStatistics fileCount */
+ fileCount?: (google.protobuf.IInt64Value|null);
+
+ /** ExportDataStatistics rowCount */
+ rowCount?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents an ExportDataStatistics. */
+ class ExportDataStatistics implements IExportDataStatistics {
+
+ /**
+ * Constructs a new ExportDataStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExportDataStatistics);
+
+ /** ExportDataStatistics fileCount. */
+ public fileCount?: (google.protobuf.IInt64Value|null);
+
+ /** ExportDataStatistics rowCount. */
+ public rowCount?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new ExportDataStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExportDataStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExportDataStatistics): google.cloud.bigquery.v2.ExportDataStatistics;
+
+ /**
+ * Encodes the specified ExportDataStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.ExportDataStatistics.verify|verify} messages.
+ * @param message ExportDataStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExportDataStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExportDataStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExportDataStatistics.verify|verify} messages.
+ * @param message ExportDataStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExportDataStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExportDataStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExportDataStatistics
+ * @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.cloud.bigquery.v2.ExportDataStatistics;
+
+ /**
+ * Decodes an ExportDataStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExportDataStatistics
+ * @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.cloud.bigquery.v2.ExportDataStatistics;
+
+ /**
+ * Verifies an ExportDataStatistics 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 ExportDataStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExportDataStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExportDataStatistics;
+
+ /**
+ * Creates a plain object from an ExportDataStatistics message. Also converts values to other types if specified.
+ * @param message ExportDataStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExportDataStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExportDataStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExportDataStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BiEngineReason. */
+ interface IBiEngineReason {
+
+ /** BiEngineReason code */
+ code?: (google.cloud.bigquery.v2.BiEngineReason.Code|keyof typeof google.cloud.bigquery.v2.BiEngineReason.Code|null);
+
+ /** BiEngineReason message */
+ message?: (string|null);
+ }
+
+ /** Represents a BiEngineReason. */
+ class BiEngineReason implements IBiEngineReason {
+
+ /**
+ * Constructs a new BiEngineReason.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IBiEngineReason);
+
+ /** BiEngineReason code. */
+ public code: (google.cloud.bigquery.v2.BiEngineReason.Code|keyof typeof google.cloud.bigquery.v2.BiEngineReason.Code);
+
+ /** BiEngineReason message. */
+ public message: string;
+
+ /**
+ * Creates a new BiEngineReason instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BiEngineReason instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IBiEngineReason): google.cloud.bigquery.v2.BiEngineReason;
+
+ /**
+ * Encodes the specified BiEngineReason message. Does not implicitly {@link google.cloud.bigquery.v2.BiEngineReason.verify|verify} messages.
+ * @param message BiEngineReason message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IBiEngineReason, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BiEngineReason message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BiEngineReason.verify|verify} messages.
+ * @param message BiEngineReason message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IBiEngineReason, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BiEngineReason message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BiEngineReason
+ * @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.cloud.bigquery.v2.BiEngineReason;
+
+ /**
+ * Decodes a BiEngineReason message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BiEngineReason
+ * @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.cloud.bigquery.v2.BiEngineReason;
+
+ /**
+ * Verifies a BiEngineReason 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 BiEngineReason message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BiEngineReason
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.BiEngineReason;
+
+ /**
+ * Creates a plain object from a BiEngineReason message. Also converts values to other types if specified.
+ * @param message BiEngineReason
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.BiEngineReason, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BiEngineReason to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BiEngineReason
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BiEngineReason {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ NO_RESERVATION = 1,
+ INSUFFICIENT_RESERVATION = 2,
+ UNSUPPORTED_SQL_TEXT = 4,
+ INPUT_TOO_LARGE = 5,
+ OTHER_REASON = 6,
+ TABLE_EXCLUDED = 7
+ }
+ }
+
+ /** Properties of a BiEngineStatistics. */
+ interface IBiEngineStatistics {
+
+ /** BiEngineStatistics biEngineMode */
+ biEngineMode?: (google.cloud.bigquery.v2.BiEngineStatistics.BiEngineMode|keyof typeof google.cloud.bigquery.v2.BiEngineStatistics.BiEngineMode|null);
+
+ /** BiEngineStatistics accelerationMode */
+ accelerationMode?: (google.cloud.bigquery.v2.BiEngineStatistics.BiEngineAccelerationMode|keyof typeof google.cloud.bigquery.v2.BiEngineStatistics.BiEngineAccelerationMode|null);
+
+ /** BiEngineStatistics biEngineReasons */
+ biEngineReasons?: (google.cloud.bigquery.v2.IBiEngineReason[]|null);
+ }
+
+ /** Represents a BiEngineStatistics. */
+ class BiEngineStatistics implements IBiEngineStatistics {
+
+ /**
+ * Constructs a new BiEngineStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IBiEngineStatistics);
+
+ /** BiEngineStatistics biEngineMode. */
+ public biEngineMode: (google.cloud.bigquery.v2.BiEngineStatistics.BiEngineMode|keyof typeof google.cloud.bigquery.v2.BiEngineStatistics.BiEngineMode);
+
+ /** BiEngineStatistics accelerationMode. */
+ public accelerationMode: (google.cloud.bigquery.v2.BiEngineStatistics.BiEngineAccelerationMode|keyof typeof google.cloud.bigquery.v2.BiEngineStatistics.BiEngineAccelerationMode);
+
+ /** BiEngineStatistics biEngineReasons. */
+ public biEngineReasons: google.cloud.bigquery.v2.IBiEngineReason[];
+
+ /**
+ * Creates a new BiEngineStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BiEngineStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IBiEngineStatistics): google.cloud.bigquery.v2.BiEngineStatistics;
+
+ /**
+ * Encodes the specified BiEngineStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.BiEngineStatistics.verify|verify} messages.
+ * @param message BiEngineStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IBiEngineStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BiEngineStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BiEngineStatistics.verify|verify} messages.
+ * @param message BiEngineStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IBiEngineStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BiEngineStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BiEngineStatistics
+ * @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.cloud.bigquery.v2.BiEngineStatistics;
+
+ /**
+ * Decodes a BiEngineStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BiEngineStatistics
+ * @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.cloud.bigquery.v2.BiEngineStatistics;
+
+ /**
+ * Verifies a BiEngineStatistics 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 BiEngineStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BiEngineStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.BiEngineStatistics;
+
+ /**
+ * Creates a plain object from a BiEngineStatistics message. Also converts values to other types if specified.
+ * @param message BiEngineStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.BiEngineStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BiEngineStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BiEngineStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BiEngineStatistics {
+
+ /** BiEngineMode enum. */
+ enum BiEngineMode {
+ ACCELERATION_MODE_UNSPECIFIED = 0,
+ DISABLED = 1,
+ PARTIAL = 2,
+ FULL = 3
+ }
+
+ /** BiEngineAccelerationMode enum. */
+ enum BiEngineAccelerationMode {
+ BI_ENGINE_ACCELERATION_MODE_UNSPECIFIED = 0,
+ BI_ENGINE_DISABLED = 1,
+ PARTIAL_INPUT = 2,
+ FULL_INPUT = 3,
+ FULL_QUERY = 4
+ }
+ }
+
+ /** Properties of an IndexUnusedReason. */
+ interface IIndexUnusedReason {
+
+ /** IndexUnusedReason code */
+ code?: (google.cloud.bigquery.v2.IndexUnusedReason.Code|keyof typeof google.cloud.bigquery.v2.IndexUnusedReason.Code|null);
+
+ /** IndexUnusedReason message */
+ message?: (string|null);
+
+ /** IndexUnusedReason baseTable */
+ baseTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** IndexUnusedReason indexName */
+ indexName?: (string|null);
+ }
+
+ /** Represents an IndexUnusedReason. */
+ class IndexUnusedReason implements IIndexUnusedReason {
+
+ /**
+ * Constructs a new IndexUnusedReason.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IIndexUnusedReason);
+
+ /** IndexUnusedReason code. */
+ public code?: (google.cloud.bigquery.v2.IndexUnusedReason.Code|keyof typeof google.cloud.bigquery.v2.IndexUnusedReason.Code|null);
+
+ /** IndexUnusedReason message. */
+ public message?: (string|null);
+
+ /** IndexUnusedReason baseTable. */
+ public baseTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** IndexUnusedReason indexName. */
+ public indexName?: (string|null);
+
+ /**
+ * Creates a new IndexUnusedReason instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IndexUnusedReason instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IIndexUnusedReason): google.cloud.bigquery.v2.IndexUnusedReason;
+
+ /**
+ * Encodes the specified IndexUnusedReason message. Does not implicitly {@link google.cloud.bigquery.v2.IndexUnusedReason.verify|verify} messages.
+ * @param message IndexUnusedReason message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IIndexUnusedReason, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IndexUnusedReason message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.IndexUnusedReason.verify|verify} messages.
+ * @param message IndexUnusedReason message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IIndexUnusedReason, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IndexUnusedReason message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IndexUnusedReason
+ * @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.cloud.bigquery.v2.IndexUnusedReason;
+
+ /**
+ * Decodes an IndexUnusedReason message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IndexUnusedReason
+ * @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.cloud.bigquery.v2.IndexUnusedReason;
+
+ /**
+ * Verifies an IndexUnusedReason 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 IndexUnusedReason message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IndexUnusedReason
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.IndexUnusedReason;
+
+ /**
+ * Creates a plain object from an IndexUnusedReason message. Also converts values to other types if specified.
+ * @param message IndexUnusedReason
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.IndexUnusedReason, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IndexUnusedReason to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IndexUnusedReason
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IndexUnusedReason {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ INDEX_CONFIG_NOT_AVAILABLE = 1,
+ PENDING_INDEX_CREATION = 2,
+ BASE_TABLE_TRUNCATED = 3,
+ INDEX_CONFIG_MODIFIED = 4,
+ TIME_TRAVEL_QUERY = 5,
+ NO_PRUNING_POWER = 6,
+ UNINDEXED_SEARCH_FIELDS = 7,
+ UNSUPPORTED_SEARCH_PATTERN = 8,
+ OPTIMIZED_WITH_MATERIALIZED_VIEW = 9,
+ SECURED_BY_DATA_MASKING = 11,
+ MISMATCHED_TEXT_ANALYZER = 12,
+ BASE_TABLE_TOO_SMALL = 13,
+ BASE_TABLE_TOO_LARGE = 14,
+ ESTIMATED_PERFORMANCE_GAIN_TOO_LOW = 15,
+ COLUMN_METADATA_INDEX_NOT_USED = 21,
+ NOT_SUPPORTED_IN_STANDARD_EDITION = 17,
+ INDEX_SUPPRESSED_BY_FUNCTION_OPTION = 18,
+ QUERY_CACHE_HIT = 19,
+ STALE_INDEX = 20,
+ INTERNAL_ERROR = 10,
+ OTHER_REASON = 16
+ }
+ }
+
+ /** Properties of an IndexPruningStats. */
+ interface IIndexPruningStats {
+
+ /** IndexPruningStats baseTable */
+ baseTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** IndexPruningStats indexId */
+ indexId?: (string|null);
+
+ /** IndexPruningStats preIndexPruningParallelInputCount */
+ preIndexPruningParallelInputCount?: (number|Long|string|null);
+
+ /** IndexPruningStats postIndexPruningParallelInputCount */
+ postIndexPruningParallelInputCount?: (number|Long|string|null);
+ }
+
+ /** Represents an IndexPruningStats. */
+ class IndexPruningStats implements IIndexPruningStats {
+
+ /**
+ * Constructs a new IndexPruningStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IIndexPruningStats);
+
+ /** IndexPruningStats baseTable. */
+ public baseTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** IndexPruningStats indexId. */
+ public indexId?: (string|null);
+
+ /** IndexPruningStats preIndexPruningParallelInputCount. */
+ public preIndexPruningParallelInputCount?: (number|Long|string|null);
+
+ /** IndexPruningStats postIndexPruningParallelInputCount. */
+ public postIndexPruningParallelInputCount?: (number|Long|string|null);
+
+ /**
+ * Creates a new IndexPruningStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IndexPruningStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IIndexPruningStats): google.cloud.bigquery.v2.IndexPruningStats;
+
+ /**
+ * Encodes the specified IndexPruningStats message. Does not implicitly {@link google.cloud.bigquery.v2.IndexPruningStats.verify|verify} messages.
+ * @param message IndexPruningStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IIndexPruningStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IndexPruningStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.IndexPruningStats.verify|verify} messages.
+ * @param message IndexPruningStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IIndexPruningStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IndexPruningStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IndexPruningStats
+ * @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.cloud.bigquery.v2.IndexPruningStats;
+
+ /**
+ * Decodes an IndexPruningStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IndexPruningStats
+ * @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.cloud.bigquery.v2.IndexPruningStats;
+
+ /**
+ * Verifies an IndexPruningStats 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 IndexPruningStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IndexPruningStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.IndexPruningStats;
+
+ /**
+ * Creates a plain object from an IndexPruningStats message. Also converts values to other types if specified.
+ * @param message IndexPruningStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.IndexPruningStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IndexPruningStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IndexPruningStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StoredColumnsUsage. */
+ interface IStoredColumnsUsage {
+
+ /** StoredColumnsUsage isQueryAccelerated */
+ isQueryAccelerated?: (boolean|null);
+
+ /** StoredColumnsUsage baseTable */
+ baseTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** StoredColumnsUsage storedColumnsUnusedReasons */
+ storedColumnsUnusedReasons?: (google.cloud.bigquery.v2.StoredColumnsUsage.IStoredColumnsUnusedReason[]|null);
+ }
+
+ /** Represents a StoredColumnsUsage. */
+ class StoredColumnsUsage implements IStoredColumnsUsage {
+
+ /**
+ * Constructs a new StoredColumnsUsage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStoredColumnsUsage);
+
+ /** StoredColumnsUsage isQueryAccelerated. */
+ public isQueryAccelerated?: (boolean|null);
+
+ /** StoredColumnsUsage baseTable. */
+ public baseTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** StoredColumnsUsage storedColumnsUnusedReasons. */
+ public storedColumnsUnusedReasons: google.cloud.bigquery.v2.StoredColumnsUsage.IStoredColumnsUnusedReason[];
+
+ /**
+ * Creates a new StoredColumnsUsage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StoredColumnsUsage instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStoredColumnsUsage): google.cloud.bigquery.v2.StoredColumnsUsage;
+
+ /**
+ * Encodes the specified StoredColumnsUsage message. Does not implicitly {@link google.cloud.bigquery.v2.StoredColumnsUsage.verify|verify} messages.
+ * @param message StoredColumnsUsage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStoredColumnsUsage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StoredColumnsUsage message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StoredColumnsUsage.verify|verify} messages.
+ * @param message StoredColumnsUsage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStoredColumnsUsage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StoredColumnsUsage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StoredColumnsUsage
+ * @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.cloud.bigquery.v2.StoredColumnsUsage;
+
+ /**
+ * Decodes a StoredColumnsUsage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StoredColumnsUsage
+ * @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.cloud.bigquery.v2.StoredColumnsUsage;
+
+ /**
+ * Verifies a StoredColumnsUsage 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 StoredColumnsUsage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StoredColumnsUsage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StoredColumnsUsage;
+
+ /**
+ * Creates a plain object from a StoredColumnsUsage message. Also converts values to other types if specified.
+ * @param message StoredColumnsUsage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StoredColumnsUsage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StoredColumnsUsage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StoredColumnsUsage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StoredColumnsUsage {
+
+ /** Properties of a StoredColumnsUnusedReason. */
+ interface IStoredColumnsUnusedReason {
+
+ /** StoredColumnsUnusedReason code */
+ code?: (google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason.Code|keyof typeof google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason.Code|null);
+
+ /** StoredColumnsUnusedReason message */
+ message?: (string|null);
+
+ /** StoredColumnsUnusedReason uncoveredColumns */
+ uncoveredColumns?: (string[]|null);
+ }
+
+ /** Represents a StoredColumnsUnusedReason. */
+ class StoredColumnsUnusedReason implements IStoredColumnsUnusedReason {
+
+ /**
+ * Constructs a new StoredColumnsUnusedReason.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.StoredColumnsUsage.IStoredColumnsUnusedReason);
+
+ /** StoredColumnsUnusedReason code. */
+ public code?: (google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason.Code|keyof typeof google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason.Code|null);
+
+ /** StoredColumnsUnusedReason message. */
+ public message?: (string|null);
+
+ /** StoredColumnsUnusedReason uncoveredColumns. */
+ public uncoveredColumns: string[];
+
+ /**
+ * Creates a new StoredColumnsUnusedReason instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StoredColumnsUnusedReason instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.StoredColumnsUsage.IStoredColumnsUnusedReason): google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason;
+
+ /**
+ * Encodes the specified StoredColumnsUnusedReason message. Does not implicitly {@link google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason.verify|verify} messages.
+ * @param message StoredColumnsUnusedReason message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.StoredColumnsUsage.IStoredColumnsUnusedReason, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StoredColumnsUnusedReason message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason.verify|verify} messages.
+ * @param message StoredColumnsUnusedReason message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.StoredColumnsUsage.IStoredColumnsUnusedReason, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StoredColumnsUnusedReason message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StoredColumnsUnusedReason
+ * @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.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason;
+
+ /**
+ * Decodes a StoredColumnsUnusedReason message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StoredColumnsUnusedReason
+ * @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.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason;
+
+ /**
+ * Verifies a StoredColumnsUnusedReason 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 StoredColumnsUnusedReason message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StoredColumnsUnusedReason
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason;
+
+ /**
+ * Creates a plain object from a StoredColumnsUnusedReason message. Also converts values to other types if specified.
+ * @param message StoredColumnsUnusedReason
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StoredColumnsUsage.StoredColumnsUnusedReason, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StoredColumnsUnusedReason to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StoredColumnsUnusedReason
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StoredColumnsUnusedReason {
+
+ /** Code enum. */
+ enum Code {
+ CODE_UNSPECIFIED = 0,
+ STORED_COLUMNS_COVER_INSUFFICIENT = 1,
+ BASE_TABLE_HAS_RLS = 2,
+ BASE_TABLE_HAS_CLS = 3,
+ UNSUPPORTED_PREFILTER = 4,
+ INTERNAL_ERROR = 5,
+ OTHER_REASON = 6
+ }
+ }
+ }
+
+ /** Properties of a SearchStatistics. */
+ interface ISearchStatistics {
+
+ /** SearchStatistics indexUsageMode */
+ indexUsageMode?: (google.cloud.bigquery.v2.SearchStatistics.IndexUsageMode|keyof typeof google.cloud.bigquery.v2.SearchStatistics.IndexUsageMode|null);
+
+ /** SearchStatistics indexUnusedReasons */
+ indexUnusedReasons?: (google.cloud.bigquery.v2.IIndexUnusedReason[]|null);
+
+ /** SearchStatistics indexPruningStats */
+ indexPruningStats?: (google.cloud.bigquery.v2.IIndexPruningStats[]|null);
+ }
+
+ /** Represents a SearchStatistics. */
+ class SearchStatistics implements ISearchStatistics {
+
+ /**
+ * Constructs a new SearchStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ISearchStatistics);
+
+ /** SearchStatistics indexUsageMode. */
+ public indexUsageMode: (google.cloud.bigquery.v2.SearchStatistics.IndexUsageMode|keyof typeof google.cloud.bigquery.v2.SearchStatistics.IndexUsageMode);
+
+ /** SearchStatistics indexUnusedReasons. */
+ public indexUnusedReasons: google.cloud.bigquery.v2.IIndexUnusedReason[];
+
+ /** SearchStatistics indexPruningStats. */
+ public indexPruningStats: google.cloud.bigquery.v2.IIndexPruningStats[];
+
+ /**
+ * Creates a new SearchStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ISearchStatistics): google.cloud.bigquery.v2.SearchStatistics;
+
+ /**
+ * Encodes the specified SearchStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.SearchStatistics.verify|verify} messages.
+ * @param message SearchStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ISearchStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.SearchStatistics.verify|verify} messages.
+ * @param message SearchStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ISearchStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchStatistics
+ * @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.cloud.bigquery.v2.SearchStatistics;
+
+ /**
+ * Decodes a SearchStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchStatistics
+ * @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.cloud.bigquery.v2.SearchStatistics;
+
+ /**
+ * Verifies a SearchStatistics 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 SearchStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.SearchStatistics;
+
+ /**
+ * Creates a plain object from a SearchStatistics message. Also converts values to other types if specified.
+ * @param message SearchStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.SearchStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SearchStatistics {
+
+ /** IndexUsageMode enum. */
+ enum IndexUsageMode {
+ INDEX_USAGE_MODE_UNSPECIFIED = 0,
+ UNUSED = 1,
+ PARTIALLY_USED = 2,
+ FULLY_USED = 4
+ }
+ }
+
+ /** Properties of a VectorSearchStatistics. */
+ interface IVectorSearchStatistics {
+
+ /** VectorSearchStatistics indexUsageMode */
+ indexUsageMode?: (google.cloud.bigquery.v2.VectorSearchStatistics.IndexUsageMode|keyof typeof google.cloud.bigquery.v2.VectorSearchStatistics.IndexUsageMode|null);
+
+ /** VectorSearchStatistics indexUnusedReasons */
+ indexUnusedReasons?: (google.cloud.bigquery.v2.IIndexUnusedReason[]|null);
+
+ /** VectorSearchStatistics storedColumnsUsages */
+ storedColumnsUsages?: (google.cloud.bigquery.v2.IStoredColumnsUsage[]|null);
+ }
+
+ /** Represents a VectorSearchStatistics. */
+ class VectorSearchStatistics implements IVectorSearchStatistics {
+
+ /**
+ * Constructs a new VectorSearchStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IVectorSearchStatistics);
+
+ /** VectorSearchStatistics indexUsageMode. */
+ public indexUsageMode: (google.cloud.bigquery.v2.VectorSearchStatistics.IndexUsageMode|keyof typeof google.cloud.bigquery.v2.VectorSearchStatistics.IndexUsageMode);
+
+ /** VectorSearchStatistics indexUnusedReasons. */
+ public indexUnusedReasons: google.cloud.bigquery.v2.IIndexUnusedReason[];
+
+ /** VectorSearchStatistics storedColumnsUsages. */
+ public storedColumnsUsages: google.cloud.bigquery.v2.IStoredColumnsUsage[];
+
+ /**
+ * Creates a new VectorSearchStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VectorSearchStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IVectorSearchStatistics): google.cloud.bigquery.v2.VectorSearchStatistics;
+
+ /**
+ * Encodes the specified VectorSearchStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.VectorSearchStatistics.verify|verify} messages.
+ * @param message VectorSearchStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IVectorSearchStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VectorSearchStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.VectorSearchStatistics.verify|verify} messages.
+ * @param message VectorSearchStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IVectorSearchStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VectorSearchStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VectorSearchStatistics
+ * @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.cloud.bigquery.v2.VectorSearchStatistics;
+
+ /**
+ * Decodes a VectorSearchStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VectorSearchStatistics
+ * @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.cloud.bigquery.v2.VectorSearchStatistics;
+
+ /**
+ * Verifies a VectorSearchStatistics 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 VectorSearchStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VectorSearchStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.VectorSearchStatistics;
+
+ /**
+ * Creates a plain object from a VectorSearchStatistics message. Also converts values to other types if specified.
+ * @param message VectorSearchStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.VectorSearchStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VectorSearchStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VectorSearchStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VectorSearchStatistics {
+
+ /** IndexUsageMode enum. */
+ enum IndexUsageMode {
+ INDEX_USAGE_MODE_UNSPECIFIED = 0,
+ UNUSED = 1,
+ PARTIALLY_USED = 2,
+ FULLY_USED = 4
+ }
+ }
+
+ /** Properties of a QueryInfo. */
+ interface IQueryInfo {
+
+ /** QueryInfo optimizationDetails */
+ optimizationDetails?: (google.protobuf.IStruct|null);
+ }
+
+ /** Represents a QueryInfo. */
+ class QueryInfo implements IQueryInfo {
+
+ /**
+ * Constructs a new QueryInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IQueryInfo);
+
+ /** QueryInfo optimizationDetails. */
+ public optimizationDetails?: (google.protobuf.IStruct|null);
+
+ /**
+ * Creates a new QueryInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IQueryInfo): google.cloud.bigquery.v2.QueryInfo;
+
+ /**
+ * Encodes the specified QueryInfo message. Does not implicitly {@link google.cloud.bigquery.v2.QueryInfo.verify|verify} messages.
+ * @param message QueryInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IQueryInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.QueryInfo.verify|verify} messages.
+ * @param message QueryInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IQueryInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryInfo
+ * @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.cloud.bigquery.v2.QueryInfo;
+
+ /**
+ * Decodes a QueryInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryInfo
+ * @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.cloud.bigquery.v2.QueryInfo;
+
+ /**
+ * Verifies a QueryInfo 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 QueryInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.QueryInfo;
+
+ /**
+ * Creates a plain object from a QueryInfo message. Also converts values to other types if specified.
+ * @param message QueryInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.QueryInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LoadQueryStatistics. */
+ interface ILoadQueryStatistics {
+
+ /** LoadQueryStatistics inputFiles */
+ inputFiles?: (google.protobuf.IInt64Value|null);
+
+ /** LoadQueryStatistics inputFileBytes */
+ inputFileBytes?: (google.protobuf.IInt64Value|null);
+
+ /** LoadQueryStatistics outputRows */
+ outputRows?: (google.protobuf.IInt64Value|null);
+
+ /** LoadQueryStatistics outputBytes */
+ outputBytes?: (google.protobuf.IInt64Value|null);
+
+ /** LoadQueryStatistics badRecords */
+ badRecords?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a LoadQueryStatistics. */
+ class LoadQueryStatistics implements ILoadQueryStatistics {
+
+ /**
+ * Constructs a new LoadQueryStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ILoadQueryStatistics);
+
+ /** LoadQueryStatistics inputFiles. */
+ public inputFiles?: (google.protobuf.IInt64Value|null);
+
+ /** LoadQueryStatistics inputFileBytes. */
+ public inputFileBytes?: (google.protobuf.IInt64Value|null);
+
+ /** LoadQueryStatistics outputRows. */
+ public outputRows?: (google.protobuf.IInt64Value|null);
+
+ /** LoadQueryStatistics outputBytes. */
+ public outputBytes?: (google.protobuf.IInt64Value|null);
+
+ /** LoadQueryStatistics badRecords. */
+ public badRecords?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new LoadQueryStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LoadQueryStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ILoadQueryStatistics): google.cloud.bigquery.v2.LoadQueryStatistics;
+
+ /**
+ * Encodes the specified LoadQueryStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.LoadQueryStatistics.verify|verify} messages.
+ * @param message LoadQueryStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ILoadQueryStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LoadQueryStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.LoadQueryStatistics.verify|verify} messages.
+ * @param message LoadQueryStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ILoadQueryStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LoadQueryStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LoadQueryStatistics
+ * @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.cloud.bigquery.v2.LoadQueryStatistics;
+
+ /**
+ * Decodes a LoadQueryStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LoadQueryStatistics
+ * @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.cloud.bigquery.v2.LoadQueryStatistics;
+
+ /**
+ * Verifies a LoadQueryStatistics 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 LoadQueryStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LoadQueryStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.LoadQueryStatistics;
+
+ /**
+ * Creates a plain object from a LoadQueryStatistics message. Also converts values to other types if specified.
+ * @param message LoadQueryStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.LoadQueryStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LoadQueryStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LoadQueryStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an IncrementalResultStats. */
+ interface IIncrementalResultStats {
+
+ /** IncrementalResultStats disabledReason */
+ disabledReason?: (google.cloud.bigquery.v2.IncrementalResultStats.DisabledReason|keyof typeof google.cloud.bigquery.v2.IncrementalResultStats.DisabledReason|null);
+
+ /** IncrementalResultStats disabledReasonDetails */
+ disabledReasonDetails?: (string|null);
+
+ /** IncrementalResultStats resultSetLastReplaceTime */
+ resultSetLastReplaceTime?: (google.protobuf.ITimestamp|null);
+
+ /** IncrementalResultStats resultSetLastModifyTime */
+ resultSetLastModifyTime?: (google.protobuf.ITimestamp|null);
+
+ /** IncrementalResultStats firstIncrementalRowTime */
+ firstIncrementalRowTime?: (google.protobuf.ITimestamp|null);
+
+ /** IncrementalResultStats lastIncrementalRowTime */
+ lastIncrementalRowTime?: (google.protobuf.ITimestamp|null);
+
+ /** IncrementalResultStats incrementalRowCount */
+ incrementalRowCount?: (number|Long|string|null);
+ }
+
+ /** Represents an IncrementalResultStats. */
+ class IncrementalResultStats implements IIncrementalResultStats {
+
+ /**
+ * Constructs a new IncrementalResultStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IIncrementalResultStats);
+
+ /** IncrementalResultStats disabledReason. */
+ public disabledReason: (google.cloud.bigquery.v2.IncrementalResultStats.DisabledReason|keyof typeof google.cloud.bigquery.v2.IncrementalResultStats.DisabledReason);
+
+ /** IncrementalResultStats disabledReasonDetails. */
+ public disabledReasonDetails: string;
+
+ /** IncrementalResultStats resultSetLastReplaceTime. */
+ public resultSetLastReplaceTime?: (google.protobuf.ITimestamp|null);
+
+ /** IncrementalResultStats resultSetLastModifyTime. */
+ public resultSetLastModifyTime?: (google.protobuf.ITimestamp|null);
+
+ /** IncrementalResultStats firstIncrementalRowTime. */
+ public firstIncrementalRowTime?: (google.protobuf.ITimestamp|null);
+
+ /** IncrementalResultStats lastIncrementalRowTime. */
+ public lastIncrementalRowTime?: (google.protobuf.ITimestamp|null);
+
+ /** IncrementalResultStats incrementalRowCount. */
+ public incrementalRowCount?: (number|Long|string|null);
+
+ /**
+ * Creates a new IncrementalResultStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IncrementalResultStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IIncrementalResultStats): google.cloud.bigquery.v2.IncrementalResultStats;
+
+ /**
+ * Encodes the specified IncrementalResultStats message. Does not implicitly {@link google.cloud.bigquery.v2.IncrementalResultStats.verify|verify} messages.
+ * @param message IncrementalResultStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IIncrementalResultStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IncrementalResultStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.IncrementalResultStats.verify|verify} messages.
+ * @param message IncrementalResultStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IIncrementalResultStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IncrementalResultStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IncrementalResultStats
+ * @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.cloud.bigquery.v2.IncrementalResultStats;
+
+ /**
+ * Decodes an IncrementalResultStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IncrementalResultStats
+ * @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.cloud.bigquery.v2.IncrementalResultStats;
+
+ /**
+ * Verifies an IncrementalResultStats 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 IncrementalResultStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IncrementalResultStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.IncrementalResultStats;
+
+ /**
+ * Creates a plain object from an IncrementalResultStats message. Also converts values to other types if specified.
+ * @param message IncrementalResultStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.IncrementalResultStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IncrementalResultStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IncrementalResultStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IncrementalResultStats {
+
+ /** DisabledReason enum. */
+ enum DisabledReason {
+ DISABLED_REASON_UNSPECIFIED = 0,
+ OTHER = 1,
+ UNSUPPORTED_OPERATOR = 2
+ }
+ }
+
+ /** Properties of a JobStatistics2. */
+ interface IJobStatistics2 {
+
+ /** JobStatistics2 queryPlan */
+ queryPlan?: (google.cloud.bigquery.v2.IExplainQueryStage[]|null);
+
+ /** JobStatistics2 estimatedBytesProcessed */
+ estimatedBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 timeline */
+ timeline?: (google.cloud.bigquery.v2.IQueryTimelineSample[]|null);
+
+ /** JobStatistics2 totalPartitionsProcessed */
+ totalPartitionsProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 totalBytesProcessed */
+ totalBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 totalBytesProcessedAccuracy */
+ totalBytesProcessedAccuracy?: (string|null);
+
+ /** JobStatistics2 totalBytesBilled */
+ totalBytesBilled?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 billingTier */
+ billingTier?: (google.protobuf.IInt32Value|null);
+
+ /** JobStatistics2 totalSlotMs */
+ totalSlotMs?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 totalServicesSkuSlotMs */
+ totalServicesSkuSlotMs?: (number|Long|string|null);
+
+ /** JobStatistics2 cacheHit */
+ cacheHit?: (google.protobuf.IBoolValue|null);
+
+ /** JobStatistics2 referencedTables */
+ referencedTables?: (google.cloud.bigquery.v2.ITableReference[]|null);
+
+ /** JobStatistics2 referencedRoutines */
+ referencedRoutines?: (google.cloud.bigquery.v2.IRoutineReference[]|null);
+
+ /** JobStatistics2 referencedPropertyGraphs */
+ referencedPropertyGraphs?: (google.cloud.bigquery.v2.IPropertyGraphReference[]|null);
+
+ /** JobStatistics2 schema */
+ schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** JobStatistics2 numDmlAffectedRows */
+ numDmlAffectedRows?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 dmlStats */
+ dmlStats?: (google.cloud.bigquery.v2.IDmlStats|null);
+
+ /** JobStatistics2 undeclaredQueryParameters */
+ undeclaredQueryParameters?: (google.cloud.bigquery.v2.IQueryParameter[]|null);
+
+ /** JobStatistics2 statementType */
+ statementType?: (string|null);
+
+ /** JobStatistics2 ddlOperationPerformed */
+ ddlOperationPerformed?: (string|null);
+
+ /** JobStatistics2 ddlTargetTable */
+ ddlTargetTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobStatistics2 ddlDestinationTable */
+ ddlDestinationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobStatistics2 ddlTargetRowAccessPolicy */
+ ddlTargetRowAccessPolicy?: (google.cloud.bigquery.v2.IRowAccessPolicyReference|null);
+
+ /** JobStatistics2 ddlAffectedRowAccessPolicyCount */
+ ddlAffectedRowAccessPolicyCount?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 ddlTargetRoutine */
+ ddlTargetRoutine?: (google.cloud.bigquery.v2.IRoutineReference|null);
+
+ /** JobStatistics2 ddlTargetDataset */
+ ddlTargetDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** JobStatistics2 mlStatistics */
+ mlStatistics?: (google.cloud.bigquery.v2.IMlStatistics|null);
+
+ /** JobStatistics2 exportDataStatistics */
+ exportDataStatistics?: (google.cloud.bigquery.v2.IExportDataStatistics|null);
+
+ /** JobStatistics2 externalServiceCosts */
+ externalServiceCosts?: (google.cloud.bigquery.v2.IExternalServiceCost[]|null);
+
+ /** JobStatistics2 biEngineStatistics */
+ biEngineStatistics?: (google.cloud.bigquery.v2.IBiEngineStatistics|null);
+
+ /** JobStatistics2 loadQueryStatistics */
+ loadQueryStatistics?: (google.cloud.bigquery.v2.ILoadQueryStatistics|null);
+
+ /** JobStatistics2 dclTargetTable */
+ dclTargetTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobStatistics2 dclTargetView */
+ dclTargetView?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobStatistics2 dclTargetDataset */
+ dclTargetDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** JobStatistics2 searchStatistics */
+ searchStatistics?: (google.cloud.bigquery.v2.ISearchStatistics|null);
+
+ /** JobStatistics2 vectorSearchStatistics */
+ vectorSearchStatistics?: (google.cloud.bigquery.v2.IVectorSearchStatistics|null);
+
+ /** JobStatistics2 performanceInsights */
+ performanceInsights?: (google.cloud.bigquery.v2.IPerformanceInsights|null);
+
+ /** JobStatistics2 queryInfo */
+ queryInfo?: (google.cloud.bigquery.v2.IQueryInfo|null);
+
+ /** JobStatistics2 sparkStatistics */
+ sparkStatistics?: (google.cloud.bigquery.v2.ISparkStatistics|null);
+
+ /** JobStatistics2 transferredBytes */
+ transferredBytes?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 materializedViewStatistics */
+ materializedViewStatistics?: (google.cloud.bigquery.v2.IMaterializedViewStatistics|null);
+
+ /** JobStatistics2 metadataCacheStatistics */
+ metadataCacheStatistics?: (google.cloud.bigquery.v2.IMetadataCacheStatistics|null);
+
+ /** JobStatistics2 incrementalResultStats */
+ incrementalResultStats?: (google.cloud.bigquery.v2.IIncrementalResultStats|null);
+
+ /** JobStatistics2 genAiStats */
+ genAiStats?: (google.cloud.bigquery.v2.IGenAiStats|null);
+ }
+
+ /** Represents a JobStatistics2. */
+ class JobStatistics2 implements IJobStatistics2 {
+
+ /**
+ * Constructs a new JobStatistics2.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobStatistics2);
+
+ /** JobStatistics2 queryPlan. */
+ public queryPlan: google.cloud.bigquery.v2.IExplainQueryStage[];
+
+ /** JobStatistics2 estimatedBytesProcessed. */
+ public estimatedBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 timeline. */
+ public timeline: google.cloud.bigquery.v2.IQueryTimelineSample[];
+
+ /** JobStatistics2 totalPartitionsProcessed. */
+ public totalPartitionsProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 totalBytesProcessed. */
+ public totalBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 totalBytesProcessedAccuracy. */
+ public totalBytesProcessedAccuracy: string;
+
+ /** JobStatistics2 totalBytesBilled. */
+ public totalBytesBilled?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 billingTier. */
+ public billingTier?: (google.protobuf.IInt32Value|null);
+
+ /** JobStatistics2 totalSlotMs. */
+ public totalSlotMs?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 totalServicesSkuSlotMs. */
+ public totalServicesSkuSlotMs?: (number|Long|string|null);
+
+ /** JobStatistics2 cacheHit. */
+ public cacheHit?: (google.protobuf.IBoolValue|null);
+
+ /** JobStatistics2 referencedTables. */
+ public referencedTables: google.cloud.bigquery.v2.ITableReference[];
+
+ /** JobStatistics2 referencedRoutines. */
+ public referencedRoutines: google.cloud.bigquery.v2.IRoutineReference[];
+
+ /** JobStatistics2 referencedPropertyGraphs. */
+ public referencedPropertyGraphs: google.cloud.bigquery.v2.IPropertyGraphReference[];
+
+ /** JobStatistics2 schema. */
+ public schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** JobStatistics2 numDmlAffectedRows. */
+ public numDmlAffectedRows?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 dmlStats. */
+ public dmlStats?: (google.cloud.bigquery.v2.IDmlStats|null);
+
+ /** JobStatistics2 undeclaredQueryParameters. */
+ public undeclaredQueryParameters: google.cloud.bigquery.v2.IQueryParameter[];
+
+ /** JobStatistics2 statementType. */
+ public statementType: string;
+
+ /** JobStatistics2 ddlOperationPerformed. */
+ public ddlOperationPerformed: string;
+
+ /** JobStatistics2 ddlTargetTable. */
+ public ddlTargetTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobStatistics2 ddlDestinationTable. */
+ public ddlDestinationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobStatistics2 ddlTargetRowAccessPolicy. */
+ public ddlTargetRowAccessPolicy?: (google.cloud.bigquery.v2.IRowAccessPolicyReference|null);
+
+ /** JobStatistics2 ddlAffectedRowAccessPolicyCount. */
+ public ddlAffectedRowAccessPolicyCount?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 ddlTargetRoutine. */
+ public ddlTargetRoutine?: (google.cloud.bigquery.v2.IRoutineReference|null);
+
+ /** JobStatistics2 ddlTargetDataset. */
+ public ddlTargetDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** JobStatistics2 mlStatistics. */
+ public mlStatistics?: (google.cloud.bigquery.v2.IMlStatistics|null);
+
+ /** JobStatistics2 exportDataStatistics. */
+ public exportDataStatistics?: (google.cloud.bigquery.v2.IExportDataStatistics|null);
+
+ /** JobStatistics2 externalServiceCosts. */
+ public externalServiceCosts: google.cloud.bigquery.v2.IExternalServiceCost[];
+
+ /** JobStatistics2 biEngineStatistics. */
+ public biEngineStatistics?: (google.cloud.bigquery.v2.IBiEngineStatistics|null);
+
+ /** JobStatistics2 loadQueryStatistics. */
+ public loadQueryStatistics?: (google.cloud.bigquery.v2.ILoadQueryStatistics|null);
+
+ /** JobStatistics2 dclTargetTable. */
+ public dclTargetTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobStatistics2 dclTargetView. */
+ public dclTargetView?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** JobStatistics2 dclTargetDataset. */
+ public dclTargetDataset?: (google.cloud.bigquery.v2.IDatasetReference|null);
+
+ /** JobStatistics2 searchStatistics. */
+ public searchStatistics?: (google.cloud.bigquery.v2.ISearchStatistics|null);
+
+ /** JobStatistics2 vectorSearchStatistics. */
+ public vectorSearchStatistics?: (google.cloud.bigquery.v2.IVectorSearchStatistics|null);
+
+ /** JobStatistics2 performanceInsights. */
+ public performanceInsights?: (google.cloud.bigquery.v2.IPerformanceInsights|null);
+
+ /** JobStatistics2 queryInfo. */
+ public queryInfo?: (google.cloud.bigquery.v2.IQueryInfo|null);
+
+ /** JobStatistics2 sparkStatistics. */
+ public sparkStatistics?: (google.cloud.bigquery.v2.ISparkStatistics|null);
+
+ /** JobStatistics2 transferredBytes. */
+ public transferredBytes?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics2 materializedViewStatistics. */
+ public materializedViewStatistics?: (google.cloud.bigquery.v2.IMaterializedViewStatistics|null);
+
+ /** JobStatistics2 metadataCacheStatistics. */
+ public metadataCacheStatistics?: (google.cloud.bigquery.v2.IMetadataCacheStatistics|null);
+
+ /** JobStatistics2 incrementalResultStats. */
+ public incrementalResultStats?: (google.cloud.bigquery.v2.IIncrementalResultStats|null);
+
+ /** JobStatistics2 genAiStats. */
+ public genAiStats?: (google.cloud.bigquery.v2.IGenAiStats|null);
+
+ /**
+ * Creates a new JobStatistics2 instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobStatistics2 instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobStatistics2): google.cloud.bigquery.v2.JobStatistics2;
+
+ /**
+ * Encodes the specified JobStatistics2 message. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics2.verify|verify} messages.
+ * @param message JobStatistics2 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobStatistics2, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobStatistics2 message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics2.verify|verify} messages.
+ * @param message JobStatistics2 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobStatistics2, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobStatistics2 message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobStatistics2
+ * @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.cloud.bigquery.v2.JobStatistics2;
+
+ /**
+ * Decodes a JobStatistics2 message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobStatistics2
+ * @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.cloud.bigquery.v2.JobStatistics2;
+
+ /**
+ * Verifies a JobStatistics2 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 JobStatistics2 message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobStatistics2
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobStatistics2;
+
+ /**
+ * Creates a plain object from a JobStatistics2 message. Also converts values to other types if specified.
+ * @param message JobStatistics2
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobStatistics2, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobStatistics2 to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobStatistics2
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JobStatistics3. */
+ interface IJobStatistics3 {
+
+ /** JobStatistics3 inputFiles */
+ inputFiles?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 inputFileBytes */
+ inputFileBytes?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 outputRows */
+ outputRows?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 outputBytes */
+ outputBytes?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 badRecords */
+ badRecords?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 timeline */
+ timeline?: (google.cloud.bigquery.v2.IQueryTimelineSample[]|null);
+ }
+
+ /** Represents a JobStatistics3. */
+ class JobStatistics3 implements IJobStatistics3 {
+
+ /**
+ * Constructs a new JobStatistics3.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobStatistics3);
+
+ /** JobStatistics3 inputFiles. */
+ public inputFiles?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 inputFileBytes. */
+ public inputFileBytes?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 outputRows. */
+ public outputRows?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 outputBytes. */
+ public outputBytes?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 badRecords. */
+ public badRecords?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics3 timeline. */
+ public timeline: google.cloud.bigquery.v2.IQueryTimelineSample[];
+
+ /**
+ * Creates a new JobStatistics3 instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobStatistics3 instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobStatistics3): google.cloud.bigquery.v2.JobStatistics3;
+
+ /**
+ * Encodes the specified JobStatistics3 message. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics3.verify|verify} messages.
+ * @param message JobStatistics3 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobStatistics3, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobStatistics3 message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics3.verify|verify} messages.
+ * @param message JobStatistics3 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobStatistics3, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobStatistics3 message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobStatistics3
+ * @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.cloud.bigquery.v2.JobStatistics3;
+
+ /**
+ * Decodes a JobStatistics3 message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobStatistics3
+ * @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.cloud.bigquery.v2.JobStatistics3;
+
+ /**
+ * Verifies a JobStatistics3 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 JobStatistics3 message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobStatistics3
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobStatistics3;
+
+ /**
+ * Creates a plain object from a JobStatistics3 message. Also converts values to other types if specified.
+ * @param message JobStatistics3
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobStatistics3, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobStatistics3 to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobStatistics3
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JobStatistics4. */
+ interface IJobStatistics4 {
+
+ /** JobStatistics4 destinationUriFileCounts */
+ destinationUriFileCounts?: ((number|Long|string)[]|null);
+
+ /** JobStatistics4 inputBytes */
+ inputBytes?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics4 timeline */
+ timeline?: (google.cloud.bigquery.v2.IQueryTimelineSample[]|null);
+ }
+
+ /** Represents a JobStatistics4. */
+ class JobStatistics4 implements IJobStatistics4 {
+
+ /**
+ * Constructs a new JobStatistics4.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobStatistics4);
+
+ /** JobStatistics4 destinationUriFileCounts. */
+ public destinationUriFileCounts: (number|Long|string)[];
+
+ /** JobStatistics4 inputBytes. */
+ public inputBytes?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics4 timeline. */
+ public timeline: google.cloud.bigquery.v2.IQueryTimelineSample[];
+
+ /**
+ * Creates a new JobStatistics4 instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobStatistics4 instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobStatistics4): google.cloud.bigquery.v2.JobStatistics4;
+
+ /**
+ * Encodes the specified JobStatistics4 message. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics4.verify|verify} messages.
+ * @param message JobStatistics4 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobStatistics4, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobStatistics4 message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics4.verify|verify} messages.
+ * @param message JobStatistics4 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobStatistics4, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobStatistics4 message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobStatistics4
+ * @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.cloud.bigquery.v2.JobStatistics4;
+
+ /**
+ * Decodes a JobStatistics4 message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobStatistics4
+ * @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.cloud.bigquery.v2.JobStatistics4;
+
+ /**
+ * Verifies a JobStatistics4 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 JobStatistics4 message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobStatistics4
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobStatistics4;
+
+ /**
+ * Creates a plain object from a JobStatistics4 message. Also converts values to other types if specified.
+ * @param message JobStatistics4
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobStatistics4, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobStatistics4 to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobStatistics4
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CopyJobStatistics. */
+ interface ICopyJobStatistics {
+
+ /** CopyJobStatistics copiedRows */
+ copiedRows?: (google.protobuf.IInt64Value|null);
+
+ /** CopyJobStatistics copiedLogicalBytes */
+ copiedLogicalBytes?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a CopyJobStatistics. */
+ class CopyJobStatistics implements ICopyJobStatistics {
+
+ /**
+ * Constructs a new CopyJobStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ICopyJobStatistics);
+
+ /** CopyJobStatistics copiedRows. */
+ public copiedRows?: (google.protobuf.IInt64Value|null);
+
+ /** CopyJobStatistics copiedLogicalBytes. */
+ public copiedLogicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new CopyJobStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CopyJobStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ICopyJobStatistics): google.cloud.bigquery.v2.CopyJobStatistics;
+
+ /**
+ * Encodes the specified CopyJobStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.CopyJobStatistics.verify|verify} messages.
+ * @param message CopyJobStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ICopyJobStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CopyJobStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.CopyJobStatistics.verify|verify} messages.
+ * @param message CopyJobStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ICopyJobStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CopyJobStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CopyJobStatistics
+ * @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.cloud.bigquery.v2.CopyJobStatistics;
+
+ /**
+ * Decodes a CopyJobStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CopyJobStatistics
+ * @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.cloud.bigquery.v2.CopyJobStatistics;
+
+ /**
+ * Verifies a CopyJobStatistics 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 CopyJobStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CopyJobStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.CopyJobStatistics;
+
+ /**
+ * Creates a plain object from a CopyJobStatistics message. Also converts values to other types if specified.
+ * @param message CopyJobStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.CopyJobStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CopyJobStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CopyJobStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MlStatistics. */
+ interface IMlStatistics {
+
+ /** MlStatistics maxIterations */
+ maxIterations?: (number|Long|string|null);
+
+ /** MlStatistics iterationResults */
+ iterationResults?: (google.cloud.bigquery.v2.Model.TrainingRun.IIterationResult[]|null);
+
+ /** MlStatistics modelType */
+ modelType?: (google.cloud.bigquery.v2.Model.ModelType|keyof typeof google.cloud.bigquery.v2.Model.ModelType|null);
+
+ /** MlStatistics trainingType */
+ trainingType?: (google.cloud.bigquery.v2.MlStatistics.TrainingType|keyof typeof google.cloud.bigquery.v2.MlStatistics.TrainingType|null);
+
+ /** MlStatistics hparamTrials */
+ hparamTrials?: (google.cloud.bigquery.v2.Model.IHparamTuningTrial[]|null);
+ }
+
+ /** Represents a MlStatistics. */
+ class MlStatistics implements IMlStatistics {
+
+ /**
+ * Constructs a new MlStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IMlStatistics);
+
+ /** MlStatistics maxIterations. */
+ public maxIterations: (number|Long|string);
+
+ /** MlStatistics iterationResults. */
+ public iterationResults: google.cloud.bigquery.v2.Model.TrainingRun.IIterationResult[];
+
+ /** MlStatistics modelType. */
+ public modelType: (google.cloud.bigquery.v2.Model.ModelType|keyof typeof google.cloud.bigquery.v2.Model.ModelType);
+
+ /** MlStatistics trainingType. */
+ public trainingType: (google.cloud.bigquery.v2.MlStatistics.TrainingType|keyof typeof google.cloud.bigquery.v2.MlStatistics.TrainingType);
+
+ /** MlStatistics hparamTrials. */
+ public hparamTrials: google.cloud.bigquery.v2.Model.IHparamTuningTrial[];
+
+ /**
+ * Creates a new MlStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MlStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IMlStatistics): google.cloud.bigquery.v2.MlStatistics;
+
+ /**
+ * Encodes the specified MlStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.MlStatistics.verify|verify} messages.
+ * @param message MlStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IMlStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MlStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.MlStatistics.verify|verify} messages.
+ * @param message MlStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IMlStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MlStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MlStatistics
+ * @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.cloud.bigquery.v2.MlStatistics;
+
+ /**
+ * Decodes a MlStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MlStatistics
+ * @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.cloud.bigquery.v2.MlStatistics;
+
+ /**
+ * Verifies a MlStatistics 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 MlStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MlStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.MlStatistics;
+
+ /**
+ * Creates a plain object from a MlStatistics message. Also converts values to other types if specified.
+ * @param message MlStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.MlStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MlStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MlStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MlStatistics {
+
+ /** TrainingType enum. */
+ enum TrainingType {
+ TRAINING_TYPE_UNSPECIFIED = 0,
+ SINGLE_TRAINING = 1,
+ HPARAM_TUNING = 2
+ }
+ }
+
+ /** Properties of a ScriptStatistics. */
+ interface IScriptStatistics {
+
+ /** ScriptStatistics evaluationKind */
+ evaluationKind?: (google.cloud.bigquery.v2.ScriptStatistics.EvaluationKind|keyof typeof google.cloud.bigquery.v2.ScriptStatistics.EvaluationKind|null);
+
+ /** ScriptStatistics stackFrames */
+ stackFrames?: (google.cloud.bigquery.v2.ScriptStatistics.IScriptStackFrame[]|null);
+ }
+
+ /** Represents a ScriptStatistics. */
+ class ScriptStatistics implements IScriptStatistics {
+
+ /**
+ * Constructs a new ScriptStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IScriptStatistics);
+
+ /** ScriptStatistics evaluationKind. */
+ public evaluationKind: (google.cloud.bigquery.v2.ScriptStatistics.EvaluationKind|keyof typeof google.cloud.bigquery.v2.ScriptStatistics.EvaluationKind);
+
+ /** ScriptStatistics stackFrames. */
+ public stackFrames: google.cloud.bigquery.v2.ScriptStatistics.IScriptStackFrame[];
+
+ /**
+ * Creates a new ScriptStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScriptStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IScriptStatistics): google.cloud.bigquery.v2.ScriptStatistics;
+
+ /**
+ * Encodes the specified ScriptStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.ScriptStatistics.verify|verify} messages.
+ * @param message ScriptStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IScriptStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScriptStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ScriptStatistics.verify|verify} messages.
+ * @param message ScriptStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IScriptStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScriptStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScriptStatistics
+ * @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.cloud.bigquery.v2.ScriptStatistics;
+
+ /**
+ * Decodes a ScriptStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScriptStatistics
+ * @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.cloud.bigquery.v2.ScriptStatistics;
+
+ /**
+ * Verifies a ScriptStatistics 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 ScriptStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScriptStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ScriptStatistics;
+
+ /**
+ * Creates a plain object from a ScriptStatistics message. Also converts values to other types if specified.
+ * @param message ScriptStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ScriptStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScriptStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScriptStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ScriptStatistics {
+
+ /** EvaluationKind enum. */
+ enum EvaluationKind {
+ EVALUATION_KIND_UNSPECIFIED = 0,
+ STATEMENT = 1,
+ EXPRESSION = 2
+ }
+
+ /** Properties of a ScriptStackFrame. */
+ interface IScriptStackFrame {
+
+ /** ScriptStackFrame startLine */
+ startLine?: (number|null);
+
+ /** ScriptStackFrame startColumn */
+ startColumn?: (number|null);
+
+ /** ScriptStackFrame endLine */
+ endLine?: (number|null);
+
+ /** ScriptStackFrame endColumn */
+ endColumn?: (number|null);
+
+ /** ScriptStackFrame procedureId */
+ procedureId?: (string|null);
+
+ /** ScriptStackFrame text */
+ text?: (string|null);
+ }
+
+ /** Represents a ScriptStackFrame. */
+ class ScriptStackFrame implements IScriptStackFrame {
+
+ /**
+ * Constructs a new ScriptStackFrame.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ScriptStatistics.IScriptStackFrame);
+
+ /** ScriptStackFrame startLine. */
+ public startLine: number;
+
+ /** ScriptStackFrame startColumn. */
+ public startColumn: number;
+
+ /** ScriptStackFrame endLine. */
+ public endLine: number;
+
+ /** ScriptStackFrame endColumn. */
+ public endColumn: number;
+
+ /** ScriptStackFrame procedureId. */
+ public procedureId: string;
+
+ /** ScriptStackFrame text. */
+ public text: string;
+
+ /**
+ * Creates a new ScriptStackFrame instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ScriptStackFrame instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ScriptStatistics.IScriptStackFrame): google.cloud.bigquery.v2.ScriptStatistics.ScriptStackFrame;
+
+ /**
+ * Encodes the specified ScriptStackFrame message. Does not implicitly {@link google.cloud.bigquery.v2.ScriptStatistics.ScriptStackFrame.verify|verify} messages.
+ * @param message ScriptStackFrame message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ScriptStatistics.IScriptStackFrame, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ScriptStackFrame message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ScriptStatistics.ScriptStackFrame.verify|verify} messages.
+ * @param message ScriptStackFrame message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ScriptStatistics.IScriptStackFrame, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ScriptStackFrame message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ScriptStackFrame
+ * @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.cloud.bigquery.v2.ScriptStatistics.ScriptStackFrame;
+
+ /**
+ * Decodes a ScriptStackFrame message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ScriptStackFrame
+ * @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.cloud.bigquery.v2.ScriptStatistics.ScriptStackFrame;
+
+ /**
+ * Verifies a ScriptStackFrame 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 ScriptStackFrame message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ScriptStackFrame
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ScriptStatistics.ScriptStackFrame;
+
+ /**
+ * Creates a plain object from a ScriptStackFrame message. Also converts values to other types if specified.
+ * @param message ScriptStackFrame
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ScriptStatistics.ScriptStackFrame, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ScriptStackFrame to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ScriptStackFrame
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a RowLevelSecurityStatistics. */
+ interface IRowLevelSecurityStatistics {
+
+ /** RowLevelSecurityStatistics rowLevelSecurityApplied */
+ rowLevelSecurityApplied?: (boolean|null);
+ }
+
+ /** Represents a RowLevelSecurityStatistics. */
+ class RowLevelSecurityStatistics implements IRowLevelSecurityStatistics {
+
+ /**
+ * Constructs a new RowLevelSecurityStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRowLevelSecurityStatistics);
+
+ /** RowLevelSecurityStatistics rowLevelSecurityApplied. */
+ public rowLevelSecurityApplied: boolean;
+
+ /**
+ * Creates a new RowLevelSecurityStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RowLevelSecurityStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRowLevelSecurityStatistics): google.cloud.bigquery.v2.RowLevelSecurityStatistics;
+
+ /**
+ * Encodes the specified RowLevelSecurityStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.RowLevelSecurityStatistics.verify|verify} messages.
+ * @param message RowLevelSecurityStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRowLevelSecurityStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RowLevelSecurityStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RowLevelSecurityStatistics.verify|verify} messages.
+ * @param message RowLevelSecurityStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRowLevelSecurityStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RowLevelSecurityStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RowLevelSecurityStatistics
+ * @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.cloud.bigquery.v2.RowLevelSecurityStatistics;
+
+ /**
+ * Decodes a RowLevelSecurityStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RowLevelSecurityStatistics
+ * @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.cloud.bigquery.v2.RowLevelSecurityStatistics;
+
+ /**
+ * Verifies a RowLevelSecurityStatistics 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 RowLevelSecurityStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RowLevelSecurityStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RowLevelSecurityStatistics;
+
+ /**
+ * Creates a plain object from a RowLevelSecurityStatistics message. Also converts values to other types if specified.
+ * @param message RowLevelSecurityStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RowLevelSecurityStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RowLevelSecurityStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RowLevelSecurityStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataMaskingStatistics. */
+ interface IDataMaskingStatistics {
+
+ /** DataMaskingStatistics dataMaskingApplied */
+ dataMaskingApplied?: (boolean|null);
+ }
+
+ /** Represents a DataMaskingStatistics. */
+ class DataMaskingStatistics implements IDataMaskingStatistics {
+
+ /**
+ * Constructs a new DataMaskingStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDataMaskingStatistics);
+
+ /** DataMaskingStatistics dataMaskingApplied. */
+ public dataMaskingApplied: boolean;
+
+ /**
+ * Creates a new DataMaskingStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataMaskingStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDataMaskingStatistics): google.cloud.bigquery.v2.DataMaskingStatistics;
+
+ /**
+ * Encodes the specified DataMaskingStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.DataMaskingStatistics.verify|verify} messages.
+ * @param message DataMaskingStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDataMaskingStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataMaskingStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DataMaskingStatistics.verify|verify} messages.
+ * @param message DataMaskingStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDataMaskingStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataMaskingStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataMaskingStatistics
+ * @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.cloud.bigquery.v2.DataMaskingStatistics;
+
+ /**
+ * Decodes a DataMaskingStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataMaskingStatistics
+ * @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.cloud.bigquery.v2.DataMaskingStatistics;
+
+ /**
+ * Verifies a DataMaskingStatistics 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 DataMaskingStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataMaskingStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DataMaskingStatistics;
+
+ /**
+ * Creates a plain object from a DataMaskingStatistics message. Also converts values to other types if specified.
+ * @param message DataMaskingStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DataMaskingStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataMaskingStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataMaskingStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JobStatistics. */
+ interface IJobStatistics {
+
+ /** JobStatistics creationTime */
+ creationTime?: (number|Long|string|null);
+
+ /** JobStatistics startTime */
+ startTime?: (number|Long|string|null);
+
+ /** JobStatistics endTime */
+ endTime?: (number|Long|string|null);
+
+ /** JobStatistics totalBytesProcessed */
+ totalBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics completionRatio */
+ completionRatio?: (google.protobuf.IDoubleValue|null);
+
+ /** JobStatistics quotaDeferments */
+ quotaDeferments?: (string[]|null);
+
+ /** JobStatistics query */
+ query?: (google.cloud.bigquery.v2.IJobStatistics2|null);
+
+ /** JobStatistics load */
+ load?: (google.cloud.bigquery.v2.IJobStatistics3|null);
+
+ /** JobStatistics extract */
+ extract?: (google.cloud.bigquery.v2.IJobStatistics4|null);
+
+ /** JobStatistics copy */
+ copy?: (google.cloud.bigquery.v2.ICopyJobStatistics|null);
+
+ /** JobStatistics totalSlotMs */
+ totalSlotMs?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics reservationId */
+ reservationId?: (string|null);
+
+ /** JobStatistics numChildJobs */
+ numChildJobs?: (number|Long|string|null);
+
+ /** JobStatistics parentJobId */
+ parentJobId?: (string|null);
+
+ /** JobStatistics scriptStatistics */
+ scriptStatistics?: (google.cloud.bigquery.v2.IScriptStatistics|null);
+
+ /** JobStatistics rowLevelSecurityStatistics */
+ rowLevelSecurityStatistics?: (google.cloud.bigquery.v2.IRowLevelSecurityStatistics|null);
+
+ /** JobStatistics dataMaskingStatistics */
+ dataMaskingStatistics?: (google.cloud.bigquery.v2.IDataMaskingStatistics|null);
+
+ /** JobStatistics transactionInfo */
+ transactionInfo?: (google.cloud.bigquery.v2.JobStatistics.ITransactionInfo|null);
+
+ /** JobStatistics sessionInfo */
+ sessionInfo?: (google.cloud.bigquery.v2.ISessionInfo|null);
+
+ /** JobStatistics finalExecutionDurationMs */
+ finalExecutionDurationMs?: (number|Long|string|null);
+
+ /** JobStatistics edition */
+ edition?: (google.cloud.bigquery.v2.ReservationEdition|keyof typeof google.cloud.bigquery.v2.ReservationEdition|null);
+
+ /** JobStatistics reservationGroupPath */
+ reservationGroupPath?: (string[]|null);
+ }
+
+ /** Represents a JobStatistics. */
+ class JobStatistics implements IJobStatistics {
+
+ /**
+ * Constructs a new JobStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobStatistics);
+
+ /** JobStatistics creationTime. */
+ public creationTime: (number|Long|string);
+
+ /** JobStatistics startTime. */
+ public startTime: (number|Long|string);
+
+ /** JobStatistics endTime. */
+ public endTime: (number|Long|string);
+
+ /** JobStatistics totalBytesProcessed. */
+ public totalBytesProcessed?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics completionRatio. */
+ public completionRatio?: (google.protobuf.IDoubleValue|null);
+
+ /** JobStatistics quotaDeferments. */
+ public quotaDeferments: string[];
+
+ /** JobStatistics query. */
+ public query?: (google.cloud.bigquery.v2.IJobStatistics2|null);
+
+ /** JobStatistics load. */
+ public load?: (google.cloud.bigquery.v2.IJobStatistics3|null);
+
+ /** JobStatistics extract. */
+ public extract?: (google.cloud.bigquery.v2.IJobStatistics4|null);
+
+ /** JobStatistics copy. */
+ public copy?: (google.cloud.bigquery.v2.ICopyJobStatistics|null);
+
+ /** JobStatistics totalSlotMs. */
+ public totalSlotMs?: (google.protobuf.IInt64Value|null);
+
+ /** JobStatistics reservationId. */
+ public reservationId: string;
+
+ /** JobStatistics numChildJobs. */
+ public numChildJobs: (number|Long|string);
+
+ /** JobStatistics parentJobId. */
+ public parentJobId: string;
+
+ /** JobStatistics scriptStatistics. */
+ public scriptStatistics?: (google.cloud.bigquery.v2.IScriptStatistics|null);
+
+ /** JobStatistics rowLevelSecurityStatistics. */
+ public rowLevelSecurityStatistics?: (google.cloud.bigquery.v2.IRowLevelSecurityStatistics|null);
+
+ /** JobStatistics dataMaskingStatistics. */
+ public dataMaskingStatistics?: (google.cloud.bigquery.v2.IDataMaskingStatistics|null);
+
+ /** JobStatistics transactionInfo. */
+ public transactionInfo?: (google.cloud.bigquery.v2.JobStatistics.ITransactionInfo|null);
+
+ /** JobStatistics sessionInfo. */
+ public sessionInfo?: (google.cloud.bigquery.v2.ISessionInfo|null);
+
+ /** JobStatistics finalExecutionDurationMs. */
+ public finalExecutionDurationMs: (number|Long|string);
+
+ /** JobStatistics edition. */
+ public edition: (google.cloud.bigquery.v2.ReservationEdition|keyof typeof google.cloud.bigquery.v2.ReservationEdition);
+
+ /** JobStatistics reservationGroupPath. */
+ public reservationGroupPath: string[];
+
+ /**
+ * Creates a new JobStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobStatistics): google.cloud.bigquery.v2.JobStatistics;
+
+ /**
+ * Encodes the specified JobStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics.verify|verify} messages.
+ * @param message JobStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics.verify|verify} messages.
+ * @param message JobStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobStatistics
+ * @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.cloud.bigquery.v2.JobStatistics;
+
+ /**
+ * Decodes a JobStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobStatistics
+ * @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.cloud.bigquery.v2.JobStatistics;
+
+ /**
+ * Verifies a JobStatistics 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 JobStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobStatistics;
+
+ /**
+ * Creates a plain object from a JobStatistics message. Also converts values to other types if specified.
+ * @param message JobStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace JobStatistics {
+
+ /** Properties of a TransactionInfo. */
+ interface ITransactionInfo {
+
+ /** TransactionInfo transactionId */
+ transactionId?: (string|null);
+ }
+
+ /** Represents a TransactionInfo. */
+ class TransactionInfo implements ITransactionInfo {
+
+ /**
+ * Constructs a new TransactionInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.JobStatistics.ITransactionInfo);
+
+ /** TransactionInfo transactionId. */
+ public transactionId: string;
+
+ /**
+ * Creates a new TransactionInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TransactionInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.JobStatistics.ITransactionInfo): google.cloud.bigquery.v2.JobStatistics.TransactionInfo;
+
+ /**
+ * Encodes the specified TransactionInfo message. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics.TransactionInfo.verify|verify} messages.
+ * @param message TransactionInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.JobStatistics.ITransactionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TransactionInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobStatistics.TransactionInfo.verify|verify} messages.
+ * @param message TransactionInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.JobStatistics.ITransactionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TransactionInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TransactionInfo
+ * @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.cloud.bigquery.v2.JobStatistics.TransactionInfo;
+
+ /**
+ * Decodes a TransactionInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TransactionInfo
+ * @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.cloud.bigquery.v2.JobStatistics.TransactionInfo;
+
+ /**
+ * Verifies a TransactionInfo 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 TransactionInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TransactionInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobStatistics.TransactionInfo;
+
+ /**
+ * Creates a plain object from a TransactionInfo message. Also converts values to other types if specified.
+ * @param message TransactionInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobStatistics.TransactionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TransactionInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TransactionInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a DmlStats. */
+ interface IDmlStats {
+
+ /** DmlStats insertedRowCount */
+ insertedRowCount?: (google.protobuf.IInt64Value|null);
+
+ /** DmlStats deletedRowCount */
+ deletedRowCount?: (google.protobuf.IInt64Value|null);
+
+ /** DmlStats updatedRowCount */
+ updatedRowCount?: (google.protobuf.IInt64Value|null);
+
+ /** DmlStats dmlMode */
+ dmlMode?: (google.cloud.bigquery.v2.DmlStats.DmlMode|keyof typeof google.cloud.bigquery.v2.DmlStats.DmlMode|null);
+
+ /** DmlStats fineGrainedDmlUnusedReason */
+ fineGrainedDmlUnusedReason?: (google.cloud.bigquery.v2.DmlStats.FineGrainedDmlUnusedReason|keyof typeof google.cloud.bigquery.v2.DmlStats.FineGrainedDmlUnusedReason|null);
+ }
+
+ /** Represents a DmlStats. */
+ class DmlStats implements IDmlStats {
+
+ /**
+ * Constructs a new DmlStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDmlStats);
+
+ /** DmlStats insertedRowCount. */
+ public insertedRowCount?: (google.protobuf.IInt64Value|null);
+
+ /** DmlStats deletedRowCount. */
+ public deletedRowCount?: (google.protobuf.IInt64Value|null);
+
+ /** DmlStats updatedRowCount. */
+ public updatedRowCount?: (google.protobuf.IInt64Value|null);
+
+ /** DmlStats dmlMode. */
+ public dmlMode: (google.cloud.bigquery.v2.DmlStats.DmlMode|keyof typeof google.cloud.bigquery.v2.DmlStats.DmlMode);
+
+ /** DmlStats fineGrainedDmlUnusedReason. */
+ public fineGrainedDmlUnusedReason: (google.cloud.bigquery.v2.DmlStats.FineGrainedDmlUnusedReason|keyof typeof google.cloud.bigquery.v2.DmlStats.FineGrainedDmlUnusedReason);
+
+ /**
+ * Creates a new DmlStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DmlStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDmlStats): google.cloud.bigquery.v2.DmlStats;
+
+ /**
+ * Encodes the specified DmlStats message. Does not implicitly {@link google.cloud.bigquery.v2.DmlStats.verify|verify} messages.
+ * @param message DmlStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDmlStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DmlStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DmlStats.verify|verify} messages.
+ * @param message DmlStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDmlStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DmlStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DmlStats
+ * @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.cloud.bigquery.v2.DmlStats;
+
+ /**
+ * Decodes a DmlStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DmlStats
+ * @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.cloud.bigquery.v2.DmlStats;
+
+ /**
+ * Verifies a DmlStats 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 DmlStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DmlStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DmlStats;
+
+ /**
+ * Creates a plain object from a DmlStats message. Also converts values to other types if specified.
+ * @param message DmlStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DmlStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DmlStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DmlStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DmlStats {
+
+ /** DmlMode enum. */
+ enum DmlMode {
+ DML_MODE_UNSPECIFIED = 0,
+ COARSE_GRAINED_DML = 1,
+ FINE_GRAINED_DML = 2
+ }
+
+ /** FineGrainedDmlUnusedReason enum. */
+ enum FineGrainedDmlUnusedReason {
+ FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIED = 0,
+ MAX_PARTITION_SIZE_EXCEEDED = 1,
+ TABLE_NOT_ENROLLED = 2,
+ DML_IN_MULTI_STATEMENT_TRANSACTION = 3
+ }
+ }
+
+ /** Properties of a PerformanceInsights. */
+ interface IPerformanceInsights {
+
+ /** PerformanceInsights avgPreviousExecutionMs */
+ avgPreviousExecutionMs?: (number|Long|string|null);
+
+ /** PerformanceInsights stagePerformanceStandaloneInsights */
+ stagePerformanceStandaloneInsights?: (google.cloud.bigquery.v2.IStagePerformanceStandaloneInsight[]|null);
+
+ /** PerformanceInsights stagePerformanceChangeInsights */
+ stagePerformanceChangeInsights?: (google.cloud.bigquery.v2.IStagePerformanceChangeInsight[]|null);
+
+ /** PerformanceInsights tableChangeInsights */
+ tableChangeInsights?: (google.cloud.bigquery.v2.ITableChangeInsight[]|null);
+ }
+
+ /** Represents a PerformanceInsights. */
+ class PerformanceInsights implements IPerformanceInsights {
+
+ /**
+ * Constructs a new PerformanceInsights.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPerformanceInsights);
+
+ /** PerformanceInsights avgPreviousExecutionMs. */
+ public avgPreviousExecutionMs: (number|Long|string);
+
+ /** PerformanceInsights stagePerformanceStandaloneInsights. */
+ public stagePerformanceStandaloneInsights: google.cloud.bigquery.v2.IStagePerformanceStandaloneInsight[];
+
+ /** PerformanceInsights stagePerformanceChangeInsights. */
+ public stagePerformanceChangeInsights: google.cloud.bigquery.v2.IStagePerformanceChangeInsight[];
+
+ /** PerformanceInsights tableChangeInsights. */
+ public tableChangeInsights: google.cloud.bigquery.v2.ITableChangeInsight[];
+
+ /**
+ * Creates a new PerformanceInsights instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PerformanceInsights instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPerformanceInsights): google.cloud.bigquery.v2.PerformanceInsights;
+
+ /**
+ * Encodes the specified PerformanceInsights message. Does not implicitly {@link google.cloud.bigquery.v2.PerformanceInsights.verify|verify} messages.
+ * @param message PerformanceInsights message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPerformanceInsights, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PerformanceInsights message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PerformanceInsights.verify|verify} messages.
+ * @param message PerformanceInsights message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPerformanceInsights, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PerformanceInsights message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PerformanceInsights
+ * @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.cloud.bigquery.v2.PerformanceInsights;
+
+ /**
+ * Decodes a PerformanceInsights message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PerformanceInsights
+ * @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.cloud.bigquery.v2.PerformanceInsights;
+
+ /**
+ * Verifies a PerformanceInsights 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 PerformanceInsights message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PerformanceInsights
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PerformanceInsights;
+
+ /**
+ * Creates a plain object from a PerformanceInsights message. Also converts values to other types if specified.
+ * @param message PerformanceInsights
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PerformanceInsights, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PerformanceInsights to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PerformanceInsights
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StagePerformanceChangeInsight. */
+ interface IStagePerformanceChangeInsight {
+
+ /** StagePerformanceChangeInsight stageId */
+ stageId?: (number|Long|string|null);
+
+ /** StagePerformanceChangeInsight inputDataChange */
+ inputDataChange?: (google.cloud.bigquery.v2.IInputDataChange|null);
+ }
+
+ /** Represents a StagePerformanceChangeInsight. */
+ class StagePerformanceChangeInsight implements IStagePerformanceChangeInsight {
+
+ /**
+ * Constructs a new StagePerformanceChangeInsight.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStagePerformanceChangeInsight);
+
+ /** StagePerformanceChangeInsight stageId. */
+ public stageId: (number|Long|string);
+
+ /** StagePerformanceChangeInsight inputDataChange. */
+ public inputDataChange?: (google.cloud.bigquery.v2.IInputDataChange|null);
+
+ /**
+ * Creates a new StagePerformanceChangeInsight instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StagePerformanceChangeInsight instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStagePerformanceChangeInsight): google.cloud.bigquery.v2.StagePerformanceChangeInsight;
+
+ /**
+ * Encodes the specified StagePerformanceChangeInsight message. Does not implicitly {@link google.cloud.bigquery.v2.StagePerformanceChangeInsight.verify|verify} messages.
+ * @param message StagePerformanceChangeInsight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStagePerformanceChangeInsight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StagePerformanceChangeInsight message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StagePerformanceChangeInsight.verify|verify} messages.
+ * @param message StagePerformanceChangeInsight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStagePerformanceChangeInsight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StagePerformanceChangeInsight message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StagePerformanceChangeInsight
+ * @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.cloud.bigquery.v2.StagePerformanceChangeInsight;
+
+ /**
+ * Decodes a StagePerformanceChangeInsight message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StagePerformanceChangeInsight
+ * @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.cloud.bigquery.v2.StagePerformanceChangeInsight;
+
+ /**
+ * Verifies a StagePerformanceChangeInsight 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 StagePerformanceChangeInsight message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StagePerformanceChangeInsight
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StagePerformanceChangeInsight;
+
+ /**
+ * Creates a plain object from a StagePerformanceChangeInsight message. Also converts values to other types if specified.
+ * @param message StagePerformanceChangeInsight
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StagePerformanceChangeInsight, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StagePerformanceChangeInsight to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StagePerformanceChangeInsight
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InputDataChange. */
+ interface IInputDataChange {
+
+ /** InputDataChange recordsReadDiffPercentage */
+ recordsReadDiffPercentage?: (number|null);
+ }
+
+ /** Represents an InputDataChange. */
+ class InputDataChange implements IInputDataChange {
+
+ /**
+ * Constructs a new InputDataChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IInputDataChange);
+
+ /** InputDataChange recordsReadDiffPercentage. */
+ public recordsReadDiffPercentage: number;
+
+ /**
+ * Creates a new InputDataChange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InputDataChange instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IInputDataChange): google.cloud.bigquery.v2.InputDataChange;
+
+ /**
+ * Encodes the specified InputDataChange message. Does not implicitly {@link google.cloud.bigquery.v2.InputDataChange.verify|verify} messages.
+ * @param message InputDataChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IInputDataChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InputDataChange message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.InputDataChange.verify|verify} messages.
+ * @param message InputDataChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IInputDataChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InputDataChange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InputDataChange
+ * @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.cloud.bigquery.v2.InputDataChange;
+
+ /**
+ * Decodes an InputDataChange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InputDataChange
+ * @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.cloud.bigquery.v2.InputDataChange;
+
+ /**
+ * Verifies an InputDataChange 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 InputDataChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InputDataChange
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.InputDataChange;
+
+ /**
+ * Creates a plain object from an InputDataChange message. Also converts values to other types if specified.
+ * @param message InputDataChange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.InputDataChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InputDataChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InputDataChange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StagePerformanceStandaloneInsight. */
+ interface IStagePerformanceStandaloneInsight {
+
+ /** StagePerformanceStandaloneInsight stageId */
+ stageId?: (number|Long|string|null);
+
+ /** StagePerformanceStandaloneInsight slotContention */
+ slotContention?: (boolean|null);
+
+ /** StagePerformanceStandaloneInsight insufficientShuffleQuota */
+ insufficientShuffleQuota?: (boolean|null);
+
+ /** StagePerformanceStandaloneInsight biEngineReasons */
+ biEngineReasons?: (google.cloud.bigquery.v2.IBiEngineReason[]|null);
+
+ /** StagePerformanceStandaloneInsight highCardinalityJoins */
+ highCardinalityJoins?: (google.cloud.bigquery.v2.IHighCardinalityJoin[]|null);
+
+ /** StagePerformanceStandaloneInsight partitionSkew */
+ partitionSkew?: (google.cloud.bigquery.v2.IPartitionSkew|null);
+ }
+
+ /** Represents a StagePerformanceStandaloneInsight. */
+ class StagePerformanceStandaloneInsight implements IStagePerformanceStandaloneInsight {
+
+ /**
+ * Constructs a new StagePerformanceStandaloneInsight.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStagePerformanceStandaloneInsight);
+
+ /** StagePerformanceStandaloneInsight stageId. */
+ public stageId: (number|Long|string);
+
+ /** StagePerformanceStandaloneInsight slotContention. */
+ public slotContention?: (boolean|null);
+
+ /** StagePerformanceStandaloneInsight insufficientShuffleQuota. */
+ public insufficientShuffleQuota?: (boolean|null);
+
+ /** StagePerformanceStandaloneInsight biEngineReasons. */
+ public biEngineReasons: google.cloud.bigquery.v2.IBiEngineReason[];
+
+ /** StagePerformanceStandaloneInsight highCardinalityJoins. */
+ public highCardinalityJoins: google.cloud.bigquery.v2.IHighCardinalityJoin[];
+
+ /** StagePerformanceStandaloneInsight partitionSkew. */
+ public partitionSkew?: (google.cloud.bigquery.v2.IPartitionSkew|null);
+
+ /**
+ * Creates a new StagePerformanceStandaloneInsight instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StagePerformanceStandaloneInsight instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStagePerformanceStandaloneInsight): google.cloud.bigquery.v2.StagePerformanceStandaloneInsight;
+
+ /**
+ * Encodes the specified StagePerformanceStandaloneInsight message. Does not implicitly {@link google.cloud.bigquery.v2.StagePerformanceStandaloneInsight.verify|verify} messages.
+ * @param message StagePerformanceStandaloneInsight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStagePerformanceStandaloneInsight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StagePerformanceStandaloneInsight message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.StagePerformanceStandaloneInsight.verify|verify} messages.
+ * @param message StagePerformanceStandaloneInsight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStagePerformanceStandaloneInsight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StagePerformanceStandaloneInsight message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StagePerformanceStandaloneInsight
+ * @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.cloud.bigquery.v2.StagePerformanceStandaloneInsight;
+
+ /**
+ * Decodes a StagePerformanceStandaloneInsight message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StagePerformanceStandaloneInsight
+ * @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.cloud.bigquery.v2.StagePerformanceStandaloneInsight;
+
+ /**
+ * Verifies a StagePerformanceStandaloneInsight 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 StagePerformanceStandaloneInsight message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StagePerformanceStandaloneInsight
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.StagePerformanceStandaloneInsight;
+
+ /**
+ * Creates a plain object from a StagePerformanceStandaloneInsight message. Also converts values to other types if specified.
+ * @param message StagePerformanceStandaloneInsight
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.StagePerformanceStandaloneInsight, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StagePerformanceStandaloneInsight to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StagePerformanceStandaloneInsight
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HighCardinalityJoin. */
+ interface IHighCardinalityJoin {
+
+ /** HighCardinalityJoin leftRows */
+ leftRows?: (number|Long|string|null);
+
+ /** HighCardinalityJoin rightRows */
+ rightRows?: (number|Long|string|null);
+
+ /** HighCardinalityJoin outputRows */
+ outputRows?: (number|Long|string|null);
+
+ /** HighCardinalityJoin stepIndex */
+ stepIndex?: (number|null);
+ }
+
+ /** Represents a HighCardinalityJoin. */
+ class HighCardinalityJoin implements IHighCardinalityJoin {
+
+ /**
+ * Constructs a new HighCardinalityJoin.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IHighCardinalityJoin);
+
+ /** HighCardinalityJoin leftRows. */
+ public leftRows: (number|Long|string);
+
+ /** HighCardinalityJoin rightRows. */
+ public rightRows: (number|Long|string);
+
+ /** HighCardinalityJoin outputRows. */
+ public outputRows: (number|Long|string);
+
+ /** HighCardinalityJoin stepIndex. */
+ public stepIndex: number;
+
+ /**
+ * Creates a new HighCardinalityJoin instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HighCardinalityJoin instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IHighCardinalityJoin): google.cloud.bigquery.v2.HighCardinalityJoin;
+
+ /**
+ * Encodes the specified HighCardinalityJoin message. Does not implicitly {@link google.cloud.bigquery.v2.HighCardinalityJoin.verify|verify} messages.
+ * @param message HighCardinalityJoin message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IHighCardinalityJoin, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HighCardinalityJoin message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.HighCardinalityJoin.verify|verify} messages.
+ * @param message HighCardinalityJoin message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IHighCardinalityJoin, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HighCardinalityJoin message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HighCardinalityJoin
+ * @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.cloud.bigquery.v2.HighCardinalityJoin;
+
+ /**
+ * Decodes a HighCardinalityJoin message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HighCardinalityJoin
+ * @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.cloud.bigquery.v2.HighCardinalityJoin;
+
+ /**
+ * Verifies a HighCardinalityJoin 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 HighCardinalityJoin message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HighCardinalityJoin
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.HighCardinalityJoin;
+
+ /**
+ * Creates a plain object from a HighCardinalityJoin message. Also converts values to other types if specified.
+ * @param message HighCardinalityJoin
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.HighCardinalityJoin, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HighCardinalityJoin to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HighCardinalityJoin
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PartitionSkew. */
+ interface IPartitionSkew {
+
+ /** PartitionSkew skewSources */
+ skewSources?: (google.cloud.bigquery.v2.PartitionSkew.ISkewSource[]|null);
+ }
+
+ /** Represents a PartitionSkew. */
+ class PartitionSkew implements IPartitionSkew {
+
+ /**
+ * Constructs a new PartitionSkew.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPartitionSkew);
+
+ /** PartitionSkew skewSources. */
+ public skewSources: google.cloud.bigquery.v2.PartitionSkew.ISkewSource[];
+
+ /**
+ * Creates a new PartitionSkew instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PartitionSkew instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPartitionSkew): google.cloud.bigquery.v2.PartitionSkew;
+
+ /**
+ * Encodes the specified PartitionSkew message. Does not implicitly {@link google.cloud.bigquery.v2.PartitionSkew.verify|verify} messages.
+ * @param message PartitionSkew message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPartitionSkew, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PartitionSkew message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PartitionSkew.verify|verify} messages.
+ * @param message PartitionSkew message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPartitionSkew, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PartitionSkew message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PartitionSkew
+ * @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.cloud.bigquery.v2.PartitionSkew;
+
+ /**
+ * Decodes a PartitionSkew message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PartitionSkew
+ * @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.cloud.bigquery.v2.PartitionSkew;
+
+ /**
+ * Verifies a PartitionSkew 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 PartitionSkew message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PartitionSkew
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PartitionSkew;
+
+ /**
+ * Creates a plain object from a PartitionSkew message. Also converts values to other types if specified.
+ * @param message PartitionSkew
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PartitionSkew, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PartitionSkew to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PartitionSkew
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PartitionSkew {
+
+ /** Properties of a SkewSource. */
+ interface ISkewSource {
+
+ /** SkewSource stageId */
+ stageId?: (number|Long|string|null);
+ }
+
+ /** Represents a SkewSource. */
+ class SkewSource implements ISkewSource {
+
+ /**
+ * Constructs a new SkewSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.PartitionSkew.ISkewSource);
+
+ /** SkewSource stageId. */
+ public stageId: (number|Long|string);
+
+ /**
+ * Creates a new SkewSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SkewSource instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.PartitionSkew.ISkewSource): google.cloud.bigquery.v2.PartitionSkew.SkewSource;
+
+ /**
+ * Encodes the specified SkewSource message. Does not implicitly {@link google.cloud.bigquery.v2.PartitionSkew.SkewSource.verify|verify} messages.
+ * @param message SkewSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.PartitionSkew.ISkewSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SkewSource message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PartitionSkew.SkewSource.verify|verify} messages.
+ * @param message SkewSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.PartitionSkew.ISkewSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SkewSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SkewSource
+ * @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.cloud.bigquery.v2.PartitionSkew.SkewSource;
+
+ /**
+ * Decodes a SkewSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SkewSource
+ * @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.cloud.bigquery.v2.PartitionSkew.SkewSource;
+
+ /**
+ * Verifies a SkewSource 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 SkewSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SkewSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PartitionSkew.SkewSource;
+
+ /**
+ * Creates a plain object from a SkewSource message. Also converts values to other types if specified.
+ * @param message SkewSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PartitionSkew.SkewSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SkewSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SkewSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a TableChangeInsight. */
+ interface ITableChangeInsight {
+
+ /** TableChangeInsight tableReference */
+ tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** TableChangeInsight metadataCacheStalenessInsight */
+ metadataCacheStalenessInsight?: (google.cloud.bigquery.v2.IMetadataCacheStalenessInsight|null);
+
+ /** TableChangeInsight metadataCacheNotUsedButUsedPreviously */
+ metadataCacheNotUsedButUsedPreviously?: (boolean|null);
+ }
+
+ /** Represents a TableChangeInsight. */
+ class TableChangeInsight implements ITableChangeInsight {
+
+ /**
+ * Constructs a new TableChangeInsight.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITableChangeInsight);
+
+ /** TableChangeInsight tableReference. */
+ public tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** TableChangeInsight metadataCacheStalenessInsight. */
+ public metadataCacheStalenessInsight?: (google.cloud.bigquery.v2.IMetadataCacheStalenessInsight|null);
+
+ /** TableChangeInsight metadataCacheNotUsedButUsedPreviously. */
+ public metadataCacheNotUsedButUsedPreviously?: (boolean|null);
+
+ /**
+ * Creates a new TableChangeInsight instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableChangeInsight instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITableChangeInsight): google.cloud.bigquery.v2.TableChangeInsight;
+
+ /**
+ * Encodes the specified TableChangeInsight message. Does not implicitly {@link google.cloud.bigquery.v2.TableChangeInsight.verify|verify} messages.
+ * @param message TableChangeInsight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITableChangeInsight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableChangeInsight message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableChangeInsight.verify|verify} messages.
+ * @param message TableChangeInsight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITableChangeInsight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableChangeInsight message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableChangeInsight
+ * @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.cloud.bigquery.v2.TableChangeInsight;
+
+ /**
+ * Decodes a TableChangeInsight message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableChangeInsight
+ * @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.cloud.bigquery.v2.TableChangeInsight;
+
+ /**
+ * Verifies a TableChangeInsight 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 TableChangeInsight message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableChangeInsight
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableChangeInsight;
+
+ /**
+ * Creates a plain object from a TableChangeInsight message. Also converts values to other types if specified.
+ * @param message TableChangeInsight
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableChangeInsight, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableChangeInsight to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableChangeInsight
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MetadataCacheStalenessInsight. */
+ interface IMetadataCacheStalenessInsight {
+
+ /** MetadataCacheStalenessInsight avgPreviousStalenessMs */
+ avgPreviousStalenessMs?: (google.protobuf.IDuration|null);
+
+ /** MetadataCacheStalenessInsight stalenessPercentageIncrease */
+ stalenessPercentageIncrease?: (number|null);
+ }
+
+ /** Represents a MetadataCacheStalenessInsight. */
+ class MetadataCacheStalenessInsight implements IMetadataCacheStalenessInsight {
+
+ /**
+ * Constructs a new MetadataCacheStalenessInsight.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IMetadataCacheStalenessInsight);
+
+ /** MetadataCacheStalenessInsight avgPreviousStalenessMs. */
+ public avgPreviousStalenessMs?: (google.protobuf.IDuration|null);
+
+ /** MetadataCacheStalenessInsight stalenessPercentageIncrease. */
+ public stalenessPercentageIncrease: number;
+
+ /**
+ * Creates a new MetadataCacheStalenessInsight instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataCacheStalenessInsight instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IMetadataCacheStalenessInsight): google.cloud.bigquery.v2.MetadataCacheStalenessInsight;
+
+ /**
+ * Encodes the specified MetadataCacheStalenessInsight message. Does not implicitly {@link google.cloud.bigquery.v2.MetadataCacheStalenessInsight.verify|verify} messages.
+ * @param message MetadataCacheStalenessInsight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IMetadataCacheStalenessInsight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataCacheStalenessInsight message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.MetadataCacheStalenessInsight.verify|verify} messages.
+ * @param message MetadataCacheStalenessInsight message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IMetadataCacheStalenessInsight, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataCacheStalenessInsight message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataCacheStalenessInsight
+ * @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.cloud.bigquery.v2.MetadataCacheStalenessInsight;
+
+ /**
+ * Decodes a MetadataCacheStalenessInsight message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataCacheStalenessInsight
+ * @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.cloud.bigquery.v2.MetadataCacheStalenessInsight;
+
+ /**
+ * Verifies a MetadataCacheStalenessInsight 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 MetadataCacheStalenessInsight message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataCacheStalenessInsight
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.MetadataCacheStalenessInsight;
+
+ /**
+ * Creates a plain object from a MetadataCacheStalenessInsight message. Also converts values to other types if specified.
+ * @param message MetadataCacheStalenessInsight
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.MetadataCacheStalenessInsight, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataCacheStalenessInsight to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataCacheStalenessInsight
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SparkStatistics. */
+ interface ISparkStatistics {
+
+ /** SparkStatistics sparkJobId */
+ sparkJobId?: (string|null);
+
+ /** SparkStatistics sparkJobLocation */
+ sparkJobLocation?: (string|null);
+
+ /** SparkStatistics endpoints */
+ endpoints?: ({ [k: string]: string }|null);
+
+ /** SparkStatistics loggingInfo */
+ loggingInfo?: (google.cloud.bigquery.v2.SparkStatistics.ILoggingInfo|null);
+
+ /** SparkStatistics kmsKeyName */
+ kmsKeyName?: (string|null);
+
+ /** SparkStatistics gcsStagingBucket */
+ gcsStagingBucket?: (string|null);
+ }
+
+ /** Represents a SparkStatistics. */
+ class SparkStatistics implements ISparkStatistics {
+
+ /**
+ * Constructs a new SparkStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ISparkStatistics);
+
+ /** SparkStatistics sparkJobId. */
+ public sparkJobId?: (string|null);
+
+ /** SparkStatistics sparkJobLocation. */
+ public sparkJobLocation?: (string|null);
+
+ /** SparkStatistics endpoints. */
+ public endpoints: { [k: string]: string };
+
+ /** SparkStatistics loggingInfo. */
+ public loggingInfo?: (google.cloud.bigquery.v2.SparkStatistics.ILoggingInfo|null);
+
+ /** SparkStatistics kmsKeyName. */
+ public kmsKeyName?: (string|null);
+
+ /** SparkStatistics gcsStagingBucket. */
+ public gcsStagingBucket?: (string|null);
+
+ /**
+ * Creates a new SparkStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SparkStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ISparkStatistics): google.cloud.bigquery.v2.SparkStatistics;
+
+ /**
+ * Encodes the specified SparkStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.SparkStatistics.verify|verify} messages.
+ * @param message SparkStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ISparkStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SparkStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.SparkStatistics.verify|verify} messages.
+ * @param message SparkStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ISparkStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SparkStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SparkStatistics
+ * @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.cloud.bigquery.v2.SparkStatistics;
+
+ /**
+ * Decodes a SparkStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SparkStatistics
+ * @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.cloud.bigquery.v2.SparkStatistics;
+
+ /**
+ * Verifies a SparkStatistics 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 SparkStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SparkStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.SparkStatistics;
+
+ /**
+ * Creates a plain object from a SparkStatistics message. Also converts values to other types if specified.
+ * @param message SparkStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.SparkStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SparkStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SparkStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SparkStatistics {
+
+ /** Properties of a LoggingInfo. */
+ interface ILoggingInfo {
+
+ /** LoggingInfo resourceType */
+ resourceType?: (string|null);
+
+ /** LoggingInfo projectId */
+ projectId?: (string|null);
+ }
+
+ /** Represents a LoggingInfo. */
+ class LoggingInfo implements ILoggingInfo {
+
+ /**
+ * Constructs a new LoggingInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.SparkStatistics.ILoggingInfo);
+
+ /** LoggingInfo resourceType. */
+ public resourceType: string;
+
+ /** LoggingInfo projectId. */
+ public projectId: string;
+
+ /**
+ * Creates a new LoggingInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LoggingInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.SparkStatistics.ILoggingInfo): google.cloud.bigquery.v2.SparkStatistics.LoggingInfo;
+
+ /**
+ * Encodes the specified LoggingInfo message. Does not implicitly {@link google.cloud.bigquery.v2.SparkStatistics.LoggingInfo.verify|verify} messages.
+ * @param message LoggingInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.SparkStatistics.ILoggingInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LoggingInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.SparkStatistics.LoggingInfo.verify|verify} messages.
+ * @param message LoggingInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.SparkStatistics.ILoggingInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LoggingInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LoggingInfo
+ * @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.cloud.bigquery.v2.SparkStatistics.LoggingInfo;
+
+ /**
+ * Decodes a LoggingInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LoggingInfo
+ * @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.cloud.bigquery.v2.SparkStatistics.LoggingInfo;
+
+ /**
+ * Verifies a LoggingInfo 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 LoggingInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LoggingInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.SparkStatistics.LoggingInfo;
+
+ /**
+ * Creates a plain object from a LoggingInfo message. Also converts values to other types if specified.
+ * @param message LoggingInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.SparkStatistics.LoggingInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LoggingInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LoggingInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a MaterializedViewStatistics. */
+ interface IMaterializedViewStatistics {
+
+ /** MaterializedViewStatistics materializedView */
+ materializedView?: (google.cloud.bigquery.v2.IMaterializedView[]|null);
+ }
+
+ /** Represents a MaterializedViewStatistics. */
+ class MaterializedViewStatistics implements IMaterializedViewStatistics {
+
+ /**
+ * Constructs a new MaterializedViewStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IMaterializedViewStatistics);
+
+ /** MaterializedViewStatistics materializedView. */
+ public materializedView: google.cloud.bigquery.v2.IMaterializedView[];
+
+ /**
+ * Creates a new MaterializedViewStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaterializedViewStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IMaterializedViewStatistics): google.cloud.bigquery.v2.MaterializedViewStatistics;
+
+ /**
+ * Encodes the specified MaterializedViewStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.MaterializedViewStatistics.verify|verify} messages.
+ * @param message MaterializedViewStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IMaterializedViewStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaterializedViewStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.MaterializedViewStatistics.verify|verify} messages.
+ * @param message MaterializedViewStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IMaterializedViewStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaterializedViewStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaterializedViewStatistics
+ * @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.cloud.bigquery.v2.MaterializedViewStatistics;
+
+ /**
+ * Decodes a MaterializedViewStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaterializedViewStatistics
+ * @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.cloud.bigquery.v2.MaterializedViewStatistics;
+
+ /**
+ * Verifies a MaterializedViewStatistics 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 MaterializedViewStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaterializedViewStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.MaterializedViewStatistics;
+
+ /**
+ * Creates a plain object from a MaterializedViewStatistics message. Also converts values to other types if specified.
+ * @param message MaterializedViewStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.MaterializedViewStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaterializedViewStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MaterializedViewStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MaterializedView. */
+ interface IMaterializedView {
+
+ /** MaterializedView tableReference */
+ tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** MaterializedView chosen */
+ chosen?: (boolean|null);
+
+ /** MaterializedView estimatedBytesSaved */
+ estimatedBytesSaved?: (number|Long|string|null);
+
+ /** MaterializedView rejectedReason */
+ rejectedReason?: (google.cloud.bigquery.v2.MaterializedView.RejectedReason|keyof typeof google.cloud.bigquery.v2.MaterializedView.RejectedReason|null);
+ }
+
+ /** Represents a MaterializedView. */
+ class MaterializedView implements IMaterializedView {
+
+ /**
+ * Constructs a new MaterializedView.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IMaterializedView);
+
+ /** MaterializedView tableReference. */
+ public tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** MaterializedView chosen. */
+ public chosen?: (boolean|null);
+
+ /** MaterializedView estimatedBytesSaved. */
+ public estimatedBytesSaved?: (number|Long|string|null);
+
+ /** MaterializedView rejectedReason. */
+ public rejectedReason?: (google.cloud.bigquery.v2.MaterializedView.RejectedReason|keyof typeof google.cloud.bigquery.v2.MaterializedView.RejectedReason|null);
+
+ /**
+ * Creates a new MaterializedView instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaterializedView instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IMaterializedView): google.cloud.bigquery.v2.MaterializedView;
+
+ /**
+ * Encodes the specified MaterializedView message. Does not implicitly {@link google.cloud.bigquery.v2.MaterializedView.verify|verify} messages.
+ * @param message MaterializedView message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IMaterializedView, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaterializedView message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.MaterializedView.verify|verify} messages.
+ * @param message MaterializedView message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IMaterializedView, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaterializedView message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaterializedView
+ * @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.cloud.bigquery.v2.MaterializedView;
+
+ /**
+ * Decodes a MaterializedView message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaterializedView
+ * @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.cloud.bigquery.v2.MaterializedView;
+
+ /**
+ * Verifies a MaterializedView 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 MaterializedView message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaterializedView
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.MaterializedView;
+
+ /**
+ * Creates a plain object from a MaterializedView message. Also converts values to other types if specified.
+ * @param message MaterializedView
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.MaterializedView, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaterializedView to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MaterializedView
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MaterializedView {
+
+ /** RejectedReason enum. */
+ enum RejectedReason {
+ REJECTED_REASON_UNSPECIFIED = 0,
+ NO_DATA = 1,
+ COST = 2,
+ BASE_TABLE_TRUNCATED = 3,
+ BASE_TABLE_DATA_CHANGE = 4,
+ BASE_TABLE_PARTITION_EXPIRATION_CHANGE = 5,
+ BASE_TABLE_EXPIRED_PARTITION = 6,
+ BASE_TABLE_INCOMPATIBLE_METADATA_CHANGE = 7,
+ TIME_ZONE = 8,
+ OUT_OF_TIME_TRAVEL_WINDOW = 9,
+ BASE_TABLE_FINE_GRAINED_SECURITY_POLICY = 10,
+ BASE_TABLE_TOO_STALE = 11
+ }
+ }
+
+ /** Properties of a PruningStats. */
+ interface IPruningStats {
+
+ /** PruningStats postCmetaPruningPartitionCount */
+ postCmetaPruningPartitionCount?: (number|Long|string|null);
+
+ /** PruningStats preCmetaPruningParallelInputCount */
+ preCmetaPruningParallelInputCount?: (number|Long|string|null);
+
+ /** PruningStats postCmetaPruningParallelInputCount */
+ postCmetaPruningParallelInputCount?: (number|Long|string|null);
+ }
+
+ /** Represents a PruningStats. */
+ class PruningStats implements IPruningStats {
+
+ /**
+ * Constructs a new PruningStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPruningStats);
+
+ /** PruningStats postCmetaPruningPartitionCount. */
+ public postCmetaPruningPartitionCount?: (number|Long|string|null);
+
+ /** PruningStats preCmetaPruningParallelInputCount. */
+ public preCmetaPruningParallelInputCount?: (number|Long|string|null);
+
+ /** PruningStats postCmetaPruningParallelInputCount. */
+ public postCmetaPruningParallelInputCount?: (number|Long|string|null);
+
+ /**
+ * Creates a new PruningStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PruningStats instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPruningStats): google.cloud.bigquery.v2.PruningStats;
+
+ /**
+ * Encodes the specified PruningStats message. Does not implicitly {@link google.cloud.bigquery.v2.PruningStats.verify|verify} messages.
+ * @param message PruningStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPruningStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PruningStats message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PruningStats.verify|verify} messages.
+ * @param message PruningStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPruningStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PruningStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PruningStats
+ * @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.cloud.bigquery.v2.PruningStats;
+
+ /**
+ * Decodes a PruningStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PruningStats
+ * @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.cloud.bigquery.v2.PruningStats;
+
+ /**
+ * Verifies a PruningStats 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 PruningStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PruningStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PruningStats;
+
+ /**
+ * Creates a plain object from a PruningStats message. Also converts values to other types if specified.
+ * @param message PruningStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PruningStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PruningStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PruningStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableMetadataCacheUsage. */
+ interface ITableMetadataCacheUsage {
+
+ /** TableMetadataCacheUsage tableReference */
+ tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** TableMetadataCacheUsage unusedReason */
+ unusedReason?: (google.cloud.bigquery.v2.TableMetadataCacheUsage.UnusedReason|keyof typeof google.cloud.bigquery.v2.TableMetadataCacheUsage.UnusedReason|null);
+
+ /** TableMetadataCacheUsage explanation */
+ explanation?: (string|null);
+
+ /** TableMetadataCacheUsage staleness */
+ staleness?: (google.protobuf.IDuration|null);
+
+ /** TableMetadataCacheUsage tableType */
+ tableType?: (string|null);
+
+ /** TableMetadataCacheUsage pruningStats */
+ pruningStats?: (google.cloud.bigquery.v2.IPruningStats|null);
+ }
+
+ /** Represents a TableMetadataCacheUsage. */
+ class TableMetadataCacheUsage implements ITableMetadataCacheUsage {
+
+ /**
+ * Constructs a new TableMetadataCacheUsage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITableMetadataCacheUsage);
+
+ /** TableMetadataCacheUsage tableReference. */
+ public tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** TableMetadataCacheUsage unusedReason. */
+ public unusedReason?: (google.cloud.bigquery.v2.TableMetadataCacheUsage.UnusedReason|keyof typeof google.cloud.bigquery.v2.TableMetadataCacheUsage.UnusedReason|null);
+
+ /** TableMetadataCacheUsage explanation. */
+ public explanation?: (string|null);
+
+ /** TableMetadataCacheUsage staleness. */
+ public staleness?: (google.protobuf.IDuration|null);
+
+ /** TableMetadataCacheUsage tableType. */
+ public tableType: string;
+
+ /** TableMetadataCacheUsage pruningStats. */
+ public pruningStats?: (google.cloud.bigquery.v2.IPruningStats|null);
+
+ /**
+ * Creates a new TableMetadataCacheUsage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableMetadataCacheUsage instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITableMetadataCacheUsage): google.cloud.bigquery.v2.TableMetadataCacheUsage;
+
+ /**
+ * Encodes the specified TableMetadataCacheUsage message. Does not implicitly {@link google.cloud.bigquery.v2.TableMetadataCacheUsage.verify|verify} messages.
+ * @param message TableMetadataCacheUsage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITableMetadataCacheUsage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableMetadataCacheUsage message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableMetadataCacheUsage.verify|verify} messages.
+ * @param message TableMetadataCacheUsage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITableMetadataCacheUsage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableMetadataCacheUsage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableMetadataCacheUsage
+ * @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.cloud.bigquery.v2.TableMetadataCacheUsage;
+
+ /**
+ * Decodes a TableMetadataCacheUsage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableMetadataCacheUsage
+ * @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.cloud.bigquery.v2.TableMetadataCacheUsage;
+
+ /**
+ * Verifies a TableMetadataCacheUsage 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 TableMetadataCacheUsage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableMetadataCacheUsage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableMetadataCacheUsage;
+
+ /**
+ * Creates a plain object from a TableMetadataCacheUsage message. Also converts values to other types if specified.
+ * @param message TableMetadataCacheUsage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableMetadataCacheUsage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableMetadataCacheUsage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableMetadataCacheUsage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TableMetadataCacheUsage {
+
+ /** UnusedReason enum. */
+ enum UnusedReason {
+ UNUSED_REASON_UNSPECIFIED = 0,
+ EXCEEDED_MAX_STALENESS = 1,
+ METADATA_CACHING_NOT_ENABLED = 3,
+ OTHER_REASON = 2
+ }
+ }
+
+ /** Properties of a MetadataCacheStatistics. */
+ interface IMetadataCacheStatistics {
+
+ /** MetadataCacheStatistics tableMetadataCacheUsage */
+ tableMetadataCacheUsage?: (google.cloud.bigquery.v2.ITableMetadataCacheUsage[]|null);
+ }
+
+ /** Represents a MetadataCacheStatistics. */
+ class MetadataCacheStatistics implements IMetadataCacheStatistics {
+
+ /**
+ * Constructs a new MetadataCacheStatistics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IMetadataCacheStatistics);
+
+ /** MetadataCacheStatistics tableMetadataCacheUsage. */
+ public tableMetadataCacheUsage: google.cloud.bigquery.v2.ITableMetadataCacheUsage[];
+
+ /**
+ * Creates a new MetadataCacheStatistics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetadataCacheStatistics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IMetadataCacheStatistics): google.cloud.bigquery.v2.MetadataCacheStatistics;
+
+ /**
+ * Encodes the specified MetadataCacheStatistics message. Does not implicitly {@link google.cloud.bigquery.v2.MetadataCacheStatistics.verify|verify} messages.
+ * @param message MetadataCacheStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IMetadataCacheStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetadataCacheStatistics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.MetadataCacheStatistics.verify|verify} messages.
+ * @param message MetadataCacheStatistics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IMetadataCacheStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetadataCacheStatistics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetadataCacheStatistics
+ * @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.cloud.bigquery.v2.MetadataCacheStatistics;
+
+ /**
+ * Decodes a MetadataCacheStatistics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetadataCacheStatistics
+ * @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.cloud.bigquery.v2.MetadataCacheStatistics;
+
+ /**
+ * Verifies a MetadataCacheStatistics 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 MetadataCacheStatistics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetadataCacheStatistics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.MetadataCacheStatistics;
+
+ /**
+ * Creates a plain object from a MetadataCacheStatistics message. Also converts values to other types if specified.
+ * @param message MetadataCacheStatistics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.MetadataCacheStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetadataCacheStatistics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetadataCacheStatistics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** ReservationEdition enum. */
+ enum ReservationEdition {
+ RESERVATION_EDITION_UNSPECIFIED = 0,
+ STANDARD = 1,
+ ENTERPRISE = 2,
+ ENTERPRISE_PLUS = 3
+ }
+
+ /** Represents a ModelService */
+ class ModelService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ModelService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new ModelService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService;
+
+ /**
+ * Calls GetModel.
+ * @param request GetModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Model
+ */
+ public getModel(request: google.cloud.bigquery.v2.IGetModelRequest, callback: google.cloud.bigquery.v2.ModelService.GetModelCallback): void;
+
+ /**
+ * Calls GetModel.
+ * @param request GetModelRequest message or plain object
+ * @returns Promise
+ */
+ public getModel(request: google.cloud.bigquery.v2.IGetModelRequest): Promise;
+
+ /**
+ * Calls ListModels.
+ * @param request ListModelsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListModelsResponse
+ */
+ public listModels(request: google.cloud.bigquery.v2.IListModelsRequest, callback: google.cloud.bigquery.v2.ModelService.ListModelsCallback): void;
+
+ /**
+ * Calls ListModels.
+ * @param request ListModelsRequest message or plain object
+ * @returns Promise
+ */
+ public listModels(request: google.cloud.bigquery.v2.IListModelsRequest): Promise;
+
+ /**
+ * Calls PatchModel.
+ * @param request PatchModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Model
+ */
+ public patchModel(request: google.cloud.bigquery.v2.IPatchModelRequest, callback: google.cloud.bigquery.v2.ModelService.PatchModelCallback): void;
+
+ /**
+ * Calls PatchModel.
+ * @param request PatchModelRequest message or plain object
+ * @returns Promise
+ */
+ public patchModel(request: google.cloud.bigquery.v2.IPatchModelRequest): Promise;
+
+ /**
+ * Calls DeleteModel.
+ * @param request DeleteModelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteModel(request: google.cloud.bigquery.v2.IDeleteModelRequest, callback: google.cloud.bigquery.v2.ModelService.DeleteModelCallback): void;
+
+ /**
+ * Calls DeleteModel.
+ * @param request DeleteModelRequest message or plain object
+ * @returns Promise
+ */
+ public deleteModel(request: google.cloud.bigquery.v2.IDeleteModelRequest): Promise;
+ }
+
+ namespace ModelService {
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.ModelService|getModel}.
+ * @param error Error, if any
+ * @param [response] Model
+ */
+ type GetModelCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Model) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.ModelService|listModels}.
+ * @param error Error, if any
+ * @param [response] ListModelsResponse
+ */
+ type ListModelsCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.ListModelsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.ModelService|patchModel}.
+ * @param error Error, if any
+ * @param [response] Model
+ */
+ type PatchModelCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Model) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.ModelService|deleteModel}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteModelCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ }
+
+ /** Properties of a RemoteModelInfo. */
+ interface IRemoteModelInfo {
+
+ /** RemoteModelInfo endpoint */
+ endpoint?: (string|null);
+
+ /** RemoteModelInfo remoteServiceType */
+ remoteServiceType?: (google.cloud.bigquery.v2.RemoteModelInfo.RemoteServiceType|keyof typeof google.cloud.bigquery.v2.RemoteModelInfo.RemoteServiceType|null);
+
+ /** RemoteModelInfo connection */
+ connection?: (string|null);
+
+ /** RemoteModelInfo maxBatchingRows */
+ maxBatchingRows?: (number|Long|string|null);
+
+ /** RemoteModelInfo remoteModelVersion */
+ remoteModelVersion?: (string|null);
+
+ /** RemoteModelInfo speechRecognizer */
+ speechRecognizer?: (string|null);
+ }
+
+ /** Represents a RemoteModelInfo. */
+ class RemoteModelInfo implements IRemoteModelInfo {
+
+ /**
+ * Constructs a new RemoteModelInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRemoteModelInfo);
+
+ /** RemoteModelInfo endpoint. */
+ public endpoint?: (string|null);
+
+ /** RemoteModelInfo remoteServiceType. */
+ public remoteServiceType?: (google.cloud.bigquery.v2.RemoteModelInfo.RemoteServiceType|keyof typeof google.cloud.bigquery.v2.RemoteModelInfo.RemoteServiceType|null);
+
+ /** RemoteModelInfo connection. */
+ public connection: string;
+
+ /** RemoteModelInfo maxBatchingRows. */
+ public maxBatchingRows: (number|Long|string);
+
+ /** RemoteModelInfo remoteModelVersion. */
+ public remoteModelVersion: string;
+
+ /** RemoteModelInfo speechRecognizer. */
+ public speechRecognizer: string;
+
+ /** RemoteModelInfo remoteService. */
+ public remoteService?: ("endpoint"|"remoteServiceType");
+
+ /**
+ * Creates a new RemoteModelInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RemoteModelInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRemoteModelInfo): google.cloud.bigquery.v2.RemoteModelInfo;
+
+ /**
+ * Encodes the specified RemoteModelInfo message. Does not implicitly {@link google.cloud.bigquery.v2.RemoteModelInfo.verify|verify} messages.
+ * @param message RemoteModelInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRemoteModelInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RemoteModelInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RemoteModelInfo.verify|verify} messages.
+ * @param message RemoteModelInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRemoteModelInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RemoteModelInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RemoteModelInfo
+ * @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.cloud.bigquery.v2.RemoteModelInfo;
+
+ /**
+ * Decodes a RemoteModelInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RemoteModelInfo
+ * @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.cloud.bigquery.v2.RemoteModelInfo;
+
+ /**
+ * Verifies a RemoteModelInfo 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 RemoteModelInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RemoteModelInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RemoteModelInfo;
+
+ /**
+ * Creates a plain object from a RemoteModelInfo message. Also converts values to other types if specified.
+ * @param message RemoteModelInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RemoteModelInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RemoteModelInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RemoteModelInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RemoteModelInfo {
+
+ /** RemoteServiceType enum. */
+ enum RemoteServiceType {
+ REMOTE_SERVICE_TYPE_UNSPECIFIED = 0,
+ CLOUD_AI_TRANSLATE_V3 = 1,
+ CLOUD_AI_VISION_V1 = 2,
+ CLOUD_AI_NATURAL_LANGUAGE_V1 = 3,
+ CLOUD_AI_SPEECH_TO_TEXT_V2 = 7
+ }
+ }
+
+ /** Properties of a TransformColumn. */
+ interface ITransformColumn {
+
+ /** TransformColumn name */
+ name?: (string|null);
+
+ /** TransformColumn type */
+ type?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** TransformColumn transformSql */
+ transformSql?: (string|null);
+ }
+
+ /** Represents a TransformColumn. */
+ class TransformColumn implements ITransformColumn {
+
+ /**
+ * Constructs a new TransformColumn.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITransformColumn);
+
+ /** TransformColumn name. */
+ public name: string;
+
+ /** TransformColumn type. */
+ public type?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** TransformColumn transformSql. */
+ public transformSql: string;
+
+ /**
+ * Creates a new TransformColumn instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TransformColumn instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITransformColumn): google.cloud.bigquery.v2.TransformColumn;
+
+ /**
+ * Encodes the specified TransformColumn message. Does not implicitly {@link google.cloud.bigquery.v2.TransformColumn.verify|verify} messages.
+ * @param message TransformColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITransformColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TransformColumn message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TransformColumn.verify|verify} messages.
+ * @param message TransformColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITransformColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TransformColumn message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TransformColumn
+ * @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.cloud.bigquery.v2.TransformColumn;
+
+ /**
+ * Decodes a TransformColumn message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TransformColumn
+ * @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.cloud.bigquery.v2.TransformColumn;
+
+ /**
+ * Verifies a TransformColumn 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 TransformColumn message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TransformColumn
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TransformColumn;
+
+ /**
+ * Creates a plain object from a TransformColumn message. Also converts values to other types if specified.
+ * @param message TransformColumn
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TransformColumn, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TransformColumn to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TransformColumn
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Model. */
+ interface IModel {
+
+ /** Model etag */
+ etag?: (string|null);
+
+ /** Model modelReference */
+ modelReference?: (google.cloud.bigquery.v2.IModelReference|null);
+
+ /** Model creationTime */
+ creationTime?: (number|Long|string|null);
+
+ /** Model lastModifiedTime */
+ lastModifiedTime?: (number|Long|string|null);
+
+ /** Model description */
+ description?: (string|null);
+
+ /** Model friendlyName */
+ friendlyName?: (string|null);
+
+ /** Model labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Model expirationTime */
+ expirationTime?: (number|Long|string|null);
+
+ /** Model location */
+ location?: (string|null);
+
+ /** Model encryptionConfiguration */
+ encryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** Model modelType */
+ modelType?: (google.cloud.bigquery.v2.Model.ModelType|keyof typeof google.cloud.bigquery.v2.Model.ModelType|null);
+
+ /** Model trainingRuns */
+ trainingRuns?: (google.cloud.bigquery.v2.Model.ITrainingRun[]|null);
+
+ /** Model featureColumns */
+ featureColumns?: (google.cloud.bigquery.v2.IStandardSqlField[]|null);
+
+ /** Model labelColumns */
+ labelColumns?: (google.cloud.bigquery.v2.IStandardSqlField[]|null);
+
+ /** Model transformColumns */
+ transformColumns?: (google.cloud.bigquery.v2.ITransformColumn[]|null);
+
+ /** Model hparamSearchSpaces */
+ hparamSearchSpaces?: (google.cloud.bigquery.v2.Model.IHparamSearchSpaces|null);
+
+ /** Model defaultTrialId */
+ defaultTrialId?: (number|Long|string|null);
+
+ /** Model hparamTrials */
+ hparamTrials?: (google.cloud.bigquery.v2.Model.IHparamTuningTrial[]|null);
+
+ /** Model optimalTrialIds */
+ optimalTrialIds?: ((number|Long|string)[]|null);
+
+ /** Model remoteModelInfo */
+ remoteModelInfo?: (google.cloud.bigquery.v2.IRemoteModelInfo|null);
+ }
+
+ /** Represents a Model. */
+ class Model implements IModel {
+
+ /**
+ * Constructs a new Model.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IModel);
+
+ /** Model etag. */
+ public etag: string;
+
+ /** Model modelReference. */
+ public modelReference?: (google.cloud.bigquery.v2.IModelReference|null);
+
+ /** Model creationTime. */
+ public creationTime: (number|Long|string);
+
+ /** Model lastModifiedTime. */
+ public lastModifiedTime: (number|Long|string);
+
+ /** Model description. */
+ public description: string;
+
+ /** Model friendlyName. */
+ public friendlyName: string;
+
+ /** Model labels. */
+ public labels: { [k: string]: string };
+
+ /** Model expirationTime. */
+ public expirationTime: (number|Long|string);
+
+ /** Model location. */
+ public location: string;
+
+ /** Model encryptionConfiguration. */
+ public encryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** Model modelType. */
+ public modelType: (google.cloud.bigquery.v2.Model.ModelType|keyof typeof google.cloud.bigquery.v2.Model.ModelType);
+
+ /** Model trainingRuns. */
+ public trainingRuns: google.cloud.bigquery.v2.Model.ITrainingRun[];
+
+ /** Model featureColumns. */
+ public featureColumns: google.cloud.bigquery.v2.IStandardSqlField[];
+
+ /** Model labelColumns. */
+ public labelColumns: google.cloud.bigquery.v2.IStandardSqlField[];
+
+ /** Model transformColumns. */
+ public transformColumns: google.cloud.bigquery.v2.ITransformColumn[];
+
+ /** Model hparamSearchSpaces. */
+ public hparamSearchSpaces?: (google.cloud.bigquery.v2.Model.IHparamSearchSpaces|null);
+
+ /** Model defaultTrialId. */
+ public defaultTrialId: (number|Long|string);
+
+ /** Model hparamTrials. */
+ public hparamTrials: google.cloud.bigquery.v2.Model.IHparamTuningTrial[];
+
+ /** Model optimalTrialIds. */
+ public optimalTrialIds: (number|Long|string)[];
+
+ /** Model remoteModelInfo. */
+ public remoteModelInfo?: (google.cloud.bigquery.v2.IRemoteModelInfo|null);
+
+ /**
+ * Creates a new Model instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Model instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IModel): google.cloud.bigquery.v2.Model;
+
+ /**
+ * Encodes the specified Model message. Does not implicitly {@link google.cloud.bigquery.v2.Model.verify|verify} messages.
+ * @param message Model message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IModel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.verify|verify} messages.
+ * @param message Model message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IModel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Model message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Model
+ * @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.cloud.bigquery.v2.Model;
+
+ /**
+ * Decodes a Model message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Model
+ * @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.cloud.bigquery.v2.Model;
+
+ /**
+ * Verifies a Model 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 Model message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Model
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model;
+
+ /**
+ * Creates a plain object from a Model message. Also converts values to other types if specified.
+ * @param message Model
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Model to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Model
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Model {
+
+ /** ModelType enum. */
+ enum ModelType {
+ MODEL_TYPE_UNSPECIFIED = 0,
+ LINEAR_REGRESSION = 1,
+ LOGISTIC_REGRESSION = 2,
+ KMEANS = 3,
+ MATRIX_FACTORIZATION = 4,
+ DNN_CLASSIFIER = 5,
+ TENSORFLOW = 6,
+ DNN_REGRESSOR = 7,
+ XGBOOST = 8,
+ BOOSTED_TREE_REGRESSOR = 9,
+ BOOSTED_TREE_CLASSIFIER = 10,
+ ARIMA = 11,
+ AUTOML_REGRESSOR = 12,
+ AUTOML_CLASSIFIER = 13,
+ PCA = 14,
+ DNN_LINEAR_COMBINED_CLASSIFIER = 16,
+ DNN_LINEAR_COMBINED_REGRESSOR = 17,
+ AUTOENCODER = 18,
+ ARIMA_PLUS = 19,
+ ARIMA_PLUS_XREG = 23,
+ RANDOM_FOREST_REGRESSOR = 24,
+ RANDOM_FOREST_CLASSIFIER = 25,
+ TENSORFLOW_LITE = 26,
+ ONNX = 28,
+ TRANSFORM_ONLY = 29,
+ CONTRIBUTION_ANALYSIS = 37
+ }
+
+ /** LossType enum. */
+ enum LossType {
+ LOSS_TYPE_UNSPECIFIED = 0,
+ MEAN_SQUARED_LOSS = 1,
+ MEAN_LOG_LOSS = 2
+ }
+
+ /** DistanceType enum. */
+ enum DistanceType {
+ DISTANCE_TYPE_UNSPECIFIED = 0,
+ EUCLIDEAN = 1,
+ COSINE = 2
+ }
+
+ /** DataSplitMethod enum. */
+ enum DataSplitMethod {
+ DATA_SPLIT_METHOD_UNSPECIFIED = 0,
+ RANDOM = 1,
+ CUSTOM = 2,
+ SEQUENTIAL = 3,
+ NO_SPLIT = 4,
+ AUTO_SPLIT = 5
+ }
+
+ /** DataFrequency enum. */
+ enum DataFrequency {
+ DATA_FREQUENCY_UNSPECIFIED = 0,
+ AUTO_FREQUENCY = 1,
+ YEARLY = 2,
+ QUARTERLY = 3,
+ MONTHLY = 4,
+ WEEKLY = 5,
+ DAILY = 6,
+ HOURLY = 7,
+ PER_MINUTE = 8
+ }
+
+ /** HolidayRegion enum. */
+ enum HolidayRegion {
+ HOLIDAY_REGION_UNSPECIFIED = 0,
+ GLOBAL = 1,
+ NA = 2,
+ JAPAC = 3,
+ EMEA = 4,
+ LAC = 5,
+ AE = 6,
+ AR = 7,
+ AT = 8,
+ AU = 9,
+ BE = 10,
+ BR = 11,
+ CA = 12,
+ CH = 13,
+ CL = 14,
+ CN = 15,
+ CO = 16,
+ CS = 17,
+ CZ = 18,
+ DE = 19,
+ DK = 20,
+ DZ = 21,
+ EC = 22,
+ EE = 23,
+ EG = 24,
+ ES = 25,
+ FI = 26,
+ FR = 27,
+ GB = 28,
+ GR = 29,
+ HK = 30,
+ HU = 31,
+ ID = 32,
+ IE = 33,
+ IL = 34,
+ IN = 35,
+ IR = 36,
+ IT = 37,
+ JP = 38,
+ KR = 39,
+ LV = 40,
+ MA = 41,
+ MX = 42,
+ MY = 43,
+ NG = 44,
+ NL = 45,
+ NO = 46,
+ NZ = 47,
+ PE = 48,
+ PH = 49,
+ PK = 50,
+ PL = 51,
+ PT = 52,
+ RO = 53,
+ RS = 54,
+ RU = 55,
+ SA = 56,
+ SE = 57,
+ SG = 58,
+ SI = 59,
+ SK = 60,
+ TH = 61,
+ TR = 62,
+ TW = 63,
+ UA = 64,
+ US = 65,
+ VE = 66,
+ VN = 67,
+ ZA = 68
+ }
+
+ /** Properties of a SeasonalPeriod. */
+ interface ISeasonalPeriod {
+ }
+
+ /** Represents a SeasonalPeriod. */
+ class SeasonalPeriod implements ISeasonalPeriod {
+
+ /**
+ * Constructs a new SeasonalPeriod.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.ISeasonalPeriod);
+
+ /**
+ * Creates a new SeasonalPeriod instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SeasonalPeriod instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.ISeasonalPeriod): google.cloud.bigquery.v2.Model.SeasonalPeriod;
+
+ /**
+ * Encodes the specified SeasonalPeriod message. Does not implicitly {@link google.cloud.bigquery.v2.Model.SeasonalPeriod.verify|verify} messages.
+ * @param message SeasonalPeriod message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.ISeasonalPeriod, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SeasonalPeriod message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.SeasonalPeriod.verify|verify} messages.
+ * @param message SeasonalPeriod message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.ISeasonalPeriod, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SeasonalPeriod message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SeasonalPeriod
+ * @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.cloud.bigquery.v2.Model.SeasonalPeriod;
+
+ /**
+ * Decodes a SeasonalPeriod message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SeasonalPeriod
+ * @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.cloud.bigquery.v2.Model.SeasonalPeriod;
+
+ /**
+ * Verifies a SeasonalPeriod 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 SeasonalPeriod message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SeasonalPeriod
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.SeasonalPeriod;
+
+ /**
+ * Creates a plain object from a SeasonalPeriod message. Also converts values to other types if specified.
+ * @param message SeasonalPeriod
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.SeasonalPeriod, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SeasonalPeriod to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SeasonalPeriod
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SeasonalPeriod {
+
+ /** SeasonalPeriodType enum. */
+ enum SeasonalPeriodType {
+ SEASONAL_PERIOD_TYPE_UNSPECIFIED = 0,
+ NO_SEASONALITY = 1,
+ DAILY = 2,
+ WEEKLY = 3,
+ MONTHLY = 4,
+ QUARTERLY = 5,
+ YEARLY = 6,
+ HOURLY = 7
+ }
+ }
+
+ /** ColorSpace enum. */
+ enum ColorSpace {
+ COLOR_SPACE_UNSPECIFIED = 0,
+ RGB = 1,
+ HSV = 2,
+ YIQ = 3,
+ YUV = 4,
+ GRAYSCALE = 5
+ }
+
+ /** Properties of a KmeansEnums. */
+ interface IKmeansEnums {
+ }
+
+ /** Represents a KmeansEnums. */
+ class KmeansEnums implements IKmeansEnums {
+
+ /**
+ * Constructs a new KmeansEnums.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IKmeansEnums);
+
+ /**
+ * Creates a new KmeansEnums instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns KmeansEnums instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IKmeansEnums): google.cloud.bigquery.v2.Model.KmeansEnums;
+
+ /**
+ * Encodes the specified KmeansEnums message. Does not implicitly {@link google.cloud.bigquery.v2.Model.KmeansEnums.verify|verify} messages.
+ * @param message KmeansEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IKmeansEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified KmeansEnums message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.KmeansEnums.verify|verify} messages.
+ * @param message KmeansEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IKmeansEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a KmeansEnums message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns KmeansEnums
+ * @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.cloud.bigquery.v2.Model.KmeansEnums;
+
+ /**
+ * Decodes a KmeansEnums message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns KmeansEnums
+ * @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.cloud.bigquery.v2.Model.KmeansEnums;
+
+ /**
+ * Verifies a KmeansEnums 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 KmeansEnums message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns KmeansEnums
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.KmeansEnums;
+
+ /**
+ * Creates a plain object from a KmeansEnums message. Also converts values to other types if specified.
+ * @param message KmeansEnums
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.KmeansEnums, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this KmeansEnums to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for KmeansEnums
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace KmeansEnums {
+
+ /** KmeansInitializationMethod enum. */
+ enum KmeansInitializationMethod {
+ KMEANS_INITIALIZATION_METHOD_UNSPECIFIED = 0,
+ RANDOM = 1,
+ CUSTOM = 2,
+ KMEANS_PLUS_PLUS = 3
+ }
+ }
+
+ /** Properties of a BoostedTreeOptionEnums. */
+ interface IBoostedTreeOptionEnums {
+ }
+
+ /** Represents a BoostedTreeOptionEnums. */
+ class BoostedTreeOptionEnums implements IBoostedTreeOptionEnums {
+
+ /**
+ * Constructs a new BoostedTreeOptionEnums.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IBoostedTreeOptionEnums);
+
+ /**
+ * Creates a new BoostedTreeOptionEnums instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoostedTreeOptionEnums instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IBoostedTreeOptionEnums): google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums;
+
+ /**
+ * Encodes the specified BoostedTreeOptionEnums message. Does not implicitly {@link google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.verify|verify} messages.
+ * @param message BoostedTreeOptionEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IBoostedTreeOptionEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoostedTreeOptionEnums message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.verify|verify} messages.
+ * @param message BoostedTreeOptionEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IBoostedTreeOptionEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoostedTreeOptionEnums message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoostedTreeOptionEnums
+ * @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.cloud.bigquery.v2.Model.BoostedTreeOptionEnums;
+
+ /**
+ * Decodes a BoostedTreeOptionEnums message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoostedTreeOptionEnums
+ * @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.cloud.bigquery.v2.Model.BoostedTreeOptionEnums;
+
+ /**
+ * Verifies a BoostedTreeOptionEnums 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 BoostedTreeOptionEnums message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoostedTreeOptionEnums
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums;
+
+ /**
+ * Creates a plain object from a BoostedTreeOptionEnums message. Also converts values to other types if specified.
+ * @param message BoostedTreeOptionEnums
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoostedTreeOptionEnums to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoostedTreeOptionEnums
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BoostedTreeOptionEnums {
+
+ /** BoosterType enum. */
+ enum BoosterType {
+ BOOSTER_TYPE_UNSPECIFIED = 0,
+ GBTREE = 1,
+ DART = 2
+ }
+
+ /** DartNormalizeType enum. */
+ enum DartNormalizeType {
+ DART_NORMALIZE_TYPE_UNSPECIFIED = 0,
+ TREE = 1,
+ FOREST = 2
+ }
+
+ /** TreeMethod enum. */
+ enum TreeMethod {
+ TREE_METHOD_UNSPECIFIED = 0,
+ AUTO = 1,
+ EXACT = 2,
+ APPROX = 3,
+ HIST = 4
+ }
+ }
+
+ /** Properties of a HparamTuningEnums. */
+ interface IHparamTuningEnums {
+ }
+
+ /** Represents a HparamTuningEnums. */
+ class HparamTuningEnums implements IHparamTuningEnums {
+
+ /**
+ * Constructs a new HparamTuningEnums.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IHparamTuningEnums);
+
+ /**
+ * Creates a new HparamTuningEnums instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HparamTuningEnums instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IHparamTuningEnums): google.cloud.bigquery.v2.Model.HparamTuningEnums;
+
+ /**
+ * Encodes the specified HparamTuningEnums message. Does not implicitly {@link google.cloud.bigquery.v2.Model.HparamTuningEnums.verify|verify} messages.
+ * @param message HparamTuningEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IHparamTuningEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HparamTuningEnums message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.HparamTuningEnums.verify|verify} messages.
+ * @param message HparamTuningEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IHparamTuningEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HparamTuningEnums message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HparamTuningEnums
+ * @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.cloud.bigquery.v2.Model.HparamTuningEnums;
+
+ /**
+ * Decodes a HparamTuningEnums message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HparamTuningEnums
+ * @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.cloud.bigquery.v2.Model.HparamTuningEnums;
+
+ /**
+ * Verifies a HparamTuningEnums 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 HparamTuningEnums message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HparamTuningEnums
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.HparamTuningEnums;
+
+ /**
+ * Creates a plain object from a HparamTuningEnums message. Also converts values to other types if specified.
+ * @param message HparamTuningEnums
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.HparamTuningEnums, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HparamTuningEnums to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HparamTuningEnums
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace HparamTuningEnums {
+
+ /** HparamTuningObjective enum. */
+ enum HparamTuningObjective {
+ HPARAM_TUNING_OBJECTIVE_UNSPECIFIED = 0,
+ MEAN_ABSOLUTE_ERROR = 1,
+ MEAN_SQUARED_ERROR = 2,
+ MEAN_SQUARED_LOG_ERROR = 3,
+ MEDIAN_ABSOLUTE_ERROR = 4,
+ R_SQUARED = 5,
+ EXPLAINED_VARIANCE = 6,
+ PRECISION = 7,
+ RECALL = 8,
+ ACCURACY = 9,
+ F1_SCORE = 10,
+ LOG_LOSS = 11,
+ ROC_AUC = 12,
+ DAVIES_BOULDIN_INDEX = 13,
+ MEAN_AVERAGE_PRECISION = 14,
+ NORMALIZED_DISCOUNTED_CUMULATIVE_GAIN = 15,
+ AVERAGE_RANK = 16
+ }
+ }
+
+ /** LearnRateStrategy enum. */
+ enum LearnRateStrategy {
+ LEARN_RATE_STRATEGY_UNSPECIFIED = 0,
+ LINE_SEARCH = 1,
+ CONSTANT = 2
+ }
+
+ /** OptimizationStrategy enum. */
+ enum OptimizationStrategy {
+ OPTIMIZATION_STRATEGY_UNSPECIFIED = 0,
+ BATCH_GRADIENT_DESCENT = 1,
+ NORMAL_EQUATION = 2
+ }
+
+ /** FeedbackType enum. */
+ enum FeedbackType {
+ FEEDBACK_TYPE_UNSPECIFIED = 0,
+ IMPLICIT = 1,
+ EXPLICIT = 2
+ }
+
+ /** Properties of a RegressionMetrics. */
+ interface IRegressionMetrics {
+
+ /** RegressionMetrics meanAbsoluteError */
+ meanAbsoluteError?: (google.protobuf.IDoubleValue|null);
+
+ /** RegressionMetrics meanSquaredError */
+ meanSquaredError?: (google.protobuf.IDoubleValue|null);
+
+ /** RegressionMetrics meanSquaredLogError */
+ meanSquaredLogError?: (google.protobuf.IDoubleValue|null);
+
+ /** RegressionMetrics medianAbsoluteError */
+ medianAbsoluteError?: (google.protobuf.IDoubleValue|null);
+
+ /** RegressionMetrics rSquared */
+ rSquared?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents a RegressionMetrics. */
+ class RegressionMetrics implements IRegressionMetrics {
+
+ /**
+ * Constructs a new RegressionMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IRegressionMetrics);
+
+ /** RegressionMetrics meanAbsoluteError. */
+ public meanAbsoluteError?: (google.protobuf.IDoubleValue|null);
+
+ /** RegressionMetrics meanSquaredError. */
+ public meanSquaredError?: (google.protobuf.IDoubleValue|null);
+
+ /** RegressionMetrics meanSquaredLogError. */
+ public meanSquaredLogError?: (google.protobuf.IDoubleValue|null);
+
+ /** RegressionMetrics medianAbsoluteError. */
+ public medianAbsoluteError?: (google.protobuf.IDoubleValue|null);
+
+ /** RegressionMetrics rSquared. */
+ public rSquared?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new RegressionMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RegressionMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IRegressionMetrics): google.cloud.bigquery.v2.Model.RegressionMetrics;
+
+ /**
+ * Encodes the specified RegressionMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.RegressionMetrics.verify|verify} messages.
+ * @param message RegressionMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IRegressionMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RegressionMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.RegressionMetrics.verify|verify} messages.
+ * @param message RegressionMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IRegressionMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RegressionMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RegressionMetrics
+ * @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.cloud.bigquery.v2.Model.RegressionMetrics;
+
+ /**
+ * Decodes a RegressionMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RegressionMetrics
+ * @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.cloud.bigquery.v2.Model.RegressionMetrics;
+
+ /**
+ * Verifies a RegressionMetrics 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 RegressionMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RegressionMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.RegressionMetrics;
+
+ /**
+ * Creates a plain object from a RegressionMetrics message. Also converts values to other types if specified.
+ * @param message RegressionMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.RegressionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RegressionMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RegressionMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AggregateClassificationMetrics. */
+ interface IAggregateClassificationMetrics {
+
+ /** AggregateClassificationMetrics precision */
+ precision?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics recall */
+ recall?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics accuracy */
+ accuracy?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics threshold */
+ threshold?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics f1Score */
+ f1Score?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics logLoss */
+ logLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics rocAuc */
+ rocAuc?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents an AggregateClassificationMetrics. */
+ class AggregateClassificationMetrics implements IAggregateClassificationMetrics {
+
+ /**
+ * Constructs a new AggregateClassificationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IAggregateClassificationMetrics);
+
+ /** AggregateClassificationMetrics precision. */
+ public precision?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics recall. */
+ public recall?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics accuracy. */
+ public accuracy?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics threshold. */
+ public threshold?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics f1Score. */
+ public f1Score?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics logLoss. */
+ public logLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** AggregateClassificationMetrics rocAuc. */
+ public rocAuc?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new AggregateClassificationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AggregateClassificationMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IAggregateClassificationMetrics): google.cloud.bigquery.v2.Model.AggregateClassificationMetrics;
+
+ /**
+ * Encodes the specified AggregateClassificationMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.AggregateClassificationMetrics.verify|verify} messages.
+ * @param message AggregateClassificationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IAggregateClassificationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AggregateClassificationMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.AggregateClassificationMetrics.verify|verify} messages.
+ * @param message AggregateClassificationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IAggregateClassificationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AggregateClassificationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AggregateClassificationMetrics
+ * @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.cloud.bigquery.v2.Model.AggregateClassificationMetrics;
+
+ /**
+ * Decodes an AggregateClassificationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AggregateClassificationMetrics
+ * @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.cloud.bigquery.v2.Model.AggregateClassificationMetrics;
+
+ /**
+ * Verifies an AggregateClassificationMetrics 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 AggregateClassificationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AggregateClassificationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.AggregateClassificationMetrics;
+
+ /**
+ * Creates a plain object from an AggregateClassificationMetrics message. Also converts values to other types if specified.
+ * @param message AggregateClassificationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.AggregateClassificationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AggregateClassificationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AggregateClassificationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BinaryClassificationMetrics. */
+ interface IBinaryClassificationMetrics {
+
+ /** BinaryClassificationMetrics aggregateClassificationMetrics */
+ aggregateClassificationMetrics?: (google.cloud.bigquery.v2.Model.IAggregateClassificationMetrics|null);
+
+ /** BinaryClassificationMetrics binaryConfusionMatrixList */
+ binaryConfusionMatrixList?: (google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.IBinaryConfusionMatrix[]|null);
+
+ /** BinaryClassificationMetrics positiveLabel */
+ positiveLabel?: (string|null);
+
+ /** BinaryClassificationMetrics negativeLabel */
+ negativeLabel?: (string|null);
+ }
+
+ /** Represents a BinaryClassificationMetrics. */
+ class BinaryClassificationMetrics implements IBinaryClassificationMetrics {
+
+ /**
+ * Constructs a new BinaryClassificationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IBinaryClassificationMetrics);
+
+ /** BinaryClassificationMetrics aggregateClassificationMetrics. */
+ public aggregateClassificationMetrics?: (google.cloud.bigquery.v2.Model.IAggregateClassificationMetrics|null);
+
+ /** BinaryClassificationMetrics binaryConfusionMatrixList. */
+ public binaryConfusionMatrixList: google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.IBinaryConfusionMatrix[];
+
+ /** BinaryClassificationMetrics positiveLabel. */
+ public positiveLabel: string;
+
+ /** BinaryClassificationMetrics negativeLabel. */
+ public negativeLabel: string;
+
+ /**
+ * Creates a new BinaryClassificationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BinaryClassificationMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IBinaryClassificationMetrics): google.cloud.bigquery.v2.Model.BinaryClassificationMetrics;
+
+ /**
+ * Encodes the specified BinaryClassificationMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.verify|verify} messages.
+ * @param message BinaryClassificationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IBinaryClassificationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BinaryClassificationMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.verify|verify} messages.
+ * @param message BinaryClassificationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IBinaryClassificationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BinaryClassificationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BinaryClassificationMetrics
+ * @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.cloud.bigquery.v2.Model.BinaryClassificationMetrics;
+
+ /**
+ * Decodes a BinaryClassificationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BinaryClassificationMetrics
+ * @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.cloud.bigquery.v2.Model.BinaryClassificationMetrics;
+
+ /**
+ * Verifies a BinaryClassificationMetrics 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 BinaryClassificationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BinaryClassificationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.BinaryClassificationMetrics;
+
+ /**
+ * Creates a plain object from a BinaryClassificationMetrics message. Also converts values to other types if specified.
+ * @param message BinaryClassificationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.BinaryClassificationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BinaryClassificationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BinaryClassificationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BinaryClassificationMetrics {
+
+ /** Properties of a BinaryConfusionMatrix. */
+ interface IBinaryConfusionMatrix {
+
+ /** BinaryConfusionMatrix positiveClassThreshold */
+ positiveClassThreshold?: (google.protobuf.IDoubleValue|null);
+
+ /** BinaryConfusionMatrix truePositives */
+ truePositives?: (google.protobuf.IInt64Value|null);
+
+ /** BinaryConfusionMatrix falsePositives */
+ falsePositives?: (google.protobuf.IInt64Value|null);
+
+ /** BinaryConfusionMatrix trueNegatives */
+ trueNegatives?: (google.protobuf.IInt64Value|null);
+
+ /** BinaryConfusionMatrix falseNegatives */
+ falseNegatives?: (google.protobuf.IInt64Value|null);
+
+ /** BinaryConfusionMatrix precision */
+ precision?: (google.protobuf.IDoubleValue|null);
+
+ /** BinaryConfusionMatrix recall */
+ recall?: (google.protobuf.IDoubleValue|null);
+
+ /** BinaryConfusionMatrix f1Score */
+ f1Score?: (google.protobuf.IDoubleValue|null);
+
+ /** BinaryConfusionMatrix accuracy */
+ accuracy?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents a BinaryConfusionMatrix. */
+ class BinaryConfusionMatrix implements IBinaryConfusionMatrix {
+
+ /**
+ * Constructs a new BinaryConfusionMatrix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.IBinaryConfusionMatrix);
+
+ /** BinaryConfusionMatrix positiveClassThreshold. */
+ public positiveClassThreshold?: (google.protobuf.IDoubleValue|null);
+
+ /** BinaryConfusionMatrix truePositives. */
+ public truePositives?: (google.protobuf.IInt64Value|null);
+
+ /** BinaryConfusionMatrix falsePositives. */
+ public falsePositives?: (google.protobuf.IInt64Value|null);
+
+ /** BinaryConfusionMatrix trueNegatives. */
+ public trueNegatives?: (google.protobuf.IInt64Value|null);
+
+ /** BinaryConfusionMatrix falseNegatives. */
+ public falseNegatives?: (google.protobuf.IInt64Value|null);
+
+ /** BinaryConfusionMatrix precision. */
+ public precision?: (google.protobuf.IDoubleValue|null);
+
+ /** BinaryConfusionMatrix recall. */
+ public recall?: (google.protobuf.IDoubleValue|null);
+
+ /** BinaryConfusionMatrix f1Score. */
+ public f1Score?: (google.protobuf.IDoubleValue|null);
+
+ /** BinaryConfusionMatrix accuracy. */
+ public accuracy?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new BinaryConfusionMatrix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BinaryConfusionMatrix instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.IBinaryConfusionMatrix): google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.BinaryConfusionMatrix;
+
+ /**
+ * Encodes the specified BinaryConfusionMatrix message. Does not implicitly {@link google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.BinaryConfusionMatrix.verify|verify} messages.
+ * @param message BinaryConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.IBinaryConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BinaryConfusionMatrix message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.BinaryConfusionMatrix.verify|verify} messages.
+ * @param message BinaryConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.IBinaryConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BinaryConfusionMatrix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BinaryConfusionMatrix
+ * @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.cloud.bigquery.v2.Model.BinaryClassificationMetrics.BinaryConfusionMatrix;
+
+ /**
+ * Decodes a BinaryConfusionMatrix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BinaryConfusionMatrix
+ * @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.cloud.bigquery.v2.Model.BinaryClassificationMetrics.BinaryConfusionMatrix;
+
+ /**
+ * Verifies a BinaryConfusionMatrix 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 BinaryConfusionMatrix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BinaryConfusionMatrix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.BinaryConfusionMatrix;
+
+ /**
+ * Creates a plain object from a BinaryConfusionMatrix message. Also converts values to other types if specified.
+ * @param message BinaryConfusionMatrix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.BinaryClassificationMetrics.BinaryConfusionMatrix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BinaryConfusionMatrix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BinaryConfusionMatrix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a MultiClassClassificationMetrics. */
+ interface IMultiClassClassificationMetrics {
+
+ /** MultiClassClassificationMetrics aggregateClassificationMetrics */
+ aggregateClassificationMetrics?: (google.cloud.bigquery.v2.Model.IAggregateClassificationMetrics|null);
+
+ /** MultiClassClassificationMetrics confusionMatrixList */
+ confusionMatrixList?: (google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.IConfusionMatrix[]|null);
+ }
+
+ /** Represents a MultiClassClassificationMetrics. */
+ class MultiClassClassificationMetrics implements IMultiClassClassificationMetrics {
+
+ /**
+ * Constructs a new MultiClassClassificationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IMultiClassClassificationMetrics);
+
+ /** MultiClassClassificationMetrics aggregateClassificationMetrics. */
+ public aggregateClassificationMetrics?: (google.cloud.bigquery.v2.Model.IAggregateClassificationMetrics|null);
+
+ /** MultiClassClassificationMetrics confusionMatrixList. */
+ public confusionMatrixList: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.IConfusionMatrix[];
+
+ /**
+ * Creates a new MultiClassClassificationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MultiClassClassificationMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IMultiClassClassificationMetrics): google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics;
+
+ /**
+ * Encodes the specified MultiClassClassificationMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.verify|verify} messages.
+ * @param message MultiClassClassificationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IMultiClassClassificationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MultiClassClassificationMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.verify|verify} messages.
+ * @param message MultiClassClassificationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IMultiClassClassificationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MultiClassClassificationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MultiClassClassificationMetrics
+ * @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.cloud.bigquery.v2.Model.MultiClassClassificationMetrics;
+
+ /**
+ * Decodes a MultiClassClassificationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MultiClassClassificationMetrics
+ * @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.cloud.bigquery.v2.Model.MultiClassClassificationMetrics;
+
+ /**
+ * Verifies a MultiClassClassificationMetrics 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 MultiClassClassificationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MultiClassClassificationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics;
+
+ /**
+ * Creates a plain object from a MultiClassClassificationMetrics message. Also converts values to other types if specified.
+ * @param message MultiClassClassificationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MultiClassClassificationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MultiClassClassificationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MultiClassClassificationMetrics {
+
+ /** Properties of a ConfusionMatrix. */
+ interface IConfusionMatrix {
+
+ /** ConfusionMatrix confidenceThreshold */
+ confidenceThreshold?: (google.protobuf.IDoubleValue|null);
+
+ /** ConfusionMatrix rows */
+ rows?: (google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IRow[]|null);
+ }
+
+ /** Represents a ConfusionMatrix. */
+ class ConfusionMatrix implements IConfusionMatrix {
+
+ /**
+ * Constructs a new ConfusionMatrix.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.IConfusionMatrix);
+
+ /** ConfusionMatrix confidenceThreshold. */
+ public confidenceThreshold?: (google.protobuf.IDoubleValue|null);
+
+ /** ConfusionMatrix rows. */
+ public rows: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IRow[];
+
+ /**
+ * Creates a new ConfusionMatrix instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfusionMatrix instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.IConfusionMatrix): google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix;
+
+ /**
+ * Encodes the specified ConfusionMatrix message. Does not implicitly {@link google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.verify|verify} messages.
+ * @param message ConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.IConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfusionMatrix message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.verify|verify} messages.
+ * @param message ConfusionMatrix message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.IConfusionMatrix, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfusionMatrix
+ * @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.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix;
+
+ /**
+ * Decodes a ConfusionMatrix message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfusionMatrix
+ * @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.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix;
+
+ /**
+ * Verifies a ConfusionMatrix 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 ConfusionMatrix message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfusionMatrix
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix;
+
+ /**
+ * Creates a plain object from a ConfusionMatrix message. Also converts values to other types if specified.
+ * @param message ConfusionMatrix
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfusionMatrix to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfusionMatrix
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ConfusionMatrix {
+
+ /** Properties of an Entry. */
+ interface IEntry {
+
+ /** Entry predictedLabel */
+ predictedLabel?: (string|null);
+
+ /** Entry itemCount */
+ itemCount?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents an Entry. */
+ class Entry implements IEntry {
+
+ /**
+ * Constructs a new Entry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IEntry);
+
+ /** Entry predictedLabel. */
+ public predictedLabel: string;
+
+ /** Entry itemCount. */
+ public itemCount?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new Entry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Entry instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IEntry): google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Entry;
+
+ /**
+ * Encodes the specified Entry message. Does not implicitly {@link google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Entry.verify|verify} messages.
+ * @param message Entry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Entry.verify|verify} messages.
+ * @param message Entry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IEntry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Entry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Entry
+ * @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.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Entry;
+
+ /**
+ * Decodes an Entry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Entry
+ * @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.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Entry;
+
+ /**
+ * Verifies an Entry 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 Entry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Entry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Entry;
+
+ /**
+ * Creates a plain object from an Entry message. Also converts values to other types if specified.
+ * @param message Entry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Entry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Entry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Entry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Row. */
+ interface IRow {
+
+ /** Row actualLabel */
+ actualLabel?: (string|null);
+
+ /** Row entries */
+ entries?: (google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IEntry[]|null);
+ }
+
+ /** Represents a Row. */
+ class Row implements IRow {
+
+ /**
+ * Constructs a new Row.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IRow);
+
+ /** Row actualLabel. */
+ public actualLabel: string;
+
+ /** Row entries. */
+ public entries: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IEntry[];
+
+ /**
+ * Creates a new Row instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Row instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IRow): google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Encodes the specified Row message. Does not implicitly {@link google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Row message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Row.verify|verify} messages.
+ * @param message Row message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.IRow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Row
+ * @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.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Decodes a Row message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Row
+ * @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.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Verifies a Row 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 Row message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Row
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Row;
+
+ /**
+ * Creates a plain object from a Row message. Also converts values to other types if specified.
+ * @param message Row
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.MultiClassClassificationMetrics.ConfusionMatrix.Row, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Row to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Row
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a ClusteringMetrics. */
+ interface IClusteringMetrics {
+
+ /** ClusteringMetrics daviesBouldinIndex */
+ daviesBouldinIndex?: (google.protobuf.IDoubleValue|null);
+
+ /** ClusteringMetrics meanSquaredDistance */
+ meanSquaredDistance?: (google.protobuf.IDoubleValue|null);
+
+ /** ClusteringMetrics clusters */
+ clusters?: (google.cloud.bigquery.v2.Model.ClusteringMetrics.ICluster[]|null);
+ }
+
+ /** Represents a ClusteringMetrics. */
+ class ClusteringMetrics implements IClusteringMetrics {
+
+ /**
+ * Constructs a new ClusteringMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IClusteringMetrics);
+
+ /** ClusteringMetrics daviesBouldinIndex. */
+ public daviesBouldinIndex?: (google.protobuf.IDoubleValue|null);
+
+ /** ClusteringMetrics meanSquaredDistance. */
+ public meanSquaredDistance?: (google.protobuf.IDoubleValue|null);
+
+ /** ClusteringMetrics clusters. */
+ public clusters: google.cloud.bigquery.v2.Model.ClusteringMetrics.ICluster[];
+
+ /**
+ * Creates a new ClusteringMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClusteringMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IClusteringMetrics): google.cloud.bigquery.v2.Model.ClusteringMetrics;
+
+ /**
+ * Encodes the specified ClusteringMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.verify|verify} messages.
+ * @param message ClusteringMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IClusteringMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClusteringMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.verify|verify} messages.
+ * @param message ClusteringMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IClusteringMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClusteringMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClusteringMetrics
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics;
+
+ /**
+ * Decodes a ClusteringMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClusteringMetrics
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics;
+
+ /**
+ * Verifies a ClusteringMetrics 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 ClusteringMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClusteringMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ClusteringMetrics;
+
+ /**
+ * Creates a plain object from a ClusteringMetrics message. Also converts values to other types if specified.
+ * @param message ClusteringMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ClusteringMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClusteringMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClusteringMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ClusteringMetrics {
+
+ /** Properties of a Cluster. */
+ interface ICluster {
+
+ /** Cluster centroidId */
+ centroidId?: (number|Long|string|null);
+
+ /** Cluster featureValues */
+ featureValues?: (google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.IFeatureValue[]|null);
+
+ /** Cluster count */
+ count?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a Cluster. */
+ class Cluster implements ICluster {
+
+ /**
+ * Constructs a new Cluster.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.ClusteringMetrics.ICluster);
+
+ /** Cluster centroidId. */
+ public centroidId: (number|Long|string);
+
+ /** Cluster featureValues. */
+ public featureValues: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.IFeatureValue[];
+
+ /** Cluster count. */
+ public count?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new Cluster instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Cluster instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.ClusteringMetrics.ICluster): google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster;
+
+ /**
+ * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.verify|verify} messages.
+ * @param message Cluster message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.ICluster, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.verify|verify} messages.
+ * @param message Cluster message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.ICluster, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Cluster
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster;
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Cluster
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster;
+
+ /**
+ * Verifies a Cluster 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 Cluster message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Cluster
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster;
+
+ /**
+ * Creates a plain object from a Cluster message. Also converts values to other types if specified.
+ * @param message Cluster
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Cluster to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Cluster
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Cluster {
+
+ /** Properties of a FeatureValue. */
+ interface IFeatureValue {
+
+ /** FeatureValue featureColumn */
+ featureColumn?: (string|null);
+
+ /** FeatureValue numericalValue */
+ numericalValue?: (google.protobuf.IDoubleValue|null);
+
+ /** FeatureValue categoricalValue */
+ categoricalValue?: (google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.ICategoricalValue|null);
+ }
+
+ /** Represents a FeatureValue. */
+ class FeatureValue implements IFeatureValue {
+
+ /**
+ * Constructs a new FeatureValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.IFeatureValue);
+
+ /** FeatureValue featureColumn. */
+ public featureColumn: string;
+
+ /** FeatureValue numericalValue. */
+ public numericalValue?: (google.protobuf.IDoubleValue|null);
+
+ /** FeatureValue categoricalValue. */
+ public categoricalValue?: (google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.ICategoricalValue|null);
+
+ /** FeatureValue value. */
+ public value?: ("numericalValue"|"categoricalValue");
+
+ /**
+ * Creates a new FeatureValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureValue instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.IFeatureValue): google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue;
+
+ /**
+ * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.verify|verify} messages.
+ * @param message FeatureValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.verify|verify} messages.
+ * @param message FeatureValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureValue
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue;
+
+ /**
+ * Decodes a FeatureValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureValue
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue;
+
+ /**
+ * Verifies a FeatureValue 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 FeatureValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue;
+
+ /**
+ * Creates a plain object from a FeatureValue message. Also converts values to other types if specified.
+ * @param message FeatureValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureValue {
+
+ /** Properties of a CategoricalValue. */
+ interface ICategoricalValue {
+
+ /** CategoricalValue categoryCounts */
+ categoryCounts?: (google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.ICategoryCount[]|null);
+ }
+
+ /** Represents a CategoricalValue. */
+ class CategoricalValue implements ICategoricalValue {
+
+ /**
+ * Constructs a new CategoricalValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.ICategoricalValue);
+
+ /** CategoricalValue categoryCounts. */
+ public categoryCounts: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.ICategoryCount[];
+
+ /**
+ * Creates a new CategoricalValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CategoricalValue instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.ICategoricalValue): google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue;
+
+ /**
+ * Encodes the specified CategoricalValue message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.verify|verify} messages.
+ * @param message CategoricalValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.ICategoricalValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CategoricalValue message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.verify|verify} messages.
+ * @param message CategoricalValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.ICategoricalValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CategoricalValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CategoricalValue
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue;
+
+ /**
+ * Decodes a CategoricalValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CategoricalValue
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue;
+
+ /**
+ * Verifies a CategoricalValue 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 CategoricalValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CategoricalValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue;
+
+ /**
+ * Creates a plain object from a CategoricalValue message. Also converts values to other types if specified.
+ * @param message CategoricalValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CategoricalValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CategoricalValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CategoricalValue {
+
+ /** Properties of a CategoryCount. */
+ interface ICategoryCount {
+
+ /** CategoryCount category */
+ category?: (string|null);
+
+ /** CategoryCount count */
+ count?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a CategoryCount. */
+ class CategoryCount implements ICategoryCount {
+
+ /**
+ * Constructs a new CategoryCount.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.ICategoryCount);
+
+ /** CategoryCount category. */
+ public category: string;
+
+ /** CategoryCount count. */
+ public count?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new CategoryCount instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CategoryCount instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.ICategoryCount): google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.CategoryCount;
+
+ /**
+ * Encodes the specified CategoryCount message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.CategoryCount.verify|verify} messages.
+ * @param message CategoryCount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.ICategoryCount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CategoryCount message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.CategoryCount.verify|verify} messages.
+ * @param message CategoryCount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.ICategoryCount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CategoryCount message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CategoryCount
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.CategoryCount;
+
+ /**
+ * Decodes a CategoryCount message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CategoryCount
+ * @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.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.CategoryCount;
+
+ /**
+ * Verifies a CategoryCount 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 CategoryCount message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CategoryCount
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.CategoryCount;
+
+ /**
+ * Creates a plain object from a CategoryCount message. Also converts values to other types if specified.
+ * @param message CategoryCount
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ClusteringMetrics.Cluster.FeatureValue.CategoricalValue.CategoryCount, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CategoryCount to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CategoryCount
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+ }
+
+ /** Properties of a RankingMetrics. */
+ interface IRankingMetrics {
+
+ /** RankingMetrics meanAveragePrecision */
+ meanAveragePrecision?: (google.protobuf.IDoubleValue|null);
+
+ /** RankingMetrics meanSquaredError */
+ meanSquaredError?: (google.protobuf.IDoubleValue|null);
+
+ /** RankingMetrics normalizedDiscountedCumulativeGain */
+ normalizedDiscountedCumulativeGain?: (google.protobuf.IDoubleValue|null);
+
+ /** RankingMetrics averageRank */
+ averageRank?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents a RankingMetrics. */
+ class RankingMetrics implements IRankingMetrics {
+
+ /**
+ * Constructs a new RankingMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IRankingMetrics);
+
+ /** RankingMetrics meanAveragePrecision. */
+ public meanAveragePrecision?: (google.protobuf.IDoubleValue|null);
+
+ /** RankingMetrics meanSquaredError. */
+ public meanSquaredError?: (google.protobuf.IDoubleValue|null);
+
+ /** RankingMetrics normalizedDiscountedCumulativeGain. */
+ public normalizedDiscountedCumulativeGain?: (google.protobuf.IDoubleValue|null);
+
+ /** RankingMetrics averageRank. */
+ public averageRank?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new RankingMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RankingMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IRankingMetrics): google.cloud.bigquery.v2.Model.RankingMetrics;
+
+ /**
+ * Encodes the specified RankingMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.RankingMetrics.verify|verify} messages.
+ * @param message RankingMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IRankingMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RankingMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.RankingMetrics.verify|verify} messages.
+ * @param message RankingMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IRankingMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RankingMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RankingMetrics
+ * @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.cloud.bigquery.v2.Model.RankingMetrics;
+
+ /**
+ * Decodes a RankingMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RankingMetrics
+ * @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.cloud.bigquery.v2.Model.RankingMetrics;
+
+ /**
+ * Verifies a RankingMetrics 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 RankingMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RankingMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.RankingMetrics;
+
+ /**
+ * Creates a plain object from a RankingMetrics message. Also converts values to other types if specified.
+ * @param message RankingMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.RankingMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RankingMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RankingMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ArimaForecastingMetrics. */
+ interface IArimaForecastingMetrics {
+
+ /** ArimaForecastingMetrics arimaSingleModelForecastingMetrics */
+ arimaSingleModelForecastingMetrics?: (google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.IArimaSingleModelForecastingMetrics[]|null);
+ }
+
+ /** Represents an ArimaForecastingMetrics. */
+ class ArimaForecastingMetrics implements IArimaForecastingMetrics {
+
+ /**
+ * Constructs a new ArimaForecastingMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IArimaForecastingMetrics);
+
+ /** ArimaForecastingMetrics arimaSingleModelForecastingMetrics. */
+ public arimaSingleModelForecastingMetrics: google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.IArimaSingleModelForecastingMetrics[];
+
+ /**
+ * Creates a new ArimaForecastingMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArimaForecastingMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IArimaForecastingMetrics): google.cloud.bigquery.v2.Model.ArimaForecastingMetrics;
+
+ /**
+ * Encodes the specified ArimaForecastingMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.verify|verify} messages.
+ * @param message ArimaForecastingMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IArimaForecastingMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArimaForecastingMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.verify|verify} messages.
+ * @param message ArimaForecastingMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IArimaForecastingMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArimaForecastingMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArimaForecastingMetrics
+ * @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.cloud.bigquery.v2.Model.ArimaForecastingMetrics;
+
+ /**
+ * Decodes an ArimaForecastingMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArimaForecastingMetrics
+ * @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.cloud.bigquery.v2.Model.ArimaForecastingMetrics;
+
+ /**
+ * Verifies an ArimaForecastingMetrics 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 ArimaForecastingMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArimaForecastingMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ArimaForecastingMetrics;
+
+ /**
+ * Creates a plain object from an ArimaForecastingMetrics message. Also converts values to other types if specified.
+ * @param message ArimaForecastingMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ArimaForecastingMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArimaForecastingMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArimaForecastingMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ArimaForecastingMetrics {
+
+ /** Properties of an ArimaSingleModelForecastingMetrics. */
+ interface IArimaSingleModelForecastingMetrics {
+
+ /** ArimaSingleModelForecastingMetrics nonSeasonalOrder */
+ nonSeasonalOrder?: (google.cloud.bigquery.v2.Model.IArimaOrder|null);
+
+ /** ArimaSingleModelForecastingMetrics arimaFittingMetrics */
+ arimaFittingMetrics?: (google.cloud.bigquery.v2.Model.IArimaFittingMetrics|null);
+
+ /** ArimaSingleModelForecastingMetrics hasDrift */
+ hasDrift?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaSingleModelForecastingMetrics timeSeriesId */
+ timeSeriesId?: (string|null);
+
+ /** ArimaSingleModelForecastingMetrics timeSeriesIds */
+ timeSeriesIds?: (string[]|null);
+
+ /** ArimaSingleModelForecastingMetrics seasonalPeriods */
+ seasonalPeriods?: (google.cloud.bigquery.v2.Model.SeasonalPeriod.SeasonalPeriodType[]|null);
+
+ /** ArimaSingleModelForecastingMetrics hasHolidayEffect */
+ hasHolidayEffect?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaSingleModelForecastingMetrics hasSpikesAndDips */
+ hasSpikesAndDips?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaSingleModelForecastingMetrics hasStepChanges */
+ hasStepChanges?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents an ArimaSingleModelForecastingMetrics. */
+ class ArimaSingleModelForecastingMetrics implements IArimaSingleModelForecastingMetrics {
+
+ /**
+ * Constructs a new ArimaSingleModelForecastingMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.IArimaSingleModelForecastingMetrics);
+
+ /** ArimaSingleModelForecastingMetrics nonSeasonalOrder. */
+ public nonSeasonalOrder?: (google.cloud.bigquery.v2.Model.IArimaOrder|null);
+
+ /** ArimaSingleModelForecastingMetrics arimaFittingMetrics. */
+ public arimaFittingMetrics?: (google.cloud.bigquery.v2.Model.IArimaFittingMetrics|null);
+
+ /** ArimaSingleModelForecastingMetrics hasDrift. */
+ public hasDrift?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaSingleModelForecastingMetrics timeSeriesId. */
+ public timeSeriesId: string;
+
+ /** ArimaSingleModelForecastingMetrics timeSeriesIds. */
+ public timeSeriesIds: string[];
+
+ /** ArimaSingleModelForecastingMetrics seasonalPeriods. */
+ public seasonalPeriods: google.cloud.bigquery.v2.Model.SeasonalPeriod.SeasonalPeriodType[];
+
+ /** ArimaSingleModelForecastingMetrics hasHolidayEffect. */
+ public hasHolidayEffect?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaSingleModelForecastingMetrics hasSpikesAndDips. */
+ public hasSpikesAndDips?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaSingleModelForecastingMetrics hasStepChanges. */
+ public hasStepChanges?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new ArimaSingleModelForecastingMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArimaSingleModelForecastingMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.IArimaSingleModelForecastingMetrics): google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.ArimaSingleModelForecastingMetrics;
+
+ /**
+ * Encodes the specified ArimaSingleModelForecastingMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.ArimaSingleModelForecastingMetrics.verify|verify} messages.
+ * @param message ArimaSingleModelForecastingMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.IArimaSingleModelForecastingMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArimaSingleModelForecastingMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.ArimaSingleModelForecastingMetrics.verify|verify} messages.
+ * @param message ArimaSingleModelForecastingMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.IArimaSingleModelForecastingMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArimaSingleModelForecastingMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArimaSingleModelForecastingMetrics
+ * @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.cloud.bigquery.v2.Model.ArimaForecastingMetrics.ArimaSingleModelForecastingMetrics;
+
+ /**
+ * Decodes an ArimaSingleModelForecastingMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArimaSingleModelForecastingMetrics
+ * @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.cloud.bigquery.v2.Model.ArimaForecastingMetrics.ArimaSingleModelForecastingMetrics;
+
+ /**
+ * Verifies an ArimaSingleModelForecastingMetrics 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 ArimaSingleModelForecastingMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArimaSingleModelForecastingMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.ArimaSingleModelForecastingMetrics;
+
+ /**
+ * Creates a plain object from an ArimaSingleModelForecastingMetrics message. Also converts values to other types if specified.
+ * @param message ArimaSingleModelForecastingMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ArimaForecastingMetrics.ArimaSingleModelForecastingMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArimaSingleModelForecastingMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArimaSingleModelForecastingMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a DimensionalityReductionMetrics. */
+ interface IDimensionalityReductionMetrics {
+
+ /** DimensionalityReductionMetrics totalExplainedVarianceRatio */
+ totalExplainedVarianceRatio?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents a DimensionalityReductionMetrics. */
+ class DimensionalityReductionMetrics implements IDimensionalityReductionMetrics {
+
+ /**
+ * Constructs a new DimensionalityReductionMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IDimensionalityReductionMetrics);
+
+ /** DimensionalityReductionMetrics totalExplainedVarianceRatio. */
+ public totalExplainedVarianceRatio?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new DimensionalityReductionMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DimensionalityReductionMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IDimensionalityReductionMetrics): google.cloud.bigquery.v2.Model.DimensionalityReductionMetrics;
+
+ /**
+ * Encodes the specified DimensionalityReductionMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.DimensionalityReductionMetrics.verify|verify} messages.
+ * @param message DimensionalityReductionMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IDimensionalityReductionMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DimensionalityReductionMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.DimensionalityReductionMetrics.verify|verify} messages.
+ * @param message DimensionalityReductionMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IDimensionalityReductionMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DimensionalityReductionMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DimensionalityReductionMetrics
+ * @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.cloud.bigquery.v2.Model.DimensionalityReductionMetrics;
+
+ /**
+ * Decodes a DimensionalityReductionMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DimensionalityReductionMetrics
+ * @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.cloud.bigquery.v2.Model.DimensionalityReductionMetrics;
+
+ /**
+ * Verifies a DimensionalityReductionMetrics 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 DimensionalityReductionMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DimensionalityReductionMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.DimensionalityReductionMetrics;
+
+ /**
+ * Creates a plain object from a DimensionalityReductionMetrics message. Also converts values to other types if specified.
+ * @param message DimensionalityReductionMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.DimensionalityReductionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DimensionalityReductionMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DimensionalityReductionMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EvaluationMetrics. */
+ interface IEvaluationMetrics {
+
+ /** EvaluationMetrics regressionMetrics */
+ regressionMetrics?: (google.cloud.bigquery.v2.Model.IRegressionMetrics|null);
+
+ /** EvaluationMetrics binaryClassificationMetrics */
+ binaryClassificationMetrics?: (google.cloud.bigquery.v2.Model.IBinaryClassificationMetrics|null);
+
+ /** EvaluationMetrics multiClassClassificationMetrics */
+ multiClassClassificationMetrics?: (google.cloud.bigquery.v2.Model.IMultiClassClassificationMetrics|null);
+
+ /** EvaluationMetrics clusteringMetrics */
+ clusteringMetrics?: (google.cloud.bigquery.v2.Model.IClusteringMetrics|null);
+
+ /** EvaluationMetrics rankingMetrics */
+ rankingMetrics?: (google.cloud.bigquery.v2.Model.IRankingMetrics|null);
+
+ /** EvaluationMetrics arimaForecastingMetrics */
+ arimaForecastingMetrics?: (google.cloud.bigquery.v2.Model.IArimaForecastingMetrics|null);
+
+ /** EvaluationMetrics dimensionalityReductionMetrics */
+ dimensionalityReductionMetrics?: (google.cloud.bigquery.v2.Model.IDimensionalityReductionMetrics|null);
+ }
+
+ /** Represents an EvaluationMetrics. */
+ class EvaluationMetrics implements IEvaluationMetrics {
+
+ /**
+ * Constructs a new EvaluationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IEvaluationMetrics);
+
+ /** EvaluationMetrics regressionMetrics. */
+ public regressionMetrics?: (google.cloud.bigquery.v2.Model.IRegressionMetrics|null);
+
+ /** EvaluationMetrics binaryClassificationMetrics. */
+ public binaryClassificationMetrics?: (google.cloud.bigquery.v2.Model.IBinaryClassificationMetrics|null);
+
+ /** EvaluationMetrics multiClassClassificationMetrics. */
+ public multiClassClassificationMetrics?: (google.cloud.bigquery.v2.Model.IMultiClassClassificationMetrics|null);
+
+ /** EvaluationMetrics clusteringMetrics. */
+ public clusteringMetrics?: (google.cloud.bigquery.v2.Model.IClusteringMetrics|null);
+
+ /** EvaluationMetrics rankingMetrics. */
+ public rankingMetrics?: (google.cloud.bigquery.v2.Model.IRankingMetrics|null);
+
+ /** EvaluationMetrics arimaForecastingMetrics. */
+ public arimaForecastingMetrics?: (google.cloud.bigquery.v2.Model.IArimaForecastingMetrics|null);
+
+ /** EvaluationMetrics dimensionalityReductionMetrics. */
+ public dimensionalityReductionMetrics?: (google.cloud.bigquery.v2.Model.IDimensionalityReductionMetrics|null);
+
+ /** EvaluationMetrics metrics. */
+ public metrics?: ("regressionMetrics"|"binaryClassificationMetrics"|"multiClassClassificationMetrics"|"clusteringMetrics"|"rankingMetrics"|"arimaForecastingMetrics"|"dimensionalityReductionMetrics");
+
+ /**
+ * Creates a new EvaluationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EvaluationMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IEvaluationMetrics): google.cloud.bigquery.v2.Model.EvaluationMetrics;
+
+ /**
+ * Encodes the specified EvaluationMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.EvaluationMetrics.verify|verify} messages.
+ * @param message EvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EvaluationMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.EvaluationMetrics.verify|verify} messages.
+ * @param message EvaluationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IEvaluationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EvaluationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EvaluationMetrics
+ * @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.cloud.bigquery.v2.Model.EvaluationMetrics;
+
+ /**
+ * Decodes an EvaluationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EvaluationMetrics
+ * @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.cloud.bigquery.v2.Model.EvaluationMetrics;
+
+ /**
+ * Verifies an EvaluationMetrics 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 EvaluationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EvaluationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.EvaluationMetrics;
+
+ /**
+ * Creates a plain object from an EvaluationMetrics message. Also converts values to other types if specified.
+ * @param message EvaluationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.EvaluationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EvaluationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EvaluationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DataSplitResult. */
+ interface IDataSplitResult {
+
+ /** DataSplitResult trainingTable */
+ trainingTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** DataSplitResult evaluationTable */
+ evaluationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** DataSplitResult testTable */
+ testTable?: (google.cloud.bigquery.v2.ITableReference|null);
+ }
+
+ /** Represents a DataSplitResult. */
+ class DataSplitResult implements IDataSplitResult {
+
+ /**
+ * Constructs a new DataSplitResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IDataSplitResult);
+
+ /** DataSplitResult trainingTable. */
+ public trainingTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** DataSplitResult evaluationTable. */
+ public evaluationTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** DataSplitResult testTable. */
+ public testTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /**
+ * Creates a new DataSplitResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DataSplitResult instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IDataSplitResult): google.cloud.bigquery.v2.Model.DataSplitResult;
+
+ /**
+ * Encodes the specified DataSplitResult message. Does not implicitly {@link google.cloud.bigquery.v2.Model.DataSplitResult.verify|verify} messages.
+ * @param message DataSplitResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IDataSplitResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DataSplitResult message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.DataSplitResult.verify|verify} messages.
+ * @param message DataSplitResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IDataSplitResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DataSplitResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DataSplitResult
+ * @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.cloud.bigquery.v2.Model.DataSplitResult;
+
+ /**
+ * Decodes a DataSplitResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DataSplitResult
+ * @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.cloud.bigquery.v2.Model.DataSplitResult;
+
+ /**
+ * Verifies a DataSplitResult 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 DataSplitResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DataSplitResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.DataSplitResult;
+
+ /**
+ * Creates a plain object from a DataSplitResult message. Also converts values to other types if specified.
+ * @param message DataSplitResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.DataSplitResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DataSplitResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DataSplitResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ArimaOrder. */
+ interface IArimaOrder {
+
+ /** ArimaOrder p */
+ p?: (google.protobuf.IInt64Value|null);
+
+ /** ArimaOrder d */
+ d?: (google.protobuf.IInt64Value|null);
+
+ /** ArimaOrder q */
+ q?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents an ArimaOrder. */
+ class ArimaOrder implements IArimaOrder {
+
+ /**
+ * Constructs a new ArimaOrder.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IArimaOrder);
+
+ /** ArimaOrder p. */
+ public p?: (google.protobuf.IInt64Value|null);
+
+ /** ArimaOrder d. */
+ public d?: (google.protobuf.IInt64Value|null);
+
+ /** ArimaOrder q. */
+ public q?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new ArimaOrder instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArimaOrder instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IArimaOrder): google.cloud.bigquery.v2.Model.ArimaOrder;
+
+ /**
+ * Encodes the specified ArimaOrder message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ArimaOrder.verify|verify} messages.
+ * @param message ArimaOrder message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IArimaOrder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArimaOrder message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ArimaOrder.verify|verify} messages.
+ * @param message ArimaOrder message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IArimaOrder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArimaOrder message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArimaOrder
+ * @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.cloud.bigquery.v2.Model.ArimaOrder;
+
+ /**
+ * Decodes an ArimaOrder message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArimaOrder
+ * @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.cloud.bigquery.v2.Model.ArimaOrder;
+
+ /**
+ * Verifies an ArimaOrder 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 ArimaOrder message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArimaOrder
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ArimaOrder;
+
+ /**
+ * Creates a plain object from an ArimaOrder message. Also converts values to other types if specified.
+ * @param message ArimaOrder
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ArimaOrder, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArimaOrder to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArimaOrder
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ArimaFittingMetrics. */
+ interface IArimaFittingMetrics {
+
+ /** ArimaFittingMetrics logLikelihood */
+ logLikelihood?: (google.protobuf.IDoubleValue|null);
+
+ /** ArimaFittingMetrics aic */
+ aic?: (google.protobuf.IDoubleValue|null);
+
+ /** ArimaFittingMetrics variance */
+ variance?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents an ArimaFittingMetrics. */
+ class ArimaFittingMetrics implements IArimaFittingMetrics {
+
+ /**
+ * Constructs a new ArimaFittingMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IArimaFittingMetrics);
+
+ /** ArimaFittingMetrics logLikelihood. */
+ public logLikelihood?: (google.protobuf.IDoubleValue|null);
+
+ /** ArimaFittingMetrics aic. */
+ public aic?: (google.protobuf.IDoubleValue|null);
+
+ /** ArimaFittingMetrics variance. */
+ public variance?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new ArimaFittingMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArimaFittingMetrics instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IArimaFittingMetrics): google.cloud.bigquery.v2.Model.ArimaFittingMetrics;
+
+ /**
+ * Encodes the specified ArimaFittingMetrics message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ArimaFittingMetrics.verify|verify} messages.
+ * @param message ArimaFittingMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IArimaFittingMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArimaFittingMetrics message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ArimaFittingMetrics.verify|verify} messages.
+ * @param message ArimaFittingMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IArimaFittingMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArimaFittingMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArimaFittingMetrics
+ * @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.cloud.bigquery.v2.Model.ArimaFittingMetrics;
+
+ /**
+ * Decodes an ArimaFittingMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArimaFittingMetrics
+ * @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.cloud.bigquery.v2.Model.ArimaFittingMetrics;
+
+ /**
+ * Verifies an ArimaFittingMetrics 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 ArimaFittingMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArimaFittingMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ArimaFittingMetrics;
+
+ /**
+ * Creates a plain object from an ArimaFittingMetrics message. Also converts values to other types if specified.
+ * @param message ArimaFittingMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ArimaFittingMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArimaFittingMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArimaFittingMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GlobalExplanation. */
+ interface IGlobalExplanation {
+
+ /** GlobalExplanation explanations */
+ explanations?: (google.cloud.bigquery.v2.Model.GlobalExplanation.IExplanation[]|null);
+
+ /** GlobalExplanation classLabel */
+ classLabel?: (string|null);
+ }
+
+ /** Represents a GlobalExplanation. */
+ class GlobalExplanation implements IGlobalExplanation {
+
+ /**
+ * Constructs a new GlobalExplanation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IGlobalExplanation);
+
+ /** GlobalExplanation explanations. */
+ public explanations: google.cloud.bigquery.v2.Model.GlobalExplanation.IExplanation[];
+
+ /** GlobalExplanation classLabel. */
+ public classLabel: string;
+
+ /**
+ * Creates a new GlobalExplanation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GlobalExplanation instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IGlobalExplanation): google.cloud.bigquery.v2.Model.GlobalExplanation;
+
+ /**
+ * Encodes the specified GlobalExplanation message. Does not implicitly {@link google.cloud.bigquery.v2.Model.GlobalExplanation.verify|verify} messages.
+ * @param message GlobalExplanation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IGlobalExplanation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GlobalExplanation message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.GlobalExplanation.verify|verify} messages.
+ * @param message GlobalExplanation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IGlobalExplanation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GlobalExplanation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GlobalExplanation
+ * @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.cloud.bigquery.v2.Model.GlobalExplanation;
+
+ /**
+ * Decodes a GlobalExplanation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GlobalExplanation
+ * @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.cloud.bigquery.v2.Model.GlobalExplanation;
+
+ /**
+ * Verifies a GlobalExplanation 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 GlobalExplanation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GlobalExplanation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.GlobalExplanation;
+
+ /**
+ * Creates a plain object from a GlobalExplanation message. Also converts values to other types if specified.
+ * @param message GlobalExplanation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.GlobalExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GlobalExplanation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GlobalExplanation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GlobalExplanation {
+
+ /** Properties of an Explanation. */
+ interface IExplanation {
+
+ /** Explanation featureName */
+ featureName?: (string|null);
+
+ /** Explanation attribution */
+ attribution?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents an Explanation. */
+ class Explanation implements IExplanation {
+
+ /**
+ * Constructs a new Explanation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.GlobalExplanation.IExplanation);
+
+ /** Explanation featureName. */
+ public featureName: string;
+
+ /** Explanation attribution. */
+ public attribution?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new Explanation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Explanation instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.GlobalExplanation.IExplanation): google.cloud.bigquery.v2.Model.GlobalExplanation.Explanation;
+
+ /**
+ * Encodes the specified Explanation message. Does not implicitly {@link google.cloud.bigquery.v2.Model.GlobalExplanation.Explanation.verify|verify} messages.
+ * @param message Explanation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.GlobalExplanation.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Explanation message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.GlobalExplanation.Explanation.verify|verify} messages.
+ * @param message Explanation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.GlobalExplanation.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Explanation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Explanation
+ * @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.cloud.bigquery.v2.Model.GlobalExplanation.Explanation;
+
+ /**
+ * Decodes an Explanation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Explanation
+ * @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.cloud.bigquery.v2.Model.GlobalExplanation.Explanation;
+
+ /**
+ * Verifies an Explanation 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 Explanation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Explanation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.GlobalExplanation.Explanation;
+
+ /**
+ * Creates a plain object from an Explanation message. Also converts values to other types if specified.
+ * @param message Explanation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.GlobalExplanation.Explanation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Explanation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Explanation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a CategoryEncodingMethod. */
+ interface ICategoryEncodingMethod {
+ }
+
+ /** Represents a CategoryEncodingMethod. */
+ class CategoryEncodingMethod implements ICategoryEncodingMethod {
+
+ /**
+ * Constructs a new CategoryEncodingMethod.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.ICategoryEncodingMethod);
+
+ /**
+ * Creates a new CategoryEncodingMethod instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CategoryEncodingMethod instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.ICategoryEncodingMethod): google.cloud.bigquery.v2.Model.CategoryEncodingMethod;
+
+ /**
+ * Encodes the specified CategoryEncodingMethod message. Does not implicitly {@link google.cloud.bigquery.v2.Model.CategoryEncodingMethod.verify|verify} messages.
+ * @param message CategoryEncodingMethod message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.ICategoryEncodingMethod, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CategoryEncodingMethod message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.CategoryEncodingMethod.verify|verify} messages.
+ * @param message CategoryEncodingMethod message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.ICategoryEncodingMethod, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CategoryEncodingMethod message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CategoryEncodingMethod
+ * @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.cloud.bigquery.v2.Model.CategoryEncodingMethod;
+
+ /**
+ * Decodes a CategoryEncodingMethod message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CategoryEncodingMethod
+ * @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.cloud.bigquery.v2.Model.CategoryEncodingMethod;
+
+ /**
+ * Verifies a CategoryEncodingMethod 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 CategoryEncodingMethod message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CategoryEncodingMethod
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.CategoryEncodingMethod;
+
+ /**
+ * Creates a plain object from a CategoryEncodingMethod message. Also converts values to other types if specified.
+ * @param message CategoryEncodingMethod
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.CategoryEncodingMethod, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CategoryEncodingMethod to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CategoryEncodingMethod
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CategoryEncodingMethod {
+
+ /** EncodingMethod enum. */
+ enum EncodingMethod {
+ ENCODING_METHOD_UNSPECIFIED = 0,
+ ONE_HOT_ENCODING = 1,
+ LABEL_ENCODING = 2,
+ DUMMY_ENCODING = 3
+ }
+ }
+
+ /** Properties of a PcaSolverOptionEnums. */
+ interface IPcaSolverOptionEnums {
+ }
+
+ /** Represents a PcaSolverOptionEnums. */
+ class PcaSolverOptionEnums implements IPcaSolverOptionEnums {
+
+ /**
+ * Constructs a new PcaSolverOptionEnums.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IPcaSolverOptionEnums);
+
+ /**
+ * Creates a new PcaSolverOptionEnums instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PcaSolverOptionEnums instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IPcaSolverOptionEnums): google.cloud.bigquery.v2.Model.PcaSolverOptionEnums;
+
+ /**
+ * Encodes the specified PcaSolverOptionEnums message. Does not implicitly {@link google.cloud.bigquery.v2.Model.PcaSolverOptionEnums.verify|verify} messages.
+ * @param message PcaSolverOptionEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IPcaSolverOptionEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PcaSolverOptionEnums message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.PcaSolverOptionEnums.verify|verify} messages.
+ * @param message PcaSolverOptionEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IPcaSolverOptionEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PcaSolverOptionEnums message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PcaSolverOptionEnums
+ * @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.cloud.bigquery.v2.Model.PcaSolverOptionEnums;
+
+ /**
+ * Decodes a PcaSolverOptionEnums message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PcaSolverOptionEnums
+ * @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.cloud.bigquery.v2.Model.PcaSolverOptionEnums;
+
+ /**
+ * Verifies a PcaSolverOptionEnums 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 PcaSolverOptionEnums message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PcaSolverOptionEnums
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.PcaSolverOptionEnums;
+
+ /**
+ * Creates a plain object from a PcaSolverOptionEnums message. Also converts values to other types if specified.
+ * @param message PcaSolverOptionEnums
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.PcaSolverOptionEnums, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PcaSolverOptionEnums to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PcaSolverOptionEnums
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PcaSolverOptionEnums {
+
+ /** PcaSolver enum. */
+ enum PcaSolver {
+ UNSPECIFIED = 0,
+ FULL = 1,
+ RANDOMIZED = 2,
+ AUTO = 3
+ }
+ }
+
+ /** Properties of a ModelRegistryOptionEnums. */
+ interface IModelRegistryOptionEnums {
+ }
+
+ /** Represents a ModelRegistryOptionEnums. */
+ class ModelRegistryOptionEnums implements IModelRegistryOptionEnums {
+
+ /**
+ * Constructs a new ModelRegistryOptionEnums.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IModelRegistryOptionEnums);
+
+ /**
+ * Creates a new ModelRegistryOptionEnums instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ModelRegistryOptionEnums instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IModelRegistryOptionEnums): google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums;
+
+ /**
+ * Encodes the specified ModelRegistryOptionEnums message. Does not implicitly {@link google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums.verify|verify} messages.
+ * @param message ModelRegistryOptionEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IModelRegistryOptionEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ModelRegistryOptionEnums message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums.verify|verify} messages.
+ * @param message ModelRegistryOptionEnums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IModelRegistryOptionEnums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ModelRegistryOptionEnums message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ModelRegistryOptionEnums
+ * @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.cloud.bigquery.v2.Model.ModelRegistryOptionEnums;
+
+ /**
+ * Decodes a ModelRegistryOptionEnums message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ModelRegistryOptionEnums
+ * @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.cloud.bigquery.v2.Model.ModelRegistryOptionEnums;
+
+ /**
+ * Verifies a ModelRegistryOptionEnums 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 ModelRegistryOptionEnums message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ModelRegistryOptionEnums
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums;
+
+ /**
+ * Creates a plain object from a ModelRegistryOptionEnums message. Also converts values to other types if specified.
+ * @param message ModelRegistryOptionEnums
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ModelRegistryOptionEnums to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ModelRegistryOptionEnums
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ModelRegistryOptionEnums {
+
+ /** ModelRegistry enum. */
+ enum ModelRegistry {
+ MODEL_REGISTRY_UNSPECIFIED = 0,
+ VERTEX_AI = 1
+ }
+ }
+
+ /** Properties of a TrainingRun. */
+ interface ITrainingRun {
+
+ /** TrainingRun trainingOptions */
+ trainingOptions?: (google.cloud.bigquery.v2.Model.TrainingRun.ITrainingOptions|null);
+
+ /** TrainingRun startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** TrainingRun results */
+ results?: (google.cloud.bigquery.v2.Model.TrainingRun.IIterationResult[]|null);
+
+ /** TrainingRun evaluationMetrics */
+ evaluationMetrics?: (google.cloud.bigquery.v2.Model.IEvaluationMetrics|null);
+
+ /** TrainingRun dataSplitResult */
+ dataSplitResult?: (google.cloud.bigquery.v2.Model.IDataSplitResult|null);
+
+ /** TrainingRun modelLevelGlobalExplanation */
+ modelLevelGlobalExplanation?: (google.cloud.bigquery.v2.Model.IGlobalExplanation|null);
+
+ /** TrainingRun classLevelGlobalExplanations */
+ classLevelGlobalExplanations?: (google.cloud.bigquery.v2.Model.IGlobalExplanation[]|null);
+
+ /** TrainingRun vertexAiModelId */
+ vertexAiModelId?: (string|null);
+
+ /** TrainingRun vertexAiModelVersion */
+ vertexAiModelVersion?: (string|null);
+ }
+
+ /** Represents a TrainingRun. */
+ class TrainingRun implements ITrainingRun {
+
+ /**
+ * Constructs a new TrainingRun.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.ITrainingRun);
+
+ /** TrainingRun trainingOptions. */
+ public trainingOptions?: (google.cloud.bigquery.v2.Model.TrainingRun.ITrainingOptions|null);
+
+ /** TrainingRun startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** TrainingRun results. */
+ public results: google.cloud.bigquery.v2.Model.TrainingRun.IIterationResult[];
+
+ /** TrainingRun evaluationMetrics. */
+ public evaluationMetrics?: (google.cloud.bigquery.v2.Model.IEvaluationMetrics|null);
+
+ /** TrainingRun dataSplitResult. */
+ public dataSplitResult?: (google.cloud.bigquery.v2.Model.IDataSplitResult|null);
+
+ /** TrainingRun modelLevelGlobalExplanation. */
+ public modelLevelGlobalExplanation?: (google.cloud.bigquery.v2.Model.IGlobalExplanation|null);
+
+ /** TrainingRun classLevelGlobalExplanations. */
+ public classLevelGlobalExplanations: google.cloud.bigquery.v2.Model.IGlobalExplanation[];
+
+ /** TrainingRun vertexAiModelId. */
+ public vertexAiModelId: string;
+
+ /** TrainingRun vertexAiModelVersion. */
+ public vertexAiModelVersion: string;
+
+ /**
+ * Creates a new TrainingRun instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TrainingRun instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.ITrainingRun): google.cloud.bigquery.v2.Model.TrainingRun;
+
+ /**
+ * Encodes the specified TrainingRun message. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.verify|verify} messages.
+ * @param message TrainingRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.ITrainingRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TrainingRun message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.verify|verify} messages.
+ * @param message TrainingRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.ITrainingRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TrainingRun message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TrainingRun
+ * @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.cloud.bigquery.v2.Model.TrainingRun;
+
+ /**
+ * Decodes a TrainingRun message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TrainingRun
+ * @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.cloud.bigquery.v2.Model.TrainingRun;
+
+ /**
+ * Verifies a TrainingRun 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 TrainingRun message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TrainingRun
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.TrainingRun;
+
+ /**
+ * Creates a plain object from a TrainingRun message. Also converts values to other types if specified.
+ * @param message TrainingRun
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.TrainingRun, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TrainingRun to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TrainingRun
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TrainingRun {
+
+ /** Properties of a TrainingOptions. */
+ interface ITrainingOptions {
+
+ /** TrainingOptions maxIterations */
+ maxIterations?: (number|Long|string|null);
+
+ /** TrainingOptions lossType */
+ lossType?: (google.cloud.bigquery.v2.Model.LossType|keyof typeof google.cloud.bigquery.v2.Model.LossType|null);
+
+ /** TrainingOptions learnRate */
+ learnRate?: (number|null);
+
+ /** TrainingOptions l1Regularization */
+ l1Regularization?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions l2Regularization */
+ l2Regularization?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions minRelativeProgress */
+ minRelativeProgress?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions warmStart */
+ warmStart?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions earlyStop */
+ earlyStop?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions inputLabelColumns */
+ inputLabelColumns?: (string[]|null);
+
+ /** TrainingOptions dataSplitMethod */
+ dataSplitMethod?: (google.cloud.bigquery.v2.Model.DataSplitMethod|keyof typeof google.cloud.bigquery.v2.Model.DataSplitMethod|null);
+
+ /** TrainingOptions dataSplitEvalFraction */
+ dataSplitEvalFraction?: (number|null);
+
+ /** TrainingOptions dataSplitColumn */
+ dataSplitColumn?: (string|null);
+
+ /** TrainingOptions learnRateStrategy */
+ learnRateStrategy?: (google.cloud.bigquery.v2.Model.LearnRateStrategy|keyof typeof google.cloud.bigquery.v2.Model.LearnRateStrategy|null);
+
+ /** TrainingOptions initialLearnRate */
+ initialLearnRate?: (number|null);
+
+ /** TrainingOptions labelClassWeights */
+ labelClassWeights?: ({ [k: string]: number }|null);
+
+ /** TrainingOptions userColumn */
+ userColumn?: (string|null);
+
+ /** TrainingOptions itemColumn */
+ itemColumn?: (string|null);
+
+ /** TrainingOptions distanceType */
+ distanceType?: (google.cloud.bigquery.v2.Model.DistanceType|keyof typeof google.cloud.bigquery.v2.Model.DistanceType|null);
+
+ /** TrainingOptions numClusters */
+ numClusters?: (number|Long|string|null);
+
+ /** TrainingOptions modelUri */
+ modelUri?: (string|null);
+
+ /** TrainingOptions optimizationStrategy */
+ optimizationStrategy?: (google.cloud.bigquery.v2.Model.OptimizationStrategy|keyof typeof google.cloud.bigquery.v2.Model.OptimizationStrategy|null);
+
+ /** TrainingOptions hiddenUnits */
+ hiddenUnits?: ((number|Long|string)[]|null);
+
+ /** TrainingOptions batchSize */
+ batchSize?: (number|Long|string|null);
+
+ /** TrainingOptions dropout */
+ dropout?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions maxTreeDepth */
+ maxTreeDepth?: (number|Long|string|null);
+
+ /** TrainingOptions subsample */
+ subsample?: (number|null);
+
+ /** TrainingOptions minSplitLoss */
+ minSplitLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions boosterType */
+ boosterType?: (google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.BoosterType|keyof typeof google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.BoosterType|null);
+
+ /** TrainingOptions numParallelTree */
+ numParallelTree?: (google.protobuf.IInt64Value|null);
+
+ /** TrainingOptions dartNormalizeType */
+ dartNormalizeType?: (google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.DartNormalizeType|keyof typeof google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.DartNormalizeType|null);
+
+ /** TrainingOptions treeMethod */
+ treeMethod?: (google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.TreeMethod|keyof typeof google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.TreeMethod|null);
+
+ /** TrainingOptions minTreeChildWeight */
+ minTreeChildWeight?: (google.protobuf.IInt64Value|null);
+
+ /** TrainingOptions colsampleBytree */
+ colsampleBytree?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions colsampleBylevel */
+ colsampleBylevel?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions colsampleBynode */
+ colsampleBynode?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions numFactors */
+ numFactors?: (number|Long|string|null);
+
+ /** TrainingOptions feedbackType */
+ feedbackType?: (google.cloud.bigquery.v2.Model.FeedbackType|keyof typeof google.cloud.bigquery.v2.Model.FeedbackType|null);
+
+ /** TrainingOptions walsAlpha */
+ walsAlpha?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions kmeansInitializationMethod */
+ kmeansInitializationMethod?: (google.cloud.bigquery.v2.Model.KmeansEnums.KmeansInitializationMethod|keyof typeof google.cloud.bigquery.v2.Model.KmeansEnums.KmeansInitializationMethod|null);
+
+ /** TrainingOptions kmeansInitializationColumn */
+ kmeansInitializationColumn?: (string|null);
+
+ /** TrainingOptions timeSeriesTimestampColumn */
+ timeSeriesTimestampColumn?: (string|null);
+
+ /** TrainingOptions timeSeriesDataColumn */
+ timeSeriesDataColumn?: (string|null);
+
+ /** TrainingOptions autoArima */
+ autoArima?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions nonSeasonalOrder */
+ nonSeasonalOrder?: (google.cloud.bigquery.v2.Model.IArimaOrder|null);
+
+ /** TrainingOptions dataFrequency */
+ dataFrequency?: (google.cloud.bigquery.v2.Model.DataFrequency|keyof typeof google.cloud.bigquery.v2.Model.DataFrequency|null);
+
+ /** TrainingOptions calculatePValues */
+ calculatePValues?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions includeDrift */
+ includeDrift?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions holidayRegion */
+ holidayRegion?: (google.cloud.bigquery.v2.Model.HolidayRegion|keyof typeof google.cloud.bigquery.v2.Model.HolidayRegion|null);
+
+ /** TrainingOptions holidayRegions */
+ holidayRegions?: (google.cloud.bigquery.v2.Model.HolidayRegion[]|null);
+
+ /** TrainingOptions timeSeriesIdColumn */
+ timeSeriesIdColumn?: (string|null);
+
+ /** TrainingOptions timeSeriesIdColumns */
+ timeSeriesIdColumns?: (string[]|null);
+
+ /** TrainingOptions forecastLimitLowerBound */
+ forecastLimitLowerBound?: (number|null);
+
+ /** TrainingOptions forecastLimitUpperBound */
+ forecastLimitUpperBound?: (number|null);
+
+ /** TrainingOptions horizon */
+ horizon?: (number|Long|string|null);
+
+ /** TrainingOptions autoArimaMaxOrder */
+ autoArimaMaxOrder?: (number|Long|string|null);
+
+ /** TrainingOptions autoArimaMinOrder */
+ autoArimaMinOrder?: (number|Long|string|null);
+
+ /** TrainingOptions numTrials */
+ numTrials?: (number|Long|string|null);
+
+ /** TrainingOptions maxParallelTrials */
+ maxParallelTrials?: (number|Long|string|null);
+
+ /** TrainingOptions hparamTuningObjectives */
+ hparamTuningObjectives?: (google.cloud.bigquery.v2.Model.HparamTuningEnums.HparamTuningObjective[]|null);
+
+ /** TrainingOptions decomposeTimeSeries */
+ decomposeTimeSeries?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions cleanSpikesAndDips */
+ cleanSpikesAndDips?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions adjustStepChanges */
+ adjustStepChanges?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions enableGlobalExplain */
+ enableGlobalExplain?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions sampledShapleyNumPaths */
+ sampledShapleyNumPaths?: (number|Long|string|null);
+
+ /** TrainingOptions integratedGradientsNumSteps */
+ integratedGradientsNumSteps?: (number|Long|string|null);
+
+ /** TrainingOptions categoryEncodingMethod */
+ categoryEncodingMethod?: (google.cloud.bigquery.v2.Model.CategoryEncodingMethod.EncodingMethod|keyof typeof google.cloud.bigquery.v2.Model.CategoryEncodingMethod.EncodingMethod|null);
+
+ /** TrainingOptions tfVersion */
+ tfVersion?: (string|null);
+
+ /** TrainingOptions colorSpace */
+ colorSpace?: (google.cloud.bigquery.v2.Model.ColorSpace|keyof typeof google.cloud.bigquery.v2.Model.ColorSpace|null);
+
+ /** TrainingOptions instanceWeightColumn */
+ instanceWeightColumn?: (string|null);
+
+ /** TrainingOptions trendSmoothingWindowSize */
+ trendSmoothingWindowSize?: (number|Long|string|null);
+
+ /** TrainingOptions timeSeriesLengthFraction */
+ timeSeriesLengthFraction?: (number|null);
+
+ /** TrainingOptions minTimeSeriesLength */
+ minTimeSeriesLength?: (number|Long|string|null);
+
+ /** TrainingOptions maxTimeSeriesLength */
+ maxTimeSeriesLength?: (number|Long|string|null);
+
+ /** TrainingOptions xgboostVersion */
+ xgboostVersion?: (string|null);
+
+ /** TrainingOptions approxGlobalFeatureContrib */
+ approxGlobalFeatureContrib?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions fitIntercept */
+ fitIntercept?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions numPrincipalComponents */
+ numPrincipalComponents?: (number|Long|string|null);
+
+ /** TrainingOptions pcaExplainedVarianceRatio */
+ pcaExplainedVarianceRatio?: (number|null);
+
+ /** TrainingOptions scaleFeatures */
+ scaleFeatures?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions pcaSolver */
+ pcaSolver?: (google.cloud.bigquery.v2.Model.PcaSolverOptionEnums.PcaSolver|keyof typeof google.cloud.bigquery.v2.Model.PcaSolverOptionEnums.PcaSolver|null);
+
+ /** TrainingOptions autoClassWeights */
+ autoClassWeights?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions activationFn */
+ activationFn?: (string|null);
+
+ /** TrainingOptions optimizer */
+ optimizer?: (string|null);
+
+ /** TrainingOptions budgetHours */
+ budgetHours?: (number|null);
+
+ /** TrainingOptions standardizeFeatures */
+ standardizeFeatures?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions l1RegActivation */
+ l1RegActivation?: (number|null);
+
+ /** TrainingOptions modelRegistry */
+ modelRegistry?: (google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums.ModelRegistry|keyof typeof google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums.ModelRegistry|null);
+
+ /** TrainingOptions vertexAiModelVersionAliases */
+ vertexAiModelVersionAliases?: (string[]|null);
+
+ /** TrainingOptions dimensionIdColumns */
+ dimensionIdColumns?: (string[]|null);
+
+ /** TrainingOptions contributionMetric */
+ contributionMetric?: (string|null);
+
+ /** TrainingOptions isTestColumn */
+ isTestColumn?: (string|null);
+
+ /** TrainingOptions minAprioriSupport */
+ minAprioriSupport?: (number|null);
+
+ /** TrainingOptions huggingFaceModelId */
+ huggingFaceModelId?: (string|null);
+
+ /** TrainingOptions modelGardenModelName */
+ modelGardenModelName?: (string|null);
+
+ /** TrainingOptions endpointIdleTtl */
+ endpointIdleTtl?: (google.protobuf.IDuration|null);
+
+ /** TrainingOptions machineType */
+ machineType?: (string|null);
+
+ /** TrainingOptions minReplicaCount */
+ minReplicaCount?: (number|Long|string|null);
+
+ /** TrainingOptions maxReplicaCount */
+ maxReplicaCount?: (number|Long|string|null);
+
+ /** TrainingOptions reservationAffinityType */
+ reservationAffinityType?: (google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions.ReservationAffinityType|keyof typeof google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions.ReservationAffinityType|null);
+
+ /** TrainingOptions reservationAffinityKey */
+ reservationAffinityKey?: (string|null);
+
+ /** TrainingOptions reservationAffinityValues */
+ reservationAffinityValues?: (string[]|null);
+ }
+
+ /** Represents a TrainingOptions. */
+ class TrainingOptions implements ITrainingOptions {
+
+ /**
+ * Constructs a new TrainingOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.TrainingRun.ITrainingOptions);
+
+ /** TrainingOptions maxIterations. */
+ public maxIterations: (number|Long|string);
+
+ /** TrainingOptions lossType. */
+ public lossType: (google.cloud.bigquery.v2.Model.LossType|keyof typeof google.cloud.bigquery.v2.Model.LossType);
+
+ /** TrainingOptions learnRate. */
+ public learnRate: number;
+
+ /** TrainingOptions l1Regularization. */
+ public l1Regularization?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions l2Regularization. */
+ public l2Regularization?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions minRelativeProgress. */
+ public minRelativeProgress?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions warmStart. */
+ public warmStart?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions earlyStop. */
+ public earlyStop?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions inputLabelColumns. */
+ public inputLabelColumns: string[];
+
+ /** TrainingOptions dataSplitMethod. */
+ public dataSplitMethod: (google.cloud.bigquery.v2.Model.DataSplitMethod|keyof typeof google.cloud.bigquery.v2.Model.DataSplitMethod);
+
+ /** TrainingOptions dataSplitEvalFraction. */
+ public dataSplitEvalFraction: number;
+
+ /** TrainingOptions dataSplitColumn. */
+ public dataSplitColumn: string;
+
+ /** TrainingOptions learnRateStrategy. */
+ public learnRateStrategy: (google.cloud.bigquery.v2.Model.LearnRateStrategy|keyof typeof google.cloud.bigquery.v2.Model.LearnRateStrategy);
+
+ /** TrainingOptions initialLearnRate. */
+ public initialLearnRate: number;
+
+ /** TrainingOptions labelClassWeights. */
+ public labelClassWeights: { [k: string]: number };
+
+ /** TrainingOptions userColumn. */
+ public userColumn: string;
+
+ /** TrainingOptions itemColumn. */
+ public itemColumn: string;
+
+ /** TrainingOptions distanceType. */
+ public distanceType: (google.cloud.bigquery.v2.Model.DistanceType|keyof typeof google.cloud.bigquery.v2.Model.DistanceType);
+
+ /** TrainingOptions numClusters. */
+ public numClusters: (number|Long|string);
+
+ /** TrainingOptions modelUri. */
+ public modelUri: string;
+
+ /** TrainingOptions optimizationStrategy. */
+ public optimizationStrategy: (google.cloud.bigquery.v2.Model.OptimizationStrategy|keyof typeof google.cloud.bigquery.v2.Model.OptimizationStrategy);
+
+ /** TrainingOptions hiddenUnits. */
+ public hiddenUnits: (number|Long|string)[];
+
+ /** TrainingOptions batchSize. */
+ public batchSize: (number|Long|string);
+
+ /** TrainingOptions dropout. */
+ public dropout?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions maxTreeDepth. */
+ public maxTreeDepth: (number|Long|string);
+
+ /** TrainingOptions subsample. */
+ public subsample: number;
+
+ /** TrainingOptions minSplitLoss. */
+ public minSplitLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions boosterType. */
+ public boosterType: (google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.BoosterType|keyof typeof google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.BoosterType);
+
+ /** TrainingOptions numParallelTree. */
+ public numParallelTree?: (google.protobuf.IInt64Value|null);
+
+ /** TrainingOptions dartNormalizeType. */
+ public dartNormalizeType: (google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.DartNormalizeType|keyof typeof google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.DartNormalizeType);
+
+ /** TrainingOptions treeMethod. */
+ public treeMethod: (google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.TreeMethod|keyof typeof google.cloud.bigquery.v2.Model.BoostedTreeOptionEnums.TreeMethod);
+
+ /** TrainingOptions minTreeChildWeight. */
+ public minTreeChildWeight?: (google.protobuf.IInt64Value|null);
+
+ /** TrainingOptions colsampleBytree. */
+ public colsampleBytree?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions colsampleBylevel. */
+ public colsampleBylevel?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions colsampleBynode. */
+ public colsampleBynode?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions numFactors. */
+ public numFactors: (number|Long|string);
+
+ /** TrainingOptions feedbackType. */
+ public feedbackType: (google.cloud.bigquery.v2.Model.FeedbackType|keyof typeof google.cloud.bigquery.v2.Model.FeedbackType);
+
+ /** TrainingOptions walsAlpha. */
+ public walsAlpha?: (google.protobuf.IDoubleValue|null);
+
+ /** TrainingOptions kmeansInitializationMethod. */
+ public kmeansInitializationMethod: (google.cloud.bigquery.v2.Model.KmeansEnums.KmeansInitializationMethod|keyof typeof google.cloud.bigquery.v2.Model.KmeansEnums.KmeansInitializationMethod);
+
+ /** TrainingOptions kmeansInitializationColumn. */
+ public kmeansInitializationColumn: string;
+
+ /** TrainingOptions timeSeriesTimestampColumn. */
+ public timeSeriesTimestampColumn: string;
+
+ /** TrainingOptions timeSeriesDataColumn. */
+ public timeSeriesDataColumn: string;
+
+ /** TrainingOptions autoArima. */
+ public autoArima?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions nonSeasonalOrder. */
+ public nonSeasonalOrder?: (google.cloud.bigquery.v2.Model.IArimaOrder|null);
+
+ /** TrainingOptions dataFrequency. */
+ public dataFrequency: (google.cloud.bigquery.v2.Model.DataFrequency|keyof typeof google.cloud.bigquery.v2.Model.DataFrequency);
+
+ /** TrainingOptions calculatePValues. */
+ public calculatePValues?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions includeDrift. */
+ public includeDrift?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions holidayRegion. */
+ public holidayRegion: (google.cloud.bigquery.v2.Model.HolidayRegion|keyof typeof google.cloud.bigquery.v2.Model.HolidayRegion);
+
+ /** TrainingOptions holidayRegions. */
+ public holidayRegions: google.cloud.bigquery.v2.Model.HolidayRegion[];
+
+ /** TrainingOptions timeSeriesIdColumn. */
+ public timeSeriesIdColumn: string;
+
+ /** TrainingOptions timeSeriesIdColumns. */
+ public timeSeriesIdColumns: string[];
+
+ /** TrainingOptions forecastLimitLowerBound. */
+ public forecastLimitLowerBound: number;
+
+ /** TrainingOptions forecastLimitUpperBound. */
+ public forecastLimitUpperBound: number;
+
+ /** TrainingOptions horizon. */
+ public horizon: (number|Long|string);
+
+ /** TrainingOptions autoArimaMaxOrder. */
+ public autoArimaMaxOrder: (number|Long|string);
+
+ /** TrainingOptions autoArimaMinOrder. */
+ public autoArimaMinOrder: (number|Long|string);
+
+ /** TrainingOptions numTrials. */
+ public numTrials: (number|Long|string);
+
+ /** TrainingOptions maxParallelTrials. */
+ public maxParallelTrials: (number|Long|string);
+
+ /** TrainingOptions hparamTuningObjectives. */
+ public hparamTuningObjectives: google.cloud.bigquery.v2.Model.HparamTuningEnums.HparamTuningObjective[];
+
+ /** TrainingOptions decomposeTimeSeries. */
+ public decomposeTimeSeries?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions cleanSpikesAndDips. */
+ public cleanSpikesAndDips?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions adjustStepChanges. */
+ public adjustStepChanges?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions enableGlobalExplain. */
+ public enableGlobalExplain?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions sampledShapleyNumPaths. */
+ public sampledShapleyNumPaths: (number|Long|string);
+
+ /** TrainingOptions integratedGradientsNumSteps. */
+ public integratedGradientsNumSteps: (number|Long|string);
+
+ /** TrainingOptions categoryEncodingMethod. */
+ public categoryEncodingMethod: (google.cloud.bigquery.v2.Model.CategoryEncodingMethod.EncodingMethod|keyof typeof google.cloud.bigquery.v2.Model.CategoryEncodingMethod.EncodingMethod);
+
+ /** TrainingOptions tfVersion. */
+ public tfVersion: string;
+
+ /** TrainingOptions colorSpace. */
+ public colorSpace: (google.cloud.bigquery.v2.Model.ColorSpace|keyof typeof google.cloud.bigquery.v2.Model.ColorSpace);
+
+ /** TrainingOptions instanceWeightColumn. */
+ public instanceWeightColumn: string;
+
+ /** TrainingOptions trendSmoothingWindowSize. */
+ public trendSmoothingWindowSize: (number|Long|string);
+
+ /** TrainingOptions timeSeriesLengthFraction. */
+ public timeSeriesLengthFraction: number;
+
+ /** TrainingOptions minTimeSeriesLength. */
+ public minTimeSeriesLength: (number|Long|string);
+
+ /** TrainingOptions maxTimeSeriesLength. */
+ public maxTimeSeriesLength: (number|Long|string);
+
+ /** TrainingOptions xgboostVersion. */
+ public xgboostVersion: string;
+
+ /** TrainingOptions approxGlobalFeatureContrib. */
+ public approxGlobalFeatureContrib?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions fitIntercept. */
+ public fitIntercept?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions numPrincipalComponents. */
+ public numPrincipalComponents: (number|Long|string);
+
+ /** TrainingOptions pcaExplainedVarianceRatio. */
+ public pcaExplainedVarianceRatio: number;
+
+ /** TrainingOptions scaleFeatures. */
+ public scaleFeatures?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions pcaSolver. */
+ public pcaSolver: (google.cloud.bigquery.v2.Model.PcaSolverOptionEnums.PcaSolver|keyof typeof google.cloud.bigquery.v2.Model.PcaSolverOptionEnums.PcaSolver);
+
+ /** TrainingOptions autoClassWeights. */
+ public autoClassWeights?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions activationFn. */
+ public activationFn: string;
+
+ /** TrainingOptions optimizer. */
+ public optimizer: string;
+
+ /** TrainingOptions budgetHours. */
+ public budgetHours: number;
+
+ /** TrainingOptions standardizeFeatures. */
+ public standardizeFeatures?: (google.protobuf.IBoolValue|null);
+
+ /** TrainingOptions l1RegActivation. */
+ public l1RegActivation: number;
+
+ /** TrainingOptions modelRegistry. */
+ public modelRegistry: (google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums.ModelRegistry|keyof typeof google.cloud.bigquery.v2.Model.ModelRegistryOptionEnums.ModelRegistry);
+
+ /** TrainingOptions vertexAiModelVersionAliases. */
+ public vertexAiModelVersionAliases: string[];
+
+ /** TrainingOptions dimensionIdColumns. */
+ public dimensionIdColumns: string[];
+
+ /** TrainingOptions contributionMetric. */
+ public contributionMetric?: (string|null);
+
+ /** TrainingOptions isTestColumn. */
+ public isTestColumn?: (string|null);
+
+ /** TrainingOptions minAprioriSupport. */
+ public minAprioriSupport?: (number|null);
+
+ /** TrainingOptions huggingFaceModelId. */
+ public huggingFaceModelId?: (string|null);
+
+ /** TrainingOptions modelGardenModelName. */
+ public modelGardenModelName?: (string|null);
+
+ /** TrainingOptions endpointIdleTtl. */
+ public endpointIdleTtl?: (google.protobuf.IDuration|null);
+
+ /** TrainingOptions machineType. */
+ public machineType?: (string|null);
+
+ /** TrainingOptions minReplicaCount. */
+ public minReplicaCount?: (number|Long|string|null);
+
+ /** TrainingOptions maxReplicaCount. */
+ public maxReplicaCount?: (number|Long|string|null);
+
+ /** TrainingOptions reservationAffinityType. */
+ public reservationAffinityType?: (google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions.ReservationAffinityType|keyof typeof google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions.ReservationAffinityType|null);
+
+ /** TrainingOptions reservationAffinityKey. */
+ public reservationAffinityKey?: (string|null);
+
+ /** TrainingOptions reservationAffinityValues. */
+ public reservationAffinityValues: string[];
+
+ /** TrainingOptions externalModelId. */
+ public externalModelId?: ("huggingFaceModelId"|"modelGardenModelName");
+
+ /**
+ * Creates a new TrainingOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TrainingOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.TrainingRun.ITrainingOptions): google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions;
+
+ /**
+ * Encodes the specified TrainingOptions message. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions.verify|verify} messages.
+ * @param message TrainingOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.TrainingRun.ITrainingOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TrainingOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions.verify|verify} messages.
+ * @param message TrainingOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.TrainingRun.ITrainingOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TrainingOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TrainingOptions
+ * @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.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions;
+
+ /**
+ * Decodes a TrainingOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TrainingOptions
+ * @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.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions;
+
+ /**
+ * Verifies a TrainingOptions 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 TrainingOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TrainingOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions;
+
+ /**
+ * Creates a plain object from a TrainingOptions message. Also converts values to other types if specified.
+ * @param message TrainingOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.TrainingRun.TrainingOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TrainingOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TrainingOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TrainingOptions {
+
+ /** ReservationAffinityType enum. */
+ enum ReservationAffinityType {
+ RESERVATION_AFFINITY_TYPE_UNSPECIFIED = 0,
+ NO_RESERVATION = 1,
+ ANY_RESERVATION = 2,
+ SPECIFIC_RESERVATION = 3
+ }
+ }
+
+ /** Properties of an IterationResult. */
+ interface IIterationResult {
+
+ /** IterationResult index */
+ index?: (google.protobuf.IInt32Value|null);
+
+ /** IterationResult durationMs */
+ durationMs?: (google.protobuf.IInt64Value|null);
+
+ /** IterationResult trainingLoss */
+ trainingLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** IterationResult evalLoss */
+ evalLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** IterationResult learnRate */
+ learnRate?: (number|null);
+
+ /** IterationResult clusterInfos */
+ clusterInfos?: (google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IClusterInfo[]|null);
+
+ /** IterationResult arimaResult */
+ arimaResult?: (google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IArimaResult|null);
+
+ /** IterationResult principalComponentInfos */
+ principalComponentInfos?: (google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IPrincipalComponentInfo[]|null);
+ }
+
+ /** Represents an IterationResult. */
+ class IterationResult implements IIterationResult {
+
+ /**
+ * Constructs a new IterationResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IIterationResult);
+
+ /** IterationResult index. */
+ public index?: (google.protobuf.IInt32Value|null);
+
+ /** IterationResult durationMs. */
+ public durationMs?: (google.protobuf.IInt64Value|null);
+
+ /** IterationResult trainingLoss. */
+ public trainingLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** IterationResult evalLoss. */
+ public evalLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** IterationResult learnRate. */
+ public learnRate: number;
+
+ /** IterationResult clusterInfos. */
+ public clusterInfos: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IClusterInfo[];
+
+ /** IterationResult arimaResult. */
+ public arimaResult?: (google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IArimaResult|null);
+
+ /** IterationResult principalComponentInfos. */
+ public principalComponentInfos: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IPrincipalComponentInfo[];
+
+ /**
+ * Creates a new IterationResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IterationResult instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IIterationResult): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult;
+
+ /**
+ * Encodes the specified IterationResult message. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.verify|verify} messages.
+ * @param message IterationResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.TrainingRun.IIterationResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IterationResult message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.verify|verify} messages.
+ * @param message IterationResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.TrainingRun.IIterationResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IterationResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IterationResult
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult;
+
+ /**
+ * Decodes an IterationResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IterationResult
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult;
+
+ /**
+ * Verifies an IterationResult 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 IterationResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IterationResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult;
+
+ /**
+ * Creates a plain object from an IterationResult message. Also converts values to other types if specified.
+ * @param message IterationResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IterationResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IterationResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IterationResult {
+
+ /** Properties of a ClusterInfo. */
+ interface IClusterInfo {
+
+ /** ClusterInfo centroidId */
+ centroidId?: (number|Long|string|null);
+
+ /** ClusterInfo clusterRadius */
+ clusterRadius?: (google.protobuf.IDoubleValue|null);
+
+ /** ClusterInfo clusterSize */
+ clusterSize?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents a ClusterInfo. */
+ class ClusterInfo implements IClusterInfo {
+
+ /**
+ * Constructs a new ClusterInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IClusterInfo);
+
+ /** ClusterInfo centroidId. */
+ public centroidId: (number|Long|string);
+
+ /** ClusterInfo clusterRadius. */
+ public clusterRadius?: (google.protobuf.IDoubleValue|null);
+
+ /** ClusterInfo clusterSize. */
+ public clusterSize?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new ClusterInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClusterInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IClusterInfo): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ClusterInfo;
+
+ /**
+ * Encodes the specified ClusterInfo message. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ClusterInfo.verify|verify} messages.
+ * @param message ClusterInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IClusterInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClusterInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ClusterInfo.verify|verify} messages.
+ * @param message ClusterInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IClusterInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClusterInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClusterInfo
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ClusterInfo;
+
+ /**
+ * Decodes a ClusterInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClusterInfo
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ClusterInfo;
+
+ /**
+ * Verifies a ClusterInfo 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 ClusterInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClusterInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ClusterInfo;
+
+ /**
+ * Creates a plain object from a ClusterInfo message. Also converts values to other types if specified.
+ * @param message ClusterInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ClusterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClusterInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClusterInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ArimaResult. */
+ interface IArimaResult {
+
+ /** ArimaResult arimaModelInfo */
+ arimaModelInfo?: (google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaModelInfo[]|null);
+
+ /** ArimaResult seasonalPeriods */
+ seasonalPeriods?: (google.cloud.bigquery.v2.Model.SeasonalPeriod.SeasonalPeriodType[]|null);
+ }
+
+ /** Represents an ArimaResult. */
+ class ArimaResult implements IArimaResult {
+
+ /**
+ * Constructs a new ArimaResult.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IArimaResult);
+
+ /** ArimaResult arimaModelInfo. */
+ public arimaModelInfo: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaModelInfo[];
+
+ /** ArimaResult seasonalPeriods. */
+ public seasonalPeriods: google.cloud.bigquery.v2.Model.SeasonalPeriod.SeasonalPeriodType[];
+
+ /**
+ * Creates a new ArimaResult instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArimaResult instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IArimaResult): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult;
+
+ /**
+ * Encodes the specified ArimaResult message. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.verify|verify} messages.
+ * @param message ArimaResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IArimaResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArimaResult message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.verify|verify} messages.
+ * @param message ArimaResult message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IArimaResult, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArimaResult message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArimaResult
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult;
+
+ /**
+ * Decodes an ArimaResult message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArimaResult
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult;
+
+ /**
+ * Verifies an ArimaResult 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 ArimaResult message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArimaResult
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult;
+
+ /**
+ * Creates a plain object from an ArimaResult message. Also converts values to other types if specified.
+ * @param message ArimaResult
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArimaResult to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArimaResult
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ArimaResult {
+
+ /** Properties of an ArimaCoefficients. */
+ interface IArimaCoefficients {
+
+ /** ArimaCoefficients autoRegressiveCoefficients */
+ autoRegressiveCoefficients?: (number[]|null);
+
+ /** ArimaCoefficients movingAverageCoefficients */
+ movingAverageCoefficients?: (number[]|null);
+
+ /** ArimaCoefficients interceptCoefficient */
+ interceptCoefficient?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents an ArimaCoefficients. */
+ class ArimaCoefficients implements IArimaCoefficients {
+
+ /**
+ * Constructs a new ArimaCoefficients.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaCoefficients);
+
+ /** ArimaCoefficients autoRegressiveCoefficients. */
+ public autoRegressiveCoefficients: number[];
+
+ /** ArimaCoefficients movingAverageCoefficients. */
+ public movingAverageCoefficients: number[];
+
+ /** ArimaCoefficients interceptCoefficient. */
+ public interceptCoefficient?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new ArimaCoefficients instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArimaCoefficients instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaCoefficients): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaCoefficients;
+
+ /**
+ * Encodes the specified ArimaCoefficients message. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaCoefficients.verify|verify} messages.
+ * @param message ArimaCoefficients message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaCoefficients, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArimaCoefficients message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaCoefficients.verify|verify} messages.
+ * @param message ArimaCoefficients message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaCoefficients, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArimaCoefficients message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArimaCoefficients
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaCoefficients;
+
+ /**
+ * Decodes an ArimaCoefficients message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArimaCoefficients
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaCoefficients;
+
+ /**
+ * Verifies an ArimaCoefficients 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 ArimaCoefficients message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArimaCoefficients
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaCoefficients;
+
+ /**
+ * Creates a plain object from an ArimaCoefficients message. Also converts values to other types if specified.
+ * @param message ArimaCoefficients
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaCoefficients, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArimaCoefficients to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArimaCoefficients
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ArimaModelInfo. */
+ interface IArimaModelInfo {
+
+ /** ArimaModelInfo nonSeasonalOrder */
+ nonSeasonalOrder?: (google.cloud.bigquery.v2.Model.IArimaOrder|null);
+
+ /** ArimaModelInfo arimaCoefficients */
+ arimaCoefficients?: (google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaCoefficients|null);
+
+ /** ArimaModelInfo arimaFittingMetrics */
+ arimaFittingMetrics?: (google.cloud.bigquery.v2.Model.IArimaFittingMetrics|null);
+
+ /** ArimaModelInfo hasDrift */
+ hasDrift?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaModelInfo timeSeriesId */
+ timeSeriesId?: (string|null);
+
+ /** ArimaModelInfo timeSeriesIds */
+ timeSeriesIds?: (string[]|null);
+
+ /** ArimaModelInfo seasonalPeriods */
+ seasonalPeriods?: (google.cloud.bigquery.v2.Model.SeasonalPeriod.SeasonalPeriodType[]|null);
+
+ /** ArimaModelInfo hasHolidayEffect */
+ hasHolidayEffect?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaModelInfo hasSpikesAndDips */
+ hasSpikesAndDips?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaModelInfo hasStepChanges */
+ hasStepChanges?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents an ArimaModelInfo. */
+ class ArimaModelInfo implements IArimaModelInfo {
+
+ /**
+ * Constructs a new ArimaModelInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaModelInfo);
+
+ /** ArimaModelInfo nonSeasonalOrder. */
+ public nonSeasonalOrder?: (google.cloud.bigquery.v2.Model.IArimaOrder|null);
+
+ /** ArimaModelInfo arimaCoefficients. */
+ public arimaCoefficients?: (google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaCoefficients|null);
+
+ /** ArimaModelInfo arimaFittingMetrics. */
+ public arimaFittingMetrics?: (google.cloud.bigquery.v2.Model.IArimaFittingMetrics|null);
+
+ /** ArimaModelInfo hasDrift. */
+ public hasDrift?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaModelInfo timeSeriesId. */
+ public timeSeriesId: string;
+
+ /** ArimaModelInfo timeSeriesIds. */
+ public timeSeriesIds: string[];
+
+ /** ArimaModelInfo seasonalPeriods. */
+ public seasonalPeriods: google.cloud.bigquery.v2.Model.SeasonalPeriod.SeasonalPeriodType[];
+
+ /** ArimaModelInfo hasHolidayEffect. */
+ public hasHolidayEffect?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaModelInfo hasSpikesAndDips. */
+ public hasSpikesAndDips?: (google.protobuf.IBoolValue|null);
+
+ /** ArimaModelInfo hasStepChanges. */
+ public hasStepChanges?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new ArimaModelInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ArimaModelInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaModelInfo): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaModelInfo;
+
+ /**
+ * Encodes the specified ArimaModelInfo message. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaModelInfo.verify|verify} messages.
+ * @param message ArimaModelInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaModelInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ArimaModelInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaModelInfo.verify|verify} messages.
+ * @param message ArimaModelInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.IArimaModelInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ArimaModelInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ArimaModelInfo
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaModelInfo;
+
+ /**
+ * Decodes an ArimaModelInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ArimaModelInfo
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaModelInfo;
+
+ /**
+ * Verifies an ArimaModelInfo 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 ArimaModelInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ArimaModelInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaModelInfo;
+
+ /**
+ * Creates a plain object from an ArimaModelInfo message. Also converts values to other types if specified.
+ * @param message ArimaModelInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.ArimaResult.ArimaModelInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ArimaModelInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ArimaModelInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a PrincipalComponentInfo. */
+ interface IPrincipalComponentInfo {
+
+ /** PrincipalComponentInfo principalComponentId */
+ principalComponentId?: (google.protobuf.IInt64Value|null);
+
+ /** PrincipalComponentInfo explainedVariance */
+ explainedVariance?: (google.protobuf.IDoubleValue|null);
+
+ /** PrincipalComponentInfo explainedVarianceRatio */
+ explainedVarianceRatio?: (google.protobuf.IDoubleValue|null);
+
+ /** PrincipalComponentInfo cumulativeExplainedVarianceRatio */
+ cumulativeExplainedVarianceRatio?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents a PrincipalComponentInfo. */
+ class PrincipalComponentInfo implements IPrincipalComponentInfo {
+
+ /**
+ * Constructs a new PrincipalComponentInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IPrincipalComponentInfo);
+
+ /** PrincipalComponentInfo principalComponentId. */
+ public principalComponentId?: (google.protobuf.IInt64Value|null);
+
+ /** PrincipalComponentInfo explainedVariance. */
+ public explainedVariance?: (google.protobuf.IDoubleValue|null);
+
+ /** PrincipalComponentInfo explainedVarianceRatio. */
+ public explainedVarianceRatio?: (google.protobuf.IDoubleValue|null);
+
+ /** PrincipalComponentInfo cumulativeExplainedVarianceRatio. */
+ public cumulativeExplainedVarianceRatio?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new PrincipalComponentInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrincipalComponentInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IPrincipalComponentInfo): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.PrincipalComponentInfo;
+
+ /**
+ * Encodes the specified PrincipalComponentInfo message. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.PrincipalComponentInfo.verify|verify} messages.
+ * @param message PrincipalComponentInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IPrincipalComponentInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrincipalComponentInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.PrincipalComponentInfo.verify|verify} messages.
+ * @param message PrincipalComponentInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.IPrincipalComponentInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrincipalComponentInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrincipalComponentInfo
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.PrincipalComponentInfo;
+
+ /**
+ * Decodes a PrincipalComponentInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrincipalComponentInfo
+ * @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.cloud.bigquery.v2.Model.TrainingRun.IterationResult.PrincipalComponentInfo;
+
+ /**
+ * Verifies a PrincipalComponentInfo 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 PrincipalComponentInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrincipalComponentInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.PrincipalComponentInfo;
+
+ /**
+ * Creates a plain object from a PrincipalComponentInfo message. Also converts values to other types if specified.
+ * @param message PrincipalComponentInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.TrainingRun.IterationResult.PrincipalComponentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrincipalComponentInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrincipalComponentInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a DoubleHparamSearchSpace. */
+ interface IDoubleHparamSearchSpace {
+
+ /** DoubleHparamSearchSpace range */
+ range?: (google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleRange|null);
+
+ /** DoubleHparamSearchSpace candidates */
+ candidates?: (google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleCandidates|null);
+ }
+
+ /** Represents a DoubleHparamSearchSpace. */
+ class DoubleHparamSearchSpace implements IDoubleHparamSearchSpace {
+
+ /**
+ * Constructs a new DoubleHparamSearchSpace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace);
+
+ /** DoubleHparamSearchSpace range. */
+ public range?: (google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleRange|null);
+
+ /** DoubleHparamSearchSpace candidates. */
+ public candidates?: (google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleCandidates|null);
+
+ /** DoubleHparamSearchSpace searchSpace. */
+ public searchSpace?: ("range"|"candidates");
+
+ /**
+ * Creates a new DoubleHparamSearchSpace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleHparamSearchSpace instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace): google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace;
+
+ /**
+ * Encodes the specified DoubleHparamSearchSpace message. Does not implicitly {@link google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.verify|verify} messages.
+ * @param message DoubleHparamSearchSpace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleHparamSearchSpace message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.verify|verify} messages.
+ * @param message DoubleHparamSearchSpace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleHparamSearchSpace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleHparamSearchSpace
+ * @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.cloud.bigquery.v2.Model.DoubleHparamSearchSpace;
+
+ /**
+ * Decodes a DoubleHparamSearchSpace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleHparamSearchSpace
+ * @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.cloud.bigquery.v2.Model.DoubleHparamSearchSpace;
+
+ /**
+ * Verifies a DoubleHparamSearchSpace 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 DoubleHparamSearchSpace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleHparamSearchSpace
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace;
+
+ /**
+ * Creates a plain object from a DoubleHparamSearchSpace message. Also converts values to other types if specified.
+ * @param message DoubleHparamSearchSpace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleHparamSearchSpace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleHparamSearchSpace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DoubleHparamSearchSpace {
+
+ /** Properties of a DoubleRange. */
+ interface IDoubleRange {
+
+ /** DoubleRange min */
+ min?: (google.protobuf.IDoubleValue|null);
+
+ /** DoubleRange max */
+ max?: (google.protobuf.IDoubleValue|null);
+ }
+
+ /** Represents a DoubleRange. */
+ class DoubleRange implements IDoubleRange {
+
+ /**
+ * Constructs a new DoubleRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleRange);
+
+ /** DoubleRange min. */
+ public min?: (google.protobuf.IDoubleValue|null);
+
+ /** DoubleRange max. */
+ public max?: (google.protobuf.IDoubleValue|null);
+
+ /**
+ * Creates a new DoubleRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleRange instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleRange): google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleRange;
+
+ /**
+ * Encodes the specified DoubleRange message. Does not implicitly {@link google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleRange.verify|verify} messages.
+ * @param message DoubleRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleRange message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleRange.verify|verify} messages.
+ * @param message DoubleRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleRange
+ * @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.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleRange;
+
+ /**
+ * Decodes a DoubleRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleRange
+ * @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.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleRange;
+
+ /**
+ * Verifies a DoubleRange 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 DoubleRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleRange;
+
+ /**
+ * Creates a plain object from a DoubleRange message. Also converts values to other types if specified.
+ * @param message DoubleRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DoubleCandidates. */
+ interface IDoubleCandidates {
+
+ /** DoubleCandidates candidates */
+ candidates?: (google.protobuf.IDoubleValue[]|null);
+ }
+
+ /** Represents a DoubleCandidates. */
+ class DoubleCandidates implements IDoubleCandidates {
+
+ /**
+ * Constructs a new DoubleCandidates.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleCandidates);
+
+ /** DoubleCandidates candidates. */
+ public candidates: google.protobuf.IDoubleValue[];
+
+ /**
+ * Creates a new DoubleCandidates instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleCandidates instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleCandidates): google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleCandidates;
+
+ /**
+ * Encodes the specified DoubleCandidates message. Does not implicitly {@link google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleCandidates.verify|verify} messages.
+ * @param message DoubleCandidates message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleCandidates, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleCandidates message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleCandidates.verify|verify} messages.
+ * @param message DoubleCandidates message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.IDoubleCandidates, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleCandidates message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleCandidates
+ * @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.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleCandidates;
+
+ /**
+ * Decodes a DoubleCandidates message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleCandidates
+ * @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.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleCandidates;
+
+ /**
+ * Verifies a DoubleCandidates 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 DoubleCandidates message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleCandidates
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleCandidates;
+
+ /**
+ * Creates a plain object from a DoubleCandidates message. Also converts values to other types if specified.
+ * @param message DoubleCandidates
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.DoubleHparamSearchSpace.DoubleCandidates, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleCandidates to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleCandidates
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an IntHparamSearchSpace. */
+ interface IIntHparamSearchSpace {
+
+ /** IntHparamSearchSpace range */
+ range?: (google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntRange|null);
+
+ /** IntHparamSearchSpace candidates */
+ candidates?: (google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntCandidates|null);
+ }
+
+ /** Represents an IntHparamSearchSpace. */
+ class IntHparamSearchSpace implements IIntHparamSearchSpace {
+
+ /**
+ * Constructs a new IntHparamSearchSpace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IIntHparamSearchSpace);
+
+ /** IntHparamSearchSpace range. */
+ public range?: (google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntRange|null);
+
+ /** IntHparamSearchSpace candidates. */
+ public candidates?: (google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntCandidates|null);
+
+ /** IntHparamSearchSpace searchSpace. */
+ public searchSpace?: ("range"|"candidates");
+
+ /**
+ * Creates a new IntHparamSearchSpace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IntHparamSearchSpace instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IIntHparamSearchSpace): google.cloud.bigquery.v2.Model.IntHparamSearchSpace;
+
+ /**
+ * Encodes the specified IntHparamSearchSpace message. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntHparamSearchSpace.verify|verify} messages.
+ * @param message IntHparamSearchSpace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IIntHparamSearchSpace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IntHparamSearchSpace message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntHparamSearchSpace.verify|verify} messages.
+ * @param message IntHparamSearchSpace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IIntHparamSearchSpace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IntHparamSearchSpace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IntHparamSearchSpace
+ * @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.cloud.bigquery.v2.Model.IntHparamSearchSpace;
+
+ /**
+ * Decodes an IntHparamSearchSpace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IntHparamSearchSpace
+ * @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.cloud.bigquery.v2.Model.IntHparamSearchSpace;
+
+ /**
+ * Verifies an IntHparamSearchSpace 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 IntHparamSearchSpace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IntHparamSearchSpace
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.IntHparamSearchSpace;
+
+ /**
+ * Creates a plain object from an IntHparamSearchSpace message. Also converts values to other types if specified.
+ * @param message IntHparamSearchSpace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.IntHparamSearchSpace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IntHparamSearchSpace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IntHparamSearchSpace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IntHparamSearchSpace {
+
+ /** Properties of an IntRange. */
+ interface IIntRange {
+
+ /** IntRange min */
+ min?: (google.protobuf.IInt64Value|null);
+
+ /** IntRange max */
+ max?: (google.protobuf.IInt64Value|null);
+ }
+
+ /** Represents an IntRange. */
+ class IntRange implements IIntRange {
+
+ /**
+ * Constructs a new IntRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntRange);
+
+ /** IntRange min. */
+ public min?: (google.protobuf.IInt64Value|null);
+
+ /** IntRange max. */
+ public max?: (google.protobuf.IInt64Value|null);
+
+ /**
+ * Creates a new IntRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IntRange instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntRange): google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntRange;
+
+ /**
+ * Encodes the specified IntRange message. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntRange.verify|verify} messages.
+ * @param message IntRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IntRange message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntRange.verify|verify} messages.
+ * @param message IntRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IntRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IntRange
+ * @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.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntRange;
+
+ /**
+ * Decodes an IntRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IntRange
+ * @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.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntRange;
+
+ /**
+ * Verifies an IntRange 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 IntRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IntRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntRange;
+
+ /**
+ * Creates a plain object from an IntRange message. Also converts values to other types if specified.
+ * @param message IntRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IntRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IntRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an IntCandidates. */
+ interface IIntCandidates {
+
+ /** IntCandidates candidates */
+ candidates?: (google.protobuf.IInt64Value[]|null);
+ }
+
+ /** Represents an IntCandidates. */
+ class IntCandidates implements IIntCandidates {
+
+ /**
+ * Constructs a new IntCandidates.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntCandidates);
+
+ /** IntCandidates candidates. */
+ public candidates: google.protobuf.IInt64Value[];
+
+ /**
+ * Creates a new IntCandidates instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IntCandidates instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntCandidates): google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntCandidates;
+
+ /**
+ * Encodes the specified IntCandidates message. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntCandidates.verify|verify} messages.
+ * @param message IntCandidates message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntCandidates, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IntCandidates message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntCandidates.verify|verify} messages.
+ * @param message IntCandidates message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IIntCandidates, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IntCandidates message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IntCandidates
+ * @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.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntCandidates;
+
+ /**
+ * Decodes an IntCandidates message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IntCandidates
+ * @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.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntCandidates;
+
+ /**
+ * Verifies an IntCandidates 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 IntCandidates message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IntCandidates
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntCandidates;
+
+ /**
+ * Creates a plain object from an IntCandidates message. Also converts values to other types if specified.
+ * @param message IntCandidates
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.IntHparamSearchSpace.IntCandidates, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IntCandidates to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IntCandidates
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a StringHparamSearchSpace. */
+ interface IStringHparamSearchSpace {
+
+ /** StringHparamSearchSpace candidates */
+ candidates?: (string[]|null);
+ }
+
+ /** Represents a StringHparamSearchSpace. */
+ class StringHparamSearchSpace implements IStringHparamSearchSpace {
+
+ /**
+ * Constructs a new StringHparamSearchSpace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IStringHparamSearchSpace);
+
+ /** StringHparamSearchSpace candidates. */
+ public candidates: string[];
+
+ /**
+ * Creates a new StringHparamSearchSpace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringHparamSearchSpace instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IStringHparamSearchSpace): google.cloud.bigquery.v2.Model.StringHparamSearchSpace;
+
+ /**
+ * Encodes the specified StringHparamSearchSpace message. Does not implicitly {@link google.cloud.bigquery.v2.Model.StringHparamSearchSpace.verify|verify} messages.
+ * @param message StringHparamSearchSpace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IStringHparamSearchSpace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringHparamSearchSpace message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.StringHparamSearchSpace.verify|verify} messages.
+ * @param message StringHparamSearchSpace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IStringHparamSearchSpace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringHparamSearchSpace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringHparamSearchSpace
+ * @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.cloud.bigquery.v2.Model.StringHparamSearchSpace;
+
+ /**
+ * Decodes a StringHparamSearchSpace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringHparamSearchSpace
+ * @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.cloud.bigquery.v2.Model.StringHparamSearchSpace;
+
+ /**
+ * Verifies a StringHparamSearchSpace 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 StringHparamSearchSpace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringHparamSearchSpace
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.StringHparamSearchSpace;
+
+ /**
+ * Creates a plain object from a StringHparamSearchSpace message. Also converts values to other types if specified.
+ * @param message StringHparamSearchSpace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.StringHparamSearchSpace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringHparamSearchSpace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringHparamSearchSpace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an IntArrayHparamSearchSpace. */
+ interface IIntArrayHparamSearchSpace {
+
+ /** IntArrayHparamSearchSpace candidates */
+ candidates?: (google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IIntArray[]|null);
+ }
+
+ /** Represents an IntArrayHparamSearchSpace. */
+ class IntArrayHparamSearchSpace implements IIntArrayHparamSearchSpace {
+
+ /**
+ * Constructs a new IntArrayHparamSearchSpace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IIntArrayHparamSearchSpace);
+
+ /** IntArrayHparamSearchSpace candidates. */
+ public candidates: google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IIntArray[];
+
+ /**
+ * Creates a new IntArrayHparamSearchSpace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IntArrayHparamSearchSpace instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IIntArrayHparamSearchSpace): google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace;
+
+ /**
+ * Encodes the specified IntArrayHparamSearchSpace message. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.verify|verify} messages.
+ * @param message IntArrayHparamSearchSpace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IIntArrayHparamSearchSpace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IntArrayHparamSearchSpace message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.verify|verify} messages.
+ * @param message IntArrayHparamSearchSpace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IIntArrayHparamSearchSpace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IntArrayHparamSearchSpace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IntArrayHparamSearchSpace
+ * @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.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace;
+
+ /**
+ * Decodes an IntArrayHparamSearchSpace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IntArrayHparamSearchSpace
+ * @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.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace;
+
+ /**
+ * Verifies an IntArrayHparamSearchSpace 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 IntArrayHparamSearchSpace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IntArrayHparamSearchSpace
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace;
+
+ /**
+ * Creates a plain object from an IntArrayHparamSearchSpace message. Also converts values to other types if specified.
+ * @param message IntArrayHparamSearchSpace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IntArrayHparamSearchSpace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IntArrayHparamSearchSpace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IntArrayHparamSearchSpace {
+
+ /** Properties of an IntArray. */
+ interface IIntArray {
+
+ /** IntArray elements */
+ elements?: ((number|Long|string)[]|null);
+ }
+
+ /** Represents an IntArray. */
+ class IntArray implements IIntArray {
+
+ /**
+ * Constructs a new IntArray.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IIntArray);
+
+ /** IntArray elements. */
+ public elements: (number|Long|string)[];
+
+ /**
+ * Creates a new IntArray instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IntArray instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IIntArray): google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IntArray;
+
+ /**
+ * Encodes the specified IntArray message. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IntArray.verify|verify} messages.
+ * @param message IntArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IIntArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IntArray message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IntArray.verify|verify} messages.
+ * @param message IntArray message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IIntArray, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IntArray message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IntArray
+ * @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.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IntArray;
+
+ /**
+ * Decodes an IntArray message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IntArray
+ * @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.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IntArray;
+
+ /**
+ * Verifies an IntArray 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 IntArray message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IntArray
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IntArray;
+
+ /**
+ * Creates a plain object from an IntArray message. Also converts values to other types if specified.
+ * @param message IntArray
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.IntArrayHparamSearchSpace.IntArray, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IntArray to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IntArray
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a HparamSearchSpaces. */
+ interface IHparamSearchSpaces {
+
+ /** HparamSearchSpaces learnRate */
+ learnRate?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces l1Reg */
+ l1Reg?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces l2Reg */
+ l2Reg?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces numClusters */
+ numClusters?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces numFactors */
+ numFactors?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces hiddenUnits */
+ hiddenUnits?: (google.cloud.bigquery.v2.Model.IIntArrayHparamSearchSpace|null);
+
+ /** HparamSearchSpaces batchSize */
+ batchSize?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces dropout */
+ dropout?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces maxTreeDepth */
+ maxTreeDepth?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces subsample */
+ subsample?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces minSplitLoss */
+ minSplitLoss?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces walsAlpha */
+ walsAlpha?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces boosterType */
+ boosterType?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /** HparamSearchSpaces numParallelTree */
+ numParallelTree?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces dartNormalizeType */
+ dartNormalizeType?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /** HparamSearchSpaces treeMethod */
+ treeMethod?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /** HparamSearchSpaces minTreeChildWeight */
+ minTreeChildWeight?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces colsampleBytree */
+ colsampleBytree?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces colsampleBylevel */
+ colsampleBylevel?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces colsampleBynode */
+ colsampleBynode?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces activationFn */
+ activationFn?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /** HparamSearchSpaces optimizer */
+ optimizer?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+ }
+
+ /** Represents a HparamSearchSpaces. */
+ class HparamSearchSpaces implements IHparamSearchSpaces {
+
+ /**
+ * Constructs a new HparamSearchSpaces.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IHparamSearchSpaces);
+
+ /** HparamSearchSpaces learnRate. */
+ public learnRate?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces l1Reg. */
+ public l1Reg?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces l2Reg. */
+ public l2Reg?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces numClusters. */
+ public numClusters?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces numFactors. */
+ public numFactors?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces hiddenUnits. */
+ public hiddenUnits?: (google.cloud.bigquery.v2.Model.IIntArrayHparamSearchSpace|null);
+
+ /** HparamSearchSpaces batchSize. */
+ public batchSize?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces dropout. */
+ public dropout?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces maxTreeDepth. */
+ public maxTreeDepth?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces subsample. */
+ public subsample?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces minSplitLoss. */
+ public minSplitLoss?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces walsAlpha. */
+ public walsAlpha?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces boosterType. */
+ public boosterType?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /** HparamSearchSpaces numParallelTree. */
+ public numParallelTree?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces dartNormalizeType. */
+ public dartNormalizeType?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /** HparamSearchSpaces treeMethod. */
+ public treeMethod?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /** HparamSearchSpaces minTreeChildWeight. */
+ public minTreeChildWeight?: (google.cloud.bigquery.v2.Model.IIntHparamSearchSpace|null);
+
+ /** HparamSearchSpaces colsampleBytree. */
+ public colsampleBytree?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces colsampleBylevel. */
+ public colsampleBylevel?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces colsampleBynode. */
+ public colsampleBynode?: (google.cloud.bigquery.v2.Model.IDoubleHparamSearchSpace|null);
+
+ /** HparamSearchSpaces activationFn. */
+ public activationFn?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /** HparamSearchSpaces optimizer. */
+ public optimizer?: (google.cloud.bigquery.v2.Model.IStringHparamSearchSpace|null);
+
+ /**
+ * Creates a new HparamSearchSpaces instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HparamSearchSpaces instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IHparamSearchSpaces): google.cloud.bigquery.v2.Model.HparamSearchSpaces;
+
+ /**
+ * Encodes the specified HparamSearchSpaces message. Does not implicitly {@link google.cloud.bigquery.v2.Model.HparamSearchSpaces.verify|verify} messages.
+ * @param message HparamSearchSpaces message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IHparamSearchSpaces, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HparamSearchSpaces message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.HparamSearchSpaces.verify|verify} messages.
+ * @param message HparamSearchSpaces message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IHparamSearchSpaces, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HparamSearchSpaces message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HparamSearchSpaces
+ * @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.cloud.bigquery.v2.Model.HparamSearchSpaces;
+
+ /**
+ * Decodes a HparamSearchSpaces message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HparamSearchSpaces
+ * @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.cloud.bigquery.v2.Model.HparamSearchSpaces;
+
+ /**
+ * Verifies a HparamSearchSpaces 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 HparamSearchSpaces message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HparamSearchSpaces
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.HparamSearchSpaces;
+
+ /**
+ * Creates a plain object from a HparamSearchSpaces message. Also converts values to other types if specified.
+ * @param message HparamSearchSpaces
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.HparamSearchSpaces, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HparamSearchSpaces to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HparamSearchSpaces
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HparamTuningTrial. */
+ interface IHparamTuningTrial {
+
+ /** HparamTuningTrial trialId */
+ trialId?: (number|Long|string|null);
+
+ /** HparamTuningTrial startTimeMs */
+ startTimeMs?: (number|Long|string|null);
+
+ /** HparamTuningTrial endTimeMs */
+ endTimeMs?: (number|Long|string|null);
+
+ /** HparamTuningTrial hparams */
+ hparams?: (google.cloud.bigquery.v2.Model.TrainingRun.ITrainingOptions|null);
+
+ /** HparamTuningTrial evaluationMetrics */
+ evaluationMetrics?: (google.cloud.bigquery.v2.Model.IEvaluationMetrics|null);
+
+ /** HparamTuningTrial status */
+ status?: (google.cloud.bigquery.v2.Model.HparamTuningTrial.TrialStatus|keyof typeof google.cloud.bigquery.v2.Model.HparamTuningTrial.TrialStatus|null);
+
+ /** HparamTuningTrial errorMessage */
+ errorMessage?: (string|null);
+
+ /** HparamTuningTrial trainingLoss */
+ trainingLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** HparamTuningTrial evalLoss */
+ evalLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** HparamTuningTrial hparamTuningEvaluationMetrics */
+ hparamTuningEvaluationMetrics?: (google.cloud.bigquery.v2.Model.IEvaluationMetrics|null);
+ }
+
+ /** Represents a HparamTuningTrial. */
+ class HparamTuningTrial implements IHparamTuningTrial {
+
+ /**
+ * Constructs a new HparamTuningTrial.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Model.IHparamTuningTrial);
+
+ /** HparamTuningTrial trialId. */
+ public trialId: (number|Long|string);
+
+ /** HparamTuningTrial startTimeMs. */
+ public startTimeMs: (number|Long|string);
+
+ /** HparamTuningTrial endTimeMs. */
+ public endTimeMs: (number|Long|string);
+
+ /** HparamTuningTrial hparams. */
+ public hparams?: (google.cloud.bigquery.v2.Model.TrainingRun.ITrainingOptions|null);
+
+ /** HparamTuningTrial evaluationMetrics. */
+ public evaluationMetrics?: (google.cloud.bigquery.v2.Model.IEvaluationMetrics|null);
+
+ /** HparamTuningTrial status. */
+ public status: (google.cloud.bigquery.v2.Model.HparamTuningTrial.TrialStatus|keyof typeof google.cloud.bigquery.v2.Model.HparamTuningTrial.TrialStatus);
+
+ /** HparamTuningTrial errorMessage. */
+ public errorMessage: string;
+
+ /** HparamTuningTrial trainingLoss. */
+ public trainingLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** HparamTuningTrial evalLoss. */
+ public evalLoss?: (google.protobuf.IDoubleValue|null);
+
+ /** HparamTuningTrial hparamTuningEvaluationMetrics. */
+ public hparamTuningEvaluationMetrics?: (google.cloud.bigquery.v2.Model.IEvaluationMetrics|null);
+
+ /**
+ * Creates a new HparamTuningTrial instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HparamTuningTrial instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Model.IHparamTuningTrial): google.cloud.bigquery.v2.Model.HparamTuningTrial;
+
+ /**
+ * Encodes the specified HparamTuningTrial message. Does not implicitly {@link google.cloud.bigquery.v2.Model.HparamTuningTrial.verify|verify} messages.
+ * @param message HparamTuningTrial message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Model.IHparamTuningTrial, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HparamTuningTrial message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Model.HparamTuningTrial.verify|verify} messages.
+ * @param message HparamTuningTrial message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Model.IHparamTuningTrial, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HparamTuningTrial message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HparamTuningTrial
+ * @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.cloud.bigquery.v2.Model.HparamTuningTrial;
+
+ /**
+ * Decodes a HparamTuningTrial message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HparamTuningTrial
+ * @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.cloud.bigquery.v2.Model.HparamTuningTrial;
+
+ /**
+ * Verifies a HparamTuningTrial 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 HparamTuningTrial message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HparamTuningTrial
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Model.HparamTuningTrial;
+
+ /**
+ * Creates a plain object from a HparamTuningTrial message. Also converts values to other types if specified.
+ * @param message HparamTuningTrial
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Model.HparamTuningTrial, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HparamTuningTrial to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HparamTuningTrial
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace HparamTuningTrial {
+
+ /** TrialStatus enum. */
+ enum TrialStatus {
+ TRIAL_STATUS_UNSPECIFIED = 0,
+ NOT_STARTED = 1,
+ RUNNING = 2,
+ SUCCEEDED = 3,
+ FAILED = 4,
+ INFEASIBLE = 5,
+ STOPPED_EARLY = 6
+ }
+ }
+ }
+
+ /** Properties of a GetModelRequest. */
+ interface IGetModelRequest {
+
+ /** GetModelRequest projectId */
+ projectId?: (string|null);
+
+ /** GetModelRequest datasetId */
+ datasetId?: (string|null);
+
+ /** GetModelRequest modelId */
+ modelId?: (string|null);
+ }
+
+ /** Represents a GetModelRequest. */
+ class GetModelRequest implements IGetModelRequest {
+
+ /**
+ * Constructs a new GetModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetModelRequest);
+
+ /** GetModelRequest projectId. */
+ public projectId: string;
+
+ /** GetModelRequest datasetId. */
+ public datasetId: string;
+
+ /** GetModelRequest modelId. */
+ public modelId: string;
+
+ /**
+ * Creates a new GetModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetModelRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetModelRequest): google.cloud.bigquery.v2.GetModelRequest;
+
+ /**
+ * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetModelRequest.verify|verify} messages.
+ * @param message GetModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetModelRequest.verify|verify} messages.
+ * @param message GetModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetModelRequest
+ * @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.cloud.bigquery.v2.GetModelRequest;
+
+ /**
+ * Decodes a GetModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetModelRequest
+ * @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.cloud.bigquery.v2.GetModelRequest;
+
+ /**
+ * Verifies a GetModelRequest 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 GetModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetModelRequest;
+
+ /**
+ * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified.
+ * @param message GetModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PatchModelRequest. */
+ interface IPatchModelRequest {
+
+ /** PatchModelRequest projectId */
+ projectId?: (string|null);
+
+ /** PatchModelRequest datasetId */
+ datasetId?: (string|null);
+
+ /** PatchModelRequest modelId */
+ modelId?: (string|null);
+
+ /** PatchModelRequest model */
+ model?: (google.cloud.bigquery.v2.IModel|null);
+ }
+
+ /** Represents a PatchModelRequest. */
+ class PatchModelRequest implements IPatchModelRequest {
+
+ /**
+ * Constructs a new PatchModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPatchModelRequest);
+
+ /** PatchModelRequest projectId. */
+ public projectId: string;
+
+ /** PatchModelRequest datasetId. */
+ public datasetId: string;
+
+ /** PatchModelRequest modelId. */
+ public modelId: string;
+
+ /** PatchModelRequest model. */
+ public model?: (google.cloud.bigquery.v2.IModel|null);
+
+ /**
+ * Creates a new PatchModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PatchModelRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPatchModelRequest): google.cloud.bigquery.v2.PatchModelRequest;
+
+ /**
+ * Encodes the specified PatchModelRequest message. Does not implicitly {@link google.cloud.bigquery.v2.PatchModelRequest.verify|verify} messages.
+ * @param message PatchModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPatchModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PatchModelRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PatchModelRequest.verify|verify} messages.
+ * @param message PatchModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPatchModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PatchModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PatchModelRequest
+ * @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.cloud.bigquery.v2.PatchModelRequest;
+
+ /**
+ * Decodes a PatchModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PatchModelRequest
+ * @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.cloud.bigquery.v2.PatchModelRequest;
+
+ /**
+ * Verifies a PatchModelRequest 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 PatchModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PatchModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PatchModelRequest;
+
+ /**
+ * Creates a plain object from a PatchModelRequest message. Also converts values to other types if specified.
+ * @param message PatchModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PatchModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PatchModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PatchModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteModelRequest. */
+ interface IDeleteModelRequest {
+
+ /** DeleteModelRequest projectId */
+ projectId?: (string|null);
+
+ /** DeleteModelRequest datasetId */
+ datasetId?: (string|null);
+
+ /** DeleteModelRequest modelId */
+ modelId?: (string|null);
+ }
+
+ /** Represents a DeleteModelRequest. */
+ class DeleteModelRequest implements IDeleteModelRequest {
+
+ /**
+ * Constructs a new DeleteModelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDeleteModelRequest);
+
+ /** DeleteModelRequest projectId. */
+ public projectId: string;
+
+ /** DeleteModelRequest datasetId. */
+ public datasetId: string;
+
+ /** DeleteModelRequest modelId. */
+ public modelId: string;
+
+ /**
+ * Creates a new DeleteModelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteModelRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDeleteModelRequest): google.cloud.bigquery.v2.DeleteModelRequest;
+
+ /**
+ * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.bigquery.v2.DeleteModelRequest.verify|verify} messages.
+ * @param message DeleteModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DeleteModelRequest.verify|verify} messages.
+ * @param message DeleteModelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteModelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteModelRequest
+ * @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.cloud.bigquery.v2.DeleteModelRequest;
+
+ /**
+ * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteModelRequest
+ * @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.cloud.bigquery.v2.DeleteModelRequest;
+
+ /**
+ * Verifies a DeleteModelRequest 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 DeleteModelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteModelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DeleteModelRequest;
+
+ /**
+ * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified.
+ * @param message DeleteModelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteModelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteModelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelsRequest. */
+ interface IListModelsRequest {
+
+ /** ListModelsRequest projectId */
+ projectId?: (string|null);
+
+ /** ListModelsRequest datasetId */
+ datasetId?: (string|null);
+
+ /** ListModelsRequest maxResults */
+ maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** ListModelsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListModelsRequest. */
+ class ListModelsRequest implements IListModelsRequest {
+
+ /**
+ * Constructs a new ListModelsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListModelsRequest);
+
+ /** ListModelsRequest projectId. */
+ public projectId: string;
+
+ /** ListModelsRequest datasetId. */
+ public datasetId: string;
+
+ /** ListModelsRequest maxResults. */
+ public maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** ListModelsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListModelsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelsRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListModelsRequest): google.cloud.bigquery.v2.ListModelsRequest;
+
+ /**
+ * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.bigquery.v2.ListModelsRequest.verify|verify} messages.
+ * @param message ListModelsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListModelsRequest.verify|verify} messages.
+ * @param message ListModelsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelsRequest
+ * @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.cloud.bigquery.v2.ListModelsRequest;
+
+ /**
+ * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelsRequest
+ * @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.cloud.bigquery.v2.ListModelsRequest;
+
+ /**
+ * Verifies a ListModelsRequest 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 ListModelsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListModelsRequest;
+
+ /**
+ * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified.
+ * @param message ListModelsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListModelsResponse. */
+ interface IListModelsResponse {
+
+ /** ListModelsResponse models */
+ models?: (google.cloud.bigquery.v2.IModel[]|null);
+
+ /** ListModelsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListModelsResponse. */
+ class ListModelsResponse implements IListModelsResponse {
+
+ /**
+ * Constructs a new ListModelsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListModelsResponse);
+
+ /** ListModelsResponse models. */
+ public models: google.cloud.bigquery.v2.IModel[];
+
+ /** ListModelsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListModelsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListModelsResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListModelsResponse): google.cloud.bigquery.v2.ListModelsResponse;
+
+ /**
+ * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.bigquery.v2.ListModelsResponse.verify|verify} messages.
+ * @param message ListModelsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListModelsResponse.verify|verify} messages.
+ * @param message ListModelsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListModelsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListModelsResponse
+ * @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.cloud.bigquery.v2.ListModelsResponse;
+
+ /**
+ * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListModelsResponse
+ * @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.cloud.bigquery.v2.ListModelsResponse;
+
+ /**
+ * Verifies a ListModelsResponse 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 ListModelsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListModelsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListModelsResponse;
+
+ /**
+ * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified.
+ * @param message ListModelsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListModelsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListModelsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PropertyGraphReference. */
+ interface IPropertyGraphReference {
+
+ /** PropertyGraphReference projectId */
+ projectId?: (string|null);
+
+ /** PropertyGraphReference datasetId */
+ datasetId?: (string|null);
+
+ /** PropertyGraphReference propertyGraphId */
+ propertyGraphId?: (string|null);
+ }
+
+ /** Represents a PropertyGraphReference. */
+ class PropertyGraphReference implements IPropertyGraphReference {
+
+ /**
+ * Constructs a new PropertyGraphReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPropertyGraphReference);
+
+ /** PropertyGraphReference projectId. */
+ public projectId: string;
+
+ /** PropertyGraphReference datasetId. */
+ public datasetId: string;
+
+ /** PropertyGraphReference propertyGraphId. */
+ public propertyGraphId: string;
+
+ /**
+ * Creates a new PropertyGraphReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PropertyGraphReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPropertyGraphReference): google.cloud.bigquery.v2.PropertyGraphReference;
+
+ /**
+ * Encodes the specified PropertyGraphReference message. Does not implicitly {@link google.cloud.bigquery.v2.PropertyGraphReference.verify|verify} messages.
+ * @param message PropertyGraphReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPropertyGraphReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PropertyGraphReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PropertyGraphReference.verify|verify} messages.
+ * @param message PropertyGraphReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPropertyGraphReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PropertyGraphReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PropertyGraphReference
+ * @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.cloud.bigquery.v2.PropertyGraphReference;
+
+ /**
+ * Decodes a PropertyGraphReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PropertyGraphReference
+ * @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.cloud.bigquery.v2.PropertyGraphReference;
+
+ /**
+ * Verifies a PropertyGraphReference 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 PropertyGraphReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PropertyGraphReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PropertyGraphReference;
+
+ /**
+ * Creates a plain object from a PropertyGraphReference message. Also converts values to other types if specified.
+ * @param message PropertyGraphReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PropertyGraphReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PropertyGraphReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PropertyGraphReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RowAccessPolicyReference. */
+ interface IRowAccessPolicyReference {
+
+ /** RowAccessPolicyReference projectId */
+ projectId?: (string|null);
+
+ /** RowAccessPolicyReference datasetId */
+ datasetId?: (string|null);
+
+ /** RowAccessPolicyReference tableId */
+ tableId?: (string|null);
+
+ /** RowAccessPolicyReference policyId */
+ policyId?: (string|null);
+ }
+
+ /** Represents a RowAccessPolicyReference. */
+ class RowAccessPolicyReference implements IRowAccessPolicyReference {
+
+ /**
+ * Constructs a new RowAccessPolicyReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRowAccessPolicyReference);
+
+ /** RowAccessPolicyReference projectId. */
+ public projectId: string;
+
+ /** RowAccessPolicyReference datasetId. */
+ public datasetId: string;
+
+ /** RowAccessPolicyReference tableId. */
+ public tableId: string;
+
+ /** RowAccessPolicyReference policyId. */
+ public policyId: string;
+
+ /**
+ * Creates a new RowAccessPolicyReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RowAccessPolicyReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRowAccessPolicyReference): google.cloud.bigquery.v2.RowAccessPolicyReference;
+
+ /**
+ * Encodes the specified RowAccessPolicyReference message. Does not implicitly {@link google.cloud.bigquery.v2.RowAccessPolicyReference.verify|verify} messages.
+ * @param message RowAccessPolicyReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRowAccessPolicyReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RowAccessPolicyReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RowAccessPolicyReference.verify|verify} messages.
+ * @param message RowAccessPolicyReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRowAccessPolicyReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RowAccessPolicyReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RowAccessPolicyReference
+ * @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.cloud.bigquery.v2.RowAccessPolicyReference;
+
+ /**
+ * Decodes a RowAccessPolicyReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RowAccessPolicyReference
+ * @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.cloud.bigquery.v2.RowAccessPolicyReference;
+
+ /**
+ * Verifies a RowAccessPolicyReference 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 RowAccessPolicyReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RowAccessPolicyReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RowAccessPolicyReference;
+
+ /**
+ * Creates a plain object from a RowAccessPolicyReference message. Also converts values to other types if specified.
+ * @param message RowAccessPolicyReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RowAccessPolicyReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RowAccessPolicyReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RowAccessPolicyReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SessionInfo. */
+ interface ISessionInfo {
+
+ /** SessionInfo sessionId */
+ sessionId?: (string|null);
+ }
+
+ /** Represents a SessionInfo. */
+ class SessionInfo implements ISessionInfo {
+
+ /**
+ * Constructs a new SessionInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ISessionInfo);
+
+ /** SessionInfo sessionId. */
+ public sessionId: string;
+
+ /**
+ * Creates a new SessionInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SessionInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ISessionInfo): google.cloud.bigquery.v2.SessionInfo;
+
+ /**
+ * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.bigquery.v2.SessionInfo.verify|verify} messages.
+ * @param message SessionInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.SessionInfo.verify|verify} messages.
+ * @param message SessionInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SessionInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SessionInfo
+ * @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.cloud.bigquery.v2.SessionInfo;
+
+ /**
+ * Decodes a SessionInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SessionInfo
+ * @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.cloud.bigquery.v2.SessionInfo;
+
+ /**
+ * Verifies a SessionInfo 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 SessionInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SessionInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.SessionInfo;
+
+ /**
+ * Creates a plain object from a SessionInfo message. Also converts values to other types if specified.
+ * @param message SessionInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SessionInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SessionInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JobStatus. */
+ interface IJobStatus {
+
+ /** JobStatus errorResult */
+ errorResult?: (google.cloud.bigquery.v2.IErrorProto|null);
+
+ /** JobStatus errors */
+ errors?: (google.cloud.bigquery.v2.IErrorProto[]|null);
+
+ /** JobStatus state */
+ state?: (string|null);
+ }
+
+ /** Represents a JobStatus. */
+ class JobStatus implements IJobStatus {
+
+ /**
+ * Constructs a new JobStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJobStatus);
+
+ /** JobStatus errorResult. */
+ public errorResult?: (google.cloud.bigquery.v2.IErrorProto|null);
+
+ /** JobStatus errors. */
+ public errors: google.cloud.bigquery.v2.IErrorProto[];
+
+ /** JobStatus state. */
+ public state: string;
+
+ /**
+ * Creates a new JobStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JobStatus instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJobStatus): google.cloud.bigquery.v2.JobStatus;
+
+ /**
+ * Encodes the specified JobStatus message. Does not implicitly {@link google.cloud.bigquery.v2.JobStatus.verify|verify} messages.
+ * @param message JobStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JobStatus message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JobStatus.verify|verify} messages.
+ * @param message JobStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJobStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JobStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JobStatus
+ * @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.cloud.bigquery.v2.JobStatus;
+
+ /**
+ * Decodes a JobStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JobStatus
+ * @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.cloud.bigquery.v2.JobStatus;
+
+ /**
+ * Verifies a JobStatus 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 JobStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JobStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JobStatus;
+
+ /**
+ * Creates a plain object from a JobStatus message. Also converts values to other types if specified.
+ * @param message JobStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JobStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JobStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JobStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LocationMetadata. */
+ interface ILocationMetadata {
+
+ /** LocationMetadata legacyLocationId */
+ legacyLocationId?: (string|null);
+ }
+
+ /** Represents a LocationMetadata. */
+ class LocationMetadata implements ILocationMetadata {
+
+ /**
+ * Constructs a new LocationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ILocationMetadata);
+
+ /** LocationMetadata legacyLocationId. */
+ public legacyLocationId: string;
+
+ /**
+ * Creates a new LocationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocationMetadata instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ILocationMetadata): google.cloud.bigquery.v2.LocationMetadata;
+
+ /**
+ * Encodes the specified LocationMetadata message. Does not implicitly {@link google.cloud.bigquery.v2.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocationMetadata message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.LocationMetadata.verify|verify} messages.
+ * @param message LocationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ILocationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocationMetadata
+ * @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.cloud.bigquery.v2.LocationMetadata;
+
+ /**
+ * Decodes a LocationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocationMetadata
+ * @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.cloud.bigquery.v2.LocationMetadata;
+
+ /**
+ * Verifies a LocationMetadata 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 LocationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.LocationMetadata;
+
+ /**
+ * Creates a plain object from a LocationMetadata message. Also converts values to other types if specified.
+ * @param message LocationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.LocationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** ManagedTableType enum. */
+ enum ManagedTableType {
+ MANAGED_TABLE_TYPE_UNSPECIFIED = 0,
+ NATIVE = 1,
+ BIGLAKE = 2
+ }
+
+ /** Properties of a PartitioningDefinition. */
+ interface IPartitioningDefinition {
+
+ /** PartitioningDefinition partitionedColumn */
+ partitionedColumn?: (google.cloud.bigquery.v2.IPartitionedColumn[]|null);
+ }
+
+ /** Represents a PartitioningDefinition. */
+ class PartitioningDefinition implements IPartitioningDefinition {
+
+ /**
+ * Constructs a new PartitioningDefinition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPartitioningDefinition);
+
+ /** PartitioningDefinition partitionedColumn. */
+ public partitionedColumn: google.cloud.bigquery.v2.IPartitionedColumn[];
+
+ /**
+ * Creates a new PartitioningDefinition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PartitioningDefinition instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPartitioningDefinition): google.cloud.bigquery.v2.PartitioningDefinition;
+
+ /**
+ * Encodes the specified PartitioningDefinition message. Does not implicitly {@link google.cloud.bigquery.v2.PartitioningDefinition.verify|verify} messages.
+ * @param message PartitioningDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPartitioningDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PartitioningDefinition message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PartitioningDefinition.verify|verify} messages.
+ * @param message PartitioningDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPartitioningDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PartitioningDefinition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PartitioningDefinition
+ * @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.cloud.bigquery.v2.PartitioningDefinition;
+
+ /**
+ * Decodes a PartitioningDefinition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PartitioningDefinition
+ * @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.cloud.bigquery.v2.PartitioningDefinition;
+
+ /**
+ * Verifies a PartitioningDefinition 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 PartitioningDefinition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PartitioningDefinition
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PartitioningDefinition;
+
+ /**
+ * Creates a plain object from a PartitioningDefinition message. Also converts values to other types if specified.
+ * @param message PartitioningDefinition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PartitioningDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PartitioningDefinition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PartitioningDefinition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PartitionedColumn. */
+ interface IPartitionedColumn {
+
+ /** PartitionedColumn field */
+ field?: (string|null);
+ }
+
+ /** Represents a PartitionedColumn. */
+ class PartitionedColumn implements IPartitionedColumn {
+
+ /**
+ * Constructs a new PartitionedColumn.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPartitionedColumn);
+
+ /** PartitionedColumn field. */
+ public field?: (string|null);
+
+ /**
+ * Creates a new PartitionedColumn instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PartitionedColumn instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPartitionedColumn): google.cloud.bigquery.v2.PartitionedColumn;
+
+ /**
+ * Encodes the specified PartitionedColumn message. Does not implicitly {@link google.cloud.bigquery.v2.PartitionedColumn.verify|verify} messages.
+ * @param message PartitionedColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPartitionedColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PartitionedColumn message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PartitionedColumn.verify|verify} messages.
+ * @param message PartitionedColumn message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPartitionedColumn, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PartitionedColumn message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PartitionedColumn
+ * @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.cloud.bigquery.v2.PartitionedColumn;
+
+ /**
+ * Decodes a PartitionedColumn message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PartitionedColumn
+ * @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.cloud.bigquery.v2.PartitionedColumn;
+
+ /**
+ * Verifies a PartitionedColumn 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 PartitionedColumn message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PartitionedColumn
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PartitionedColumn;
+
+ /**
+ * Creates a plain object from a PartitionedColumn message. Also converts values to other types if specified.
+ * @param message PartitionedColumn
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PartitionedColumn, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PartitionedColumn to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PartitionedColumn
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AggregationThresholdPolicy. */
+ interface IAggregationThresholdPolicy {
+
+ /** AggregationThresholdPolicy threshold */
+ threshold?: (number|Long|string|null);
+
+ /** AggregationThresholdPolicy privacyUnitColumns */
+ privacyUnitColumns?: (string[]|null);
+ }
+
+ /** Represents an AggregationThresholdPolicy. */
+ class AggregationThresholdPolicy implements IAggregationThresholdPolicy {
+
+ /**
+ * Constructs a new AggregationThresholdPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IAggregationThresholdPolicy);
+
+ /** AggregationThresholdPolicy threshold. */
+ public threshold?: (number|Long|string|null);
+
+ /** AggregationThresholdPolicy privacyUnitColumns. */
+ public privacyUnitColumns: string[];
+
+ /**
+ * Creates a new AggregationThresholdPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AggregationThresholdPolicy instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IAggregationThresholdPolicy): google.cloud.bigquery.v2.AggregationThresholdPolicy;
+
+ /**
+ * Encodes the specified AggregationThresholdPolicy message. Does not implicitly {@link google.cloud.bigquery.v2.AggregationThresholdPolicy.verify|verify} messages.
+ * @param message AggregationThresholdPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IAggregationThresholdPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AggregationThresholdPolicy message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.AggregationThresholdPolicy.verify|verify} messages.
+ * @param message AggregationThresholdPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IAggregationThresholdPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AggregationThresholdPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AggregationThresholdPolicy
+ * @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.cloud.bigquery.v2.AggregationThresholdPolicy;
+
+ /**
+ * Decodes an AggregationThresholdPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AggregationThresholdPolicy
+ * @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.cloud.bigquery.v2.AggregationThresholdPolicy;
+
+ /**
+ * Verifies an AggregationThresholdPolicy 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 AggregationThresholdPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AggregationThresholdPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.AggregationThresholdPolicy;
+
+ /**
+ * Creates a plain object from an AggregationThresholdPolicy message. Also converts values to other types if specified.
+ * @param message AggregationThresholdPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.AggregationThresholdPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AggregationThresholdPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AggregationThresholdPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DifferentialPrivacyPolicy. */
+ interface IDifferentialPrivacyPolicy {
+
+ /** DifferentialPrivacyPolicy maxEpsilonPerQuery */
+ maxEpsilonPerQuery?: (number|null);
+
+ /** DifferentialPrivacyPolicy deltaPerQuery */
+ deltaPerQuery?: (number|null);
+
+ /** DifferentialPrivacyPolicy maxGroupsContributed */
+ maxGroupsContributed?: (number|Long|string|null);
+
+ /** DifferentialPrivacyPolicy privacyUnitColumn */
+ privacyUnitColumn?: (string|null);
+
+ /** DifferentialPrivacyPolicy epsilonBudget */
+ epsilonBudget?: (number|null);
+
+ /** DifferentialPrivacyPolicy deltaBudget */
+ deltaBudget?: (number|null);
+
+ /** DifferentialPrivacyPolicy epsilonBudgetRemaining */
+ epsilonBudgetRemaining?: (number|null);
+
+ /** DifferentialPrivacyPolicy deltaBudgetRemaining */
+ deltaBudgetRemaining?: (number|null);
+ }
+
+ /** Represents a DifferentialPrivacyPolicy. */
+ class DifferentialPrivacyPolicy implements IDifferentialPrivacyPolicy {
+
+ /**
+ * Constructs a new DifferentialPrivacyPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDifferentialPrivacyPolicy);
+
+ /** DifferentialPrivacyPolicy maxEpsilonPerQuery. */
+ public maxEpsilonPerQuery?: (number|null);
+
+ /** DifferentialPrivacyPolicy deltaPerQuery. */
+ public deltaPerQuery?: (number|null);
+
+ /** DifferentialPrivacyPolicy maxGroupsContributed. */
+ public maxGroupsContributed?: (number|Long|string|null);
+
+ /** DifferentialPrivacyPolicy privacyUnitColumn. */
+ public privacyUnitColumn?: (string|null);
+
+ /** DifferentialPrivacyPolicy epsilonBudget. */
+ public epsilonBudget?: (number|null);
+
+ /** DifferentialPrivacyPolicy deltaBudget. */
+ public deltaBudget?: (number|null);
+
+ /** DifferentialPrivacyPolicy epsilonBudgetRemaining. */
+ public epsilonBudgetRemaining?: (number|null);
+
+ /** DifferentialPrivacyPolicy deltaBudgetRemaining. */
+ public deltaBudgetRemaining?: (number|null);
+
+ /**
+ * Creates a new DifferentialPrivacyPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DifferentialPrivacyPolicy instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDifferentialPrivacyPolicy): google.cloud.bigquery.v2.DifferentialPrivacyPolicy;
+
+ /**
+ * Encodes the specified DifferentialPrivacyPolicy message. Does not implicitly {@link google.cloud.bigquery.v2.DifferentialPrivacyPolicy.verify|verify} messages.
+ * @param message DifferentialPrivacyPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDifferentialPrivacyPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DifferentialPrivacyPolicy message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DifferentialPrivacyPolicy.verify|verify} messages.
+ * @param message DifferentialPrivacyPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDifferentialPrivacyPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DifferentialPrivacyPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DifferentialPrivacyPolicy
+ * @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.cloud.bigquery.v2.DifferentialPrivacyPolicy;
+
+ /**
+ * Decodes a DifferentialPrivacyPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DifferentialPrivacyPolicy
+ * @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.cloud.bigquery.v2.DifferentialPrivacyPolicy;
+
+ /**
+ * Verifies a DifferentialPrivacyPolicy 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 DifferentialPrivacyPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DifferentialPrivacyPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DifferentialPrivacyPolicy;
+
+ /**
+ * Creates a plain object from a DifferentialPrivacyPolicy message. Also converts values to other types if specified.
+ * @param message DifferentialPrivacyPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DifferentialPrivacyPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DifferentialPrivacyPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DifferentialPrivacyPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JoinRestrictionPolicy. */
+ interface IJoinRestrictionPolicy {
+
+ /** JoinRestrictionPolicy joinCondition */
+ joinCondition?: (google.cloud.bigquery.v2.JoinRestrictionPolicy.JoinCondition|keyof typeof google.cloud.bigquery.v2.JoinRestrictionPolicy.JoinCondition|null);
+
+ /** JoinRestrictionPolicy joinAllowedColumns */
+ joinAllowedColumns?: (string[]|null);
+ }
+
+ /** Represents a JoinRestrictionPolicy. */
+ class JoinRestrictionPolicy implements IJoinRestrictionPolicy {
+
+ /**
+ * Constructs a new JoinRestrictionPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IJoinRestrictionPolicy);
+
+ /** JoinRestrictionPolicy joinCondition. */
+ public joinCondition?: (google.cloud.bigquery.v2.JoinRestrictionPolicy.JoinCondition|keyof typeof google.cloud.bigquery.v2.JoinRestrictionPolicy.JoinCondition|null);
+
+ /** JoinRestrictionPolicy joinAllowedColumns. */
+ public joinAllowedColumns: string[];
+
+ /**
+ * Creates a new JoinRestrictionPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JoinRestrictionPolicy instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IJoinRestrictionPolicy): google.cloud.bigquery.v2.JoinRestrictionPolicy;
+
+ /**
+ * Encodes the specified JoinRestrictionPolicy message. Does not implicitly {@link google.cloud.bigquery.v2.JoinRestrictionPolicy.verify|verify} messages.
+ * @param message JoinRestrictionPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IJoinRestrictionPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JoinRestrictionPolicy message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.JoinRestrictionPolicy.verify|verify} messages.
+ * @param message JoinRestrictionPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IJoinRestrictionPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JoinRestrictionPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JoinRestrictionPolicy
+ * @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.cloud.bigquery.v2.JoinRestrictionPolicy;
+
+ /**
+ * Decodes a JoinRestrictionPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JoinRestrictionPolicy
+ * @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.cloud.bigquery.v2.JoinRestrictionPolicy;
+
+ /**
+ * Verifies a JoinRestrictionPolicy 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 JoinRestrictionPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JoinRestrictionPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.JoinRestrictionPolicy;
+
+ /**
+ * Creates a plain object from a JoinRestrictionPolicy message. Also converts values to other types if specified.
+ * @param message JoinRestrictionPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.JoinRestrictionPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JoinRestrictionPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JoinRestrictionPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace JoinRestrictionPolicy {
+
+ /** JoinCondition enum. */
+ enum JoinCondition {
+ JOIN_CONDITION_UNSPECIFIED = 0,
+ JOIN_ANY = 1,
+ JOIN_ALL = 2,
+ JOIN_NOT_REQUIRED = 3,
+ JOIN_BLOCKED = 4
+ }
+ }
+
+ /** Properties of a PrivacyPolicy. */
+ interface IPrivacyPolicy {
+
+ /** PrivacyPolicy aggregationThresholdPolicy */
+ aggregationThresholdPolicy?: (google.cloud.bigquery.v2.IAggregationThresholdPolicy|null);
+
+ /** PrivacyPolicy differentialPrivacyPolicy */
+ differentialPrivacyPolicy?: (google.cloud.bigquery.v2.IDifferentialPrivacyPolicy|null);
+
+ /** PrivacyPolicy joinRestrictionPolicy */
+ joinRestrictionPolicy?: (google.cloud.bigquery.v2.IJoinRestrictionPolicy|null);
+ }
+
+ /** Represents a PrivacyPolicy. */
+ class PrivacyPolicy implements IPrivacyPolicy {
+
+ /**
+ * Constructs a new PrivacyPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPrivacyPolicy);
+
+ /** PrivacyPolicy aggregationThresholdPolicy. */
+ public aggregationThresholdPolicy?: (google.cloud.bigquery.v2.IAggregationThresholdPolicy|null);
+
+ /** PrivacyPolicy differentialPrivacyPolicy. */
+ public differentialPrivacyPolicy?: (google.cloud.bigquery.v2.IDifferentialPrivacyPolicy|null);
+
+ /** PrivacyPolicy joinRestrictionPolicy. */
+ public joinRestrictionPolicy?: (google.cloud.bigquery.v2.IJoinRestrictionPolicy|null);
+
+ /** PrivacyPolicy privacyPolicy. */
+ public privacyPolicy?: ("aggregationThresholdPolicy"|"differentialPrivacyPolicy");
+
+ /**
+ * Creates a new PrivacyPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrivacyPolicy instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPrivacyPolicy): google.cloud.bigquery.v2.PrivacyPolicy;
+
+ /**
+ * Encodes the specified PrivacyPolicy message. Does not implicitly {@link google.cloud.bigquery.v2.PrivacyPolicy.verify|verify} messages.
+ * @param message PrivacyPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPrivacyPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrivacyPolicy message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PrivacyPolicy.verify|verify} messages.
+ * @param message PrivacyPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPrivacyPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrivacyPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrivacyPolicy
+ * @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.cloud.bigquery.v2.PrivacyPolicy;
+
+ /**
+ * Decodes a PrivacyPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrivacyPolicy
+ * @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.cloud.bigquery.v2.PrivacyPolicy;
+
+ /**
+ * Verifies a PrivacyPolicy 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 PrivacyPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrivacyPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PrivacyPolicy;
+
+ /**
+ * Creates a plain object from a PrivacyPolicy message. Also converts values to other types if specified.
+ * @param message PrivacyPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PrivacyPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrivacyPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrivacyPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a ProjectService */
+ class ProjectService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ProjectService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new ProjectService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ProjectService;
+
+ /**
+ * Calls GetServiceAccount.
+ * @param request GetServiceAccountRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GetServiceAccountResponse
+ */
+ public getServiceAccount(request: google.cloud.bigquery.v2.IGetServiceAccountRequest, callback: google.cloud.bigquery.v2.ProjectService.GetServiceAccountCallback): void;
+
+ /**
+ * Calls GetServiceAccount.
+ * @param request GetServiceAccountRequest message or plain object
+ * @returns Promise
+ */
+ public getServiceAccount(request: google.cloud.bigquery.v2.IGetServiceAccountRequest): Promise;
+ }
+
+ namespace ProjectService {
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.ProjectService|getServiceAccount}.
+ * @param error Error, if any
+ * @param [response] GetServiceAccountResponse
+ */
+ type GetServiceAccountCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.GetServiceAccountResponse) => void;
+ }
+
+ /** Properties of a GetServiceAccountRequest. */
+ interface IGetServiceAccountRequest {
+
+ /** GetServiceAccountRequest projectId */
+ projectId?: (string|null);
+ }
+
+ /** Represents a GetServiceAccountRequest. */
+ class GetServiceAccountRequest implements IGetServiceAccountRequest {
+
+ /**
+ * Constructs a new GetServiceAccountRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetServiceAccountRequest);
+
+ /** GetServiceAccountRequest projectId. */
+ public projectId: string;
+
+ /**
+ * Creates a new GetServiceAccountRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceAccountRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetServiceAccountRequest): google.cloud.bigquery.v2.GetServiceAccountRequest;
+
+ /**
+ * Encodes the specified GetServiceAccountRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetServiceAccountRequest.verify|verify} messages.
+ * @param message GetServiceAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetServiceAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceAccountRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetServiceAccountRequest.verify|verify} messages.
+ * @param message GetServiceAccountRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetServiceAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceAccountRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceAccountRequest
+ * @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.cloud.bigquery.v2.GetServiceAccountRequest;
+
+ /**
+ * Decodes a GetServiceAccountRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceAccountRequest
+ * @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.cloud.bigquery.v2.GetServiceAccountRequest;
+
+ /**
+ * Verifies a GetServiceAccountRequest 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 GetServiceAccountRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceAccountRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetServiceAccountRequest;
+
+ /**
+ * Creates a plain object from a GetServiceAccountRequest message. Also converts values to other types if specified.
+ * @param message GetServiceAccountRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetServiceAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceAccountRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceAccountRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetServiceAccountResponse. */
+ interface IGetServiceAccountResponse {
+
+ /** GetServiceAccountResponse kind */
+ kind?: (string|null);
+
+ /** GetServiceAccountResponse email */
+ email?: (string|null);
+ }
+
+ /** Represents a GetServiceAccountResponse. */
+ class GetServiceAccountResponse implements IGetServiceAccountResponse {
+
+ /**
+ * Constructs a new GetServiceAccountResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetServiceAccountResponse);
+
+ /** GetServiceAccountResponse kind. */
+ public kind: string;
+
+ /** GetServiceAccountResponse email. */
+ public email: string;
+
+ /**
+ * Creates a new GetServiceAccountResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceAccountResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetServiceAccountResponse): google.cloud.bigquery.v2.GetServiceAccountResponse;
+
+ /**
+ * Encodes the specified GetServiceAccountResponse message. Does not implicitly {@link google.cloud.bigquery.v2.GetServiceAccountResponse.verify|verify} messages.
+ * @param message GetServiceAccountResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetServiceAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceAccountResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetServiceAccountResponse.verify|verify} messages.
+ * @param message GetServiceAccountResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetServiceAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceAccountResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceAccountResponse
+ * @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.cloud.bigquery.v2.GetServiceAccountResponse;
+
+ /**
+ * Decodes a GetServiceAccountResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceAccountResponse
+ * @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.cloud.bigquery.v2.GetServiceAccountResponse;
+
+ /**
+ * Verifies a GetServiceAccountResponse 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 GetServiceAccountResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceAccountResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetServiceAccountResponse;
+
+ /**
+ * Creates a plain object from a GetServiceAccountResponse message. Also converts values to other types if specified.
+ * @param message GetServiceAccountResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetServiceAccountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceAccountResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceAccountResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a RoutineService */
+ class RoutineService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new RoutineService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new RoutineService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RoutineService;
+
+ /**
+ * Calls GetRoutine.
+ * @param request GetRoutineRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Routine
+ */
+ public getRoutine(request: google.cloud.bigquery.v2.IGetRoutineRequest, callback: google.cloud.bigquery.v2.RoutineService.GetRoutineCallback): void;
+
+ /**
+ * Calls GetRoutine.
+ * @param request GetRoutineRequest message or plain object
+ * @returns Promise
+ */
+ public getRoutine(request: google.cloud.bigquery.v2.IGetRoutineRequest): Promise;
+
+ /**
+ * Calls InsertRoutine.
+ * @param request InsertRoutineRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Routine
+ */
+ public insertRoutine(request: google.cloud.bigquery.v2.IInsertRoutineRequest, callback: google.cloud.bigquery.v2.RoutineService.InsertRoutineCallback): void;
+
+ /**
+ * Calls InsertRoutine.
+ * @param request InsertRoutineRequest message or plain object
+ * @returns Promise
+ */
+ public insertRoutine(request: google.cloud.bigquery.v2.IInsertRoutineRequest): Promise;
+
+ /**
+ * Calls UpdateRoutine.
+ * @param request UpdateRoutineRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Routine
+ */
+ public updateRoutine(request: google.cloud.bigquery.v2.IUpdateRoutineRequest, callback: google.cloud.bigquery.v2.RoutineService.UpdateRoutineCallback): void;
+
+ /**
+ * Calls UpdateRoutine.
+ * @param request UpdateRoutineRequest message or plain object
+ * @returns Promise
+ */
+ public updateRoutine(request: google.cloud.bigquery.v2.IUpdateRoutineRequest): Promise;
+
+ /**
+ * Calls DeleteRoutine.
+ * @param request DeleteRoutineRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteRoutine(request: google.cloud.bigquery.v2.IDeleteRoutineRequest, callback: google.cloud.bigquery.v2.RoutineService.DeleteRoutineCallback): void;
+
+ /**
+ * Calls DeleteRoutine.
+ * @param request DeleteRoutineRequest message or plain object
+ * @returns Promise
+ */
+ public deleteRoutine(request: google.cloud.bigquery.v2.IDeleteRoutineRequest): Promise;
+
+ /**
+ * Calls ListRoutines.
+ * @param request ListRoutinesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRoutinesResponse
+ */
+ public listRoutines(request: google.cloud.bigquery.v2.IListRoutinesRequest, callback: google.cloud.bigquery.v2.RoutineService.ListRoutinesCallback): void;
+
+ /**
+ * Calls ListRoutines.
+ * @param request ListRoutinesRequest message or plain object
+ * @returns Promise
+ */
+ public listRoutines(request: google.cloud.bigquery.v2.IListRoutinesRequest): Promise;
+ }
+
+ namespace RoutineService {
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RoutineService|getRoutine}.
+ * @param error Error, if any
+ * @param [response] Routine
+ */
+ type GetRoutineCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Routine) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RoutineService|insertRoutine}.
+ * @param error Error, if any
+ * @param [response] Routine
+ */
+ type InsertRoutineCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Routine) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RoutineService|updateRoutine}.
+ * @param error Error, if any
+ * @param [response] Routine
+ */
+ type UpdateRoutineCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Routine) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RoutineService|deleteRoutine}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteRoutineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RoutineService|listRoutines}.
+ * @param error Error, if any
+ * @param [response] ListRoutinesResponse
+ */
+ type ListRoutinesCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.ListRoutinesResponse) => void;
+ }
+
+ /** Properties of a Routine. */
+ interface IRoutine {
+
+ /** Routine etag */
+ etag?: (string|null);
+
+ /** Routine routineReference */
+ routineReference?: (google.cloud.bigquery.v2.IRoutineReference|null);
+
+ /** Routine routineType */
+ routineType?: (google.cloud.bigquery.v2.Routine.RoutineType|keyof typeof google.cloud.bigquery.v2.Routine.RoutineType|null);
+
+ /** Routine creationTime */
+ creationTime?: (number|Long|string|null);
+
+ /** Routine lastModifiedTime */
+ lastModifiedTime?: (number|Long|string|null);
+
+ /** Routine language */
+ language?: (google.cloud.bigquery.v2.Routine.Language|keyof typeof google.cloud.bigquery.v2.Routine.Language|null);
+
+ /** Routine arguments */
+ "arguments"?: (google.cloud.bigquery.v2.Routine.IArgument[]|null);
+
+ /** Routine returnType */
+ returnType?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** Routine returnTableType */
+ returnTableType?: (google.cloud.bigquery.v2.IStandardSqlTableType|null);
+
+ /** Routine importedLibraries */
+ importedLibraries?: (string[]|null);
+
+ /** Routine definitionBody */
+ definitionBody?: (string|null);
+
+ /** Routine description */
+ description?: (string|null);
+
+ /** Routine determinismLevel */
+ determinismLevel?: (google.cloud.bigquery.v2.Routine.DeterminismLevel|keyof typeof google.cloud.bigquery.v2.Routine.DeterminismLevel|null);
+
+ /** Routine securityMode */
+ securityMode?: (google.cloud.bigquery.v2.Routine.SecurityMode|keyof typeof google.cloud.bigquery.v2.Routine.SecurityMode|null);
+
+ /** Routine strictMode */
+ strictMode?: (google.protobuf.IBoolValue|null);
+
+ /** Routine remoteFunctionOptions */
+ remoteFunctionOptions?: (google.cloud.bigquery.v2.Routine.IRemoteFunctionOptions|null);
+
+ /** Routine sparkOptions */
+ sparkOptions?: (google.cloud.bigquery.v2.ISparkOptions|null);
+
+ /** Routine dataGovernanceType */
+ dataGovernanceType?: (google.cloud.bigquery.v2.Routine.DataGovernanceType|keyof typeof google.cloud.bigquery.v2.Routine.DataGovernanceType|null);
+
+ /** Routine pythonOptions */
+ pythonOptions?: (google.cloud.bigquery.v2.IPythonOptions|null);
+
+ /** Routine externalRuntimeOptions */
+ externalRuntimeOptions?: (google.cloud.bigquery.v2.IExternalRuntimeOptions|null);
+
+ /** Routine buildStatus */
+ buildStatus?: (google.cloud.bigquery.v2.IRoutineBuildStatus|null);
+ }
+
+ /** Represents a Routine. */
+ class Routine implements IRoutine {
+
+ /**
+ * Constructs a new Routine.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRoutine);
+
+ /** Routine etag. */
+ public etag: string;
+
+ /** Routine routineReference. */
+ public routineReference?: (google.cloud.bigquery.v2.IRoutineReference|null);
+
+ /** Routine routineType. */
+ public routineType: (google.cloud.bigquery.v2.Routine.RoutineType|keyof typeof google.cloud.bigquery.v2.Routine.RoutineType);
+
+ /** Routine creationTime. */
+ public creationTime: (number|Long|string);
+
+ /** Routine lastModifiedTime. */
+ public lastModifiedTime: (number|Long|string);
+
+ /** Routine language. */
+ public language: (google.cloud.bigquery.v2.Routine.Language|keyof typeof google.cloud.bigquery.v2.Routine.Language);
+
+ /** Routine arguments. */
+ public arguments: google.cloud.bigquery.v2.Routine.IArgument[];
+
+ /** Routine returnType. */
+ public returnType?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** Routine returnTableType. */
+ public returnTableType?: (google.cloud.bigquery.v2.IStandardSqlTableType|null);
+
+ /** Routine importedLibraries. */
+ public importedLibraries: string[];
+
+ /** Routine definitionBody. */
+ public definitionBody: string;
+
+ /** Routine description. */
+ public description: string;
+
+ /** Routine determinismLevel. */
+ public determinismLevel: (google.cloud.bigquery.v2.Routine.DeterminismLevel|keyof typeof google.cloud.bigquery.v2.Routine.DeterminismLevel);
+
+ /** Routine securityMode. */
+ public securityMode: (google.cloud.bigquery.v2.Routine.SecurityMode|keyof typeof google.cloud.bigquery.v2.Routine.SecurityMode);
+
+ /** Routine strictMode. */
+ public strictMode?: (google.protobuf.IBoolValue|null);
+
+ /** Routine remoteFunctionOptions. */
+ public remoteFunctionOptions?: (google.cloud.bigquery.v2.Routine.IRemoteFunctionOptions|null);
+
+ /** Routine sparkOptions. */
+ public sparkOptions?: (google.cloud.bigquery.v2.ISparkOptions|null);
+
+ /** Routine dataGovernanceType. */
+ public dataGovernanceType: (google.cloud.bigquery.v2.Routine.DataGovernanceType|keyof typeof google.cloud.bigquery.v2.Routine.DataGovernanceType);
+
+ /** Routine pythonOptions. */
+ public pythonOptions?: (google.cloud.bigquery.v2.IPythonOptions|null);
+
+ /** Routine externalRuntimeOptions. */
+ public externalRuntimeOptions?: (google.cloud.bigquery.v2.IExternalRuntimeOptions|null);
+
+ /** Routine buildStatus. */
+ public buildStatus?: (google.cloud.bigquery.v2.IRoutineBuildStatus|null);
+
+ /**
+ * Creates a new Routine instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Routine instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRoutine): google.cloud.bigquery.v2.Routine;
+
+ /**
+ * Encodes the specified Routine message. Does not implicitly {@link google.cloud.bigquery.v2.Routine.verify|verify} messages.
+ * @param message Routine message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRoutine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Routine message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Routine.verify|verify} messages.
+ * @param message Routine message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRoutine, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Routine message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Routine
+ * @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.cloud.bigquery.v2.Routine;
+
+ /**
+ * Decodes a Routine message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Routine
+ * @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.cloud.bigquery.v2.Routine;
+
+ /**
+ * Verifies a Routine 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 Routine message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Routine
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Routine;
+
+ /**
+ * Creates a plain object from a Routine message. Also converts values to other types if specified.
+ * @param message Routine
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Routine, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Routine to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Routine
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Routine {
+
+ /** RoutineType enum. */
+ enum RoutineType {
+ ROUTINE_TYPE_UNSPECIFIED = 0,
+ SCALAR_FUNCTION = 1,
+ PROCEDURE = 2,
+ TABLE_VALUED_FUNCTION = 3,
+ AGGREGATE_FUNCTION = 4
+ }
+
+ /** Language enum. */
+ enum Language {
+ LANGUAGE_UNSPECIFIED = 0,
+ SQL = 1,
+ JAVASCRIPT = 2,
+ PYTHON = 3,
+ JAVA = 4,
+ SCALA = 5
+ }
+
+ /** Properties of an Argument. */
+ interface IArgument {
+
+ /** Argument name */
+ name?: (string|null);
+
+ /** Argument argumentKind */
+ argumentKind?: (google.cloud.bigquery.v2.Routine.Argument.ArgumentKind|keyof typeof google.cloud.bigquery.v2.Routine.Argument.ArgumentKind|null);
+
+ /** Argument mode */
+ mode?: (google.cloud.bigquery.v2.Routine.Argument.Mode|keyof typeof google.cloud.bigquery.v2.Routine.Argument.Mode|null);
+
+ /** Argument dataType */
+ dataType?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** Argument isAggregate */
+ isAggregate?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents an Argument. */
+ class Argument implements IArgument {
+
+ /**
+ * Constructs a new Argument.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Routine.IArgument);
+
+ /** Argument name. */
+ public name: string;
+
+ /** Argument argumentKind. */
+ public argumentKind: (google.cloud.bigquery.v2.Routine.Argument.ArgumentKind|keyof typeof google.cloud.bigquery.v2.Routine.Argument.ArgumentKind);
+
+ /** Argument mode. */
+ public mode: (google.cloud.bigquery.v2.Routine.Argument.Mode|keyof typeof google.cloud.bigquery.v2.Routine.Argument.Mode);
+
+ /** Argument dataType. */
+ public dataType?: (google.cloud.bigquery.v2.IStandardSqlDataType|null);
+
+ /** Argument isAggregate. */
+ public isAggregate?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new Argument instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Argument instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Routine.IArgument): google.cloud.bigquery.v2.Routine.Argument;
+
+ /**
+ * Encodes the specified Argument message. Does not implicitly {@link google.cloud.bigquery.v2.Routine.Argument.verify|verify} messages.
+ * @param message Argument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Routine.IArgument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Argument message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Routine.Argument.verify|verify} messages.
+ * @param message Argument message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Routine.IArgument, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Argument message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Argument
+ * @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.cloud.bigquery.v2.Routine.Argument;
+
+ /**
+ * Decodes an Argument message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Argument
+ * @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.cloud.bigquery.v2.Routine.Argument;
+
+ /**
+ * Verifies an Argument 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 Argument message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Argument
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Routine.Argument;
+
+ /**
+ * Creates a plain object from an Argument message. Also converts values to other types if specified.
+ * @param message Argument
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Routine.Argument, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Argument to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Argument
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Argument {
+
+ /** ArgumentKind enum. */
+ enum ArgumentKind {
+ ARGUMENT_KIND_UNSPECIFIED = 0,
+ FIXED_TYPE = 1,
+ ANY_TYPE = 2
+ }
+
+ /** Mode enum. */
+ enum Mode {
+ MODE_UNSPECIFIED = 0,
+ IN = 1,
+ OUT = 2,
+ INOUT = 3
+ }
+ }
+
+ /** DeterminismLevel enum. */
+ enum DeterminismLevel {
+ DETERMINISM_LEVEL_UNSPECIFIED = 0,
+ DETERMINISTIC = 1,
+ NOT_DETERMINISTIC = 2
+ }
+
+ /** SecurityMode enum. */
+ enum SecurityMode {
+ SECURITY_MODE_UNSPECIFIED = 0,
+ DEFINER = 1,
+ INVOKER = 2
+ }
+
+ /** Properties of a RemoteFunctionOptions. */
+ interface IRemoteFunctionOptions {
+
+ /** RemoteFunctionOptions endpoint */
+ endpoint?: (string|null);
+
+ /** RemoteFunctionOptions connection */
+ connection?: (string|null);
+
+ /** RemoteFunctionOptions userDefinedContext */
+ userDefinedContext?: ({ [k: string]: string }|null);
+
+ /** RemoteFunctionOptions maxBatchingRows */
+ maxBatchingRows?: (number|Long|string|null);
+ }
+
+ /** Represents a RemoteFunctionOptions. */
+ class RemoteFunctionOptions implements IRemoteFunctionOptions {
+
+ /**
+ * Constructs a new RemoteFunctionOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.Routine.IRemoteFunctionOptions);
+
+ /** RemoteFunctionOptions endpoint. */
+ public endpoint: string;
+
+ /** RemoteFunctionOptions connection. */
+ public connection: string;
+
+ /** RemoteFunctionOptions userDefinedContext. */
+ public userDefinedContext: { [k: string]: string };
+
+ /** RemoteFunctionOptions maxBatchingRows. */
+ public maxBatchingRows: (number|Long|string);
+
+ /**
+ * Creates a new RemoteFunctionOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RemoteFunctionOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.Routine.IRemoteFunctionOptions): google.cloud.bigquery.v2.Routine.RemoteFunctionOptions;
+
+ /**
+ * Encodes the specified RemoteFunctionOptions message. Does not implicitly {@link google.cloud.bigquery.v2.Routine.RemoteFunctionOptions.verify|verify} messages.
+ * @param message RemoteFunctionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.Routine.IRemoteFunctionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RemoteFunctionOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Routine.RemoteFunctionOptions.verify|verify} messages.
+ * @param message RemoteFunctionOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.Routine.IRemoteFunctionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RemoteFunctionOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RemoteFunctionOptions
+ * @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.cloud.bigquery.v2.Routine.RemoteFunctionOptions;
+
+ /**
+ * Decodes a RemoteFunctionOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RemoteFunctionOptions
+ * @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.cloud.bigquery.v2.Routine.RemoteFunctionOptions;
+
+ /**
+ * Verifies a RemoteFunctionOptions 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 RemoteFunctionOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RemoteFunctionOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Routine.RemoteFunctionOptions;
+
+ /**
+ * Creates a plain object from a RemoteFunctionOptions message. Also converts values to other types if specified.
+ * @param message RemoteFunctionOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Routine.RemoteFunctionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RemoteFunctionOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RemoteFunctionOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** DataGovernanceType enum. */
+ enum DataGovernanceType {
+ DATA_GOVERNANCE_TYPE_UNSPECIFIED = 0,
+ DATA_MASKING = 1
+ }
+ }
+
+ /** Properties of a PythonOptions. */
+ interface IPythonOptions {
+
+ /** PythonOptions entryPoint */
+ entryPoint?: (string|null);
+
+ /** PythonOptions packages */
+ packages?: (string[]|null);
+ }
+
+ /** Represents a PythonOptions. */
+ class PythonOptions implements IPythonOptions {
+
+ /**
+ * Constructs a new PythonOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPythonOptions);
+
+ /** PythonOptions entryPoint. */
+ public entryPoint: string;
+
+ /** PythonOptions packages. */
+ public packages: string[];
+
+ /**
+ * Creates a new PythonOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPythonOptions): google.cloud.bigquery.v2.PythonOptions;
+
+ /**
+ * Encodes the specified PythonOptions message. Does not implicitly {@link google.cloud.bigquery.v2.PythonOptions.verify|verify} messages.
+ * @param message PythonOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPythonOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PythonOptions.verify|verify} messages.
+ * @param message PythonOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPythonOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonOptions
+ * @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.cloud.bigquery.v2.PythonOptions;
+
+ /**
+ * Decodes a PythonOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonOptions
+ * @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.cloud.bigquery.v2.PythonOptions;
+
+ /**
+ * Verifies a PythonOptions 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 PythonOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PythonOptions;
+
+ /**
+ * Creates a plain object from a PythonOptions message. Also converts values to other types if specified.
+ * @param message PythonOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PythonOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExternalRuntimeOptions. */
+ interface IExternalRuntimeOptions {
+
+ /** ExternalRuntimeOptions containerMemory */
+ containerMemory?: (string|null);
+
+ /** ExternalRuntimeOptions containerCpu */
+ containerCpu?: (number|null);
+
+ /** ExternalRuntimeOptions runtimeConnection */
+ runtimeConnection?: (string|null);
+
+ /** ExternalRuntimeOptions maxBatchingRows */
+ maxBatchingRows?: (number|Long|string|null);
+
+ /** ExternalRuntimeOptions runtimeVersion */
+ runtimeVersion?: (string|null);
+
+ /** ExternalRuntimeOptions containerRequestConcurrency */
+ containerRequestConcurrency?: (number|Long|string|null);
+ }
+
+ /** Represents an ExternalRuntimeOptions. */
+ class ExternalRuntimeOptions implements IExternalRuntimeOptions {
+
+ /**
+ * Constructs a new ExternalRuntimeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IExternalRuntimeOptions);
+
+ /** ExternalRuntimeOptions containerMemory. */
+ public containerMemory: string;
+
+ /** ExternalRuntimeOptions containerCpu. */
+ public containerCpu: number;
+
+ /** ExternalRuntimeOptions runtimeConnection. */
+ public runtimeConnection: string;
+
+ /** ExternalRuntimeOptions maxBatchingRows. */
+ public maxBatchingRows: (number|Long|string);
+
+ /** ExternalRuntimeOptions runtimeVersion. */
+ public runtimeVersion: string;
+
+ /** ExternalRuntimeOptions containerRequestConcurrency. */
+ public containerRequestConcurrency: (number|Long|string);
+
+ /**
+ * Creates a new ExternalRuntimeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExternalRuntimeOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IExternalRuntimeOptions): google.cloud.bigquery.v2.ExternalRuntimeOptions;
+
+ /**
+ * Encodes the specified ExternalRuntimeOptions message. Does not implicitly {@link google.cloud.bigquery.v2.ExternalRuntimeOptions.verify|verify} messages.
+ * @param message ExternalRuntimeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IExternalRuntimeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExternalRuntimeOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExternalRuntimeOptions.verify|verify} messages.
+ * @param message ExternalRuntimeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IExternalRuntimeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExternalRuntimeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExternalRuntimeOptions
+ * @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.cloud.bigquery.v2.ExternalRuntimeOptions;
+
+ /**
+ * Decodes an ExternalRuntimeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExternalRuntimeOptions
+ * @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.cloud.bigquery.v2.ExternalRuntimeOptions;
+
+ /**
+ * Verifies an ExternalRuntimeOptions 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 ExternalRuntimeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExternalRuntimeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ExternalRuntimeOptions;
+
+ /**
+ * Creates a plain object from an ExternalRuntimeOptions message. Also converts values to other types if specified.
+ * @param message ExternalRuntimeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ExternalRuntimeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExternalRuntimeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExternalRuntimeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SparkOptions. */
+ interface ISparkOptions {
+
+ /** SparkOptions connection */
+ connection?: (string|null);
+
+ /** SparkOptions runtimeVersion */
+ runtimeVersion?: (string|null);
+
+ /** SparkOptions containerImage */
+ containerImage?: (string|null);
+
+ /** SparkOptions properties */
+ properties?: ({ [k: string]: string }|null);
+
+ /** SparkOptions mainFileUri */
+ mainFileUri?: (string|null);
+
+ /** SparkOptions pyFileUris */
+ pyFileUris?: (string[]|null);
+
+ /** SparkOptions jarUris */
+ jarUris?: (string[]|null);
+
+ /** SparkOptions fileUris */
+ fileUris?: (string[]|null);
+
+ /** SparkOptions archiveUris */
+ archiveUris?: (string[]|null);
+
+ /** SparkOptions mainClass */
+ mainClass?: (string|null);
+ }
+
+ /** Represents a SparkOptions. */
+ class SparkOptions implements ISparkOptions {
+
+ /**
+ * Constructs a new SparkOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ISparkOptions);
+
+ /** SparkOptions connection. */
+ public connection: string;
+
+ /** SparkOptions runtimeVersion. */
+ public runtimeVersion: string;
+
+ /** SparkOptions containerImage. */
+ public containerImage: string;
+
+ /** SparkOptions properties. */
+ public properties: { [k: string]: string };
+
+ /** SparkOptions mainFileUri. */
+ public mainFileUri: string;
+
+ /** SparkOptions pyFileUris. */
+ public pyFileUris: string[];
+
+ /** SparkOptions jarUris. */
+ public jarUris: string[];
+
+ /** SparkOptions fileUris. */
+ public fileUris: string[];
+
+ /** SparkOptions archiveUris. */
+ public archiveUris: string[];
+
+ /** SparkOptions mainClass. */
+ public mainClass: string;
+
+ /**
+ * Creates a new SparkOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SparkOptions instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ISparkOptions): google.cloud.bigquery.v2.SparkOptions;
+
+ /**
+ * Encodes the specified SparkOptions message. Does not implicitly {@link google.cloud.bigquery.v2.SparkOptions.verify|verify} messages.
+ * @param message SparkOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ISparkOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SparkOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.SparkOptions.verify|verify} messages.
+ * @param message SparkOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ISparkOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SparkOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SparkOptions
+ * @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.cloud.bigquery.v2.SparkOptions;
+
+ /**
+ * Decodes a SparkOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SparkOptions
+ * @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.cloud.bigquery.v2.SparkOptions;
+
+ /**
+ * Verifies a SparkOptions 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 SparkOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SparkOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.SparkOptions;
+
+ /**
+ * Creates a plain object from a SparkOptions message. Also converts values to other types if specified.
+ * @param message SparkOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.SparkOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SparkOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SparkOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RoutineBuildStatus. */
+ interface IRoutineBuildStatus {
+
+ /** RoutineBuildStatus buildState */
+ buildState?: (google.cloud.bigquery.v2.RoutineBuildStatus.BuildState|keyof typeof google.cloud.bigquery.v2.RoutineBuildStatus.BuildState|null);
+
+ /** RoutineBuildStatus errorResult */
+ errorResult?: (google.cloud.bigquery.v2.IErrorProto|null);
+
+ /** RoutineBuildStatus buildStateUpdateTime */
+ buildStateUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /** RoutineBuildStatus buildDuration */
+ buildDuration?: (google.protobuf.IDuration|null);
+
+ /** RoutineBuildStatus imageSizeBytes */
+ imageSizeBytes?: (number|Long|string|null);
+ }
+
+ /** Represents a RoutineBuildStatus. */
+ class RoutineBuildStatus implements IRoutineBuildStatus {
+
+ /**
+ * Constructs a new RoutineBuildStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRoutineBuildStatus);
+
+ /** RoutineBuildStatus buildState. */
+ public buildState: (google.cloud.bigquery.v2.RoutineBuildStatus.BuildState|keyof typeof google.cloud.bigquery.v2.RoutineBuildStatus.BuildState);
+
+ /** RoutineBuildStatus errorResult. */
+ public errorResult?: (google.cloud.bigquery.v2.IErrorProto|null);
+
+ /** RoutineBuildStatus buildStateUpdateTime. */
+ public buildStateUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /** RoutineBuildStatus buildDuration. */
+ public buildDuration?: (google.protobuf.IDuration|null);
+
+ /** RoutineBuildStatus imageSizeBytes. */
+ public imageSizeBytes: (number|Long|string);
+
+ /**
+ * Creates a new RoutineBuildStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RoutineBuildStatus instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRoutineBuildStatus): google.cloud.bigquery.v2.RoutineBuildStatus;
+
+ /**
+ * Encodes the specified RoutineBuildStatus message. Does not implicitly {@link google.cloud.bigquery.v2.RoutineBuildStatus.verify|verify} messages.
+ * @param message RoutineBuildStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRoutineBuildStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RoutineBuildStatus message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RoutineBuildStatus.verify|verify} messages.
+ * @param message RoutineBuildStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRoutineBuildStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RoutineBuildStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RoutineBuildStatus
+ * @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.cloud.bigquery.v2.RoutineBuildStatus;
+
+ /**
+ * Decodes a RoutineBuildStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RoutineBuildStatus
+ * @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.cloud.bigquery.v2.RoutineBuildStatus;
+
+ /**
+ * Verifies a RoutineBuildStatus 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 RoutineBuildStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RoutineBuildStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RoutineBuildStatus;
+
+ /**
+ * Creates a plain object from a RoutineBuildStatus message. Also converts values to other types if specified.
+ * @param message RoutineBuildStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RoutineBuildStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RoutineBuildStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RoutineBuildStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RoutineBuildStatus {
+
+ /** BuildState enum. */
+ enum BuildState {
+ BUILD_STATE_UNSPECIFIED = 0,
+ IN_PROGRESS = 1,
+ SUCCEEDED = 2,
+ FAILED = 3
+ }
+ }
+
+ /** Properties of a GetRoutineRequest. */
+ interface IGetRoutineRequest {
+
+ /** GetRoutineRequest projectId */
+ projectId?: (string|null);
+
+ /** GetRoutineRequest datasetId */
+ datasetId?: (string|null);
+
+ /** GetRoutineRequest routineId */
+ routineId?: (string|null);
+ }
+
+ /** Represents a GetRoutineRequest. */
+ class GetRoutineRequest implements IGetRoutineRequest {
+
+ /**
+ * Constructs a new GetRoutineRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetRoutineRequest);
+
+ /** GetRoutineRequest projectId. */
+ public projectId: string;
+
+ /** GetRoutineRequest datasetId. */
+ public datasetId: string;
+
+ /** GetRoutineRequest routineId. */
+ public routineId: string;
+
+ /**
+ * Creates a new GetRoutineRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetRoutineRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetRoutineRequest): google.cloud.bigquery.v2.GetRoutineRequest;
+
+ /**
+ * Encodes the specified GetRoutineRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetRoutineRequest.verify|verify} messages.
+ * @param message GetRoutineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetRoutineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetRoutineRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetRoutineRequest.verify|verify} messages.
+ * @param message GetRoutineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetRoutineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetRoutineRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetRoutineRequest
+ * @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.cloud.bigquery.v2.GetRoutineRequest;
+
+ /**
+ * Decodes a GetRoutineRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetRoutineRequest
+ * @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.cloud.bigquery.v2.GetRoutineRequest;
+
+ /**
+ * Verifies a GetRoutineRequest 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 GetRoutineRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetRoutineRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetRoutineRequest;
+
+ /**
+ * Creates a plain object from a GetRoutineRequest message. Also converts values to other types if specified.
+ * @param message GetRoutineRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetRoutineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetRoutineRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetRoutineRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InsertRoutineRequest. */
+ interface IInsertRoutineRequest {
+
+ /** InsertRoutineRequest projectId */
+ projectId?: (string|null);
+
+ /** InsertRoutineRequest datasetId */
+ datasetId?: (string|null);
+
+ /** InsertRoutineRequest routine */
+ routine?: (google.cloud.bigquery.v2.IRoutine|null);
+ }
+
+ /** Represents an InsertRoutineRequest. */
+ class InsertRoutineRequest implements IInsertRoutineRequest {
+
+ /**
+ * Constructs a new InsertRoutineRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IInsertRoutineRequest);
+
+ /** InsertRoutineRequest projectId. */
+ public projectId: string;
+
+ /** InsertRoutineRequest datasetId. */
+ public datasetId: string;
+
+ /** InsertRoutineRequest routine. */
+ public routine?: (google.cloud.bigquery.v2.IRoutine|null);
+
+ /**
+ * Creates a new InsertRoutineRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InsertRoutineRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IInsertRoutineRequest): google.cloud.bigquery.v2.InsertRoutineRequest;
+
+ /**
+ * Encodes the specified InsertRoutineRequest message. Does not implicitly {@link google.cloud.bigquery.v2.InsertRoutineRequest.verify|verify} messages.
+ * @param message InsertRoutineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IInsertRoutineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InsertRoutineRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.InsertRoutineRequest.verify|verify} messages.
+ * @param message InsertRoutineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IInsertRoutineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InsertRoutineRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InsertRoutineRequest
+ * @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.cloud.bigquery.v2.InsertRoutineRequest;
+
+ /**
+ * Decodes an InsertRoutineRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InsertRoutineRequest
+ * @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.cloud.bigquery.v2.InsertRoutineRequest;
+
+ /**
+ * Verifies an InsertRoutineRequest 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 InsertRoutineRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InsertRoutineRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.InsertRoutineRequest;
+
+ /**
+ * Creates a plain object from an InsertRoutineRequest message. Also converts values to other types if specified.
+ * @param message InsertRoutineRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.InsertRoutineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InsertRoutineRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InsertRoutineRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateRoutineRequest. */
+ interface IUpdateRoutineRequest {
+
+ /** UpdateRoutineRequest projectId */
+ projectId?: (string|null);
+
+ /** UpdateRoutineRequest datasetId */
+ datasetId?: (string|null);
+
+ /** UpdateRoutineRequest routineId */
+ routineId?: (string|null);
+
+ /** UpdateRoutineRequest routine */
+ routine?: (google.cloud.bigquery.v2.IRoutine|null);
+ }
+
+ /** Represents an UpdateRoutineRequest. */
+ class UpdateRoutineRequest implements IUpdateRoutineRequest {
+
+ /**
+ * Constructs a new UpdateRoutineRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IUpdateRoutineRequest);
+
+ /** UpdateRoutineRequest projectId. */
+ public projectId: string;
+
+ /** UpdateRoutineRequest datasetId. */
+ public datasetId: string;
+
+ /** UpdateRoutineRequest routineId. */
+ public routineId: string;
+
+ /** UpdateRoutineRequest routine. */
+ public routine?: (google.cloud.bigquery.v2.IRoutine|null);
+
+ /**
+ * Creates a new UpdateRoutineRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateRoutineRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IUpdateRoutineRequest): google.cloud.bigquery.v2.UpdateRoutineRequest;
+
+ /**
+ * Encodes the specified UpdateRoutineRequest message. Does not implicitly {@link google.cloud.bigquery.v2.UpdateRoutineRequest.verify|verify} messages.
+ * @param message UpdateRoutineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IUpdateRoutineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateRoutineRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.UpdateRoutineRequest.verify|verify} messages.
+ * @param message UpdateRoutineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IUpdateRoutineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateRoutineRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateRoutineRequest
+ * @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.cloud.bigquery.v2.UpdateRoutineRequest;
+
+ /**
+ * Decodes an UpdateRoutineRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateRoutineRequest
+ * @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.cloud.bigquery.v2.UpdateRoutineRequest;
+
+ /**
+ * Verifies an UpdateRoutineRequest 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 UpdateRoutineRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateRoutineRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.UpdateRoutineRequest;
+
+ /**
+ * Creates a plain object from an UpdateRoutineRequest message. Also converts values to other types if specified.
+ * @param message UpdateRoutineRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.UpdateRoutineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateRoutineRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateRoutineRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteRoutineRequest. */
+ interface IDeleteRoutineRequest {
+
+ /** DeleteRoutineRequest projectId */
+ projectId?: (string|null);
+
+ /** DeleteRoutineRequest datasetId */
+ datasetId?: (string|null);
+
+ /** DeleteRoutineRequest routineId */
+ routineId?: (string|null);
+ }
+
+ /** Represents a DeleteRoutineRequest. */
+ class DeleteRoutineRequest implements IDeleteRoutineRequest {
+
+ /**
+ * Constructs a new DeleteRoutineRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDeleteRoutineRequest);
+
+ /** DeleteRoutineRequest projectId. */
+ public projectId: string;
+
+ /** DeleteRoutineRequest datasetId. */
+ public datasetId: string;
+
+ /** DeleteRoutineRequest routineId. */
+ public routineId: string;
+
+ /**
+ * Creates a new DeleteRoutineRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteRoutineRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDeleteRoutineRequest): google.cloud.bigquery.v2.DeleteRoutineRequest;
+
+ /**
+ * Encodes the specified DeleteRoutineRequest message. Does not implicitly {@link google.cloud.bigquery.v2.DeleteRoutineRequest.verify|verify} messages.
+ * @param message DeleteRoutineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDeleteRoutineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteRoutineRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DeleteRoutineRequest.verify|verify} messages.
+ * @param message DeleteRoutineRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDeleteRoutineRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteRoutineRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteRoutineRequest
+ * @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.cloud.bigquery.v2.DeleteRoutineRequest;
+
+ /**
+ * Decodes a DeleteRoutineRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteRoutineRequest
+ * @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.cloud.bigquery.v2.DeleteRoutineRequest;
+
+ /**
+ * Verifies a DeleteRoutineRequest 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 DeleteRoutineRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteRoutineRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DeleteRoutineRequest;
+
+ /**
+ * Creates a plain object from a DeleteRoutineRequest message. Also converts values to other types if specified.
+ * @param message DeleteRoutineRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DeleteRoutineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteRoutineRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteRoutineRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRoutinesRequest. */
+ interface IListRoutinesRequest {
+
+ /** ListRoutinesRequest projectId */
+ projectId?: (string|null);
+
+ /** ListRoutinesRequest datasetId */
+ datasetId?: (string|null);
+
+ /** ListRoutinesRequest maxResults */
+ maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** ListRoutinesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListRoutinesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListRoutinesRequest. */
+ class ListRoutinesRequest implements IListRoutinesRequest {
+
+ /**
+ * Constructs a new ListRoutinesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListRoutinesRequest);
+
+ /** ListRoutinesRequest projectId. */
+ public projectId: string;
+
+ /** ListRoutinesRequest datasetId. */
+ public datasetId: string;
+
+ /** ListRoutinesRequest maxResults. */
+ public maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** ListRoutinesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListRoutinesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListRoutinesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRoutinesRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListRoutinesRequest): google.cloud.bigquery.v2.ListRoutinesRequest;
+
+ /**
+ * Encodes the specified ListRoutinesRequest message. Does not implicitly {@link google.cloud.bigquery.v2.ListRoutinesRequest.verify|verify} messages.
+ * @param message ListRoutinesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListRoutinesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRoutinesRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListRoutinesRequest.verify|verify} messages.
+ * @param message ListRoutinesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListRoutinesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRoutinesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRoutinesRequest
+ * @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.cloud.bigquery.v2.ListRoutinesRequest;
+
+ /**
+ * Decodes a ListRoutinesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRoutinesRequest
+ * @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.cloud.bigquery.v2.ListRoutinesRequest;
+
+ /**
+ * Verifies a ListRoutinesRequest 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 ListRoutinesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRoutinesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListRoutinesRequest;
+
+ /**
+ * Creates a plain object from a ListRoutinesRequest message. Also converts values to other types if specified.
+ * @param message ListRoutinesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListRoutinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRoutinesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRoutinesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRoutinesResponse. */
+ interface IListRoutinesResponse {
+
+ /** ListRoutinesResponse routines */
+ routines?: (google.cloud.bigquery.v2.IRoutine[]|null);
+
+ /** ListRoutinesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListRoutinesResponse. */
+ class ListRoutinesResponse implements IListRoutinesResponse {
+
+ /**
+ * Constructs a new ListRoutinesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListRoutinesResponse);
+
+ /** ListRoutinesResponse routines. */
+ public routines: google.cloud.bigquery.v2.IRoutine[];
+
+ /** ListRoutinesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListRoutinesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRoutinesResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListRoutinesResponse): google.cloud.bigquery.v2.ListRoutinesResponse;
+
+ /**
+ * Encodes the specified ListRoutinesResponse message. Does not implicitly {@link google.cloud.bigquery.v2.ListRoutinesResponse.verify|verify} messages.
+ * @param message ListRoutinesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListRoutinesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRoutinesResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListRoutinesResponse.verify|verify} messages.
+ * @param message ListRoutinesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListRoutinesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRoutinesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRoutinesResponse
+ * @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.cloud.bigquery.v2.ListRoutinesResponse;
+
+ /**
+ * Decodes a ListRoutinesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRoutinesResponse
+ * @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.cloud.bigquery.v2.ListRoutinesResponse;
+
+ /**
+ * Verifies a ListRoutinesResponse 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 ListRoutinesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRoutinesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListRoutinesResponse;
+
+ /**
+ * Creates a plain object from a ListRoutinesResponse message. Also converts values to other types if specified.
+ * @param message ListRoutinesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListRoutinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRoutinesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRoutinesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a RowAccessPolicyService */
+ class RowAccessPolicyService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new RowAccessPolicyService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new RowAccessPolicyService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RowAccessPolicyService;
+
+ /**
+ * Calls ListRowAccessPolicies.
+ * @param request ListRowAccessPoliciesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRowAccessPoliciesResponse
+ */
+ public listRowAccessPolicies(request: google.cloud.bigquery.v2.IListRowAccessPoliciesRequest, callback: google.cloud.bigquery.v2.RowAccessPolicyService.ListRowAccessPoliciesCallback): void;
+
+ /**
+ * Calls ListRowAccessPolicies.
+ * @param request ListRowAccessPoliciesRequest message or plain object
+ * @returns Promise
+ */
+ public listRowAccessPolicies(request: google.cloud.bigquery.v2.IListRowAccessPoliciesRequest): Promise;
+
+ /**
+ * Calls GetRowAccessPolicy.
+ * @param request GetRowAccessPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RowAccessPolicy
+ */
+ public getRowAccessPolicy(request: google.cloud.bigquery.v2.IGetRowAccessPolicyRequest, callback: google.cloud.bigquery.v2.RowAccessPolicyService.GetRowAccessPolicyCallback): void;
+
+ /**
+ * Calls GetRowAccessPolicy.
+ * @param request GetRowAccessPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public getRowAccessPolicy(request: google.cloud.bigquery.v2.IGetRowAccessPolicyRequest): Promise;
+
+ /**
+ * Calls CreateRowAccessPolicy.
+ * @param request CreateRowAccessPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RowAccessPolicy
+ */
+ public createRowAccessPolicy(request: google.cloud.bigquery.v2.ICreateRowAccessPolicyRequest, callback: google.cloud.bigquery.v2.RowAccessPolicyService.CreateRowAccessPolicyCallback): void;
+
+ /**
+ * Calls CreateRowAccessPolicy.
+ * @param request CreateRowAccessPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public createRowAccessPolicy(request: google.cloud.bigquery.v2.ICreateRowAccessPolicyRequest): Promise;
+
+ /**
+ * Calls UpdateRowAccessPolicy.
+ * @param request UpdateRowAccessPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RowAccessPolicy
+ */
+ public updateRowAccessPolicy(request: google.cloud.bigquery.v2.IUpdateRowAccessPolicyRequest, callback: google.cloud.bigquery.v2.RowAccessPolicyService.UpdateRowAccessPolicyCallback): void;
+
+ /**
+ * Calls UpdateRowAccessPolicy.
+ * @param request UpdateRowAccessPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public updateRowAccessPolicy(request: google.cloud.bigquery.v2.IUpdateRowAccessPolicyRequest): Promise;
+
+ /**
+ * Calls DeleteRowAccessPolicy.
+ * @param request DeleteRowAccessPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteRowAccessPolicy(request: google.cloud.bigquery.v2.IDeleteRowAccessPolicyRequest, callback: google.cloud.bigquery.v2.RowAccessPolicyService.DeleteRowAccessPolicyCallback): void;
+
+ /**
+ * Calls DeleteRowAccessPolicy.
+ * @param request DeleteRowAccessPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public deleteRowAccessPolicy(request: google.cloud.bigquery.v2.IDeleteRowAccessPolicyRequest): Promise;
+
+ /**
+ * Calls BatchDeleteRowAccessPolicies.
+ * @param request BatchDeleteRowAccessPoliciesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public batchDeleteRowAccessPolicies(request: google.cloud.bigquery.v2.IBatchDeleteRowAccessPoliciesRequest, callback: google.cloud.bigquery.v2.RowAccessPolicyService.BatchDeleteRowAccessPoliciesCallback): void;
+
+ /**
+ * Calls BatchDeleteRowAccessPolicies.
+ * @param request BatchDeleteRowAccessPoliciesRequest message or plain object
+ * @returns Promise
+ */
+ public batchDeleteRowAccessPolicies(request: google.cloud.bigquery.v2.IBatchDeleteRowAccessPoliciesRequest): Promise;
+ }
+
+ namespace RowAccessPolicyService {
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RowAccessPolicyService|listRowAccessPolicies}.
+ * @param error Error, if any
+ * @param [response] ListRowAccessPoliciesResponse
+ */
+ type ListRowAccessPoliciesCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.ListRowAccessPoliciesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RowAccessPolicyService|getRowAccessPolicy}.
+ * @param error Error, if any
+ * @param [response] RowAccessPolicy
+ */
+ type GetRowAccessPolicyCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.RowAccessPolicy) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RowAccessPolicyService|createRowAccessPolicy}.
+ * @param error Error, if any
+ * @param [response] RowAccessPolicy
+ */
+ type CreateRowAccessPolicyCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.RowAccessPolicy) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RowAccessPolicyService|updateRowAccessPolicy}.
+ * @param error Error, if any
+ * @param [response] RowAccessPolicy
+ */
+ type UpdateRowAccessPolicyCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.RowAccessPolicy) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RowAccessPolicyService|deleteRowAccessPolicy}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteRowAccessPolicyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.RowAccessPolicyService|batchDeleteRowAccessPolicies}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type BatchDeleteRowAccessPoliciesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ }
+
+ /** Properties of a ListRowAccessPoliciesRequest. */
+ interface IListRowAccessPoliciesRequest {
+
+ /** ListRowAccessPoliciesRequest projectId */
+ projectId?: (string|null);
+
+ /** ListRowAccessPoliciesRequest datasetId */
+ datasetId?: (string|null);
+
+ /** ListRowAccessPoliciesRequest tableId */
+ tableId?: (string|null);
+
+ /** ListRowAccessPoliciesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListRowAccessPoliciesRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListRowAccessPoliciesRequest. */
+ class ListRowAccessPoliciesRequest implements IListRowAccessPoliciesRequest {
+
+ /**
+ * Constructs a new ListRowAccessPoliciesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListRowAccessPoliciesRequest);
+
+ /** ListRowAccessPoliciesRequest projectId. */
+ public projectId: string;
+
+ /** ListRowAccessPoliciesRequest datasetId. */
+ public datasetId: string;
+
+ /** ListRowAccessPoliciesRequest tableId. */
+ public tableId: string;
+
+ /** ListRowAccessPoliciesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListRowAccessPoliciesRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListRowAccessPoliciesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRowAccessPoliciesRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListRowAccessPoliciesRequest): google.cloud.bigquery.v2.ListRowAccessPoliciesRequest;
+
+ /**
+ * Encodes the specified ListRowAccessPoliciesRequest message. Does not implicitly {@link google.cloud.bigquery.v2.ListRowAccessPoliciesRequest.verify|verify} messages.
+ * @param message ListRowAccessPoliciesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListRowAccessPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRowAccessPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListRowAccessPoliciesRequest.verify|verify} messages.
+ * @param message ListRowAccessPoliciesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListRowAccessPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRowAccessPoliciesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRowAccessPoliciesRequest
+ * @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.cloud.bigquery.v2.ListRowAccessPoliciesRequest;
+
+ /**
+ * Decodes a ListRowAccessPoliciesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRowAccessPoliciesRequest
+ * @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.cloud.bigquery.v2.ListRowAccessPoliciesRequest;
+
+ /**
+ * Verifies a ListRowAccessPoliciesRequest 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 ListRowAccessPoliciesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRowAccessPoliciesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListRowAccessPoliciesRequest;
+
+ /**
+ * Creates a plain object from a ListRowAccessPoliciesRequest message. Also converts values to other types if specified.
+ * @param message ListRowAccessPoliciesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListRowAccessPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRowAccessPoliciesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRowAccessPoliciesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRowAccessPoliciesResponse. */
+ interface IListRowAccessPoliciesResponse {
+
+ /** ListRowAccessPoliciesResponse rowAccessPolicies */
+ rowAccessPolicies?: (google.cloud.bigquery.v2.IRowAccessPolicy[]|null);
+
+ /** ListRowAccessPoliciesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListRowAccessPoliciesResponse. */
+ class ListRowAccessPoliciesResponse implements IListRowAccessPoliciesResponse {
+
+ /**
+ * Constructs a new ListRowAccessPoliciesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListRowAccessPoliciesResponse);
+
+ /** ListRowAccessPoliciesResponse rowAccessPolicies. */
+ public rowAccessPolicies: google.cloud.bigquery.v2.IRowAccessPolicy[];
+
+ /** ListRowAccessPoliciesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListRowAccessPoliciesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRowAccessPoliciesResponse instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListRowAccessPoliciesResponse): google.cloud.bigquery.v2.ListRowAccessPoliciesResponse;
+
+ /**
+ * Encodes the specified ListRowAccessPoliciesResponse message. Does not implicitly {@link google.cloud.bigquery.v2.ListRowAccessPoliciesResponse.verify|verify} messages.
+ * @param message ListRowAccessPoliciesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListRowAccessPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRowAccessPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListRowAccessPoliciesResponse.verify|verify} messages.
+ * @param message ListRowAccessPoliciesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListRowAccessPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRowAccessPoliciesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRowAccessPoliciesResponse
+ * @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.cloud.bigquery.v2.ListRowAccessPoliciesResponse;
+
+ /**
+ * Decodes a ListRowAccessPoliciesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRowAccessPoliciesResponse
+ * @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.cloud.bigquery.v2.ListRowAccessPoliciesResponse;
+
+ /**
+ * Verifies a ListRowAccessPoliciesResponse 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 ListRowAccessPoliciesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRowAccessPoliciesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListRowAccessPoliciesResponse;
+
+ /**
+ * Creates a plain object from a ListRowAccessPoliciesResponse message. Also converts values to other types if specified.
+ * @param message ListRowAccessPoliciesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListRowAccessPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRowAccessPoliciesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRowAccessPoliciesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetRowAccessPolicyRequest. */
+ interface IGetRowAccessPolicyRequest {
+
+ /** GetRowAccessPolicyRequest projectId */
+ projectId?: (string|null);
+
+ /** GetRowAccessPolicyRequest datasetId */
+ datasetId?: (string|null);
+
+ /** GetRowAccessPolicyRequest tableId */
+ tableId?: (string|null);
+
+ /** GetRowAccessPolicyRequest policyId */
+ policyId?: (string|null);
+ }
+
+ /** Represents a GetRowAccessPolicyRequest. */
+ class GetRowAccessPolicyRequest implements IGetRowAccessPolicyRequest {
+
+ /**
+ * Constructs a new GetRowAccessPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetRowAccessPolicyRequest);
+
+ /** GetRowAccessPolicyRequest projectId. */
+ public projectId: string;
+
+ /** GetRowAccessPolicyRequest datasetId. */
+ public datasetId: string;
+
+ /** GetRowAccessPolicyRequest tableId. */
+ public tableId: string;
+
+ /** GetRowAccessPolicyRequest policyId. */
+ public policyId: string;
+
+ /**
+ * Creates a new GetRowAccessPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetRowAccessPolicyRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetRowAccessPolicyRequest): google.cloud.bigquery.v2.GetRowAccessPolicyRequest;
+
+ /**
+ * Encodes the specified GetRowAccessPolicyRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetRowAccessPolicyRequest.verify|verify} messages.
+ * @param message GetRowAccessPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetRowAccessPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetRowAccessPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetRowAccessPolicyRequest.verify|verify} messages.
+ * @param message GetRowAccessPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetRowAccessPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetRowAccessPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetRowAccessPolicyRequest
+ * @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.cloud.bigquery.v2.GetRowAccessPolicyRequest;
+
+ /**
+ * Decodes a GetRowAccessPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetRowAccessPolicyRequest
+ * @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.cloud.bigquery.v2.GetRowAccessPolicyRequest;
+
+ /**
+ * Verifies a GetRowAccessPolicyRequest 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 GetRowAccessPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetRowAccessPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetRowAccessPolicyRequest;
+
+ /**
+ * Creates a plain object from a GetRowAccessPolicyRequest message. Also converts values to other types if specified.
+ * @param message GetRowAccessPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetRowAccessPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetRowAccessPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetRowAccessPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateRowAccessPolicyRequest. */
+ interface ICreateRowAccessPolicyRequest {
+
+ /** CreateRowAccessPolicyRequest projectId */
+ projectId?: (string|null);
+
+ /** CreateRowAccessPolicyRequest datasetId */
+ datasetId?: (string|null);
+
+ /** CreateRowAccessPolicyRequest tableId */
+ tableId?: (string|null);
+
+ /** CreateRowAccessPolicyRequest rowAccessPolicy */
+ rowAccessPolicy?: (google.cloud.bigquery.v2.IRowAccessPolicy|null);
+ }
+
+ /** Represents a CreateRowAccessPolicyRequest. */
+ class CreateRowAccessPolicyRequest implements ICreateRowAccessPolicyRequest {
+
+ /**
+ * Constructs a new CreateRowAccessPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ICreateRowAccessPolicyRequest);
+
+ /** CreateRowAccessPolicyRequest projectId. */
+ public projectId: string;
+
+ /** CreateRowAccessPolicyRequest datasetId. */
+ public datasetId: string;
+
+ /** CreateRowAccessPolicyRequest tableId. */
+ public tableId: string;
+
+ /** CreateRowAccessPolicyRequest rowAccessPolicy. */
+ public rowAccessPolicy?: (google.cloud.bigquery.v2.IRowAccessPolicy|null);
+
+ /**
+ * Creates a new CreateRowAccessPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateRowAccessPolicyRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ICreateRowAccessPolicyRequest): google.cloud.bigquery.v2.CreateRowAccessPolicyRequest;
+
+ /**
+ * Encodes the specified CreateRowAccessPolicyRequest message. Does not implicitly {@link google.cloud.bigquery.v2.CreateRowAccessPolicyRequest.verify|verify} messages.
+ * @param message CreateRowAccessPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ICreateRowAccessPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateRowAccessPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.CreateRowAccessPolicyRequest.verify|verify} messages.
+ * @param message CreateRowAccessPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ICreateRowAccessPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateRowAccessPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateRowAccessPolicyRequest
+ * @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.cloud.bigquery.v2.CreateRowAccessPolicyRequest;
+
+ /**
+ * Decodes a CreateRowAccessPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateRowAccessPolicyRequest
+ * @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.cloud.bigquery.v2.CreateRowAccessPolicyRequest;
+
+ /**
+ * Verifies a CreateRowAccessPolicyRequest 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 CreateRowAccessPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateRowAccessPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.CreateRowAccessPolicyRequest;
+
+ /**
+ * Creates a plain object from a CreateRowAccessPolicyRequest message. Also converts values to other types if specified.
+ * @param message CreateRowAccessPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.CreateRowAccessPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateRowAccessPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateRowAccessPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateRowAccessPolicyRequest. */
+ interface IUpdateRowAccessPolicyRequest {
+
+ /** UpdateRowAccessPolicyRequest projectId */
+ projectId?: (string|null);
+
+ /** UpdateRowAccessPolicyRequest datasetId */
+ datasetId?: (string|null);
+
+ /** UpdateRowAccessPolicyRequest tableId */
+ tableId?: (string|null);
+
+ /** UpdateRowAccessPolicyRequest policyId */
+ policyId?: (string|null);
+
+ /** UpdateRowAccessPolicyRequest rowAccessPolicy */
+ rowAccessPolicy?: (google.cloud.bigquery.v2.IRowAccessPolicy|null);
+ }
+
+ /** Represents an UpdateRowAccessPolicyRequest. */
+ class UpdateRowAccessPolicyRequest implements IUpdateRowAccessPolicyRequest {
+
+ /**
+ * Constructs a new UpdateRowAccessPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IUpdateRowAccessPolicyRequest);
+
+ /** UpdateRowAccessPolicyRequest projectId. */
+ public projectId: string;
+
+ /** UpdateRowAccessPolicyRequest datasetId. */
+ public datasetId: string;
+
+ /** UpdateRowAccessPolicyRequest tableId. */
+ public tableId: string;
+
+ /** UpdateRowAccessPolicyRequest policyId. */
+ public policyId: string;
+
+ /** UpdateRowAccessPolicyRequest rowAccessPolicy. */
+ public rowAccessPolicy?: (google.cloud.bigquery.v2.IRowAccessPolicy|null);
+
+ /**
+ * Creates a new UpdateRowAccessPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateRowAccessPolicyRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IUpdateRowAccessPolicyRequest): google.cloud.bigquery.v2.UpdateRowAccessPolicyRequest;
+
+ /**
+ * Encodes the specified UpdateRowAccessPolicyRequest message. Does not implicitly {@link google.cloud.bigquery.v2.UpdateRowAccessPolicyRequest.verify|verify} messages.
+ * @param message UpdateRowAccessPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IUpdateRowAccessPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateRowAccessPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.UpdateRowAccessPolicyRequest.verify|verify} messages.
+ * @param message UpdateRowAccessPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IUpdateRowAccessPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateRowAccessPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateRowAccessPolicyRequest
+ * @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.cloud.bigquery.v2.UpdateRowAccessPolicyRequest;
+
+ /**
+ * Decodes an UpdateRowAccessPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateRowAccessPolicyRequest
+ * @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.cloud.bigquery.v2.UpdateRowAccessPolicyRequest;
+
+ /**
+ * Verifies an UpdateRowAccessPolicyRequest 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 UpdateRowAccessPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateRowAccessPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.UpdateRowAccessPolicyRequest;
+
+ /**
+ * Creates a plain object from an UpdateRowAccessPolicyRequest message. Also converts values to other types if specified.
+ * @param message UpdateRowAccessPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.UpdateRowAccessPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateRowAccessPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateRowAccessPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteRowAccessPolicyRequest. */
+ interface IDeleteRowAccessPolicyRequest {
+
+ /** DeleteRowAccessPolicyRequest projectId */
+ projectId?: (string|null);
+
+ /** DeleteRowAccessPolicyRequest datasetId */
+ datasetId?: (string|null);
+
+ /** DeleteRowAccessPolicyRequest tableId */
+ tableId?: (string|null);
+
+ /** DeleteRowAccessPolicyRequest policyId */
+ policyId?: (string|null);
+
+ /** DeleteRowAccessPolicyRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a DeleteRowAccessPolicyRequest. */
+ class DeleteRowAccessPolicyRequest implements IDeleteRowAccessPolicyRequest {
+
+ /**
+ * Constructs a new DeleteRowAccessPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDeleteRowAccessPolicyRequest);
+
+ /** DeleteRowAccessPolicyRequest projectId. */
+ public projectId: string;
+
+ /** DeleteRowAccessPolicyRequest datasetId. */
+ public datasetId: string;
+
+ /** DeleteRowAccessPolicyRequest tableId. */
+ public tableId: string;
+
+ /** DeleteRowAccessPolicyRequest policyId. */
+ public policyId: string;
+
+ /** DeleteRowAccessPolicyRequest force. */
+ public force?: (boolean|null);
+
+ /**
+ * Creates a new DeleteRowAccessPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteRowAccessPolicyRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDeleteRowAccessPolicyRequest): google.cloud.bigquery.v2.DeleteRowAccessPolicyRequest;
+
+ /**
+ * Encodes the specified DeleteRowAccessPolicyRequest message. Does not implicitly {@link google.cloud.bigquery.v2.DeleteRowAccessPolicyRequest.verify|verify} messages.
+ * @param message DeleteRowAccessPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDeleteRowAccessPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteRowAccessPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DeleteRowAccessPolicyRequest.verify|verify} messages.
+ * @param message DeleteRowAccessPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDeleteRowAccessPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteRowAccessPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteRowAccessPolicyRequest
+ * @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.cloud.bigquery.v2.DeleteRowAccessPolicyRequest;
+
+ /**
+ * Decodes a DeleteRowAccessPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteRowAccessPolicyRequest
+ * @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.cloud.bigquery.v2.DeleteRowAccessPolicyRequest;
+
+ /**
+ * Verifies a DeleteRowAccessPolicyRequest 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 DeleteRowAccessPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteRowAccessPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DeleteRowAccessPolicyRequest;
+
+ /**
+ * Creates a plain object from a DeleteRowAccessPolicyRequest message. Also converts values to other types if specified.
+ * @param message DeleteRowAccessPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DeleteRowAccessPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteRowAccessPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteRowAccessPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BatchDeleteRowAccessPoliciesRequest. */
+ interface IBatchDeleteRowAccessPoliciesRequest {
+
+ /** BatchDeleteRowAccessPoliciesRequest projectId */
+ projectId?: (string|null);
+
+ /** BatchDeleteRowAccessPoliciesRequest datasetId */
+ datasetId?: (string|null);
+
+ /** BatchDeleteRowAccessPoliciesRequest tableId */
+ tableId?: (string|null);
+
+ /** BatchDeleteRowAccessPoliciesRequest policyIds */
+ policyIds?: (string[]|null);
+
+ /** BatchDeleteRowAccessPoliciesRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a BatchDeleteRowAccessPoliciesRequest. */
+ class BatchDeleteRowAccessPoliciesRequest implements IBatchDeleteRowAccessPoliciesRequest {
+
+ /**
+ * Constructs a new BatchDeleteRowAccessPoliciesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IBatchDeleteRowAccessPoliciesRequest);
+
+ /** BatchDeleteRowAccessPoliciesRequest projectId. */
+ public projectId: string;
+
+ /** BatchDeleteRowAccessPoliciesRequest datasetId. */
+ public datasetId: string;
+
+ /** BatchDeleteRowAccessPoliciesRequest tableId. */
+ public tableId: string;
+
+ /** BatchDeleteRowAccessPoliciesRequest policyIds. */
+ public policyIds: string[];
+
+ /** BatchDeleteRowAccessPoliciesRequest force. */
+ public force?: (boolean|null);
+
+ /**
+ * Creates a new BatchDeleteRowAccessPoliciesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BatchDeleteRowAccessPoliciesRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IBatchDeleteRowAccessPoliciesRequest): google.cloud.bigquery.v2.BatchDeleteRowAccessPoliciesRequest;
+
+ /**
+ * Encodes the specified BatchDeleteRowAccessPoliciesRequest message. Does not implicitly {@link google.cloud.bigquery.v2.BatchDeleteRowAccessPoliciesRequest.verify|verify} messages.
+ * @param message BatchDeleteRowAccessPoliciesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IBatchDeleteRowAccessPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BatchDeleteRowAccessPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BatchDeleteRowAccessPoliciesRequest.verify|verify} messages.
+ * @param message BatchDeleteRowAccessPoliciesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IBatchDeleteRowAccessPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BatchDeleteRowAccessPoliciesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BatchDeleteRowAccessPoliciesRequest
+ * @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.cloud.bigquery.v2.BatchDeleteRowAccessPoliciesRequest;
+
+ /**
+ * Decodes a BatchDeleteRowAccessPoliciesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BatchDeleteRowAccessPoliciesRequest
+ * @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.cloud.bigquery.v2.BatchDeleteRowAccessPoliciesRequest;
+
+ /**
+ * Verifies a BatchDeleteRowAccessPoliciesRequest 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 BatchDeleteRowAccessPoliciesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BatchDeleteRowAccessPoliciesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.BatchDeleteRowAccessPoliciesRequest;
+
+ /**
+ * Creates a plain object from a BatchDeleteRowAccessPoliciesRequest message. Also converts values to other types if specified.
+ * @param message BatchDeleteRowAccessPoliciesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.BatchDeleteRowAccessPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BatchDeleteRowAccessPoliciesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BatchDeleteRowAccessPoliciesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RowAccessPolicy. */
+ interface IRowAccessPolicy {
+
+ /** RowAccessPolicy etag */
+ etag?: (string|null);
+
+ /** RowAccessPolicy rowAccessPolicyReference */
+ rowAccessPolicyReference?: (google.cloud.bigquery.v2.IRowAccessPolicyReference|null);
+
+ /** RowAccessPolicy filterPredicate */
+ filterPredicate?: (string|null);
+
+ /** RowAccessPolicy creationTime */
+ creationTime?: (google.protobuf.ITimestamp|null);
+
+ /** RowAccessPolicy lastModifiedTime */
+ lastModifiedTime?: (google.protobuf.ITimestamp|null);
+
+ /** RowAccessPolicy grantees */
+ grantees?: (string[]|null);
+ }
+
+ /** Represents a RowAccessPolicy. */
+ class RowAccessPolicy implements IRowAccessPolicy {
+
+ /**
+ * Constructs a new RowAccessPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IRowAccessPolicy);
+
+ /** RowAccessPolicy etag. */
+ public etag: string;
+
+ /** RowAccessPolicy rowAccessPolicyReference. */
+ public rowAccessPolicyReference?: (google.cloud.bigquery.v2.IRowAccessPolicyReference|null);
+
+ /** RowAccessPolicy filterPredicate. */
+ public filterPredicate: string;
+
+ /** RowAccessPolicy creationTime. */
+ public creationTime?: (google.protobuf.ITimestamp|null);
+
+ /** RowAccessPolicy lastModifiedTime. */
+ public lastModifiedTime?: (google.protobuf.ITimestamp|null);
+
+ /** RowAccessPolicy grantees. */
+ public grantees: string[];
+
+ /**
+ * Creates a new RowAccessPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RowAccessPolicy instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IRowAccessPolicy): google.cloud.bigquery.v2.RowAccessPolicy;
+
+ /**
+ * Encodes the specified RowAccessPolicy message. Does not implicitly {@link google.cloud.bigquery.v2.RowAccessPolicy.verify|verify} messages.
+ * @param message RowAccessPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IRowAccessPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RowAccessPolicy message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RowAccessPolicy.verify|verify} messages.
+ * @param message RowAccessPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IRowAccessPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RowAccessPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RowAccessPolicy
+ * @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.cloud.bigquery.v2.RowAccessPolicy;
+
+ /**
+ * Decodes a RowAccessPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RowAccessPolicy
+ * @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.cloud.bigquery.v2.RowAccessPolicy;
+
+ /**
+ * Verifies a RowAccessPolicy 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 RowAccessPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RowAccessPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.RowAccessPolicy;
+
+ /**
+ * Creates a plain object from a RowAccessPolicy message. Also converts values to other types if specified.
+ * @param message RowAccessPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.RowAccessPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RowAccessPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RowAccessPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a TableService */
+ class TableService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new TableService service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new TableService service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TableService;
+
+ /**
+ * Calls GetTable.
+ * @param request GetTableRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Table
+ */
+ public getTable(request: google.cloud.bigquery.v2.IGetTableRequest, callback: google.cloud.bigquery.v2.TableService.GetTableCallback): void;
+
+ /**
+ * Calls GetTable.
+ * @param request GetTableRequest message or plain object
+ * @returns Promise
+ */
+ public getTable(request: google.cloud.bigquery.v2.IGetTableRequest): Promise;
+
+ /**
+ * Calls InsertTable.
+ * @param request InsertTableRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Table
+ */
+ public insertTable(request: google.cloud.bigquery.v2.IInsertTableRequest, callback: google.cloud.bigquery.v2.TableService.InsertTableCallback): void;
+
+ /**
+ * Calls InsertTable.
+ * @param request InsertTableRequest message or plain object
+ * @returns Promise
+ */
+ public insertTable(request: google.cloud.bigquery.v2.IInsertTableRequest): Promise;
+
+ /**
+ * Calls PatchTable.
+ * @param request UpdateOrPatchTableRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Table
+ */
+ public patchTable(request: google.cloud.bigquery.v2.IUpdateOrPatchTableRequest, callback: google.cloud.bigquery.v2.TableService.PatchTableCallback): void;
+
+ /**
+ * Calls PatchTable.
+ * @param request UpdateOrPatchTableRequest message or plain object
+ * @returns Promise
+ */
+ public patchTable(request: google.cloud.bigquery.v2.IUpdateOrPatchTableRequest): Promise;
+
+ /**
+ * Calls UpdateTable.
+ * @param request UpdateOrPatchTableRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Table
+ */
+ public updateTable(request: google.cloud.bigquery.v2.IUpdateOrPatchTableRequest, callback: google.cloud.bigquery.v2.TableService.UpdateTableCallback): void;
+
+ /**
+ * Calls UpdateTable.
+ * @param request UpdateOrPatchTableRequest message or plain object
+ * @returns Promise
+ */
+ public updateTable(request: google.cloud.bigquery.v2.IUpdateOrPatchTableRequest): Promise;
+
+ /**
+ * Calls DeleteTable.
+ * @param request DeleteTableRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteTable(request: google.cloud.bigquery.v2.IDeleteTableRequest, callback: google.cloud.bigquery.v2.TableService.DeleteTableCallback): void;
+
+ /**
+ * Calls DeleteTable.
+ * @param request DeleteTableRequest message or plain object
+ * @returns Promise
+ */
+ public deleteTable(request: google.cloud.bigquery.v2.IDeleteTableRequest): Promise;
+
+ /**
+ * Calls ListTables.
+ * @param request ListTablesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TableList
+ */
+ public listTables(request: google.cloud.bigquery.v2.IListTablesRequest, callback: google.cloud.bigquery.v2.TableService.ListTablesCallback): void;
+
+ /**
+ * Calls ListTables.
+ * @param request ListTablesRequest message or plain object
+ * @returns Promise
+ */
+ public listTables(request: google.cloud.bigquery.v2.IListTablesRequest): Promise;
+ }
+
+ namespace TableService {
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.TableService|getTable}.
+ * @param error Error, if any
+ * @param [response] Table
+ */
+ type GetTableCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Table) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.TableService|insertTable}.
+ * @param error Error, if any
+ * @param [response] Table
+ */
+ type InsertTableCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Table) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.TableService|patchTable}.
+ * @param error Error, if any
+ * @param [response] Table
+ */
+ type PatchTableCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Table) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.TableService|updateTable}.
+ * @param error Error, if any
+ * @param [response] Table
+ */
+ type UpdateTableCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.Table) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.TableService|deleteTable}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteTableCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.TableService|listTables}.
+ * @param error Error, if any
+ * @param [response] TableList
+ */
+ type ListTablesCallback = (error: (Error|null), response?: google.cloud.bigquery.v2.TableList) => void;
+ }
+
+ /** Properties of a TableReplicationInfo. */
+ interface ITableReplicationInfo {
+
+ /** TableReplicationInfo sourceTable */
+ sourceTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** TableReplicationInfo replicationIntervalMs */
+ replicationIntervalMs?: (number|Long|string|null);
+
+ /** TableReplicationInfo replicatedSourceLastRefreshTime */
+ replicatedSourceLastRefreshTime?: (number|Long|string|null);
+
+ /** TableReplicationInfo replicationStatus */
+ replicationStatus?: (google.cloud.bigquery.v2.TableReplicationInfo.ReplicationStatus|keyof typeof google.cloud.bigquery.v2.TableReplicationInfo.ReplicationStatus|null);
+
+ /** TableReplicationInfo replicationError */
+ replicationError?: (google.cloud.bigquery.v2.IErrorProto|null);
+ }
+
+ /** Represents a TableReplicationInfo. */
+ class TableReplicationInfo implements ITableReplicationInfo {
+
+ /**
+ * Constructs a new TableReplicationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITableReplicationInfo);
+
+ /** TableReplicationInfo sourceTable. */
+ public sourceTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** TableReplicationInfo replicationIntervalMs. */
+ public replicationIntervalMs: (number|Long|string);
+
+ /** TableReplicationInfo replicatedSourceLastRefreshTime. */
+ public replicatedSourceLastRefreshTime: (number|Long|string);
+
+ /** TableReplicationInfo replicationStatus. */
+ public replicationStatus: (google.cloud.bigquery.v2.TableReplicationInfo.ReplicationStatus|keyof typeof google.cloud.bigquery.v2.TableReplicationInfo.ReplicationStatus);
+
+ /** TableReplicationInfo replicationError. */
+ public replicationError?: (google.cloud.bigquery.v2.IErrorProto|null);
+
+ /**
+ * Creates a new TableReplicationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableReplicationInfo instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITableReplicationInfo): google.cloud.bigquery.v2.TableReplicationInfo;
+
+ /**
+ * Encodes the specified TableReplicationInfo message. Does not implicitly {@link google.cloud.bigquery.v2.TableReplicationInfo.verify|verify} messages.
+ * @param message TableReplicationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITableReplicationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableReplicationInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableReplicationInfo.verify|verify} messages.
+ * @param message TableReplicationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITableReplicationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableReplicationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableReplicationInfo
+ * @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.cloud.bigquery.v2.TableReplicationInfo;
+
+ /**
+ * Decodes a TableReplicationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableReplicationInfo
+ * @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.cloud.bigquery.v2.TableReplicationInfo;
+
+ /**
+ * Verifies a TableReplicationInfo 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 TableReplicationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableReplicationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableReplicationInfo;
+
+ /**
+ * Creates a plain object from a TableReplicationInfo message. Also converts values to other types if specified.
+ * @param message TableReplicationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableReplicationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableReplicationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableReplicationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace TableReplicationInfo {
+
+ /** ReplicationStatus enum. */
+ enum ReplicationStatus {
+ REPLICATION_STATUS_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ SOURCE_DELETED = 2,
+ PERMISSION_DENIED = 3,
+ UNSUPPORTED_CONFIGURATION = 4
+ }
+ }
+
+ /** Properties of a ViewDefinition. */
+ interface IViewDefinition {
+
+ /** ViewDefinition query */
+ query?: (string|null);
+
+ /** ViewDefinition userDefinedFunctionResources */
+ userDefinedFunctionResources?: (google.cloud.bigquery.v2.IUserDefinedFunctionResource[]|null);
+
+ /** ViewDefinition useLegacySql */
+ useLegacySql?: (google.protobuf.IBoolValue|null);
+
+ /** ViewDefinition useExplicitColumnNames */
+ useExplicitColumnNames?: (boolean|null);
+
+ /** ViewDefinition privacyPolicy */
+ privacyPolicy?: (google.cloud.bigquery.v2.IPrivacyPolicy|null);
+
+ /** ViewDefinition foreignDefinitions */
+ foreignDefinitions?: (google.cloud.bigquery.v2.IForeignViewDefinition[]|null);
+ }
+
+ /** Represents a ViewDefinition. */
+ class ViewDefinition implements IViewDefinition {
+
+ /**
+ * Constructs a new ViewDefinition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IViewDefinition);
+
+ /** ViewDefinition query. */
+ public query: string;
+
+ /** ViewDefinition userDefinedFunctionResources. */
+ public userDefinedFunctionResources: google.cloud.bigquery.v2.IUserDefinedFunctionResource[];
+
+ /** ViewDefinition useLegacySql. */
+ public useLegacySql?: (google.protobuf.IBoolValue|null);
+
+ /** ViewDefinition useExplicitColumnNames. */
+ public useExplicitColumnNames: boolean;
+
+ /** ViewDefinition privacyPolicy. */
+ public privacyPolicy?: (google.cloud.bigquery.v2.IPrivacyPolicy|null);
+
+ /** ViewDefinition foreignDefinitions. */
+ public foreignDefinitions: google.cloud.bigquery.v2.IForeignViewDefinition[];
+
+ /**
+ * Creates a new ViewDefinition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ViewDefinition instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IViewDefinition): google.cloud.bigquery.v2.ViewDefinition;
+
+ /**
+ * Encodes the specified ViewDefinition message. Does not implicitly {@link google.cloud.bigquery.v2.ViewDefinition.verify|verify} messages.
+ * @param message ViewDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IViewDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ViewDefinition message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ViewDefinition.verify|verify} messages.
+ * @param message ViewDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IViewDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ViewDefinition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ViewDefinition
+ * @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.cloud.bigquery.v2.ViewDefinition;
+
+ /**
+ * Decodes a ViewDefinition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ViewDefinition
+ * @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.cloud.bigquery.v2.ViewDefinition;
+
+ /**
+ * Verifies a ViewDefinition 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 ViewDefinition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ViewDefinition
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ViewDefinition;
+
+ /**
+ * Creates a plain object from a ViewDefinition message. Also converts values to other types if specified.
+ * @param message ViewDefinition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ViewDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ViewDefinition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ViewDefinition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ForeignViewDefinition. */
+ interface IForeignViewDefinition {
+
+ /** ForeignViewDefinition query */
+ query?: (string|null);
+
+ /** ForeignViewDefinition dialect */
+ dialect?: (string|null);
+ }
+
+ /** Represents a ForeignViewDefinition. */
+ class ForeignViewDefinition implements IForeignViewDefinition {
+
+ /**
+ * Constructs a new ForeignViewDefinition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IForeignViewDefinition);
+
+ /** ForeignViewDefinition query. */
+ public query: string;
+
+ /** ForeignViewDefinition dialect. */
+ public dialect: string;
+
+ /**
+ * Creates a new ForeignViewDefinition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ForeignViewDefinition instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IForeignViewDefinition): google.cloud.bigquery.v2.ForeignViewDefinition;
+
+ /**
+ * Encodes the specified ForeignViewDefinition message. Does not implicitly {@link google.cloud.bigquery.v2.ForeignViewDefinition.verify|verify} messages.
+ * @param message ForeignViewDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IForeignViewDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ForeignViewDefinition message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ForeignViewDefinition.verify|verify} messages.
+ * @param message ForeignViewDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IForeignViewDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ForeignViewDefinition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ForeignViewDefinition
+ * @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.cloud.bigquery.v2.ForeignViewDefinition;
+
+ /**
+ * Decodes a ForeignViewDefinition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ForeignViewDefinition
+ * @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.cloud.bigquery.v2.ForeignViewDefinition;
+
+ /**
+ * Verifies a ForeignViewDefinition 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 ForeignViewDefinition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ForeignViewDefinition
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ForeignViewDefinition;
+
+ /**
+ * Creates a plain object from a ForeignViewDefinition message. Also converts values to other types if specified.
+ * @param message ForeignViewDefinition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ForeignViewDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ForeignViewDefinition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ForeignViewDefinition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MaterializedViewDefinition. */
+ interface IMaterializedViewDefinition {
+
+ /** MaterializedViewDefinition query */
+ query?: (string|null);
+
+ /** MaterializedViewDefinition lastRefreshTime */
+ lastRefreshTime?: (number|Long|string|null);
+
+ /** MaterializedViewDefinition enableRefresh */
+ enableRefresh?: (google.protobuf.IBoolValue|null);
+
+ /** MaterializedViewDefinition refreshIntervalMs */
+ refreshIntervalMs?: (google.protobuf.IUInt64Value|null);
+
+ /** MaterializedViewDefinition allowNonIncrementalDefinition */
+ allowNonIncrementalDefinition?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents a MaterializedViewDefinition. */
+ class MaterializedViewDefinition implements IMaterializedViewDefinition {
+
+ /**
+ * Constructs a new MaterializedViewDefinition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IMaterializedViewDefinition);
+
+ /** MaterializedViewDefinition query. */
+ public query: string;
+
+ /** MaterializedViewDefinition lastRefreshTime. */
+ public lastRefreshTime: (number|Long|string);
+
+ /** MaterializedViewDefinition enableRefresh. */
+ public enableRefresh?: (google.protobuf.IBoolValue|null);
+
+ /** MaterializedViewDefinition refreshIntervalMs. */
+ public refreshIntervalMs?: (google.protobuf.IUInt64Value|null);
+
+ /** MaterializedViewDefinition allowNonIncrementalDefinition. */
+ public allowNonIncrementalDefinition?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new MaterializedViewDefinition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaterializedViewDefinition instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IMaterializedViewDefinition): google.cloud.bigquery.v2.MaterializedViewDefinition;
+
+ /**
+ * Encodes the specified MaterializedViewDefinition message. Does not implicitly {@link google.cloud.bigquery.v2.MaterializedViewDefinition.verify|verify} messages.
+ * @param message MaterializedViewDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IMaterializedViewDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaterializedViewDefinition message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.MaterializedViewDefinition.verify|verify} messages.
+ * @param message MaterializedViewDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IMaterializedViewDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaterializedViewDefinition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaterializedViewDefinition
+ * @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.cloud.bigquery.v2.MaterializedViewDefinition;
+
+ /**
+ * Decodes a MaterializedViewDefinition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaterializedViewDefinition
+ * @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.cloud.bigquery.v2.MaterializedViewDefinition;
+
+ /**
+ * Verifies a MaterializedViewDefinition 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 MaterializedViewDefinition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaterializedViewDefinition
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.MaterializedViewDefinition;
+
+ /**
+ * Creates a plain object from a MaterializedViewDefinition message. Also converts values to other types if specified.
+ * @param message MaterializedViewDefinition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.MaterializedViewDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaterializedViewDefinition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MaterializedViewDefinition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MaterializedViewStatus. */
+ interface IMaterializedViewStatus {
+
+ /** MaterializedViewStatus refreshWatermark */
+ refreshWatermark?: (google.protobuf.ITimestamp|null);
+
+ /** MaterializedViewStatus lastRefreshStatus */
+ lastRefreshStatus?: (google.cloud.bigquery.v2.IErrorProto|null);
+ }
+
+ /** Represents a MaterializedViewStatus. */
+ class MaterializedViewStatus implements IMaterializedViewStatus {
+
+ /**
+ * Constructs a new MaterializedViewStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IMaterializedViewStatus);
+
+ /** MaterializedViewStatus refreshWatermark. */
+ public refreshWatermark?: (google.protobuf.ITimestamp|null);
+
+ /** MaterializedViewStatus lastRefreshStatus. */
+ public lastRefreshStatus?: (google.cloud.bigquery.v2.IErrorProto|null);
+
+ /**
+ * Creates a new MaterializedViewStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaterializedViewStatus instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IMaterializedViewStatus): google.cloud.bigquery.v2.MaterializedViewStatus;
+
+ /**
+ * Encodes the specified MaterializedViewStatus message. Does not implicitly {@link google.cloud.bigquery.v2.MaterializedViewStatus.verify|verify} messages.
+ * @param message MaterializedViewStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IMaterializedViewStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaterializedViewStatus message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.MaterializedViewStatus.verify|verify} messages.
+ * @param message MaterializedViewStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IMaterializedViewStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaterializedViewStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaterializedViewStatus
+ * @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.cloud.bigquery.v2.MaterializedViewStatus;
+
+ /**
+ * Decodes a MaterializedViewStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaterializedViewStatus
+ * @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.cloud.bigquery.v2.MaterializedViewStatus;
+
+ /**
+ * Verifies a MaterializedViewStatus 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 MaterializedViewStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaterializedViewStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.MaterializedViewStatus;
+
+ /**
+ * Creates a plain object from a MaterializedViewStatus message. Also converts values to other types if specified.
+ * @param message MaterializedViewStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.MaterializedViewStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaterializedViewStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MaterializedViewStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SnapshotDefinition. */
+ interface ISnapshotDefinition {
+
+ /** SnapshotDefinition baseTableReference */
+ baseTableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** SnapshotDefinition snapshotTime */
+ snapshotTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a SnapshotDefinition. */
+ class SnapshotDefinition implements ISnapshotDefinition {
+
+ /**
+ * Constructs a new SnapshotDefinition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ISnapshotDefinition);
+
+ /** SnapshotDefinition baseTableReference. */
+ public baseTableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** SnapshotDefinition snapshotTime. */
+ public snapshotTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new SnapshotDefinition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SnapshotDefinition instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ISnapshotDefinition): google.cloud.bigquery.v2.SnapshotDefinition;
+
+ /**
+ * Encodes the specified SnapshotDefinition message. Does not implicitly {@link google.cloud.bigquery.v2.SnapshotDefinition.verify|verify} messages.
+ * @param message SnapshotDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ISnapshotDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SnapshotDefinition message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.SnapshotDefinition.verify|verify} messages.
+ * @param message SnapshotDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ISnapshotDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SnapshotDefinition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SnapshotDefinition
+ * @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.cloud.bigquery.v2.SnapshotDefinition;
+
+ /**
+ * Decodes a SnapshotDefinition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SnapshotDefinition
+ * @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.cloud.bigquery.v2.SnapshotDefinition;
+
+ /**
+ * Verifies a SnapshotDefinition 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 SnapshotDefinition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SnapshotDefinition
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.SnapshotDefinition;
+
+ /**
+ * Creates a plain object from a SnapshotDefinition message. Also converts values to other types if specified.
+ * @param message SnapshotDefinition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.SnapshotDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SnapshotDefinition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SnapshotDefinition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CloneDefinition. */
+ interface ICloneDefinition {
+
+ /** CloneDefinition baseTableReference */
+ baseTableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** CloneDefinition cloneTime */
+ cloneTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a CloneDefinition. */
+ class CloneDefinition implements ICloneDefinition {
+
+ /**
+ * Constructs a new CloneDefinition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ICloneDefinition);
+
+ /** CloneDefinition baseTableReference. */
+ public baseTableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** CloneDefinition cloneTime. */
+ public cloneTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new CloneDefinition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloneDefinition instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ICloneDefinition): google.cloud.bigquery.v2.CloneDefinition;
+
+ /**
+ * Encodes the specified CloneDefinition message. Does not implicitly {@link google.cloud.bigquery.v2.CloneDefinition.verify|verify} messages.
+ * @param message CloneDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ICloneDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloneDefinition message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.CloneDefinition.verify|verify} messages.
+ * @param message CloneDefinition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ICloneDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloneDefinition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloneDefinition
+ * @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.cloud.bigquery.v2.CloneDefinition;
+
+ /**
+ * Decodes a CloneDefinition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloneDefinition
+ * @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.cloud.bigquery.v2.CloneDefinition;
+
+ /**
+ * Verifies a CloneDefinition 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 CloneDefinition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloneDefinition
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.CloneDefinition;
+
+ /**
+ * Creates a plain object from a CloneDefinition message. Also converts values to other types if specified.
+ * @param message CloneDefinition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.CloneDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloneDefinition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloneDefinition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Streamingbuffer. */
+ interface IStreamingbuffer {
+
+ /** Streamingbuffer estimatedBytes */
+ estimatedBytes?: (number|Long|string|null);
+
+ /** Streamingbuffer estimatedRows */
+ estimatedRows?: (number|Long|string|null);
+
+ /** Streamingbuffer oldestEntryTime */
+ oldestEntryTime?: (number|Long|string|null);
+ }
+
+ /** Represents a Streamingbuffer. */
+ class Streamingbuffer implements IStreamingbuffer {
+
+ /**
+ * Constructs a new Streamingbuffer.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IStreamingbuffer);
+
+ /** Streamingbuffer estimatedBytes. */
+ public estimatedBytes: (number|Long|string);
+
+ /** Streamingbuffer estimatedRows. */
+ public estimatedRows: (number|Long|string);
+
+ /** Streamingbuffer oldestEntryTime. */
+ public oldestEntryTime: (number|Long|string);
+
+ /**
+ * Creates a new Streamingbuffer instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Streamingbuffer instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IStreamingbuffer): google.cloud.bigquery.v2.Streamingbuffer;
+
+ /**
+ * Encodes the specified Streamingbuffer message. Does not implicitly {@link google.cloud.bigquery.v2.Streamingbuffer.verify|verify} messages.
+ * @param message Streamingbuffer message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IStreamingbuffer, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Streamingbuffer message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Streamingbuffer.verify|verify} messages.
+ * @param message Streamingbuffer message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IStreamingbuffer, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Streamingbuffer message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Streamingbuffer
+ * @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.cloud.bigquery.v2.Streamingbuffer;
+
+ /**
+ * Decodes a Streamingbuffer message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Streamingbuffer
+ * @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.cloud.bigquery.v2.Streamingbuffer;
+
+ /**
+ * Verifies a Streamingbuffer 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 Streamingbuffer message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Streamingbuffer
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Streamingbuffer;
+
+ /**
+ * Creates a plain object from a Streamingbuffer message. Also converts values to other types if specified.
+ * @param message Streamingbuffer
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Streamingbuffer, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Streamingbuffer to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Streamingbuffer
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Table. */
+ interface ITable {
+
+ /** Table kind */
+ kind?: (string|null);
+
+ /** Table etag */
+ etag?: (string|null);
+
+ /** Table id */
+ id?: (string|null);
+
+ /** Table selfLink */
+ selfLink?: (string|null);
+
+ /** Table tableReference */
+ tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** Table friendlyName */
+ friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** Table description */
+ description?: (google.protobuf.IStringValue|null);
+
+ /** Table labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Table schema */
+ schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** Table timePartitioning */
+ timePartitioning?: (google.cloud.bigquery.v2.ITimePartitioning|null);
+
+ /** Table rangePartitioning */
+ rangePartitioning?: (google.cloud.bigquery.v2.IRangePartitioning|null);
+
+ /** Table clustering */
+ clustering?: (google.cloud.bigquery.v2.IClustering|null);
+
+ /** Table requirePartitionFilter */
+ requirePartitionFilter?: (google.protobuf.IBoolValue|null);
+
+ /** Table partitionDefinition */
+ partitionDefinition?: (google.cloud.bigquery.v2.IPartitioningDefinition|null);
+
+ /** Table numBytes */
+ numBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numPhysicalBytes */
+ numPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numLongTermBytes */
+ numLongTermBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numRows */
+ numRows?: (google.protobuf.IUInt64Value|null);
+
+ /** Table creationTime */
+ creationTime?: (number|Long|string|null);
+
+ /** Table expirationTime */
+ expirationTime?: (google.protobuf.IInt64Value|null);
+
+ /** Table lastModifiedTime */
+ lastModifiedTime?: (number|Long|string|null);
+
+ /** Table type */
+ type?: (string|null);
+
+ /** Table view */
+ view?: (google.cloud.bigquery.v2.IViewDefinition|null);
+
+ /** Table materializedView */
+ materializedView?: (google.cloud.bigquery.v2.IMaterializedViewDefinition|null);
+
+ /** Table materializedViewStatus */
+ materializedViewStatus?: (google.cloud.bigquery.v2.IMaterializedViewStatus|null);
+
+ /** Table externalDataConfiguration */
+ externalDataConfiguration?: (google.cloud.bigquery.v2.IExternalDataConfiguration|null);
+
+ /** Table biglakeConfiguration */
+ biglakeConfiguration?: (google.cloud.bigquery.v2.IBigLakeConfiguration|null);
+
+ /** Table managedTableType */
+ managedTableType?: (google.cloud.bigquery.v2.ManagedTableType|keyof typeof google.cloud.bigquery.v2.ManagedTableType|null);
+
+ /** Table location */
+ location?: (string|null);
+
+ /** Table streamingBuffer */
+ streamingBuffer?: (google.cloud.bigquery.v2.IStreamingbuffer|null);
+
+ /** Table encryptionConfiguration */
+ encryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** Table snapshotDefinition */
+ snapshotDefinition?: (google.cloud.bigquery.v2.ISnapshotDefinition|null);
+
+ /** Table defaultCollation */
+ defaultCollation?: (google.protobuf.IStringValue|null);
+
+ /** Table defaultRoundingMode */
+ defaultRoundingMode?: (google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|keyof typeof google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|null);
+
+ /** Table cloneDefinition */
+ cloneDefinition?: (google.cloud.bigquery.v2.ICloneDefinition|null);
+
+ /** Table numTimeTravelPhysicalBytes */
+ numTimeTravelPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numTotalLogicalBytes */
+ numTotalLogicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numActiveLogicalBytes */
+ numActiveLogicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numLongTermLogicalBytes */
+ numLongTermLogicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numCurrentPhysicalBytes */
+ numCurrentPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numTotalPhysicalBytes */
+ numTotalPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numActivePhysicalBytes */
+ numActivePhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numLongTermPhysicalBytes */
+ numLongTermPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numPartitions */
+ numPartitions?: (google.protobuf.IInt64Value|null);
+
+ /** Table maxStaleness */
+ maxStaleness?: (string|null);
+
+ /** Table restrictions */
+ restrictions?: (google.cloud.bigquery.v2.IRestrictionConfig|null);
+
+ /** Table tableConstraints */
+ tableConstraints?: (google.cloud.bigquery.v2.ITableConstraints|null);
+
+ /** Table resourceTags */
+ resourceTags?: ({ [k: string]: string }|null);
+
+ /** Table tableReplicationInfo */
+ tableReplicationInfo?: (google.cloud.bigquery.v2.ITableReplicationInfo|null);
+
+ /** Table replicas */
+ replicas?: (google.cloud.bigquery.v2.ITableReference[]|null);
+
+ /** Table externalCatalogTableOptions */
+ externalCatalogTableOptions?: (google.cloud.bigquery.v2.IExternalCatalogTableOptions|null);
+ }
+
+ /** Represents a Table. */
+ class Table implements ITable {
+
+ /**
+ * Constructs a new Table.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITable);
+
+ /** Table kind. */
+ public kind: string;
+
+ /** Table etag. */
+ public etag: string;
+
+ /** Table id. */
+ public id: string;
+
+ /** Table selfLink. */
+ public selfLink: string;
+
+ /** Table tableReference. */
+ public tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** Table friendlyName. */
+ public friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** Table description. */
+ public description?: (google.protobuf.IStringValue|null);
+
+ /** Table labels. */
+ public labels: { [k: string]: string };
+
+ /** Table schema. */
+ public schema?: (google.cloud.bigquery.v2.ITableSchema|null);
+
+ /** Table timePartitioning. */
+ public timePartitioning?: (google.cloud.bigquery.v2.ITimePartitioning|null);
+
+ /** Table rangePartitioning. */
+ public rangePartitioning?: (google.cloud.bigquery.v2.IRangePartitioning|null);
+
+ /** Table clustering. */
+ public clustering?: (google.cloud.bigquery.v2.IClustering|null);
+
+ /** Table requirePartitionFilter. */
+ public requirePartitionFilter?: (google.protobuf.IBoolValue|null);
+
+ /** Table partitionDefinition. */
+ public partitionDefinition?: (google.cloud.bigquery.v2.IPartitioningDefinition|null);
+
+ /** Table numBytes. */
+ public numBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numPhysicalBytes. */
+ public numPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numLongTermBytes. */
+ public numLongTermBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numRows. */
+ public numRows?: (google.protobuf.IUInt64Value|null);
+
+ /** Table creationTime. */
+ public creationTime: (number|Long|string);
+
+ /** Table expirationTime. */
+ public expirationTime?: (google.protobuf.IInt64Value|null);
+
+ /** Table lastModifiedTime. */
+ public lastModifiedTime: (number|Long|string);
+
+ /** Table type. */
+ public type: string;
+
+ /** Table view. */
+ public view?: (google.cloud.bigquery.v2.IViewDefinition|null);
+
+ /** Table materializedView. */
+ public materializedView?: (google.cloud.bigquery.v2.IMaterializedViewDefinition|null);
+
+ /** Table materializedViewStatus. */
+ public materializedViewStatus?: (google.cloud.bigquery.v2.IMaterializedViewStatus|null);
+
+ /** Table externalDataConfiguration. */
+ public externalDataConfiguration?: (google.cloud.bigquery.v2.IExternalDataConfiguration|null);
+
+ /** Table biglakeConfiguration. */
+ public biglakeConfiguration?: (google.cloud.bigquery.v2.IBigLakeConfiguration|null);
+
+ /** Table managedTableType. */
+ public managedTableType: (google.cloud.bigquery.v2.ManagedTableType|keyof typeof google.cloud.bigquery.v2.ManagedTableType);
+
+ /** Table location. */
+ public location: string;
+
+ /** Table streamingBuffer. */
+ public streamingBuffer?: (google.cloud.bigquery.v2.IStreamingbuffer|null);
+
+ /** Table encryptionConfiguration. */
+ public encryptionConfiguration?: (google.cloud.bigquery.v2.IEncryptionConfiguration|null);
+
+ /** Table snapshotDefinition. */
+ public snapshotDefinition?: (google.cloud.bigquery.v2.ISnapshotDefinition|null);
+
+ /** Table defaultCollation. */
+ public defaultCollation?: (google.protobuf.IStringValue|null);
+
+ /** Table defaultRoundingMode. */
+ public defaultRoundingMode: (google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|keyof typeof google.cloud.bigquery.v2.TableFieldSchema.RoundingMode);
+
+ /** Table cloneDefinition. */
+ public cloneDefinition?: (google.cloud.bigquery.v2.ICloneDefinition|null);
+
+ /** Table numTimeTravelPhysicalBytes. */
+ public numTimeTravelPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numTotalLogicalBytes. */
+ public numTotalLogicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numActiveLogicalBytes. */
+ public numActiveLogicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numLongTermLogicalBytes. */
+ public numLongTermLogicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numCurrentPhysicalBytes. */
+ public numCurrentPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numTotalPhysicalBytes. */
+ public numTotalPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numActivePhysicalBytes. */
+ public numActivePhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numLongTermPhysicalBytes. */
+ public numLongTermPhysicalBytes?: (google.protobuf.IInt64Value|null);
+
+ /** Table numPartitions. */
+ public numPartitions?: (google.protobuf.IInt64Value|null);
+
+ /** Table maxStaleness. */
+ public maxStaleness: string;
+
+ /** Table restrictions. */
+ public restrictions?: (google.cloud.bigquery.v2.IRestrictionConfig|null);
+
+ /** Table tableConstraints. */
+ public tableConstraints?: (google.cloud.bigquery.v2.ITableConstraints|null);
+
+ /** Table resourceTags. */
+ public resourceTags: { [k: string]: string };
+
+ /** Table tableReplicationInfo. */
+ public tableReplicationInfo?: (google.cloud.bigquery.v2.ITableReplicationInfo|null);
+
+ /** Table replicas. */
+ public replicas: google.cloud.bigquery.v2.ITableReference[];
+
+ /** Table externalCatalogTableOptions. */
+ public externalCatalogTableOptions?: (google.cloud.bigquery.v2.IExternalCatalogTableOptions|null);
+
+ /**
+ * Creates a new Table instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Table instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITable): google.cloud.bigquery.v2.Table;
+
+ /**
+ * Encodes the specified Table message. Does not implicitly {@link google.cloud.bigquery.v2.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Table message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Table.verify|verify} messages.
+ * @param message Table message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Table
+ * @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.cloud.bigquery.v2.Table;
+
+ /**
+ * Decodes a Table message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Table
+ * @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.cloud.bigquery.v2.Table;
+
+ /**
+ * Verifies a Table 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 Table message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Table
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.Table;
+
+ /**
+ * Creates a plain object from a Table message. Also converts values to other types if specified.
+ * @param message Table
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.Table, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Table to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Table
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetTableRequest. */
+ interface IGetTableRequest {
+
+ /** GetTableRequest projectId */
+ projectId?: (string|null);
+
+ /** GetTableRequest datasetId */
+ datasetId?: (string|null);
+
+ /** GetTableRequest tableId */
+ tableId?: (string|null);
+
+ /** GetTableRequest selectedFields */
+ selectedFields?: (string|null);
+
+ /** GetTableRequest view */
+ view?: (google.cloud.bigquery.v2.GetTableRequest.TableMetadataView|keyof typeof google.cloud.bigquery.v2.GetTableRequest.TableMetadataView|null);
+ }
+
+ /** Represents a GetTableRequest. */
+ class GetTableRequest implements IGetTableRequest {
+
+ /**
+ * Constructs a new GetTableRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IGetTableRequest);
+
+ /** GetTableRequest projectId. */
+ public projectId: string;
+
+ /** GetTableRequest datasetId. */
+ public datasetId: string;
+
+ /** GetTableRequest tableId. */
+ public tableId: string;
+
+ /** GetTableRequest selectedFields. */
+ public selectedFields: string;
+
+ /** GetTableRequest view. */
+ public view: (google.cloud.bigquery.v2.GetTableRequest.TableMetadataView|keyof typeof google.cloud.bigquery.v2.GetTableRequest.TableMetadataView);
+
+ /**
+ * Creates a new GetTableRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetTableRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IGetTableRequest): google.cloud.bigquery.v2.GetTableRequest;
+
+ /**
+ * Encodes the specified GetTableRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetTableRequest.verify|verify} messages.
+ * @param message GetTableRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IGetTableRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetTableRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetTableRequest.verify|verify} messages.
+ * @param message GetTableRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IGetTableRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetTableRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetTableRequest
+ * @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.cloud.bigquery.v2.GetTableRequest;
+
+ /**
+ * Decodes a GetTableRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetTableRequest
+ * @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.cloud.bigquery.v2.GetTableRequest;
+
+ /**
+ * Verifies a GetTableRequest 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 GetTableRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetTableRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.GetTableRequest;
+
+ /**
+ * Creates a plain object from a GetTableRequest message. Also converts values to other types if specified.
+ * @param message GetTableRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.GetTableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetTableRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetTableRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GetTableRequest {
+
+ /** TableMetadataView enum. */
+ enum TableMetadataView {
+ TABLE_METADATA_VIEW_UNSPECIFIED = 0,
+ BASIC = 1,
+ STORAGE_STATS = 2,
+ FULL = 3
+ }
+ }
+
+ /** Properties of an InsertTableRequest. */
+ interface IInsertTableRequest {
+
+ /** InsertTableRequest projectId */
+ projectId?: (string|null);
+
+ /** InsertTableRequest datasetId */
+ datasetId?: (string|null);
+
+ /** InsertTableRequest table */
+ table?: (google.cloud.bigquery.v2.ITable|null);
+ }
+
+ /** Represents an InsertTableRequest. */
+ class InsertTableRequest implements IInsertTableRequest {
+
+ /**
+ * Constructs a new InsertTableRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IInsertTableRequest);
+
+ /** InsertTableRequest projectId. */
+ public projectId: string;
+
+ /** InsertTableRequest datasetId. */
+ public datasetId: string;
+
+ /** InsertTableRequest table. */
+ public table?: (google.cloud.bigquery.v2.ITable|null);
+
+ /**
+ * Creates a new InsertTableRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InsertTableRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IInsertTableRequest): google.cloud.bigquery.v2.InsertTableRequest;
+
+ /**
+ * Encodes the specified InsertTableRequest message. Does not implicitly {@link google.cloud.bigquery.v2.InsertTableRequest.verify|verify} messages.
+ * @param message InsertTableRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IInsertTableRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InsertTableRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.InsertTableRequest.verify|verify} messages.
+ * @param message InsertTableRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IInsertTableRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InsertTableRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InsertTableRequest
+ * @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.cloud.bigquery.v2.InsertTableRequest;
+
+ /**
+ * Decodes an InsertTableRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InsertTableRequest
+ * @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.cloud.bigquery.v2.InsertTableRequest;
+
+ /**
+ * Verifies an InsertTableRequest 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 InsertTableRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InsertTableRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.InsertTableRequest;
+
+ /**
+ * Creates a plain object from an InsertTableRequest message. Also converts values to other types if specified.
+ * @param message InsertTableRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.InsertTableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InsertTableRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InsertTableRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateOrPatchTableRequest. */
+ interface IUpdateOrPatchTableRequest {
+
+ /** UpdateOrPatchTableRequest projectId */
+ projectId?: (string|null);
+
+ /** UpdateOrPatchTableRequest datasetId */
+ datasetId?: (string|null);
+
+ /** UpdateOrPatchTableRequest tableId */
+ tableId?: (string|null);
+
+ /** UpdateOrPatchTableRequest table */
+ table?: (google.cloud.bigquery.v2.ITable|null);
+
+ /** UpdateOrPatchTableRequest autodetectSchema */
+ autodetectSchema?: (boolean|null);
+ }
+
+ /** Represents an UpdateOrPatchTableRequest. */
+ class UpdateOrPatchTableRequest implements IUpdateOrPatchTableRequest {
+
+ /**
+ * Constructs a new UpdateOrPatchTableRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IUpdateOrPatchTableRequest);
+
+ /** UpdateOrPatchTableRequest projectId. */
+ public projectId: string;
+
+ /** UpdateOrPatchTableRequest datasetId. */
+ public datasetId: string;
+
+ /** UpdateOrPatchTableRequest tableId. */
+ public tableId: string;
+
+ /** UpdateOrPatchTableRequest table. */
+ public table?: (google.cloud.bigquery.v2.ITable|null);
+
+ /** UpdateOrPatchTableRequest autodetectSchema. */
+ public autodetectSchema: boolean;
+
+ /**
+ * Creates a new UpdateOrPatchTableRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateOrPatchTableRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IUpdateOrPatchTableRequest): google.cloud.bigquery.v2.UpdateOrPatchTableRequest;
+
+ /**
+ * Encodes the specified UpdateOrPatchTableRequest message. Does not implicitly {@link google.cloud.bigquery.v2.UpdateOrPatchTableRequest.verify|verify} messages.
+ * @param message UpdateOrPatchTableRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IUpdateOrPatchTableRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateOrPatchTableRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.UpdateOrPatchTableRequest.verify|verify} messages.
+ * @param message UpdateOrPatchTableRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IUpdateOrPatchTableRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateOrPatchTableRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateOrPatchTableRequest
+ * @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.cloud.bigquery.v2.UpdateOrPatchTableRequest;
+
+ /**
+ * Decodes an UpdateOrPatchTableRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateOrPatchTableRequest
+ * @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.cloud.bigquery.v2.UpdateOrPatchTableRequest;
+
+ /**
+ * Verifies an UpdateOrPatchTableRequest 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 UpdateOrPatchTableRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateOrPatchTableRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.UpdateOrPatchTableRequest;
+
+ /**
+ * Creates a plain object from an UpdateOrPatchTableRequest message. Also converts values to other types if specified.
+ * @param message UpdateOrPatchTableRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.UpdateOrPatchTableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateOrPatchTableRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateOrPatchTableRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteTableRequest. */
+ interface IDeleteTableRequest {
+
+ /** DeleteTableRequest projectId */
+ projectId?: (string|null);
+
+ /** DeleteTableRequest datasetId */
+ datasetId?: (string|null);
+
+ /** DeleteTableRequest tableId */
+ tableId?: (string|null);
+ }
+
+ /** Represents a DeleteTableRequest. */
+ class DeleteTableRequest implements IDeleteTableRequest {
+
+ /**
+ * Constructs a new DeleteTableRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IDeleteTableRequest);
+
+ /** DeleteTableRequest projectId. */
+ public projectId: string;
+
+ /** DeleteTableRequest datasetId. */
+ public datasetId: string;
+
+ /** DeleteTableRequest tableId. */
+ public tableId: string;
+
+ /**
+ * Creates a new DeleteTableRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteTableRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IDeleteTableRequest): google.cloud.bigquery.v2.DeleteTableRequest;
+
+ /**
+ * Encodes the specified DeleteTableRequest message. Does not implicitly {@link google.cloud.bigquery.v2.DeleteTableRequest.verify|verify} messages.
+ * @param message DeleteTableRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IDeleteTableRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteTableRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DeleteTableRequest.verify|verify} messages.
+ * @param message DeleteTableRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IDeleteTableRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteTableRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteTableRequest
+ * @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.cloud.bigquery.v2.DeleteTableRequest;
+
+ /**
+ * Decodes a DeleteTableRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteTableRequest
+ * @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.cloud.bigquery.v2.DeleteTableRequest;
+
+ /**
+ * Verifies a DeleteTableRequest 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 DeleteTableRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteTableRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.DeleteTableRequest;
+
+ /**
+ * Creates a plain object from a DeleteTableRequest message. Also converts values to other types if specified.
+ * @param message DeleteTableRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.DeleteTableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteTableRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteTableRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTablesRequest. */
+ interface IListTablesRequest {
+
+ /** ListTablesRequest projectId */
+ projectId?: (string|null);
+
+ /** ListTablesRequest datasetId */
+ datasetId?: (string|null);
+
+ /** ListTablesRequest maxResults */
+ maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** ListTablesRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListTablesRequest. */
+ class ListTablesRequest implements IListTablesRequest {
+
+ /**
+ * Constructs a new ListTablesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListTablesRequest);
+
+ /** ListTablesRequest projectId. */
+ public projectId: string;
+
+ /** ListTablesRequest datasetId. */
+ public datasetId: string;
+
+ /** ListTablesRequest maxResults. */
+ public maxResults?: (google.protobuf.IUInt32Value|null);
+
+ /** ListTablesRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListTablesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTablesRequest instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListTablesRequest): google.cloud.bigquery.v2.ListTablesRequest;
+
+ /**
+ * Encodes the specified ListTablesRequest message. Does not implicitly {@link google.cloud.bigquery.v2.ListTablesRequest.verify|verify} messages.
+ * @param message ListTablesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTablesRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListTablesRequest.verify|verify} messages.
+ * @param message ListTablesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTablesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTablesRequest
+ * @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.cloud.bigquery.v2.ListTablesRequest;
+
+ /**
+ * Decodes a ListTablesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTablesRequest
+ * @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.cloud.bigquery.v2.ListTablesRequest;
+
+ /**
+ * Verifies a ListTablesRequest 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 ListTablesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTablesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListTablesRequest;
+
+ /**
+ * Creates a plain object from a ListTablesRequest message. Also converts values to other types if specified.
+ * @param message ListTablesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTablesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTablesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFormatView. */
+ interface IListFormatView {
+
+ /** ListFormatView useLegacySql */
+ useLegacySql?: (google.protobuf.IBoolValue|null);
+
+ /** ListFormatView privacyPolicy */
+ privacyPolicy?: (google.cloud.bigquery.v2.IPrivacyPolicy|null);
+ }
+
+ /** Represents a ListFormatView. */
+ class ListFormatView implements IListFormatView {
+
+ /**
+ * Constructs a new ListFormatView.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListFormatView);
+
+ /** ListFormatView useLegacySql. */
+ public useLegacySql?: (google.protobuf.IBoolValue|null);
+
+ /** ListFormatView privacyPolicy. */
+ public privacyPolicy?: (google.cloud.bigquery.v2.IPrivacyPolicy|null);
+
+ /**
+ * Creates a new ListFormatView instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFormatView instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListFormatView): google.cloud.bigquery.v2.ListFormatView;
+
+ /**
+ * Encodes the specified ListFormatView message. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatView.verify|verify} messages.
+ * @param message ListFormatView message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListFormatView, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFormatView message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatView.verify|verify} messages.
+ * @param message ListFormatView message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListFormatView, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFormatView message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFormatView
+ * @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.cloud.bigquery.v2.ListFormatView;
+
+ /**
+ * Decodes a ListFormatView message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFormatView
+ * @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.cloud.bigquery.v2.ListFormatView;
+
+ /**
+ * Verifies a ListFormatView 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 ListFormatView message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFormatView
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListFormatView;
+
+ /**
+ * Creates a plain object from a ListFormatView message. Also converts values to other types if specified.
+ * @param message ListFormatView
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListFormatView, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFormatView to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFormatView
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFormatTable. */
+ interface IListFormatTable {
+
+ /** ListFormatTable kind */
+ kind?: (string|null);
+
+ /** ListFormatTable id */
+ id?: (string|null);
+
+ /** ListFormatTable tableReference */
+ tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** ListFormatTable friendlyName */
+ friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** ListFormatTable type */
+ type?: (string|null);
+
+ /** ListFormatTable timePartitioning */
+ timePartitioning?: (google.cloud.bigquery.v2.ITimePartitioning|null);
+
+ /** ListFormatTable rangePartitioning */
+ rangePartitioning?: (google.cloud.bigquery.v2.IRangePartitioning|null);
+
+ /** ListFormatTable clustering */
+ clustering?: (google.cloud.bigquery.v2.IClustering|null);
+
+ /** ListFormatTable labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ListFormatTable view */
+ view?: (google.cloud.bigquery.v2.IListFormatView|null);
+
+ /** ListFormatTable creationTime */
+ creationTime?: (number|Long|string|null);
+
+ /** ListFormatTable expirationTime */
+ expirationTime?: (number|Long|string|null);
+
+ /** ListFormatTable requirePartitionFilter */
+ requirePartitionFilter?: (google.protobuf.IBoolValue|null);
+ }
+
+ /** Represents a ListFormatTable. */
+ class ListFormatTable implements IListFormatTable {
+
+ /**
+ * Constructs a new ListFormatTable.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IListFormatTable);
+
+ /** ListFormatTable kind. */
+ public kind: string;
+
+ /** ListFormatTable id. */
+ public id: string;
+
+ /** ListFormatTable tableReference. */
+ public tableReference?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** ListFormatTable friendlyName. */
+ public friendlyName?: (google.protobuf.IStringValue|null);
+
+ /** ListFormatTable type. */
+ public type: string;
+
+ /** ListFormatTable timePartitioning. */
+ public timePartitioning?: (google.cloud.bigquery.v2.ITimePartitioning|null);
+
+ /** ListFormatTable rangePartitioning. */
+ public rangePartitioning?: (google.cloud.bigquery.v2.IRangePartitioning|null);
+
+ /** ListFormatTable clustering. */
+ public clustering?: (google.cloud.bigquery.v2.IClustering|null);
+
+ /** ListFormatTable labels. */
+ public labels: { [k: string]: string };
+
+ /** ListFormatTable view. */
+ public view?: (google.cloud.bigquery.v2.IListFormatView|null);
+
+ /** ListFormatTable creationTime. */
+ public creationTime: (number|Long|string);
+
+ /** ListFormatTable expirationTime. */
+ public expirationTime: (number|Long|string);
+
+ /** ListFormatTable requirePartitionFilter. */
+ public requirePartitionFilter?: (google.protobuf.IBoolValue|null);
+
+ /**
+ * Creates a new ListFormatTable instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFormatTable instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IListFormatTable): google.cloud.bigquery.v2.ListFormatTable;
+
+ /**
+ * Encodes the specified ListFormatTable message. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatTable.verify|verify} messages.
+ * @param message ListFormatTable message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IListFormatTable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFormatTable message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatTable.verify|verify} messages.
+ * @param message ListFormatTable message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IListFormatTable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFormatTable message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFormatTable
+ * @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.cloud.bigquery.v2.ListFormatTable;
+
+ /**
+ * Decodes a ListFormatTable message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFormatTable
+ * @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.cloud.bigquery.v2.ListFormatTable;
+
+ /**
+ * Verifies a ListFormatTable 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 ListFormatTable message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFormatTable
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ListFormatTable;
+
+ /**
+ * Creates a plain object from a ListFormatTable message. Also converts values to other types if specified.
+ * @param message ListFormatTable
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ListFormatTable, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFormatTable to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFormatTable
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableList. */
+ interface ITableList {
+
+ /** TableList kind */
+ kind?: (string|null);
+
+ /** TableList etag */
+ etag?: (string|null);
+
+ /** TableList nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** TableList tables */
+ tables?: (google.cloud.bigquery.v2.IListFormatTable[]|null);
+
+ /** TableList totalItems */
+ totalItems?: (google.protobuf.IInt32Value|null);
+ }
+
+ /** Represents a TableList. */
+ class TableList implements ITableList {
+
+ /**
+ * Constructs a new TableList.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITableList);
+
+ /** TableList kind. */
+ public kind: string;
+
+ /** TableList etag. */
+ public etag: string;
+
+ /** TableList nextPageToken. */
+ public nextPageToken: string;
+
+ /** TableList tables. */
+ public tables: google.cloud.bigquery.v2.IListFormatTable[];
+
+ /** TableList totalItems. */
+ public totalItems?: (google.protobuf.IInt32Value|null);
+
+ /**
+ * Creates a new TableList instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableList instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITableList): google.cloud.bigquery.v2.TableList;
+
+ /**
+ * Encodes the specified TableList message. Does not implicitly {@link google.cloud.bigquery.v2.TableList.verify|verify} messages.
+ * @param message TableList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITableList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableList message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableList.verify|verify} messages.
+ * @param message TableList message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITableList, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableList message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableList
+ * @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.cloud.bigquery.v2.TableList;
+
+ /**
+ * Decodes a TableList message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableList
+ * @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.cloud.bigquery.v2.TableList;
+
+ /**
+ * Verifies a TableList 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 TableList message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableList
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableList;
+
+ /**
+ * Creates a plain object from a TableList message. Also converts values to other types if specified.
+ * @param message TableList
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableList, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableList to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableList
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PrimaryKey. */
+ interface IPrimaryKey {
+
+ /** PrimaryKey columns */
+ columns?: (string[]|null);
+ }
+
+ /** Represents a PrimaryKey. */
+ class PrimaryKey implements IPrimaryKey {
+
+ /**
+ * Constructs a new PrimaryKey.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IPrimaryKey);
+
+ /** PrimaryKey columns. */
+ public columns: string[];
+
+ /**
+ * Creates a new PrimaryKey instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrimaryKey instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IPrimaryKey): google.cloud.bigquery.v2.PrimaryKey;
+
+ /**
+ * Encodes the specified PrimaryKey message. Does not implicitly {@link google.cloud.bigquery.v2.PrimaryKey.verify|verify} messages.
+ * @param message PrimaryKey message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IPrimaryKey, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrimaryKey message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.PrimaryKey.verify|verify} messages.
+ * @param message PrimaryKey message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IPrimaryKey, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrimaryKey message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrimaryKey
+ * @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.cloud.bigquery.v2.PrimaryKey;
+
+ /**
+ * Decodes a PrimaryKey message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrimaryKey
+ * @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.cloud.bigquery.v2.PrimaryKey;
+
+ /**
+ * Verifies a PrimaryKey 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 PrimaryKey message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrimaryKey
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.PrimaryKey;
+
+ /**
+ * Creates a plain object from a PrimaryKey message. Also converts values to other types if specified.
+ * @param message PrimaryKey
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.PrimaryKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrimaryKey to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrimaryKey
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ColumnReference. */
+ interface IColumnReference {
+
+ /** ColumnReference referencingColumn */
+ referencingColumn?: (string|null);
+
+ /** ColumnReference referencedColumn */
+ referencedColumn?: (string|null);
+ }
+
+ /** Represents a ColumnReference. */
+ class ColumnReference implements IColumnReference {
+
+ /**
+ * Constructs a new ColumnReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IColumnReference);
+
+ /** ColumnReference referencingColumn. */
+ public referencingColumn: string;
+
+ /** ColumnReference referencedColumn. */
+ public referencedColumn: string;
+
+ /**
+ * Creates a new ColumnReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ColumnReference instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IColumnReference): google.cloud.bigquery.v2.ColumnReference;
+
+ /**
+ * Encodes the specified ColumnReference message. Does not implicitly {@link google.cloud.bigquery.v2.ColumnReference.verify|verify} messages.
+ * @param message ColumnReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IColumnReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ColumnReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ColumnReference.verify|verify} messages.
+ * @param message ColumnReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IColumnReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ColumnReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ColumnReference
+ * @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.cloud.bigquery.v2.ColumnReference;
+
+ /**
+ * Decodes a ColumnReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ColumnReference
+ * @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.cloud.bigquery.v2.ColumnReference;
+
+ /**
+ * Verifies a ColumnReference 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 ColumnReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ColumnReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ColumnReference;
+
+ /**
+ * Creates a plain object from a ColumnReference message. Also converts values to other types if specified.
+ * @param message ColumnReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ColumnReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ColumnReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ColumnReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ForeignKey. */
+ interface IForeignKey {
+
+ /** ForeignKey name */
+ name?: (string|null);
+
+ /** ForeignKey referencedTable */
+ referencedTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** ForeignKey columnReferences */
+ columnReferences?: (google.cloud.bigquery.v2.IColumnReference[]|null);
+ }
+
+ /** Represents a ForeignKey. */
+ class ForeignKey implements IForeignKey {
+
+ /**
+ * Constructs a new ForeignKey.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.IForeignKey);
+
+ /** ForeignKey name. */
+ public name: string;
+
+ /** ForeignKey referencedTable. */
+ public referencedTable?: (google.cloud.bigquery.v2.ITableReference|null);
+
+ /** ForeignKey columnReferences. */
+ public columnReferences: google.cloud.bigquery.v2.IColumnReference[];
+
+ /**
+ * Creates a new ForeignKey instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ForeignKey instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.IForeignKey): google.cloud.bigquery.v2.ForeignKey;
+
+ /**
+ * Encodes the specified ForeignKey message. Does not implicitly {@link google.cloud.bigquery.v2.ForeignKey.verify|verify} messages.
+ * @param message ForeignKey message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.IForeignKey, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ForeignKey message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ForeignKey.verify|verify} messages.
+ * @param message ForeignKey message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.IForeignKey, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ForeignKey message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ForeignKey
+ * @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.cloud.bigquery.v2.ForeignKey;
+
+ /**
+ * Decodes a ForeignKey message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ForeignKey
+ * @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.cloud.bigquery.v2.ForeignKey;
+
+ /**
+ * Verifies a ForeignKey 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 ForeignKey message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ForeignKey
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.ForeignKey;
+
+ /**
+ * Creates a plain object from a ForeignKey message. Also converts values to other types if specified.
+ * @param message ForeignKey
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.ForeignKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ForeignKey to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ForeignKey
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TableConstraints. */
+ interface ITableConstraints {
+
+ /** TableConstraints primaryKey */
+ primaryKey?: (google.cloud.bigquery.v2.IPrimaryKey|null);
+
+ /** TableConstraints foreignKeys */
+ foreignKeys?: (google.cloud.bigquery.v2.IForeignKey[]|null);
+ }
+
+ /** Represents a TableConstraints. */
+ class TableConstraints implements ITableConstraints {
+
+ /**
+ * Constructs a new TableConstraints.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.v2.ITableConstraints);
+
+ /** TableConstraints primaryKey. */
+ public primaryKey?: (google.cloud.bigquery.v2.IPrimaryKey|null);
+
+ /** TableConstraints foreignKeys. */
+ public foreignKeys: google.cloud.bigquery.v2.IForeignKey[];
+
+ /**
+ * Creates a new TableConstraints instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TableConstraints instance
+ */
+ public static create(properties?: google.cloud.bigquery.v2.ITableConstraints): google.cloud.bigquery.v2.TableConstraints;
+
+ /**
+ * Encodes the specified TableConstraints message. Does not implicitly {@link google.cloud.bigquery.v2.TableConstraints.verify|verify} messages.
+ * @param message TableConstraints message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.v2.ITableConstraints, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TableConstraints message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableConstraints.verify|verify} messages.
+ * @param message TableConstraints message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.v2.ITableConstraints, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TableConstraints message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TableConstraints
+ * @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.cloud.bigquery.v2.TableConstraints;
+
+ /**
+ * Decodes a TableConstraints message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TableConstraints
+ * @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.cloud.bigquery.v2.TableConstraints;
+
+ /**
+ * Verifies a TableConstraints 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 TableConstraints message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TableConstraints
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.v2.TableConstraints;
+
+ /**
+ * Creates a plain object from a TableConstraints message. Also converts values to other types if specified.
+ * @param message TableConstraints
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.v2.TableConstraints, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TableConstraints to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TableConstraints
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7,
+ IDENTIFIER = 8
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @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.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @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.api.Http;
+
+ /**
+ * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @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.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @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.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @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.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @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.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+
+ /** CommonLanguageSettings selectiveGapicGeneration */
+ selectiveGapicGeneration?: (google.api.ISelectiveGapicGeneration|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /** CommonLanguageSettings selectiveGapicGeneration. */
+ public selectiveGapicGeneration?: (google.api.ISelectiveGapicGeneration|null);
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @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.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @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.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings 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 CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @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.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @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.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings 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 ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+
+ /** Publishing restReferenceDocumentationUri */
+ restReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
+
+ /** Publishing restReferenceDocumentationUri. */
+ public restReferenceDocumentationUri: string;
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @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.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @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.api.Publishing;
+
+ /**
+ * Verifies a Publishing 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 Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @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.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @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.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings 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 JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @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.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @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.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings 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 CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @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.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @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.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings 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 PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** PythonSettings experimentalFeatures */
+ experimentalFeatures?: (google.api.PythonSettings.IExperimentalFeatures|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** PythonSettings experimentalFeatures. */
+ public experimentalFeatures?: (google.api.PythonSettings.IExperimentalFeatures|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @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.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @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.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings 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 PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PythonSettings {
+
+ /** Properties of an ExperimentalFeatures. */
+ interface IExperimentalFeatures {
+
+ /** ExperimentalFeatures restAsyncIoEnabled */
+ restAsyncIoEnabled?: (boolean|null);
+
+ /** ExperimentalFeatures protobufPythonicTypesEnabled */
+ protobufPythonicTypesEnabled?: (boolean|null);
+
+ /** ExperimentalFeatures unversionedPackageDisabled */
+ unversionedPackageDisabled?: (boolean|null);
+ }
+
+ /** Represents an ExperimentalFeatures. */
+ class ExperimentalFeatures implements IExperimentalFeatures {
+
+ /**
+ * Constructs a new ExperimentalFeatures.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.PythonSettings.IExperimentalFeatures);
+
+ /** ExperimentalFeatures restAsyncIoEnabled. */
+ public restAsyncIoEnabled: boolean;
+
+ /** ExperimentalFeatures protobufPythonicTypesEnabled. */
+ public protobufPythonicTypesEnabled: boolean;
+
+ /** ExperimentalFeatures unversionedPackageDisabled. */
+ public unversionedPackageDisabled: boolean;
+
+ /**
+ * Creates a new ExperimentalFeatures instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExperimentalFeatures instance
+ */
+ public static create(properties?: google.api.PythonSettings.IExperimentalFeatures): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @param message ExperimentalFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.PythonSettings.IExperimentalFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @param message ExperimentalFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.PythonSettings.IExperimentalFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExperimentalFeatures
+ * @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.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExperimentalFeatures
+ * @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.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Verifies an ExperimentalFeatures 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 ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExperimentalFeatures
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
+ * @param message ExperimentalFeatures
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings.ExperimentalFeatures, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExperimentalFeatures to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExperimentalFeatures
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @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.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @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.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings 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 NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** 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. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** 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
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @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.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @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.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings 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 DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @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.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @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.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings 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 RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** GoSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** GoSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @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.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @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.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings 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 GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @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.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @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.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings 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 MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @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.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @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.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning 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 LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** Properties of a SelectiveGapicGeneration. */
+ interface ISelectiveGapicGeneration {
+
+ /** SelectiveGapicGeneration methods */
+ methods?: (string[]|null);
+
+ /** SelectiveGapicGeneration generateOmittedAsInternal */
+ generateOmittedAsInternal?: (boolean|null);
+ }
+
+ /** Represents a SelectiveGapicGeneration. */
+ class SelectiveGapicGeneration implements ISelectiveGapicGeneration {
+
+ /**
+ * Constructs a new SelectiveGapicGeneration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ISelectiveGapicGeneration);
+
+ /** SelectiveGapicGeneration methods. */
+ public methods: string[];
+
+ /** SelectiveGapicGeneration generateOmittedAsInternal. */
+ public generateOmittedAsInternal: boolean;
+
+ /**
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SelectiveGapicGeneration instance
+ */
+ public static create(properties?: google.api.ISelectiveGapicGeneration): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @param message SelectiveGapicGeneration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ISelectiveGapicGeneration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @param message SelectiveGapicGeneration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ISelectiveGapicGeneration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SelectiveGapicGeneration
+ * @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.api.SelectiveGapicGeneration;
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SelectiveGapicGeneration
+ * @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.api.SelectiveGapicGeneration;
+
+ /**
+ * Verifies a SelectiveGapicGeneration 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 SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SelectiveGapicGeneration
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
+ * @param message SelectiveGapicGeneration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.SelectiveGapicGeneration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SelectiveGapicGeneration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SelectiveGapicGeneration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @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.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @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.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @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.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @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.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference 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 ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @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.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @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.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Edition enum. */
+ enum Edition {
+ EDITION_UNKNOWN = 0,
+ EDITION_LEGACY = 900,
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ EDITION_2023 = 1000,
+ EDITION_2024 = 1001,
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ EDITION_MAX = 2147483647
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto optionDependency */
+ optionDependency?: (string[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto optionDependency. */
+ public optionDependency: string[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @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.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @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.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+
+ /** DescriptorProto visibility */
+ visibility?: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /** DescriptorProto visibility. */
+ public visibility: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility);
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @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.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @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.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @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.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @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.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange 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 ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @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.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @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.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** 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. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** 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
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @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;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @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;
+
+ /**
+ * Verifies an ExtensionRangeOptions 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 ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ 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 {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @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.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @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.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @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.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @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.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+
+ /** EnumDescriptorProto visibility */
+ visibility?: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /** EnumDescriptorProto visibility. */
+ public visibility: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility);
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @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.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @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.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @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.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @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.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange 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 EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @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.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @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.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @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.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @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.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @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.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @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.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @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.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @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.FileOptions;
+
+ /**
+ * Verifies a FileOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @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.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @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.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions 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 MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** 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 featureSupport */
+ featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** 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 featureSupport. */
+ public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @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;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @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;
+
+ /**
+ * Verifies a FieldOptions 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 FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|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: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** 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 a FeatureSupport. */
+ interface IFeatureSupport {
+
+ /** FeatureSupport editionIntroduced */
+ editionIntroduced?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSupport editionDeprecated */
+ editionDeprecated?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSupport deprecationWarning */
+ deprecationWarning?: (string|null);
+
+ /** FeatureSupport editionRemoved */
+ editionRemoved?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSupport. */
+ class FeatureSupport implements IFeatureSupport {
+
+ /**
+ * Constructs a new FeatureSupport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IFeatureSupport);
+
+ /** FeatureSupport editionIntroduced. */
+ public editionIntroduced: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSupport editionDeprecated. */
+ public editionDeprecated: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSupport deprecationWarning. */
+ public deprecationWarning: string;
+
+ /** FeatureSupport editionRemoved. */
+ public editionRemoved: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSupport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSupport instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IFeatureSupport): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
+ * @param message FeatureSupport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
+ * @param message FeatureSupport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSupport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSupport
+ * @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.FeatureSupport;
+
+ /**
+ * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSupport
+ * @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.FeatureSupport;
+
+ /**
+ * Verifies a FeatureSupport 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 FeatureSupport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSupport
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
+ * @param message FeatureSupport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.FeatureSupport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSupport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSupport
+ * @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);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @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.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @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.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions 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 OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @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.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @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.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions 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 EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** EnumValueOptions featureSupport */
+ featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** EnumValueOptions featureSupport. */
+ public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @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.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @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.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions 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 EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+
+ /** ServiceOptions .google.api.apiVersion */
+ ".google.api.apiVersion"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @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.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @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.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions 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 ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** 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);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** 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[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @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.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @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.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions 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 MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|Buffer|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|Buffer|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @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.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @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.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption 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 UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @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.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @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.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** 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 utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|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 enforceNamingStyle */
+ enforceNamingStyle?: (google.protobuf.FeatureSet.EnforceNamingStyle|keyof typeof google.protobuf.FeatureSet.EnforceNamingStyle|null);
+
+ /** FeatureSet defaultSymbolVisibility */
+ defaultSymbolVisibility?: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|keyof typeof google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|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 utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** 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 enforceNamingStyle. */
+ public enforceNamingStyle: (google.protobuf.FeatureSet.EnforceNamingStyle|keyof typeof google.protobuf.FeatureSet.EnforceNamingStyle);
+
+ /** FeatureSet defaultSymbolVisibility. */
+ public defaultSymbolVisibility: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|keyof typeof google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility);
+
+ /**
+ * 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
+ }
+
+ /** Utf8Validation enum. */
+ enum Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ VERIFY = 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
+ }
+
+ /** EnforceNamingStyle enum. */
+ enum EnforceNamingStyle {
+ ENFORCE_NAMING_STYLE_UNKNOWN = 0,
+ STYLE2024 = 1,
+ STYLE_LEGACY = 2
+ }
+
+ /** Properties of a VisibilityFeature. */
+ interface IVisibilityFeature {
+ }
+
+ /** Represents a VisibilityFeature. */
+ class VisibilityFeature implements IVisibilityFeature {
+
+ /**
+ * Constructs a new VisibilityFeature.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSet.IVisibilityFeature);
+
+ /**
+ * Creates a new VisibilityFeature instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VisibilityFeature instance
+ */
+ public static create(properties?: google.protobuf.FeatureSet.IVisibilityFeature): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
+ * @param message VisibilityFeature message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
+ * @param message VisibilityFeature message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VisibilityFeature message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VisibilityFeature
+ * @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.VisibilityFeature;
+
+ /**
+ * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VisibilityFeature
+ * @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.VisibilityFeature;
+
+ /**
+ * Verifies a VisibilityFeature 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 VisibilityFeature message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VisibilityFeature
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
+ * @param message VisibilityFeature
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet.VisibilityFeature, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VisibilityFeature to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VisibilityFeature
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VisibilityFeature {
+
+ /** DefaultSymbolVisibility enum. */
+ enum DefaultSymbolVisibility {
+ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0,
+ EXPORT_ALL = 1,
+ EXPORT_TOP_LEVEL = 2,
+ LOCAL_ALL = 3,
+ STRICT = 4
+ }
+ }
+ }
+
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
+
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
+
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
+
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetDefaults instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetDefaults
+ * @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.FeatureSetDefaults;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetDefaults
+ * @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.FeatureSetDefaults;
+
+ /**
+ * Verifies a FeatureSetDefaults 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 FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
+ * @param message FeatureSetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSetDefaults {
+
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
+
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault overridableFeatures */
+ overridableFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /** FeatureSetEditionDefault fixedFeatures */
+ fixedFeatures?: (google.protobuf.IFeatureSet|null);
+ }
+
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+
+ /**
+ * Constructs a new FeatureSetEditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+
+ /** FeatureSetEditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetEditionDefault overridableFeatures. */
+ public overridableFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /** FeatureSetEditionDefault fixedFeatures. */
+ public fixedFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /**
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetEditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetEditionDefault
+ * @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.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetEditionDefault
+ * @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.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Verifies a FeatureSetEditionDefault 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 FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetEditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
+ * @param message FeatureSetEditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetEditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetEditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @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.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @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.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @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.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @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.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @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.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @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.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @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.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @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.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation 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 Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** SymbolVisibility enum. */
+ enum SymbolVisibility {
+ VISIBILITY_UNSET = 0,
+ VISIBILITY_LOCAL = 1,
+ VISIBILITY_EXPORT = 2
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @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.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @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.Duration;
+
+ /**
+ * Verifies a Duration 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 Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
+
+ /**
+ * Constructs a new DoubleValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDoubleValue);
+
+ /** DoubleValue value. */
+ public value: number;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleValue instance
+ */
+ public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleValue
+ * @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.DoubleValue;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleValue
+ * @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.DoubleValue;
+
+ /**
+ * Verifies a DoubleValue 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 DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @param message DoubleValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
+
+ /** FloatValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
+
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
+
+ /** FloatValue value. */
+ public value: number;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatValue instance
+ */
+ public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatValue
+ * @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.FloatValue;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatValue
+ * @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.FloatValue;
+
+ /**
+ * Verifies a FloatValue 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 FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @param message FloatValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
+
+ /** Int64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
+
+ /**
+ * Constructs a new Int64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt64Value);
+
+ /** Int64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int64Value instance
+ */
+ public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int64Value
+ * @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.Int64Value;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int64Value
+ * @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.Int64Value;
+
+ /**
+ * Verifies an Int64Value 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 Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @param message Int64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
+
+ /** UInt64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
+
+ /**
+ * Constructs a new UInt64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt64Value);
+
+ /** UInt64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt64Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt64Value
+ * @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.UInt64Value;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt64Value
+ * @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.UInt64Value;
+
+ /**
+ * Verifies a UInt64Value 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 UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @param message UInt64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
+
+ /** Int32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
+
+ /**
+ * Constructs a new Int32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt32Value);
+
+ /** Int32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int32Value instance
+ */
+ public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int32Value
+ * @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.Int32Value;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int32Value
+ * @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.Int32Value;
+
+ /**
+ * Verifies an Int32Value 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 Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @param message Int32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
+
+ /** UInt32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
+
+ /**
+ * Constructs a new UInt32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt32Value);
+
+ /** UInt32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt32Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt32Value
+ * @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.UInt32Value;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt32Value
+ * @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.UInt32Value;
+
+ /**
+ * Verifies a UInt32Value 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 UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @param message UInt32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
+
+ /** BoolValue value */
+ value?: (boolean|null);
+ }
+
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
+
+ /**
+ * Constructs a new BoolValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBoolValue);
+
+ /** BoolValue value. */
+ public value: boolean;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoolValue instance
+ */
+ public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoolValue
+ * @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.BoolValue;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoolValue
+ * @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.BoolValue;
+
+ /**
+ * Verifies a BoolValue 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 BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoolValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @param message BoolValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoolValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StringValue. */
+ interface IStringValue {
+
+ /** StringValue value */
+ value?: (string|null);
+ }
+
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
+
+ /**
+ * Constructs a new StringValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStringValue);
+
+ /** StringValue value. */
+ public value: string;
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringValue instance
+ */
+ public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringValue
+ * @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.StringValue;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringValue
+ * @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.StringValue;
+
+ /**
+ * Verifies a StringValue 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 StringValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @param message StringValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
+
+ /** BytesValue value */
+ value?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
+
+ /**
+ * Constructs a new BytesValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBytesValue);
+
+ /** BytesValue value. */
+ public value: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BytesValue instance
+ */
+ public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BytesValue
+ * @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.BytesValue;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BytesValue
+ * @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.BytesValue;
+
+ /**
+ * Verifies a BytesValue 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 BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BytesValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @param message BytesValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BytesValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @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.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @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.Empty;
+
+ /**
+ * Verifies an Empty 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 Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @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.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @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.Timestamp;
+
+ /**
+ * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Struct. */
+ interface IStruct {
+
+ /** Struct fields */
+ fields?: ({ [k: string]: google.protobuf.IValue }|null);
+ }
+
+ /** Represents a Struct. */
+ class Struct implements IStruct {
+
+ /**
+ * Constructs a new Struct.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStruct);
+
+ /** Struct fields. */
+ public fields: { [k: string]: google.protobuf.IValue };
+
+ /**
+ * Creates a new Struct instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Struct instance
+ */
+ public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
+
+ /**
+ * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Struct
+ * @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.Struct;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Struct
+ * @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.Struct;
+
+ /**
+ * Verifies a Struct 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 Struct message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Struct
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
+
+ /**
+ * Creates a plain object from a Struct message. Also converts values to other types if specified.
+ * @param message Struct
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Struct to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Struct
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue */
+ numberValue?: (number|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value boolValue */
+ boolValue?: (boolean|null);
+
+ /** Value structValue */
+ structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue */
+ listValue?: (google.protobuf.IListValue|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IValue);
+
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue. */
+ public numberValue?: (number|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value boolValue. */
+ public boolValue?: (boolean|null);
+
+ /** Value structValue. */
+ public structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue. */
+ public listValue?: (google.protobuf.IListValue|null);
+
+ /** Value kind. */
+ public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @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.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @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.Value;
+
+ /**
+ * Verifies a Value 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 Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** NullValue enum. */
+ enum NullValue {
+ NULL_VALUE = 0
+ }
+
+ /** Properties of a ListValue. */
+ interface IListValue {
+
+ /** ListValue values */
+ values?: (google.protobuf.IValue[]|null);
+ }
+
+ /** Represents a ListValue. */
+ class ListValue implements IListValue {
+
+ /**
+ * Constructs a new ListValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IListValue);
+
+ /** ListValue values. */
+ public values: google.protobuf.IValue[];
+
+ /**
+ * Creates a new ListValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListValue instance
+ */
+ public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
+
+ /**
+ * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListValue
+ * @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.ListValue;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListValue
+ * @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.ListValue;
+
+ /**
+ * Verifies a ListValue 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 ListValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
+
+ /**
+ * Creates a plain object from a ListValue message. Also converts values to other types if specified.
+ * @param message ListValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** Properties of an Expr. */
+ interface IExpr {
+
+ /** Expr expression */
+ expression?: (string|null);
+
+ /** Expr title */
+ title?: (string|null);
+
+ /** Expr description */
+ description?: (string|null);
+
+ /** Expr location */
+ location?: (string|null);
+ }
+
+ /** Represents an Expr. */
+ class Expr implements IExpr {
+
+ /**
+ * Constructs a new Expr.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IExpr);
+
+ /** Expr expression. */
+ public expression: string;
+
+ /** Expr title. */
+ public title: string;
+
+ /** Expr description. */
+ public description: string;
+
+ /** Expr location. */
+ public location: string;
+
+ /**
+ * Creates a new Expr instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Expr instance
+ */
+ public static create(properties?: google.type.IExpr): google.type.Expr;
+
+ /**
+ * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages.
+ * @param message Expr message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages.
+ * @param message Expr message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Expr message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Expr
+ * @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.type.Expr;
+
+ /**
+ * Decodes an Expr message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Expr
+ * @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.type.Expr;
+
+ /**
+ * Verifies an Expr 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 Expr message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Expr
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Expr;
+
+ /**
+ * Creates a plain object from an Expr message. Also converts values to other types if specified.
+ * @param message Expr
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Expr, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Expr to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Expr
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-bigquery-api/protos/protos.js b/packages/google-cloud-bigquery-api/protos/protos.js
new file mode 100644
index 000000000000..d2f58f2159f8
--- /dev/null
+++ b/packages/google-cloud-bigquery-api/protos/protos.js
@@ -0,0 +1,122228 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots["_google_cloud_bigquery_api_protos"] || ($protobuf.roots["_google_cloud_bigquery_api_protos"] = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.bigquery = (function() {
+
+ /**
+ * Namespace bigquery.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var bigquery = {};
+
+ bigquery.v2 = (function() {
+
+ /**
+ * Namespace v2.
+ * @memberof google.cloud.bigquery
+ * @namespace
+ */
+ var v2 = {};
+
+ v2.BigLakeConfiguration = (function() {
+
+ /**
+ * Properties of a BigLakeConfiguration.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IBigLakeConfiguration
+ * @property {string|null} [connectionId] BigLakeConfiguration connectionId
+ * @property {string|null} [storageUri] BigLakeConfiguration storageUri
+ * @property {google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat|null} [fileFormat] BigLakeConfiguration fileFormat
+ * @property {google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat|null} [tableFormat] BigLakeConfiguration tableFormat
+ */
+
+ /**
+ * Constructs a new BigLakeConfiguration.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a BigLakeConfiguration.
+ * @implements IBigLakeConfiguration
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IBigLakeConfiguration=} [properties] Properties to set
+ */
+ function BigLakeConfiguration(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * BigLakeConfiguration connectionId.
+ * @member {string} connectionId
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @instance
+ */
+ BigLakeConfiguration.prototype.connectionId = "";
+
+ /**
+ * BigLakeConfiguration storageUri.
+ * @member {string} storageUri
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @instance
+ */
+ BigLakeConfiguration.prototype.storageUri = "";
+
+ /**
+ * BigLakeConfiguration fileFormat.
+ * @member {google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat} fileFormat
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @instance
+ */
+ BigLakeConfiguration.prototype.fileFormat = 0;
+
+ /**
+ * BigLakeConfiguration tableFormat.
+ * @member {google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat} tableFormat
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @instance
+ */
+ BigLakeConfiguration.prototype.tableFormat = 0;
+
+ /**
+ * Creates a new BigLakeConfiguration instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {google.cloud.bigquery.v2.IBigLakeConfiguration=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.BigLakeConfiguration} BigLakeConfiguration instance
+ */
+ BigLakeConfiguration.create = function create(properties) {
+ return new BigLakeConfiguration(properties);
+ };
+
+ /**
+ * Encodes the specified BigLakeConfiguration message. Does not implicitly {@link google.cloud.bigquery.v2.BigLakeConfiguration.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {google.cloud.bigquery.v2.IBigLakeConfiguration} message BigLakeConfiguration message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BigLakeConfiguration.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId);
+ if (message.storageUri != null && Object.hasOwnProperty.call(message, "storageUri"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.storageUri);
+ if (message.fileFormat != null && Object.hasOwnProperty.call(message, "fileFormat"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.fileFormat);
+ if (message.tableFormat != null && Object.hasOwnProperty.call(message, "tableFormat"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tableFormat);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BigLakeConfiguration message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.BigLakeConfiguration.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {google.cloud.bigquery.v2.IBigLakeConfiguration} message BigLakeConfiguration message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BigLakeConfiguration.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a BigLakeConfiguration message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.BigLakeConfiguration} BigLakeConfiguration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BigLakeConfiguration.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.BigLakeConfiguration();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.connectionId = reader.string();
+ break;
+ }
+ case 2: {
+ message.storageUri = reader.string();
+ break;
+ }
+ case 3: {
+ message.fileFormat = reader.int32();
+ break;
+ }
+ case 4: {
+ message.tableFormat = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BigLakeConfiguration message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.BigLakeConfiguration} BigLakeConfiguration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BigLakeConfiguration.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BigLakeConfiguration message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BigLakeConfiguration.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId"))
+ if (!$util.isString(message.connectionId))
+ return "connectionId: string expected";
+ if (message.storageUri != null && Object.hasOwnProperty.call(message, "storageUri"))
+ if (!$util.isString(message.storageUri))
+ return "storageUri: string expected";
+ if (message.fileFormat != null && Object.hasOwnProperty.call(message, "fileFormat"))
+ switch (message.fileFormat) {
+ default:
+ return "fileFormat: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.tableFormat != null && Object.hasOwnProperty.call(message, "tableFormat"))
+ switch (message.tableFormat) {
+ default:
+ return "tableFormat: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a BigLakeConfiguration message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.BigLakeConfiguration} BigLakeConfiguration
+ */
+ BigLakeConfiguration.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.BigLakeConfiguration)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.BigLakeConfiguration: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.BigLakeConfiguration();
+ if (object.connectionId != null)
+ message.connectionId = String(object.connectionId);
+ if (object.storageUri != null)
+ message.storageUri = String(object.storageUri);
+ switch (object.fileFormat) {
+ default:
+ if (typeof object.fileFormat === "number") {
+ message.fileFormat = object.fileFormat;
+ break;
+ }
+ break;
+ case "FILE_FORMAT_UNSPECIFIED":
+ case 0:
+ message.fileFormat = 0;
+ break;
+ case "PARQUET":
+ case 1:
+ message.fileFormat = 1;
+ break;
+ }
+ switch (object.tableFormat) {
+ default:
+ if (typeof object.tableFormat === "number") {
+ message.tableFormat = object.tableFormat;
+ break;
+ }
+ break;
+ case "TABLE_FORMAT_UNSPECIFIED":
+ case 0:
+ message.tableFormat = 0;
+ break;
+ case "ICEBERG":
+ case 1:
+ message.tableFormat = 1;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BigLakeConfiguration message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {google.cloud.bigquery.v2.BigLakeConfiguration} message BigLakeConfiguration
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BigLakeConfiguration.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.connectionId = "";
+ object.storageUri = "";
+ object.fileFormat = options.enums === String ? "FILE_FORMAT_UNSPECIFIED" : 0;
+ object.tableFormat = options.enums === String ? "TABLE_FORMAT_UNSPECIFIED" : 0;
+ }
+ if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId"))
+ object.connectionId = message.connectionId;
+ if (message.storageUri != null && Object.hasOwnProperty.call(message, "storageUri"))
+ object.storageUri = message.storageUri;
+ if (message.fileFormat != null && Object.hasOwnProperty.call(message, "fileFormat"))
+ object.fileFormat = options.enums === String ? $root.google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat[message.fileFormat] === undefined ? message.fileFormat : $root.google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat[message.fileFormat] : message.fileFormat;
+ if (message.tableFormat != null && Object.hasOwnProperty.call(message, "tableFormat"))
+ object.tableFormat = options.enums === String ? $root.google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat[message.tableFormat] === undefined ? message.tableFormat : $root.google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat[message.tableFormat] : message.tableFormat;
+ return object;
+ };
+
+ /**
+ * Converts this BigLakeConfiguration to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BigLakeConfiguration.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BigLakeConfiguration
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.BigLakeConfiguration
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BigLakeConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.BigLakeConfiguration";
+ };
+
+ /**
+ * FileFormat enum.
+ * @name google.cloud.bigquery.v2.BigLakeConfiguration.FileFormat
+ * @enum {number}
+ * @property {number} FILE_FORMAT_UNSPECIFIED=0 FILE_FORMAT_UNSPECIFIED value
+ * @property {number} PARQUET=1 PARQUET value
+ */
+ BigLakeConfiguration.FileFormat = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "FILE_FORMAT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PARQUET"] = 1;
+ return values;
+ })();
+
+ /**
+ * TableFormat enum.
+ * @name google.cloud.bigquery.v2.BigLakeConfiguration.TableFormat
+ * @enum {number}
+ * @property {number} TABLE_FORMAT_UNSPECIFIED=0 TABLE_FORMAT_UNSPECIFIED value
+ * @property {number} ICEBERG=1 ICEBERG value
+ */
+ BigLakeConfiguration.TableFormat = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TABLE_FORMAT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ICEBERG"] = 1;
+ return values;
+ })();
+
+ return BigLakeConfiguration;
+ })();
+
+ v2.Clustering = (function() {
+
+ /**
+ * Properties of a Clustering.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IClustering
+ * @property {Array.|null} [fields] Clustering fields
+ */
+
+ /**
+ * Constructs a new Clustering.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a Clustering.
+ * @implements IClustering
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IClustering=} [properties] Properties to set
+ */
+ function Clustering(properties) {
+ this.fields = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Clustering fields.
+ * @member {Array.} fields
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @instance
+ */
+ Clustering.prototype.fields = $util.emptyArray;
+
+ /**
+ * Creates a new Clustering instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {google.cloud.bigquery.v2.IClustering=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.Clustering} Clustering instance
+ */
+ Clustering.create = function create(properties) {
+ return new Clustering(properties);
+ };
+
+ /**
+ * Encodes the specified Clustering message. Does not implicitly {@link google.cloud.bigquery.v2.Clustering.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {google.cloud.bigquery.v2.IClustering} message Clustering message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Clustering.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.fields != null && message.fields.length)
+ for (var i = 0; i < message.fields.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.fields[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Clustering message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Clustering.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {google.cloud.bigquery.v2.IClustering} message Clustering message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Clustering.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Clustering message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.Clustering} Clustering
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Clustering.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.Clustering();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.fields && message.fields.length))
+ message.fields = [];
+ message.fields.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Clustering message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.Clustering} Clustering
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Clustering.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Clustering message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Clustering.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) {
+ if (!Array.isArray(message.fields))
+ return "fields: array expected";
+ for (var i = 0; i < message.fields.length; ++i)
+ if (!$util.isString(message.fields[i]))
+ return "fields: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Clustering message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.Clustering} Clustering
+ */
+ Clustering.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.Clustering)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.Clustering: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.Clustering();
+ if (object.fields) {
+ if (!Array.isArray(object.fields))
+ throw TypeError(".google.cloud.bigquery.v2.Clustering.fields: array expected");
+ message.fields = [];
+ for (var i = 0; i < object.fields.length; ++i)
+ message.fields[i] = String(object.fields[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Clustering message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {google.cloud.bigquery.v2.Clustering} message Clustering
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Clustering.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.fields = [];
+ if (message.fields && message.fields.length) {
+ object.fields = [];
+ for (var j = 0; j < message.fields.length; ++j)
+ object.fields[j] = message.fields[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Clustering to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Clustering.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Clustering
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.Clustering
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Clustering.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.Clustering";
+ };
+
+ return Clustering;
+ })();
+
+ v2.DataFormatOptions = (function() {
+
+ /**
+ * Properties of a DataFormatOptions.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IDataFormatOptions
+ * @property {boolean|null} [useInt64Timestamp] DataFormatOptions useInt64Timestamp
+ * @property {google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat|null} [timestampOutputFormat] DataFormatOptions timestampOutputFormat
+ */
+
+ /**
+ * Constructs a new DataFormatOptions.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a DataFormatOptions.
+ * @implements IDataFormatOptions
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IDataFormatOptions=} [properties] Properties to set
+ */
+ function DataFormatOptions(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DataFormatOptions useInt64Timestamp.
+ * @member {boolean} useInt64Timestamp
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @instance
+ */
+ DataFormatOptions.prototype.useInt64Timestamp = false;
+
+ /**
+ * DataFormatOptions timestampOutputFormat.
+ * @member {google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat} timestampOutputFormat
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @instance
+ */
+ DataFormatOptions.prototype.timestampOutputFormat = 0;
+
+ /**
+ * Creates a new DataFormatOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataFormatOptions=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.DataFormatOptions} DataFormatOptions instance
+ */
+ DataFormatOptions.create = function create(properties) {
+ return new DataFormatOptions(properties);
+ };
+
+ /**
+ * Encodes the specified DataFormatOptions message. Does not implicitly {@link google.cloud.bigquery.v2.DataFormatOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataFormatOptions} message DataFormatOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DataFormatOptions.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.useInt64Timestamp != null && Object.hasOwnProperty.call(message, "useInt64Timestamp"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useInt64Timestamp);
+ if (message.timestampOutputFormat != null && Object.hasOwnProperty.call(message, "timestampOutputFormat"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.timestampOutputFormat);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DataFormatOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DataFormatOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataFormatOptions} message DataFormatOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DataFormatOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DataFormatOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.DataFormatOptions} DataFormatOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DataFormatOptions.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.DataFormatOptions();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.useInt64Timestamp = reader.bool();
+ break;
+ }
+ case 3: {
+ message.timestampOutputFormat = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DataFormatOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.DataFormatOptions} DataFormatOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DataFormatOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DataFormatOptions message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DataFormatOptions.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.useInt64Timestamp != null && Object.hasOwnProperty.call(message, "useInt64Timestamp"))
+ if (typeof message.useInt64Timestamp !== "boolean")
+ return "useInt64Timestamp: boolean expected";
+ if (message.timestampOutputFormat != null && Object.hasOwnProperty.call(message, "timestampOutputFormat"))
+ switch (message.timestampOutputFormat) {
+ default:
+ return "timestampOutputFormat: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DataFormatOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.DataFormatOptions} DataFormatOptions
+ */
+ DataFormatOptions.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.DataFormatOptions)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.DataFormatOptions: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.DataFormatOptions();
+ if (object.useInt64Timestamp != null)
+ message.useInt64Timestamp = Boolean(object.useInt64Timestamp);
+ switch (object.timestampOutputFormat) {
+ default:
+ if (typeof object.timestampOutputFormat === "number") {
+ message.timestampOutputFormat = object.timestampOutputFormat;
+ break;
+ }
+ break;
+ case "TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED":
+ case 0:
+ message.timestampOutputFormat = 0;
+ break;
+ case "FLOAT64":
+ case 1:
+ message.timestampOutputFormat = 1;
+ break;
+ case "INT64":
+ case 2:
+ message.timestampOutputFormat = 2;
+ break;
+ case "ISO8601_STRING":
+ case 3:
+ message.timestampOutputFormat = 3;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DataFormatOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {google.cloud.bigquery.v2.DataFormatOptions} message DataFormatOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DataFormatOptions.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.useInt64Timestamp = false;
+ object.timestampOutputFormat = options.enums === String ? "TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED" : 0;
+ }
+ if (message.useInt64Timestamp != null && Object.hasOwnProperty.call(message, "useInt64Timestamp"))
+ object.useInt64Timestamp = message.useInt64Timestamp;
+ if (message.timestampOutputFormat != null && Object.hasOwnProperty.call(message, "timestampOutputFormat"))
+ object.timestampOutputFormat = options.enums === String ? $root.google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat[message.timestampOutputFormat] === undefined ? message.timestampOutputFormat : $root.google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat[message.timestampOutputFormat] : message.timestampOutputFormat;
+ return object;
+ };
+
+ /**
+ * Converts this DataFormatOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DataFormatOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DataFormatOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.DataFormatOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DataFormatOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.DataFormatOptions";
+ };
+
+ /**
+ * TimestampOutputFormat enum.
+ * @name google.cloud.bigquery.v2.DataFormatOptions.TimestampOutputFormat
+ * @enum {number}
+ * @property {number} TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED=0 TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED value
+ * @property {number} FLOAT64=1 FLOAT64 value
+ * @property {number} INT64=2 INT64 value
+ * @property {number} ISO8601_STRING=3 ISO8601_STRING value
+ */
+ DataFormatOptions.TimestampOutputFormat = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "FLOAT64"] = 1;
+ values[valuesById[2] = "INT64"] = 2;
+ values[valuesById[3] = "ISO8601_STRING"] = 3;
+ return values;
+ })();
+
+ return DataFormatOptions;
+ })();
+
+ v2.DatasetService = (function() {
+
+ /**
+ * Constructs a new DatasetService service.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a DatasetService
+ * @extends $protobuf.rpc.Service
+ * @constructor
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ */
+ function DatasetService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (DatasetService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DatasetService;
+
+ /**
+ * Creates new DatasetService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {DatasetService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ DatasetService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|getDataset}.
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @typedef GetDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.v2.Dataset} [response] Dataset
+ */
+
+ /**
+ * Calls GetDataset.
+ * @function getDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IGetDatasetRequest} request GetDatasetRequest message or plain object
+ * @param {google.cloud.bigquery.v2.DatasetService.GetDatasetCallback} callback Node-style callback called with the error, if any, and Dataset
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DatasetService.prototype.getDataset = function getDataset(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getDataset, $root.google.cloud.bigquery.v2.GetDatasetRequest, $root.google.cloud.bigquery.v2.Dataset, request, callback);
+ }, "name", { value: "GetDataset" });
+
+ /**
+ * Calls GetDataset.
+ * @function getDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IGetDatasetRequest} request GetDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|insertDataset}.
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @typedef InsertDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.v2.Dataset} [response] Dataset
+ */
+
+ /**
+ * Calls InsertDataset.
+ * @function insertDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IInsertDatasetRequest} request InsertDatasetRequest message or plain object
+ * @param {google.cloud.bigquery.v2.DatasetService.InsertDatasetCallback} callback Node-style callback called with the error, if any, and Dataset
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DatasetService.prototype.insertDataset = function insertDataset(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, insertDataset, $root.google.cloud.bigquery.v2.InsertDatasetRequest, $root.google.cloud.bigquery.v2.Dataset, request, callback);
+ }, "name", { value: "InsertDataset" });
+
+ /**
+ * Calls InsertDataset.
+ * @function insertDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IInsertDatasetRequest} request InsertDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|patchDataset}.
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @typedef PatchDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.v2.Dataset} [response] Dataset
+ */
+
+ /**
+ * Calls PatchDataset.
+ * @function patchDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest} request UpdateOrPatchDatasetRequest message or plain object
+ * @param {google.cloud.bigquery.v2.DatasetService.PatchDatasetCallback} callback Node-style callback called with the error, if any, and Dataset
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DatasetService.prototype.patchDataset = function patchDataset(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, patchDataset, $root.google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest, $root.google.cloud.bigquery.v2.Dataset, request, callback);
+ }, "name", { value: "PatchDataset" });
+
+ /**
+ * Calls PatchDataset.
+ * @function patchDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest} request UpdateOrPatchDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|updateDataset}.
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @typedef UpdateDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.v2.Dataset} [response] Dataset
+ */
+
+ /**
+ * Calls UpdateDataset.
+ * @function updateDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest} request UpdateOrPatchDatasetRequest message or plain object
+ * @param {google.cloud.bigquery.v2.DatasetService.UpdateDatasetCallback} callback Node-style callback called with the error, if any, and Dataset
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DatasetService.prototype.updateDataset = function updateDataset(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, updateDataset, $root.google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest, $root.google.cloud.bigquery.v2.Dataset, request, callback);
+ }, "name", { value: "UpdateDataset" });
+
+ /**
+ * Calls UpdateDataset.
+ * @function updateDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest} request UpdateOrPatchDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|deleteDataset}.
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @typedef DeleteDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteDataset.
+ * @function deleteDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object
+ * @param {google.cloud.bigquery.v2.DatasetService.DeleteDatasetCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DatasetService.prototype.deleteDataset = function deleteDataset(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteDataset, $root.google.cloud.bigquery.v2.DeleteDatasetRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteDataset" });
+
+ /**
+ * Calls DeleteDataset.
+ * @function deleteDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|listDatasets}.
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @typedef ListDatasetsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.v2.DatasetList} [response] DatasetList
+ */
+
+ /**
+ * Calls ListDatasets.
+ * @function listDatasets
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IListDatasetsRequest} request ListDatasetsRequest message or plain object
+ * @param {google.cloud.bigquery.v2.DatasetService.ListDatasetsCallback} callback Node-style callback called with the error, if any, and DatasetList
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DatasetService.prototype.listDatasets = function listDatasets(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listDatasets, $root.google.cloud.bigquery.v2.ListDatasetsRequest, $root.google.cloud.bigquery.v2.DatasetList, request, callback);
+ }, "name", { value: "ListDatasets" });
+
+ /**
+ * Calls ListDatasets.
+ * @function listDatasets
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IListDatasetsRequest} request ListDatasetsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.bigquery.v2.DatasetService|undeleteDataset}.
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @typedef UndeleteDatasetCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.bigquery.v2.Dataset} [response] Dataset
+ */
+
+ /**
+ * Calls UndeleteDataset.
+ * @function undeleteDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IUndeleteDatasetRequest} request UndeleteDatasetRequest message or plain object
+ * @param {google.cloud.bigquery.v2.DatasetService.UndeleteDatasetCallback} callback Node-style callback called with the error, if any, and Dataset
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DatasetService.prototype.undeleteDataset = function undeleteDataset(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, undeleteDataset, $root.google.cloud.bigquery.v2.UndeleteDatasetRequest, $root.google.cloud.bigquery.v2.Dataset, request, callback);
+ }, "name", { value: "UndeleteDataset" });
+
+ /**
+ * Calls UndeleteDataset.
+ * @function undeleteDataset
+ * @memberof google.cloud.bigquery.v2.DatasetService
+ * @instance
+ * @param {google.cloud.bigquery.v2.IUndeleteDatasetRequest} request UndeleteDatasetRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return DatasetService;
+ })();
+
+ v2.DatasetAccessEntry = (function() {
+
+ /**
+ * Properties of a DatasetAccessEntry.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IDatasetAccessEntry
+ * @property {google.cloud.bigquery.v2.IDatasetReference|null} [dataset] DatasetAccessEntry dataset
+ * @property {Array.|null} [targetTypes] DatasetAccessEntry targetTypes
+ */
+
+ /**
+ * Constructs a new DatasetAccessEntry.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a DatasetAccessEntry.
+ * @implements IDatasetAccessEntry
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IDatasetAccessEntry=} [properties] Properties to set
+ */
+ function DatasetAccessEntry(properties) {
+ this.targetTypes = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DatasetAccessEntry dataset.
+ * @member {google.cloud.bigquery.v2.IDatasetReference|null|undefined} dataset
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @instance
+ */
+ DatasetAccessEntry.prototype.dataset = null;
+
+ /**
+ * DatasetAccessEntry targetTypes.
+ * @member {Array.} targetTypes
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @instance
+ */
+ DatasetAccessEntry.prototype.targetTypes = $util.emptyArray;
+
+ /**
+ * Creates a new DatasetAccessEntry instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetAccessEntry=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.DatasetAccessEntry} DatasetAccessEntry instance
+ */
+ DatasetAccessEntry.create = function create(properties) {
+ return new DatasetAccessEntry(properties);
+ };
+
+ /**
+ * Encodes the specified DatasetAccessEntry message. Does not implicitly {@link google.cloud.bigquery.v2.DatasetAccessEntry.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetAccessEntry} message DatasetAccessEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatasetAccessEntry.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ $root.google.cloud.bigquery.v2.DatasetReference.encode(message.dataset, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.targetTypes != null && message.targetTypes.length) {
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
+ for (var i = 0; i < message.targetTypes.length; ++i)
+ writer.int32(message.targetTypes[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DatasetAccessEntry message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DatasetAccessEntry.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetAccessEntry} message DatasetAccessEntry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatasetAccessEntry.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DatasetAccessEntry message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.DatasetAccessEntry} DatasetAccessEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatasetAccessEntry.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.DatasetAccessEntry();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.dataset = $root.google.cloud.bigquery.v2.DatasetReference.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ if (!(message.targetTypes && message.targetTypes.length))
+ message.targetTypes = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.targetTypes.push(reader.int32());
+ } else
+ message.targetTypes.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DatasetAccessEntry message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.DatasetAccessEntry} DatasetAccessEntry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatasetAccessEntry.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DatasetAccessEntry message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DatasetAccessEntry.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) {
+ var error = $root.google.cloud.bigquery.v2.DatasetReference.verify(message.dataset, long + 1);
+ if (error)
+ return "dataset." + error;
+ }
+ if (message.targetTypes != null && Object.hasOwnProperty.call(message, "targetTypes")) {
+ if (!Array.isArray(message.targetTypes))
+ return "targetTypes: array expected";
+ for (var i = 0; i < message.targetTypes.length; ++i)
+ switch (message.targetTypes[i]) {
+ default:
+ return "targetTypes: enum value[] expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DatasetAccessEntry message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.DatasetAccessEntry} DatasetAccessEntry
+ */
+ DatasetAccessEntry.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.DatasetAccessEntry)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.DatasetAccessEntry: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.DatasetAccessEntry();
+ if (object.dataset != null) {
+ if (!$util.isObject(object.dataset))
+ throw TypeError(".google.cloud.bigquery.v2.DatasetAccessEntry.dataset: object expected");
+ message.dataset = $root.google.cloud.bigquery.v2.DatasetReference.fromObject(object.dataset, long + 1);
+ }
+ if (object.targetTypes) {
+ if (!Array.isArray(object.targetTypes))
+ throw TypeError(".google.cloud.bigquery.v2.DatasetAccessEntry.targetTypes: array expected");
+ message.targetTypes = [];
+ for (var i = 0; i < object.targetTypes.length; ++i)
+ switch (object.targetTypes[i]) {
+ default:
+ if (typeof object.targetTypes[i] === "number") {
+ message.targetTypes[i] = object.targetTypes[i];
+ break;
+ }
+ case "TARGET_TYPE_UNSPECIFIED":
+ case 0:
+ message.targetTypes[i] = 0;
+ break;
+ case "VIEWS":
+ case 1:
+ message.targetTypes[i] = 1;
+ break;
+ case "ROUTINES":
+ case 2:
+ message.targetTypes[i] = 2;
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DatasetAccessEntry message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {google.cloud.bigquery.v2.DatasetAccessEntry} message DatasetAccessEntry
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DatasetAccessEntry.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.targetTypes = [];
+ if (options.defaults)
+ object.dataset = null;
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ object.dataset = $root.google.cloud.bigquery.v2.DatasetReference.toObject(message.dataset, options, q + 1);
+ if (message.targetTypes && message.targetTypes.length) {
+ object.targetTypes = [];
+ for (var j = 0; j < message.targetTypes.length; ++j)
+ object.targetTypes[j] = options.enums === String ? $root.google.cloud.bigquery.v2.DatasetAccessEntry.TargetType[message.targetTypes[j]] === undefined ? message.targetTypes[j] : $root.google.cloud.bigquery.v2.DatasetAccessEntry.TargetType[message.targetTypes[j]] : message.targetTypes[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DatasetAccessEntry to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DatasetAccessEntry.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DatasetAccessEntry
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.DatasetAccessEntry
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DatasetAccessEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.DatasetAccessEntry";
+ };
+
+ /**
+ * TargetType enum.
+ * @name google.cloud.bigquery.v2.DatasetAccessEntry.TargetType
+ * @enum {number}
+ * @property {number} TARGET_TYPE_UNSPECIFIED=0 TARGET_TYPE_UNSPECIFIED value
+ * @property {number} VIEWS=1 VIEWS value
+ * @property {number} ROUTINES=2 ROUTINES value
+ */
+ DatasetAccessEntry.TargetType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TARGET_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "VIEWS"] = 1;
+ values[valuesById[2] = "ROUTINES"] = 2;
+ return values;
+ })();
+
+ return DatasetAccessEntry;
+ })();
+
+ v2.Access = (function() {
+
+ /**
+ * Properties of an Access.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IAccess
+ * @property {string|null} [role] Access role
+ * @property {string|null} [userByEmail] Access userByEmail
+ * @property {string|null} [groupByEmail] Access groupByEmail
+ * @property {string|null} [domain] Access domain
+ * @property {string|null} [specialGroup] Access specialGroup
+ * @property {string|null} [iamMember] Access iamMember
+ * @property {google.cloud.bigquery.v2.ITableReference|null} [view] Access view
+ * @property {google.cloud.bigquery.v2.IRoutineReference|null} [routine] Access routine
+ * @property {google.cloud.bigquery.v2.IDatasetAccessEntry|null} [dataset] Access dataset
+ * @property {google.type.IExpr|null} [condition] Access condition
+ */
+
+ /**
+ * Constructs a new Access.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents an Access.
+ * @implements IAccess
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IAccess=} [properties] Properties to set
+ */
+ function Access(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Access role.
+ * @member {string} role
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.role = "";
+
+ /**
+ * Access userByEmail.
+ * @member {string} userByEmail
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.userByEmail = "";
+
+ /**
+ * Access groupByEmail.
+ * @member {string} groupByEmail
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.groupByEmail = "";
+
+ /**
+ * Access domain.
+ * @member {string} domain
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.domain = "";
+
+ /**
+ * Access specialGroup.
+ * @member {string} specialGroup
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.specialGroup = "";
+
+ /**
+ * Access iamMember.
+ * @member {string} iamMember
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.iamMember = "";
+
+ /**
+ * Access view.
+ * @member {google.cloud.bigquery.v2.ITableReference|null|undefined} view
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.view = null;
+
+ /**
+ * Access routine.
+ * @member {google.cloud.bigquery.v2.IRoutineReference|null|undefined} routine
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.routine = null;
+
+ /**
+ * Access dataset.
+ * @member {google.cloud.bigquery.v2.IDatasetAccessEntry|null|undefined} dataset
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.dataset = null;
+
+ /**
+ * Access condition.
+ * @member {google.type.IExpr|null|undefined} condition
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ */
+ Access.prototype.condition = null;
+
+ /**
+ * Creates a new Access instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {google.cloud.bigquery.v2.IAccess=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.Access} Access instance
+ */
+ Access.create = function create(properties) {
+ return new Access(properties);
+ };
+
+ /**
+ * Encodes the specified Access message. Does not implicitly {@link google.cloud.bigquery.v2.Access.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {google.cloud.bigquery.v2.IAccess} message Access message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Access.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.role != null && Object.hasOwnProperty.call(message, "role"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.role);
+ if (message.userByEmail != null && Object.hasOwnProperty.call(message, "userByEmail"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userByEmail);
+ if (message.groupByEmail != null && Object.hasOwnProperty.call(message, "groupByEmail"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.groupByEmail);
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.domain);
+ if (message.specialGroup != null && Object.hasOwnProperty.call(message, "specialGroup"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.specialGroup);
+ if (message.view != null && Object.hasOwnProperty.call(message, "view"))
+ $root.google.cloud.bigquery.v2.TableReference.encode(message.view, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.iamMember != null && Object.hasOwnProperty.call(message, "iamMember"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.iamMember);
+ if (message.routine != null && Object.hasOwnProperty.call(message, "routine"))
+ $root.google.cloud.bigquery.v2.RoutineReference.encode(message.routine, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim();
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ $root.google.cloud.bigquery.v2.DatasetAccessEntry.encode(message.dataset, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim();
+ if (message.condition != null && Object.hasOwnProperty.call(message, "condition"))
+ $root.google.type.Expr.encode(message.condition, writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Access message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Access.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {google.cloud.bigquery.v2.IAccess} message Access message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Access.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an Access message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.Access} Access
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Access.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.Access();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.role = reader.string();
+ break;
+ }
+ case 2: {
+ message.userByEmail = reader.string();
+ break;
+ }
+ case 3: {
+ message.groupByEmail = reader.string();
+ break;
+ }
+ case 4: {
+ message.domain = reader.string();
+ break;
+ }
+ case 5: {
+ message.specialGroup = reader.string();
+ break;
+ }
+ case 7: {
+ message.iamMember = reader.string();
+ break;
+ }
+ case 6: {
+ message.view = $root.google.cloud.bigquery.v2.TableReference.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 8: {
+ message.routine = $root.google.cloud.bigquery.v2.RoutineReference.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 9: {
+ message.dataset = $root.google.cloud.bigquery.v2.DatasetAccessEntry.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 10: {
+ message.condition = $root.google.type.Expr.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Access message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.Access} Access
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Access.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Access message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Access.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.role != null && Object.hasOwnProperty.call(message, "role"))
+ if (!$util.isString(message.role))
+ return "role: string expected";
+ if (message.userByEmail != null && Object.hasOwnProperty.call(message, "userByEmail"))
+ if (!$util.isString(message.userByEmail))
+ return "userByEmail: string expected";
+ if (message.groupByEmail != null && Object.hasOwnProperty.call(message, "groupByEmail"))
+ if (!$util.isString(message.groupByEmail))
+ return "groupByEmail: string expected";
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
+ if (!$util.isString(message.domain))
+ return "domain: string expected";
+ if (message.specialGroup != null && Object.hasOwnProperty.call(message, "specialGroup"))
+ if (!$util.isString(message.specialGroup))
+ return "specialGroup: string expected";
+ if (message.iamMember != null && Object.hasOwnProperty.call(message, "iamMember"))
+ if (!$util.isString(message.iamMember))
+ return "iamMember: string expected";
+ if (message.view != null && Object.hasOwnProperty.call(message, "view")) {
+ var error = $root.google.cloud.bigquery.v2.TableReference.verify(message.view, long + 1);
+ if (error)
+ return "view." + error;
+ }
+ if (message.routine != null && Object.hasOwnProperty.call(message, "routine")) {
+ var error = $root.google.cloud.bigquery.v2.RoutineReference.verify(message.routine, long + 1);
+ if (error)
+ return "routine." + error;
+ }
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) {
+ var error = $root.google.cloud.bigquery.v2.DatasetAccessEntry.verify(message.dataset, long + 1);
+ if (error)
+ return "dataset." + error;
+ }
+ if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) {
+ var error = $root.google.type.Expr.verify(message.condition, long + 1);
+ if (error)
+ return "condition." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Access message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.Access} Access
+ */
+ Access.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.Access)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.Access: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.Access();
+ if (object.role != null)
+ message.role = String(object.role);
+ if (object.userByEmail != null)
+ message.userByEmail = String(object.userByEmail);
+ if (object.groupByEmail != null)
+ message.groupByEmail = String(object.groupByEmail);
+ if (object.domain != null)
+ message.domain = String(object.domain);
+ if (object.specialGroup != null)
+ message.specialGroup = String(object.specialGroup);
+ if (object.iamMember != null)
+ message.iamMember = String(object.iamMember);
+ if (object.view != null) {
+ if (!$util.isObject(object.view))
+ throw TypeError(".google.cloud.bigquery.v2.Access.view: object expected");
+ message.view = $root.google.cloud.bigquery.v2.TableReference.fromObject(object.view, long + 1);
+ }
+ if (object.routine != null) {
+ if (!$util.isObject(object.routine))
+ throw TypeError(".google.cloud.bigquery.v2.Access.routine: object expected");
+ message.routine = $root.google.cloud.bigquery.v2.RoutineReference.fromObject(object.routine, long + 1);
+ }
+ if (object.dataset != null) {
+ if (!$util.isObject(object.dataset))
+ throw TypeError(".google.cloud.bigquery.v2.Access.dataset: object expected");
+ message.dataset = $root.google.cloud.bigquery.v2.DatasetAccessEntry.fromObject(object.dataset, long + 1);
+ }
+ if (object.condition != null) {
+ if (!$util.isObject(object.condition))
+ throw TypeError(".google.cloud.bigquery.v2.Access.condition: object expected");
+ message.condition = $root.google.type.Expr.fromObject(object.condition, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Access message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {google.cloud.bigquery.v2.Access} message Access
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Access.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.role = "";
+ object.userByEmail = "";
+ object.groupByEmail = "";
+ object.domain = "";
+ object.specialGroup = "";
+ object.view = null;
+ object.iamMember = "";
+ object.routine = null;
+ object.dataset = null;
+ object.condition = null;
+ }
+ if (message.role != null && Object.hasOwnProperty.call(message, "role"))
+ object.role = message.role;
+ if (message.userByEmail != null && Object.hasOwnProperty.call(message, "userByEmail"))
+ object.userByEmail = message.userByEmail;
+ if (message.groupByEmail != null && Object.hasOwnProperty.call(message, "groupByEmail"))
+ object.groupByEmail = message.groupByEmail;
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
+ object.domain = message.domain;
+ if (message.specialGroup != null && Object.hasOwnProperty.call(message, "specialGroup"))
+ object.specialGroup = message.specialGroup;
+ if (message.view != null && Object.hasOwnProperty.call(message, "view"))
+ object.view = $root.google.cloud.bigquery.v2.TableReference.toObject(message.view, options, q + 1);
+ if (message.iamMember != null && Object.hasOwnProperty.call(message, "iamMember"))
+ object.iamMember = message.iamMember;
+ if (message.routine != null && Object.hasOwnProperty.call(message, "routine"))
+ object.routine = $root.google.cloud.bigquery.v2.RoutineReference.toObject(message.routine, options, q + 1);
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ object.dataset = $root.google.cloud.bigquery.v2.DatasetAccessEntry.toObject(message.dataset, options, q + 1);
+ if (message.condition != null && Object.hasOwnProperty.call(message, "condition"))
+ object.condition = $root.google.type.Expr.toObject(message.condition, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this Access to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.Access
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Access.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Access
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.Access
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Access.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.Access";
+ };
+
+ return Access;
+ })();
+
+ v2.Dataset = (function() {
+
+ /**
+ * Properties of a Dataset.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IDataset
+ * @property {string|null} [kind] Dataset kind
+ * @property {string|null} [etag] Dataset etag
+ * @property {string|null} [id] Dataset id
+ * @property {string|null} [selfLink] Dataset selfLink
+ * @property {google.cloud.bigquery.v2.IDatasetReference|null} [datasetReference] Dataset datasetReference
+ * @property {google.protobuf.IStringValue|null} [friendlyName] Dataset friendlyName
+ * @property {google.protobuf.IStringValue|null} [description] Dataset description
+ * @property {google.protobuf.IInt64Value|null} [defaultTableExpirationMs] Dataset defaultTableExpirationMs
+ * @property {google.protobuf.IInt64Value|null} [defaultPartitionExpirationMs] Dataset defaultPartitionExpirationMs
+ * @property {Object.|null} [labels] Dataset labels
+ * @property {Array.|null} [access] Dataset access
+ * @property {number|Long|null} [creationTime] Dataset creationTime
+ * @property {number|Long|null} [lastModifiedTime] Dataset lastModifiedTime
+ * @property {string|null} [location] Dataset location
+ * @property {google.cloud.bigquery.v2.IEncryptionConfiguration|null} [defaultEncryptionConfiguration] Dataset defaultEncryptionConfiguration
+ * @property {google.protobuf.IBoolValue|null} [satisfiesPzs] Dataset satisfiesPzs
+ * @property {google.protobuf.IBoolValue|null} [satisfiesPzi] Dataset satisfiesPzi
+ * @property {string|null} [type] Dataset type
+ * @property {string|null} [catalogSource] Dataset catalogSource
+ * @property {google.cloud.bigquery.v2.ILinkedDatasetSource|null} [linkedDatasetSource] Dataset linkedDatasetSource
+ * @property {google.cloud.bigquery.v2.ILinkedDatasetMetadata|null} [linkedDatasetMetadata] Dataset linkedDatasetMetadata
+ * @property {google.cloud.bigquery.v2.IExternalDatasetReference|null} [externalDatasetReference] Dataset externalDatasetReference
+ * @property {google.cloud.bigquery.v2.IExternalCatalogDatasetOptions|null} [externalCatalogDatasetOptions] Dataset externalCatalogDatasetOptions
+ * @property {google.protobuf.IBoolValue|null} [isCaseInsensitive] Dataset isCaseInsensitive
+ * @property {google.protobuf.IStringValue|null} [defaultCollation] Dataset defaultCollation
+ * @property {google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|null} [defaultRoundingMode] Dataset defaultRoundingMode
+ * @property {google.protobuf.IInt64Value|null} [maxTimeTravelHours] Dataset maxTimeTravelHours
+ * @property {Array.|null} [tags] Dataset tags
+ * @property {google.cloud.bigquery.v2.Dataset.StorageBillingModel|null} [storageBillingModel] Dataset storageBillingModel
+ * @property {google.cloud.bigquery.v2.IRestrictionConfig|null} [restrictions] Dataset restrictions
+ * @property {Object.|null} [resourceTags] Dataset resourceTags
+ */
+
+ /**
+ * Constructs a new Dataset.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a Dataset.
+ * @implements IDataset
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IDataset=} [properties] Properties to set
+ */
+ function Dataset(properties) {
+ this.labels = {};
+ this.access = [];
+ this.tags = [];
+ this.resourceTags = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Dataset kind.
+ * @member {string} kind
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.kind = "";
+
+ /**
+ * Dataset etag.
+ * @member {string} etag
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.etag = "";
+
+ /**
+ * Dataset id.
+ * @member {string} id
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.id = "";
+
+ /**
+ * Dataset selfLink.
+ * @member {string} selfLink
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.selfLink = "";
+
+ /**
+ * Dataset datasetReference.
+ * @member {google.cloud.bigquery.v2.IDatasetReference|null|undefined} datasetReference
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.datasetReference = null;
+
+ /**
+ * Dataset friendlyName.
+ * @member {google.protobuf.IStringValue|null|undefined} friendlyName
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.friendlyName = null;
+
+ /**
+ * Dataset description.
+ * @member {google.protobuf.IStringValue|null|undefined} description
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.description = null;
+
+ /**
+ * Dataset defaultTableExpirationMs.
+ * @member {google.protobuf.IInt64Value|null|undefined} defaultTableExpirationMs
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.defaultTableExpirationMs = null;
+
+ /**
+ * Dataset defaultPartitionExpirationMs.
+ * @member {google.protobuf.IInt64Value|null|undefined} defaultPartitionExpirationMs
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.defaultPartitionExpirationMs = null;
+
+ /**
+ * Dataset labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.labels = $util.emptyObject;
+
+ /**
+ * Dataset access.
+ * @member {Array.} access
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.access = $util.emptyArray;
+
+ /**
+ * Dataset creationTime.
+ * @member {number|Long} creationTime
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.creationTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Dataset lastModifiedTime.
+ * @member {number|Long} lastModifiedTime
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.lastModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Dataset location.
+ * @member {string} location
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.location = "";
+
+ /**
+ * Dataset defaultEncryptionConfiguration.
+ * @member {google.cloud.bigquery.v2.IEncryptionConfiguration|null|undefined} defaultEncryptionConfiguration
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.defaultEncryptionConfiguration = null;
+
+ /**
+ * Dataset satisfiesPzs.
+ * @member {google.protobuf.IBoolValue|null|undefined} satisfiesPzs
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.satisfiesPzs = null;
+
+ /**
+ * Dataset satisfiesPzi.
+ * @member {google.protobuf.IBoolValue|null|undefined} satisfiesPzi
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.satisfiesPzi = null;
+
+ /**
+ * Dataset type.
+ * @member {string} type
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.type = "";
+
+ /**
+ * Dataset catalogSource.
+ * @member {string|null|undefined} catalogSource
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.catalogSource = null;
+
+ /**
+ * Dataset linkedDatasetSource.
+ * @member {google.cloud.bigquery.v2.ILinkedDatasetSource|null|undefined} linkedDatasetSource
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.linkedDatasetSource = null;
+
+ /**
+ * Dataset linkedDatasetMetadata.
+ * @member {google.cloud.bigquery.v2.ILinkedDatasetMetadata|null|undefined} linkedDatasetMetadata
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.linkedDatasetMetadata = null;
+
+ /**
+ * Dataset externalDatasetReference.
+ * @member {google.cloud.bigquery.v2.IExternalDatasetReference|null|undefined} externalDatasetReference
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.externalDatasetReference = null;
+
+ /**
+ * Dataset externalCatalogDatasetOptions.
+ * @member {google.cloud.bigquery.v2.IExternalCatalogDatasetOptions|null|undefined} externalCatalogDatasetOptions
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.externalCatalogDatasetOptions = null;
+
+ /**
+ * Dataset isCaseInsensitive.
+ * @member {google.protobuf.IBoolValue|null|undefined} isCaseInsensitive
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.isCaseInsensitive = null;
+
+ /**
+ * Dataset defaultCollation.
+ * @member {google.protobuf.IStringValue|null|undefined} defaultCollation
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.defaultCollation = null;
+
+ /**
+ * Dataset defaultRoundingMode.
+ * @member {google.cloud.bigquery.v2.TableFieldSchema.RoundingMode} defaultRoundingMode
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.defaultRoundingMode = 0;
+
+ /**
+ * Dataset maxTimeTravelHours.
+ * @member {google.protobuf.IInt64Value|null|undefined} maxTimeTravelHours
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.maxTimeTravelHours = null;
+
+ /**
+ * Dataset tags.
+ * @member {Array.} tags
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.tags = $util.emptyArray;
+
+ /**
+ * Dataset storageBillingModel.
+ * @member {google.cloud.bigquery.v2.Dataset.StorageBillingModel} storageBillingModel
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.storageBillingModel = 0;
+
+ /**
+ * Dataset restrictions.
+ * @member {google.cloud.bigquery.v2.IRestrictionConfig|null|undefined} restrictions
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.restrictions = null;
+
+ /**
+ * Dataset resourceTags.
+ * @member {Object.} resourceTags
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ */
+ Dataset.prototype.resourceTags = $util.emptyObject;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(Dataset.prototype, "_catalogSource", {
+ get: $util.oneOfGetter($oneOfFields = ["catalogSource"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Dataset instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataset=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.Dataset} Dataset instance
+ */
+ Dataset.create = function create(properties) {
+ return new Dataset(properties);
+ };
+
+ /**
+ * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.bigquery.v2.Dataset.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataset} message Dataset message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Dataset.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag);
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.id);
+ if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.selfLink);
+ if (message.datasetReference != null && Object.hasOwnProperty.call(message, "datasetReference"))
+ $root.google.cloud.bigquery.v2.DatasetReference.encode(message.datasetReference, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName"))
+ $root.google.protobuf.StringValue.encode(message.friendlyName, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ $root.google.protobuf.StringValue.encode(message.description, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim();
+ if (message.defaultTableExpirationMs != null && Object.hasOwnProperty.call(message, "defaultTableExpirationMs"))
+ $root.google.protobuf.Int64Value.encode(message.defaultTableExpirationMs, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.access != null && message.access.length)
+ for (var i = 0; i < message.access.length; ++i)
+ $root.google.cloud.bigquery.v2.Access.encode(message.access[i], writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim();
+ if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime"))
+ writer.uint32(/* id 11, wireType 0 =*/88).int64(message.creationTime);
+ if (message.lastModifiedTime != null && Object.hasOwnProperty.call(message, "lastModifiedTime"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int64(message.lastModifiedTime);
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.location);
+ if (message.defaultPartitionExpirationMs != null && Object.hasOwnProperty.call(message, "defaultPartitionExpirationMs"))
+ $root.google.protobuf.Int64Value.encode(message.defaultPartitionExpirationMs, writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim();
+ if (message.defaultEncryptionConfiguration != null && Object.hasOwnProperty.call(message, "defaultEncryptionConfiguration"))
+ $root.google.cloud.bigquery.v2.EncryptionConfiguration.encode(message.defaultEncryptionConfiguration, writer.uint32(/* id 16, wireType 2 =*/130).fork(), q + 1).ldelim();
+ if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs"))
+ $root.google.protobuf.BoolValue.encode(message.satisfiesPzs, writer.uint32(/* id 17, wireType 2 =*/138).fork(), q + 1).ldelim();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 18, wireType 2 =*/146).string(message.type);
+ if (message.linkedDatasetSource != null && Object.hasOwnProperty.call(message, "linkedDatasetSource"))
+ $root.google.cloud.bigquery.v2.LinkedDatasetSource.encode(message.linkedDatasetSource, writer.uint32(/* id 19, wireType 2 =*/154).fork(), q + 1).ldelim();
+ if (message.externalDatasetReference != null && Object.hasOwnProperty.call(message, "externalDatasetReference"))
+ $root.google.cloud.bigquery.v2.ExternalDatasetReference.encode(message.externalDatasetReference, writer.uint32(/* id 20, wireType 2 =*/162).fork(), q + 1).ldelim();
+ if (message.isCaseInsensitive != null && Object.hasOwnProperty.call(message, "isCaseInsensitive"))
+ $root.google.protobuf.BoolValue.encode(message.isCaseInsensitive, writer.uint32(/* id 21, wireType 2 =*/170).fork(), q + 1).ldelim();
+ if (message.defaultCollation != null && Object.hasOwnProperty.call(message, "defaultCollation"))
+ $root.google.protobuf.StringValue.encode(message.defaultCollation, writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim();
+ if (message.maxTimeTravelHours != null && Object.hasOwnProperty.call(message, "maxTimeTravelHours"))
+ $root.google.protobuf.Int64Value.encode(message.maxTimeTravelHours, writer.uint32(/* id 23, wireType 2 =*/186).fork(), q + 1).ldelim();
+ if (message.tags != null && message.tags.length)
+ for (var i = 0; i < message.tags.length; ++i)
+ $root.google.cloud.bigquery.v2.GcpTag.encode(message.tags[i], writer.uint32(/* id 24, wireType 2 =*/194).fork(), q + 1).ldelim();
+ if (message.storageBillingModel != null && Object.hasOwnProperty.call(message, "storageBillingModel"))
+ writer.uint32(/* id 25, wireType 0 =*/200).int32(message.storageBillingModel);
+ if (message.defaultRoundingMode != null && Object.hasOwnProperty.call(message, "defaultRoundingMode"))
+ writer.uint32(/* id 26, wireType 0 =*/208).int32(message.defaultRoundingMode);
+ if (message.restrictions != null && Object.hasOwnProperty.call(message, "restrictions"))
+ $root.google.cloud.bigquery.v2.RestrictionConfig.encode(message.restrictions, writer.uint32(/* id 27, wireType 2 =*/218).fork(), q + 1).ldelim();
+ if (message.linkedDatasetMetadata != null && Object.hasOwnProperty.call(message, "linkedDatasetMetadata"))
+ $root.google.cloud.bigquery.v2.LinkedDatasetMetadata.encode(message.linkedDatasetMetadata, writer.uint32(/* id 29, wireType 2 =*/234).fork(), q + 1).ldelim();
+ if (message.resourceTags != null && Object.hasOwnProperty.call(message, "resourceTags"))
+ for (var keys = Object.keys(message.resourceTags), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 30, wireType 2 =*/242).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceTags[keys[i]]).ldelim();
+ if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi"))
+ $root.google.protobuf.BoolValue.encode(message.satisfiesPzi, writer.uint32(/* id 31, wireType 2 =*/250).fork(), q + 1).ldelim();
+ if (message.externalCatalogDatasetOptions != null && Object.hasOwnProperty.call(message, "externalCatalogDatasetOptions"))
+ $root.google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.encode(message.externalCatalogDatasetOptions, writer.uint32(/* id 32, wireType 2 =*/258).fork(), q + 1).ldelim();
+ if (message.catalogSource != null && Object.hasOwnProperty.call(message, "catalogSource"))
+ writer.uint32(/* id 40, wireType 2 =*/322).string(message.catalogSource);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.Dataset.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataset} message Dataset message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Dataset.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.Dataset} Dataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Dataset.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.Dataset(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.etag = reader.string();
+ break;
+ }
+ case 3: {
+ message.id = reader.string();
+ break;
+ }
+ case 4: {
+ message.selfLink = reader.string();
+ break;
+ }
+ case 5: {
+ message.datasetReference = $root.google.cloud.bigquery.v2.DatasetReference.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.friendlyName = $root.google.protobuf.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 7: {
+ message.description = $root.google.protobuf.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 8: {
+ message.defaultTableExpirationMs = $root.google.protobuf.Int64Value.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 14: {
+ message.defaultPartitionExpirationMs = $root.google.protobuf.Int64Value.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 9: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ 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, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.labels, key);
+ message.labels[key] = value;
+ break;
+ }
+ case 10: {
+ if (!(message.access && message.access.length))
+ message.access = [];
+ message.access.push($root.google.cloud.bigquery.v2.Access.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 11: {
+ message.creationTime = reader.int64();
+ break;
+ }
+ case 12: {
+ message.lastModifiedTime = reader.int64();
+ break;
+ }
+ case 13: {
+ message.location = reader.string();
+ break;
+ }
+ case 16: {
+ message.defaultEncryptionConfiguration = $root.google.cloud.bigquery.v2.EncryptionConfiguration.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 17: {
+ message.satisfiesPzs = $root.google.protobuf.BoolValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 31: {
+ message.satisfiesPzi = $root.google.protobuf.BoolValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 18: {
+ message.type = reader.string();
+ break;
+ }
+ case 40: {
+ message.catalogSource = reader.string();
+ break;
+ }
+ case 19: {
+ message.linkedDatasetSource = $root.google.cloud.bigquery.v2.LinkedDatasetSource.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 29: {
+ message.linkedDatasetMetadata = $root.google.cloud.bigquery.v2.LinkedDatasetMetadata.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 20: {
+ message.externalDatasetReference = $root.google.cloud.bigquery.v2.ExternalDatasetReference.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 32: {
+ message.externalCatalogDatasetOptions = $root.google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 21: {
+ message.isCaseInsensitive = $root.google.protobuf.BoolValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 22: {
+ message.defaultCollation = $root.google.protobuf.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 26: {
+ message.defaultRoundingMode = reader.int32();
+ break;
+ }
+ case 23: {
+ message.maxTimeTravelHours = $root.google.protobuf.Int64Value.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 24: {
+ if (!(message.tags && message.tags.length))
+ message.tags = [];
+ message.tags.push($root.google.cloud.bigquery.v2.GcpTag.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 25: {
+ message.storageBillingModel = reader.int32();
+ break;
+ }
+ case 27: {
+ message.restrictions = $root.google.cloud.bigquery.v2.RestrictionConfig.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 30: {
+ if (message.resourceTags === $util.emptyObject)
+ message.resourceTags = {};
+ 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, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.resourceTags, key);
+ message.resourceTags[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Dataset message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.Dataset} Dataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Dataset.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Dataset message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Dataset.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink"))
+ if (!$util.isString(message.selfLink))
+ return "selfLink: string expected";
+ if (message.datasetReference != null && Object.hasOwnProperty.call(message, "datasetReference")) {
+ var error = $root.google.cloud.bigquery.v2.DatasetReference.verify(message.datasetReference, long + 1);
+ if (error)
+ return "datasetReference." + error;
+ }
+ if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName")) {
+ var error = $root.google.protobuf.StringValue.verify(message.friendlyName, long + 1);
+ if (error)
+ return "friendlyName." + error;
+ }
+ if (message.description != null && Object.hasOwnProperty.call(message, "description")) {
+ var error = $root.google.protobuf.StringValue.verify(message.description, long + 1);
+ if (error)
+ return "description." + error;
+ }
+ if (message.defaultTableExpirationMs != null && Object.hasOwnProperty.call(message, "defaultTableExpirationMs")) {
+ var error = $root.google.protobuf.Int64Value.verify(message.defaultTableExpirationMs, long + 1);
+ if (error)
+ return "defaultTableExpirationMs." + error;
+ }
+ if (message.defaultPartitionExpirationMs != null && Object.hasOwnProperty.call(message, "defaultPartitionExpirationMs")) {
+ var error = $root.google.protobuf.Int64Value.verify(message.defaultPartitionExpirationMs, long + 1);
+ if (error)
+ return "defaultPartitionExpirationMs." + error;
+ }
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.access != null && Object.hasOwnProperty.call(message, "access")) {
+ if (!Array.isArray(message.access))
+ return "access: array expected";
+ for (var i = 0; i < message.access.length; ++i) {
+ var error = $root.google.cloud.bigquery.v2.Access.verify(message.access[i], long + 1);
+ if (error)
+ return "access." + error;
+ }
+ }
+ if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime"))
+ if (!$util.isInteger(message.creationTime) && !(message.creationTime && $util.isInteger(message.creationTime.low) && $util.isInteger(message.creationTime.high)))
+ return "creationTime: integer|Long expected";
+ if (message.lastModifiedTime != null && Object.hasOwnProperty.call(message, "lastModifiedTime"))
+ if (!$util.isInteger(message.lastModifiedTime) && !(message.lastModifiedTime && $util.isInteger(message.lastModifiedTime.low) && $util.isInteger(message.lastModifiedTime.high)))
+ return "lastModifiedTime: integer|Long expected";
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.defaultEncryptionConfiguration != null && Object.hasOwnProperty.call(message, "defaultEncryptionConfiguration")) {
+ var error = $root.google.cloud.bigquery.v2.EncryptionConfiguration.verify(message.defaultEncryptionConfiguration, long + 1);
+ if (error)
+ return "defaultEncryptionConfiguration." + error;
+ }
+ if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) {
+ var error = $root.google.protobuf.BoolValue.verify(message.satisfiesPzs, long + 1);
+ if (error)
+ return "satisfiesPzs." + error;
+ }
+ if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) {
+ var error = $root.google.protobuf.BoolValue.verify(message.satisfiesPzi, long + 1);
+ if (error)
+ return "satisfiesPzi." + error;
+ }
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.catalogSource != null && Object.hasOwnProperty.call(message, "catalogSource")) {
+ properties._catalogSource = 1;
+ if (!$util.isString(message.catalogSource))
+ return "catalogSource: string expected";
+ }
+ if (message.linkedDatasetSource != null && Object.hasOwnProperty.call(message, "linkedDatasetSource")) {
+ var error = $root.google.cloud.bigquery.v2.LinkedDatasetSource.verify(message.linkedDatasetSource, long + 1);
+ if (error)
+ return "linkedDatasetSource." + error;
+ }
+ if (message.linkedDatasetMetadata != null && Object.hasOwnProperty.call(message, "linkedDatasetMetadata")) {
+ var error = $root.google.cloud.bigquery.v2.LinkedDatasetMetadata.verify(message.linkedDatasetMetadata, long + 1);
+ if (error)
+ return "linkedDatasetMetadata." + error;
+ }
+ if (message.externalDatasetReference != null && Object.hasOwnProperty.call(message, "externalDatasetReference")) {
+ var error = $root.google.cloud.bigquery.v2.ExternalDatasetReference.verify(message.externalDatasetReference, long + 1);
+ if (error)
+ return "externalDatasetReference." + error;
+ }
+ if (message.externalCatalogDatasetOptions != null && Object.hasOwnProperty.call(message, "externalCatalogDatasetOptions")) {
+ var error = $root.google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.verify(message.externalCatalogDatasetOptions, long + 1);
+ if (error)
+ return "externalCatalogDatasetOptions." + error;
+ }
+ if (message.isCaseInsensitive != null && Object.hasOwnProperty.call(message, "isCaseInsensitive")) {
+ var error = $root.google.protobuf.BoolValue.verify(message.isCaseInsensitive, long + 1);
+ if (error)
+ return "isCaseInsensitive." + error;
+ }
+ if (message.defaultCollation != null && Object.hasOwnProperty.call(message, "defaultCollation")) {
+ var error = $root.google.protobuf.StringValue.verify(message.defaultCollation, long + 1);
+ if (error)
+ return "defaultCollation." + error;
+ }
+ if (message.defaultRoundingMode != null && Object.hasOwnProperty.call(message, "defaultRoundingMode"))
+ switch (message.defaultRoundingMode) {
+ default:
+ return "defaultRoundingMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.maxTimeTravelHours != null && Object.hasOwnProperty.call(message, "maxTimeTravelHours")) {
+ var error = $root.google.protobuf.Int64Value.verify(message.maxTimeTravelHours, long + 1);
+ if (error)
+ return "maxTimeTravelHours." + error;
+ }
+ if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) {
+ if (!Array.isArray(message.tags))
+ return "tags: array expected";
+ for (var i = 0; i < message.tags.length; ++i) {
+ var error = $root.google.cloud.bigquery.v2.GcpTag.verify(message.tags[i], long + 1);
+ if (error)
+ return "tags." + error;
+ }
+ }
+ if (message.storageBillingModel != null && Object.hasOwnProperty.call(message, "storageBillingModel"))
+ switch (message.storageBillingModel) {
+ default:
+ return "storageBillingModel: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.restrictions != null && Object.hasOwnProperty.call(message, "restrictions")) {
+ var error = $root.google.cloud.bigquery.v2.RestrictionConfig.verify(message.restrictions, long + 1);
+ if (error)
+ return "restrictions." + error;
+ }
+ if (message.resourceTags != null && Object.hasOwnProperty.call(message, "resourceTags")) {
+ if (!$util.isObject(message.resourceTags))
+ return "resourceTags: object expected";
+ var key = Object.keys(message.resourceTags);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.resourceTags[key[i]]))
+ return "resourceTags: string{k:string} expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Dataset message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.Dataset} Dataset
+ */
+ Dataset.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.Dataset)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.Dataset();
+ if (object.kind != null)
+ message.kind = String(object.kind);
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.selfLink != null)
+ message.selfLink = String(object.selfLink);
+ if (object.datasetReference != null) {
+ if (!$util.isObject(object.datasetReference))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.datasetReference: object expected");
+ message.datasetReference = $root.google.cloud.bigquery.v2.DatasetReference.fromObject(object.datasetReference, long + 1);
+ }
+ if (object.friendlyName != null) {
+ if (!$util.isObject(object.friendlyName))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.friendlyName: object expected");
+ message.friendlyName = $root.google.protobuf.StringValue.fromObject(object.friendlyName, long + 1);
+ }
+ if (object.description != null) {
+ if (!$util.isObject(object.description))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.description: object expected");
+ message.description = $root.google.protobuf.StringValue.fromObject(object.description, long + 1);
+ }
+ if (object.defaultTableExpirationMs != null) {
+ if (!$util.isObject(object.defaultTableExpirationMs))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.defaultTableExpirationMs: object expected");
+ message.defaultTableExpirationMs = $root.google.protobuf.Int64Value.fromObject(object.defaultTableExpirationMs, long + 1);
+ }
+ if (object.defaultPartitionExpirationMs != null) {
+ if (!$util.isObject(object.defaultPartitionExpirationMs))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.defaultPartitionExpirationMs: object expected");
+ message.defaultPartitionExpirationMs = $root.google.protobuf.Int64Value.fromObject(object.defaultPartitionExpirationMs, long + 1);
+ }
+ if (object.labels) {
+ if (!$util.isObject(object.labels))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.labels, keys[i]);
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ }
+ if (object.access) {
+ if (!Array.isArray(object.access))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.access: array expected");
+ message.access = [];
+ for (var i = 0; i < object.access.length; ++i) {
+ if (!$util.isObject(object.access[i]))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.access: object expected");
+ message.access[i] = $root.google.cloud.bigquery.v2.Access.fromObject(object.access[i], long + 1);
+ }
+ }
+ if (object.creationTime != null)
+ if ($util.Long)
+ message.creationTime = $util.Long.fromValue(object.creationTime, false);
+ else if (typeof object.creationTime === "string")
+ message.creationTime = parseInt(object.creationTime, 10);
+ else if (typeof object.creationTime === "number")
+ message.creationTime = object.creationTime;
+ else if (typeof object.creationTime === "object")
+ message.creationTime = new $util.LongBits(object.creationTime.low >>> 0, object.creationTime.high >>> 0).toNumber();
+ if (object.lastModifiedTime != null)
+ if ($util.Long)
+ message.lastModifiedTime = $util.Long.fromValue(object.lastModifiedTime, false);
+ else if (typeof object.lastModifiedTime === "string")
+ message.lastModifiedTime = parseInt(object.lastModifiedTime, 10);
+ else if (typeof object.lastModifiedTime === "number")
+ message.lastModifiedTime = object.lastModifiedTime;
+ else if (typeof object.lastModifiedTime === "object")
+ message.lastModifiedTime = new $util.LongBits(object.lastModifiedTime.low >>> 0, object.lastModifiedTime.high >>> 0).toNumber();
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.defaultEncryptionConfiguration != null) {
+ if (!$util.isObject(object.defaultEncryptionConfiguration))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.defaultEncryptionConfiguration: object expected");
+ message.defaultEncryptionConfiguration = $root.google.cloud.bigquery.v2.EncryptionConfiguration.fromObject(object.defaultEncryptionConfiguration, long + 1);
+ }
+ if (object.satisfiesPzs != null) {
+ if (!$util.isObject(object.satisfiesPzs))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.satisfiesPzs: object expected");
+ message.satisfiesPzs = $root.google.protobuf.BoolValue.fromObject(object.satisfiesPzs, long + 1);
+ }
+ if (object.satisfiesPzi != null) {
+ if (!$util.isObject(object.satisfiesPzi))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.satisfiesPzi: object expected");
+ message.satisfiesPzi = $root.google.protobuf.BoolValue.fromObject(object.satisfiesPzi, long + 1);
+ }
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.catalogSource != null)
+ message.catalogSource = String(object.catalogSource);
+ if (object.linkedDatasetSource != null) {
+ if (!$util.isObject(object.linkedDatasetSource))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.linkedDatasetSource: object expected");
+ message.linkedDatasetSource = $root.google.cloud.bigquery.v2.LinkedDatasetSource.fromObject(object.linkedDatasetSource, long + 1);
+ }
+ if (object.linkedDatasetMetadata != null) {
+ if (!$util.isObject(object.linkedDatasetMetadata))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.linkedDatasetMetadata: object expected");
+ message.linkedDatasetMetadata = $root.google.cloud.bigquery.v2.LinkedDatasetMetadata.fromObject(object.linkedDatasetMetadata, long + 1);
+ }
+ if (object.externalDatasetReference != null) {
+ if (!$util.isObject(object.externalDatasetReference))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.externalDatasetReference: object expected");
+ message.externalDatasetReference = $root.google.cloud.bigquery.v2.ExternalDatasetReference.fromObject(object.externalDatasetReference, long + 1);
+ }
+ if (object.externalCatalogDatasetOptions != null) {
+ if (!$util.isObject(object.externalCatalogDatasetOptions))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.externalCatalogDatasetOptions: object expected");
+ message.externalCatalogDatasetOptions = $root.google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.fromObject(object.externalCatalogDatasetOptions, long + 1);
+ }
+ if (object.isCaseInsensitive != null) {
+ if (!$util.isObject(object.isCaseInsensitive))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.isCaseInsensitive: object expected");
+ message.isCaseInsensitive = $root.google.protobuf.BoolValue.fromObject(object.isCaseInsensitive, long + 1);
+ }
+ if (object.defaultCollation != null) {
+ if (!$util.isObject(object.defaultCollation))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.defaultCollation: object expected");
+ message.defaultCollation = $root.google.protobuf.StringValue.fromObject(object.defaultCollation, long + 1);
+ }
+ switch (object.defaultRoundingMode) {
+ default:
+ if (typeof object.defaultRoundingMode === "number") {
+ message.defaultRoundingMode = object.defaultRoundingMode;
+ break;
+ }
+ break;
+ case "ROUNDING_MODE_UNSPECIFIED":
+ case 0:
+ message.defaultRoundingMode = 0;
+ break;
+ case "ROUND_HALF_AWAY_FROM_ZERO":
+ case 1:
+ message.defaultRoundingMode = 1;
+ break;
+ case "ROUND_HALF_EVEN":
+ case 2:
+ message.defaultRoundingMode = 2;
+ break;
+ }
+ if (object.maxTimeTravelHours != null) {
+ if (!$util.isObject(object.maxTimeTravelHours))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.maxTimeTravelHours: object expected");
+ message.maxTimeTravelHours = $root.google.protobuf.Int64Value.fromObject(object.maxTimeTravelHours, long + 1);
+ }
+ if (object.tags) {
+ if (!Array.isArray(object.tags))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.tags: array expected");
+ message.tags = [];
+ for (var i = 0; i < object.tags.length; ++i) {
+ if (!$util.isObject(object.tags[i]))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.tags: object expected");
+ message.tags[i] = $root.google.cloud.bigquery.v2.GcpTag.fromObject(object.tags[i], long + 1);
+ }
+ }
+ switch (object.storageBillingModel) {
+ default:
+ if (typeof object.storageBillingModel === "number") {
+ message.storageBillingModel = object.storageBillingModel;
+ break;
+ }
+ break;
+ case "STORAGE_BILLING_MODEL_UNSPECIFIED":
+ case 0:
+ message.storageBillingModel = 0;
+ break;
+ case "LOGICAL":
+ case 1:
+ message.storageBillingModel = 1;
+ break;
+ case "PHYSICAL":
+ case 2:
+ message.storageBillingModel = 2;
+ break;
+ }
+ if (object.restrictions != null) {
+ if (!$util.isObject(object.restrictions))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.restrictions: object expected");
+ message.restrictions = $root.google.cloud.bigquery.v2.RestrictionConfig.fromObject(object.restrictions, long + 1);
+ }
+ if (object.resourceTags) {
+ if (!$util.isObject(object.resourceTags))
+ throw TypeError(".google.cloud.bigquery.v2.Dataset.resourceTags: object expected");
+ message.resourceTags = {};
+ for (var keys = Object.keys(object.resourceTags), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.resourceTags, keys[i]);
+ message.resourceTags[keys[i]] = String(object.resourceTags[keys[i]]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Dataset message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {google.cloud.bigquery.v2.Dataset} message Dataset
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Dataset.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.access = [];
+ object.tags = [];
+ }
+ if (options.objects || options.defaults) {
+ object.labels = {};
+ object.resourceTags = {};
+ }
+ if (options.defaults) {
+ object.kind = "";
+ object.etag = "";
+ object.id = "";
+ object.selfLink = "";
+ object.datasetReference = null;
+ object.friendlyName = null;
+ object.description = null;
+ object.defaultTableExpirationMs = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.creationTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.creationTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.lastModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.lastModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ object.location = "";
+ object.defaultPartitionExpirationMs = null;
+ object.defaultEncryptionConfiguration = null;
+ object.satisfiesPzs = null;
+ object.type = "";
+ object.linkedDatasetSource = null;
+ object.externalDatasetReference = null;
+ object.isCaseInsensitive = null;
+ object.defaultCollation = null;
+ object.maxTimeTravelHours = null;
+ object.storageBillingModel = options.enums === String ? "STORAGE_BILLING_MODEL_UNSPECIFIED" : 0;
+ object.defaultRoundingMode = options.enums === String ? "ROUNDING_MODE_UNSPECIFIED" : 0;
+ object.restrictions = null;
+ object.linkedDatasetMetadata = null;
+ object.satisfiesPzi = null;
+ object.externalCatalogDatasetOptions = null;
+ }
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ object.kind = message.kind;
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ object.etag = message.etag;
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ object.id = message.id;
+ if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink"))
+ object.selfLink = message.selfLink;
+ if (message.datasetReference != null && Object.hasOwnProperty.call(message, "datasetReference"))
+ object.datasetReference = $root.google.cloud.bigquery.v2.DatasetReference.toObject(message.datasetReference, options, q + 1);
+ if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName"))
+ object.friendlyName = $root.google.protobuf.StringValue.toObject(message.friendlyName, options, q + 1);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ object.description = $root.google.protobuf.StringValue.toObject(message.description, options, q + 1);
+ if (message.defaultTableExpirationMs != null && Object.hasOwnProperty.call(message, "defaultTableExpirationMs"))
+ object.defaultTableExpirationMs = $root.google.protobuf.Int64Value.toObject(message.defaultTableExpirationMs, options, q + 1);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.labels, keys2[j]);
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ }
+ if (message.access && message.access.length) {
+ object.access = [];
+ for (var j = 0; j < message.access.length; ++j)
+ object.access[j] = $root.google.cloud.bigquery.v2.Access.toObject(message.access[j], options, q + 1);
+ }
+ if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.creationTime = typeof message.creationTime === "number" ? BigInt(message.creationTime) : $util.Long.fromBits(message.creationTime.low >>> 0, message.creationTime.high >>> 0, false).toBigInt();
+ else if (typeof message.creationTime === "number")
+ object.creationTime = options.longs === String ? String(message.creationTime) : message.creationTime;
+ else
+ object.creationTime = options.longs === String ? $util.Long.prototype.toString.call(message.creationTime) : options.longs === Number ? new $util.LongBits(message.creationTime.low >>> 0, message.creationTime.high >>> 0).toNumber() : message.creationTime;
+ if (message.lastModifiedTime != null && Object.hasOwnProperty.call(message, "lastModifiedTime"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.lastModifiedTime = typeof message.lastModifiedTime === "number" ? BigInt(message.lastModifiedTime) : $util.Long.fromBits(message.lastModifiedTime.low >>> 0, message.lastModifiedTime.high >>> 0, false).toBigInt();
+ else if (typeof message.lastModifiedTime === "number")
+ object.lastModifiedTime = options.longs === String ? String(message.lastModifiedTime) : message.lastModifiedTime;
+ else
+ object.lastModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.lastModifiedTime) : options.longs === Number ? new $util.LongBits(message.lastModifiedTime.low >>> 0, message.lastModifiedTime.high >>> 0).toNumber() : message.lastModifiedTime;
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ object.location = message.location;
+ if (message.defaultPartitionExpirationMs != null && Object.hasOwnProperty.call(message, "defaultPartitionExpirationMs"))
+ object.defaultPartitionExpirationMs = $root.google.protobuf.Int64Value.toObject(message.defaultPartitionExpirationMs, options, q + 1);
+ if (message.defaultEncryptionConfiguration != null && Object.hasOwnProperty.call(message, "defaultEncryptionConfiguration"))
+ object.defaultEncryptionConfiguration = $root.google.cloud.bigquery.v2.EncryptionConfiguration.toObject(message.defaultEncryptionConfiguration, options, q + 1);
+ if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs"))
+ object.satisfiesPzs = $root.google.protobuf.BoolValue.toObject(message.satisfiesPzs, options, q + 1);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = message.type;
+ if (message.linkedDatasetSource != null && Object.hasOwnProperty.call(message, "linkedDatasetSource"))
+ object.linkedDatasetSource = $root.google.cloud.bigquery.v2.LinkedDatasetSource.toObject(message.linkedDatasetSource, options, q + 1);
+ if (message.externalDatasetReference != null && Object.hasOwnProperty.call(message, "externalDatasetReference"))
+ object.externalDatasetReference = $root.google.cloud.bigquery.v2.ExternalDatasetReference.toObject(message.externalDatasetReference, options, q + 1);
+ if (message.isCaseInsensitive != null && Object.hasOwnProperty.call(message, "isCaseInsensitive"))
+ object.isCaseInsensitive = $root.google.protobuf.BoolValue.toObject(message.isCaseInsensitive, options, q + 1);
+ if (message.defaultCollation != null && Object.hasOwnProperty.call(message, "defaultCollation"))
+ object.defaultCollation = $root.google.protobuf.StringValue.toObject(message.defaultCollation, options, q + 1);
+ if (message.maxTimeTravelHours != null && Object.hasOwnProperty.call(message, "maxTimeTravelHours"))
+ object.maxTimeTravelHours = $root.google.protobuf.Int64Value.toObject(message.maxTimeTravelHours, options, q + 1);
+ if (message.tags && message.tags.length) {
+ object.tags = [];
+ for (var j = 0; j < message.tags.length; ++j)
+ object.tags[j] = $root.google.cloud.bigquery.v2.GcpTag.toObject(message.tags[j], options, q + 1);
+ }
+ if (message.storageBillingModel != null && Object.hasOwnProperty.call(message, "storageBillingModel"))
+ object.storageBillingModel = options.enums === String ? $root.google.cloud.bigquery.v2.Dataset.StorageBillingModel[message.storageBillingModel] === undefined ? message.storageBillingModel : $root.google.cloud.bigquery.v2.Dataset.StorageBillingModel[message.storageBillingModel] : message.storageBillingModel;
+ if (message.defaultRoundingMode != null && Object.hasOwnProperty.call(message, "defaultRoundingMode"))
+ object.defaultRoundingMode = options.enums === String ? $root.google.cloud.bigquery.v2.TableFieldSchema.RoundingMode[message.defaultRoundingMode] === undefined ? message.defaultRoundingMode : $root.google.cloud.bigquery.v2.TableFieldSchema.RoundingMode[message.defaultRoundingMode] : message.defaultRoundingMode;
+ if (message.restrictions != null && Object.hasOwnProperty.call(message, "restrictions"))
+ object.restrictions = $root.google.cloud.bigquery.v2.RestrictionConfig.toObject(message.restrictions, options, q + 1);
+ if (message.linkedDatasetMetadata != null && Object.hasOwnProperty.call(message, "linkedDatasetMetadata"))
+ object.linkedDatasetMetadata = $root.google.cloud.bigquery.v2.LinkedDatasetMetadata.toObject(message.linkedDatasetMetadata, options, q + 1);
+ if (message.resourceTags && (keys2 = Object.keys(message.resourceTags)).length) {
+ object.resourceTags = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.resourceTags, keys2[j]);
+ object.resourceTags[keys2[j]] = message.resourceTags[keys2[j]];
+ }
+ }
+ if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi"))
+ object.satisfiesPzi = $root.google.protobuf.BoolValue.toObject(message.satisfiesPzi, options, q + 1);
+ if (message.externalCatalogDatasetOptions != null && Object.hasOwnProperty.call(message, "externalCatalogDatasetOptions"))
+ object.externalCatalogDatasetOptions = $root.google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.toObject(message.externalCatalogDatasetOptions, options, q + 1);
+ if (message.catalogSource != null && Object.hasOwnProperty.call(message, "catalogSource")) {
+ object.catalogSource = message.catalogSource;
+ if (options.oneofs)
+ object._catalogSource = "catalogSource";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Dataset to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Dataset.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Dataset
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.Dataset
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Dataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.Dataset";
+ };
+
+ /**
+ * StorageBillingModel enum.
+ * @name google.cloud.bigquery.v2.Dataset.StorageBillingModel
+ * @enum {number}
+ * @property {number} STORAGE_BILLING_MODEL_UNSPECIFIED=0 STORAGE_BILLING_MODEL_UNSPECIFIED value
+ * @property {number} LOGICAL=1 LOGICAL value
+ * @property {number} PHYSICAL=2 PHYSICAL value
+ */
+ Dataset.StorageBillingModel = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STORAGE_BILLING_MODEL_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "LOGICAL"] = 1;
+ values[valuesById[2] = "PHYSICAL"] = 2;
+ return values;
+ })();
+
+ return Dataset;
+ })();
+
+ v2.GcpTag = (function() {
+
+ /**
+ * Properties of a GcpTag.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IGcpTag
+ * @property {string|null} [tagKey] GcpTag tagKey
+ * @property {string|null} [tagValue] GcpTag tagValue
+ */
+
+ /**
+ * Constructs a new GcpTag.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a GcpTag.
+ * @implements IGcpTag
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IGcpTag=} [properties] Properties to set
+ */
+ function GcpTag(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GcpTag tagKey.
+ * @member {string} tagKey
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @instance
+ */
+ GcpTag.prototype.tagKey = "";
+
+ /**
+ * GcpTag tagValue.
+ * @member {string} tagValue
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @instance
+ */
+ GcpTag.prototype.tagValue = "";
+
+ /**
+ * Creates a new GcpTag instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {google.cloud.bigquery.v2.IGcpTag=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.GcpTag} GcpTag instance
+ */
+ GcpTag.create = function create(properties) {
+ return new GcpTag(properties);
+ };
+
+ /**
+ * Encodes the specified GcpTag message. Does not implicitly {@link google.cloud.bigquery.v2.GcpTag.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {google.cloud.bigquery.v2.IGcpTag} message GcpTag message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GcpTag.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.tagKey != null && Object.hasOwnProperty.call(message, "tagKey"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.tagKey);
+ if (message.tagValue != null && Object.hasOwnProperty.call(message, "tagValue"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.tagValue);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GcpTag message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GcpTag.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {google.cloud.bigquery.v2.IGcpTag} message GcpTag message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GcpTag.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GcpTag message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.GcpTag} GcpTag
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GcpTag.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.GcpTag();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.tagKey = reader.string();
+ break;
+ }
+ case 2: {
+ message.tagValue = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GcpTag message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.GcpTag} GcpTag
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GcpTag.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GcpTag message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GcpTag.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.tagKey != null && Object.hasOwnProperty.call(message, "tagKey"))
+ if (!$util.isString(message.tagKey))
+ return "tagKey: string expected";
+ if (message.tagValue != null && Object.hasOwnProperty.call(message, "tagValue"))
+ if (!$util.isString(message.tagValue))
+ return "tagValue: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GcpTag message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.GcpTag} GcpTag
+ */
+ GcpTag.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.GcpTag)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.GcpTag: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.GcpTag();
+ if (object.tagKey != null)
+ message.tagKey = String(object.tagKey);
+ if (object.tagValue != null)
+ message.tagValue = String(object.tagValue);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GcpTag message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {google.cloud.bigquery.v2.GcpTag} message GcpTag
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GcpTag.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.tagKey = "";
+ object.tagValue = "";
+ }
+ if (message.tagKey != null && Object.hasOwnProperty.call(message, "tagKey"))
+ object.tagKey = message.tagKey;
+ if (message.tagValue != null && Object.hasOwnProperty.call(message, "tagValue"))
+ object.tagValue = message.tagValue;
+ return object;
+ };
+
+ /**
+ * Converts this GcpTag to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GcpTag.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GcpTag
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.GcpTag
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GcpTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.GcpTag";
+ };
+
+ return GcpTag;
+ })();
+
+ v2.LinkedDatasetSource = (function() {
+
+ /**
+ * Properties of a LinkedDatasetSource.
+ * @memberof google.cloud.bigquery.v2
+ * @interface ILinkedDatasetSource
+ * @property {google.cloud.bigquery.v2.IDatasetReference|null} [sourceDataset] LinkedDatasetSource sourceDataset
+ */
+
+ /**
+ * Constructs a new LinkedDatasetSource.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a LinkedDatasetSource.
+ * @implements ILinkedDatasetSource
+ * @constructor
+ * @param {google.cloud.bigquery.v2.ILinkedDatasetSource=} [properties] Properties to set
+ */
+ function LinkedDatasetSource(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * LinkedDatasetSource sourceDataset.
+ * @member {google.cloud.bigquery.v2.IDatasetReference|null|undefined} sourceDataset
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @instance
+ */
+ LinkedDatasetSource.prototype.sourceDataset = null;
+
+ /**
+ * Creates a new LinkedDatasetSource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {google.cloud.bigquery.v2.ILinkedDatasetSource=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.LinkedDatasetSource} LinkedDatasetSource instance
+ */
+ LinkedDatasetSource.create = function create(properties) {
+ return new LinkedDatasetSource(properties);
+ };
+
+ /**
+ * Encodes the specified LinkedDatasetSource message. Does not implicitly {@link google.cloud.bigquery.v2.LinkedDatasetSource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {google.cloud.bigquery.v2.ILinkedDatasetSource} message LinkedDatasetSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LinkedDatasetSource.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.sourceDataset != null && Object.hasOwnProperty.call(message, "sourceDataset"))
+ $root.google.cloud.bigquery.v2.DatasetReference.encode(message.sourceDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LinkedDatasetSource message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.LinkedDatasetSource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {google.cloud.bigquery.v2.ILinkedDatasetSource} message LinkedDatasetSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LinkedDatasetSource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a LinkedDatasetSource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.LinkedDatasetSource} LinkedDatasetSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LinkedDatasetSource.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.LinkedDatasetSource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.sourceDataset = $root.google.cloud.bigquery.v2.DatasetReference.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LinkedDatasetSource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.LinkedDatasetSource} LinkedDatasetSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LinkedDatasetSource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LinkedDatasetSource message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LinkedDatasetSource.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.sourceDataset != null && Object.hasOwnProperty.call(message, "sourceDataset")) {
+ var error = $root.google.cloud.bigquery.v2.DatasetReference.verify(message.sourceDataset, long + 1);
+ if (error)
+ return "sourceDataset." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a LinkedDatasetSource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.LinkedDatasetSource} LinkedDatasetSource
+ */
+ LinkedDatasetSource.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.LinkedDatasetSource)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.LinkedDatasetSource: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.LinkedDatasetSource();
+ if (object.sourceDataset != null) {
+ if (!$util.isObject(object.sourceDataset))
+ throw TypeError(".google.cloud.bigquery.v2.LinkedDatasetSource.sourceDataset: object expected");
+ message.sourceDataset = $root.google.cloud.bigquery.v2.DatasetReference.fromObject(object.sourceDataset, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LinkedDatasetSource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {google.cloud.bigquery.v2.LinkedDatasetSource} message LinkedDatasetSource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LinkedDatasetSource.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.sourceDataset = null;
+ if (message.sourceDataset != null && Object.hasOwnProperty.call(message, "sourceDataset"))
+ object.sourceDataset = $root.google.cloud.bigquery.v2.DatasetReference.toObject(message.sourceDataset, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this LinkedDatasetSource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LinkedDatasetSource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LinkedDatasetSource
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetSource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LinkedDatasetSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.LinkedDatasetSource";
+ };
+
+ return LinkedDatasetSource;
+ })();
+
+ v2.LinkedDatasetMetadata = (function() {
+
+ /**
+ * Properties of a LinkedDatasetMetadata.
+ * @memberof google.cloud.bigquery.v2
+ * @interface ILinkedDatasetMetadata
+ * @property {google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState|null} [linkState] LinkedDatasetMetadata linkState
+ */
+
+ /**
+ * Constructs a new LinkedDatasetMetadata.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a LinkedDatasetMetadata.
+ * @implements ILinkedDatasetMetadata
+ * @constructor
+ * @param {google.cloud.bigquery.v2.ILinkedDatasetMetadata=} [properties] Properties to set
+ */
+ function LinkedDatasetMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * LinkedDatasetMetadata linkState.
+ * @member {google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState} linkState
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @instance
+ */
+ LinkedDatasetMetadata.prototype.linkState = 0;
+
+ /**
+ * Creates a new LinkedDatasetMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {google.cloud.bigquery.v2.ILinkedDatasetMetadata=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.LinkedDatasetMetadata} LinkedDatasetMetadata instance
+ */
+ LinkedDatasetMetadata.create = function create(properties) {
+ return new LinkedDatasetMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified LinkedDatasetMetadata message. Does not implicitly {@link google.cloud.bigquery.v2.LinkedDatasetMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {google.cloud.bigquery.v2.ILinkedDatasetMetadata} message LinkedDatasetMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LinkedDatasetMetadata.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.linkState != null && Object.hasOwnProperty.call(message, "linkState"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.linkState);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LinkedDatasetMetadata message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.LinkedDatasetMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {google.cloud.bigquery.v2.ILinkedDatasetMetadata} message LinkedDatasetMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LinkedDatasetMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a LinkedDatasetMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.LinkedDatasetMetadata} LinkedDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LinkedDatasetMetadata.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.LinkedDatasetMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.linkState = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LinkedDatasetMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.LinkedDatasetMetadata} LinkedDatasetMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LinkedDatasetMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LinkedDatasetMetadata message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LinkedDatasetMetadata.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.linkState != null && Object.hasOwnProperty.call(message, "linkState"))
+ switch (message.linkState) {
+ default:
+ return "linkState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a LinkedDatasetMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.LinkedDatasetMetadata} LinkedDatasetMetadata
+ */
+ LinkedDatasetMetadata.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.LinkedDatasetMetadata)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.LinkedDatasetMetadata: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.LinkedDatasetMetadata();
+ switch (object.linkState) {
+ default:
+ if (typeof object.linkState === "number") {
+ message.linkState = object.linkState;
+ break;
+ }
+ break;
+ case "LINK_STATE_UNSPECIFIED":
+ case 0:
+ message.linkState = 0;
+ break;
+ case "LINKED":
+ case 1:
+ message.linkState = 1;
+ break;
+ case "UNLINKED":
+ case 2:
+ message.linkState = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LinkedDatasetMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {google.cloud.bigquery.v2.LinkedDatasetMetadata} message LinkedDatasetMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LinkedDatasetMetadata.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.linkState = options.enums === String ? "LINK_STATE_UNSPECIFIED" : 0;
+ if (message.linkState != null && Object.hasOwnProperty.call(message, "linkState"))
+ object.linkState = options.enums === String ? $root.google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState[message.linkState] === undefined ? message.linkState : $root.google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState[message.linkState] : message.linkState;
+ return object;
+ };
+
+ /**
+ * Converts this LinkedDatasetMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LinkedDatasetMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LinkedDatasetMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.LinkedDatasetMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LinkedDatasetMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.LinkedDatasetMetadata";
+ };
+
+ /**
+ * LinkState enum.
+ * @name google.cloud.bigquery.v2.LinkedDatasetMetadata.LinkState
+ * @enum {number}
+ * @property {number} LINK_STATE_UNSPECIFIED=0 LINK_STATE_UNSPECIFIED value
+ * @property {number} LINKED=1 LINKED value
+ * @property {number} UNLINKED=2 UNLINKED value
+ */
+ LinkedDatasetMetadata.LinkState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "LINK_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "LINKED"] = 1;
+ values[valuesById[2] = "UNLINKED"] = 2;
+ return values;
+ })();
+
+ return LinkedDatasetMetadata;
+ })();
+
+ v2.GetDatasetRequest = (function() {
+
+ /**
+ * Properties of a GetDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IGetDatasetRequest
+ * @property {string|null} [projectId] GetDatasetRequest projectId
+ * @property {string|null} [datasetId] GetDatasetRequest datasetId
+ * @property {google.cloud.bigquery.v2.GetDatasetRequest.DatasetView|null} [datasetView] GetDatasetRequest datasetView
+ * @property {number|null} [accessPolicyVersion] GetDatasetRequest accessPolicyVersion
+ */
+
+ /**
+ * Constructs a new GetDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a GetDatasetRequest.
+ * @implements IGetDatasetRequest
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IGetDatasetRequest=} [properties] Properties to set
+ */
+ function GetDatasetRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetDatasetRequest projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @instance
+ */
+ GetDatasetRequest.prototype.projectId = "";
+
+ /**
+ * GetDatasetRequest datasetId.
+ * @member {string} datasetId
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @instance
+ */
+ GetDatasetRequest.prototype.datasetId = "";
+
+ /**
+ * GetDatasetRequest datasetView.
+ * @member {google.cloud.bigquery.v2.GetDatasetRequest.DatasetView} datasetView
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @instance
+ */
+ GetDatasetRequest.prototype.datasetView = 0;
+
+ /**
+ * GetDatasetRequest accessPolicyVersion.
+ * @member {number} accessPolicyVersion
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @instance
+ */
+ GetDatasetRequest.prototype.accessPolicyVersion = 0;
+
+ /**
+ * Creates a new GetDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IGetDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.GetDatasetRequest} GetDatasetRequest instance
+ */
+ GetDatasetRequest.create = function create(properties) {
+ return new GetDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.GetDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDatasetRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetId);
+ if (message.datasetView != null && Object.hasOwnProperty.call(message, "datasetView"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.datasetView);
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.accessPolicyVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.GetDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.GetDatasetRequest} GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDatasetRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.GetDatasetRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.datasetId = reader.string();
+ break;
+ }
+ case 3: {
+ message.datasetView = reader.int32();
+ break;
+ }
+ case 4: {
+ message.accessPolicyVersion = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.GetDatasetRequest} GetDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetDatasetRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ if (!$util.isString(message.datasetId))
+ return "datasetId: string expected";
+ if (message.datasetView != null && Object.hasOwnProperty.call(message, "datasetView"))
+ switch (message.datasetView) {
+ default:
+ return "datasetView: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ if (!$util.isInteger(message.accessPolicyVersion))
+ return "accessPolicyVersion: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.GetDatasetRequest} GetDatasetRequest
+ */
+ GetDatasetRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.GetDatasetRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.GetDatasetRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.GetDatasetRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.datasetId != null)
+ message.datasetId = String(object.datasetId);
+ switch (object.datasetView) {
+ default:
+ if (typeof object.datasetView === "number") {
+ message.datasetView = object.datasetView;
+ break;
+ }
+ break;
+ case "DATASET_VIEW_UNSPECIFIED":
+ case 0:
+ message.datasetView = 0;
+ break;
+ case "METADATA":
+ case 1:
+ message.datasetView = 1;
+ break;
+ case "ACL":
+ case 2:
+ message.datasetView = 2;
+ break;
+ case "FULL":
+ case 3:
+ message.datasetView = 3;
+ break;
+ }
+ if (object.accessPolicyVersion != null)
+ message.accessPolicyVersion = object.accessPolicyVersion | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.GetDatasetRequest} message GetDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetDatasetRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.datasetId = "";
+ object.datasetView = options.enums === String ? "DATASET_VIEW_UNSPECIFIED" : 0;
+ object.accessPolicyVersion = 0;
+ }
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ object.datasetId = message.datasetId;
+ if (message.datasetView != null && Object.hasOwnProperty.call(message, "datasetView"))
+ object.datasetView = options.enums === String ? $root.google.cloud.bigquery.v2.GetDatasetRequest.DatasetView[message.datasetView] === undefined ? message.datasetView : $root.google.cloud.bigquery.v2.GetDatasetRequest.DatasetView[message.datasetView] : message.datasetView;
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ object.accessPolicyVersion = message.accessPolicyVersion;
+ return object;
+ };
+
+ /**
+ * Converts this GetDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.GetDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.GetDatasetRequest";
+ };
+
+ /**
+ * DatasetView enum.
+ * @name google.cloud.bigquery.v2.GetDatasetRequest.DatasetView
+ * @enum {number}
+ * @property {number} DATASET_VIEW_UNSPECIFIED=0 DATASET_VIEW_UNSPECIFIED value
+ * @property {number} METADATA=1 METADATA value
+ * @property {number} ACL=2 ACL value
+ * @property {number} FULL=3 FULL value
+ */
+ GetDatasetRequest.DatasetView = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DATASET_VIEW_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "METADATA"] = 1;
+ values[valuesById[2] = "ACL"] = 2;
+ values[valuesById[3] = "FULL"] = 3;
+ return values;
+ })();
+
+ return GetDatasetRequest;
+ })();
+
+ v2.InsertDatasetRequest = (function() {
+
+ /**
+ * Properties of an InsertDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IInsertDatasetRequest
+ * @property {string|null} [projectId] InsertDatasetRequest projectId
+ * @property {google.cloud.bigquery.v2.IDataset|null} [dataset] InsertDatasetRequest dataset
+ * @property {number|null} [accessPolicyVersion] InsertDatasetRequest accessPolicyVersion
+ */
+
+ /**
+ * Constructs a new InsertDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents an InsertDatasetRequest.
+ * @implements IInsertDatasetRequest
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IInsertDatasetRequest=} [properties] Properties to set
+ */
+ function InsertDatasetRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * InsertDatasetRequest projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @instance
+ */
+ InsertDatasetRequest.prototype.projectId = "";
+
+ /**
+ * InsertDatasetRequest dataset.
+ * @member {google.cloud.bigquery.v2.IDataset|null|undefined} dataset
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @instance
+ */
+ InsertDatasetRequest.prototype.dataset = null;
+
+ /**
+ * InsertDatasetRequest accessPolicyVersion.
+ * @member {number} accessPolicyVersion
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @instance
+ */
+ InsertDatasetRequest.prototype.accessPolicyVersion = 0;
+
+ /**
+ * Creates a new InsertDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IInsertDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.InsertDatasetRequest} InsertDatasetRequest instance
+ */
+ InsertDatasetRequest.create = function create(properties) {
+ return new InsertDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified InsertDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.InsertDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IInsertDatasetRequest} message InsertDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InsertDatasetRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ $root.google.cloud.bigquery.v2.Dataset.encode(message.dataset, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.accessPolicyVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified InsertDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.InsertDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IInsertDatasetRequest} message InsertDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InsertDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an InsertDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.InsertDatasetRequest} InsertDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InsertDatasetRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.InsertDatasetRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.dataset = $root.google.cloud.bigquery.v2.Dataset.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 4: {
+ message.accessPolicyVersion = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an InsertDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.InsertDatasetRequest} InsertDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InsertDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an InsertDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ InsertDatasetRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) {
+ var error = $root.google.cloud.bigquery.v2.Dataset.verify(message.dataset, long + 1);
+ if (error)
+ return "dataset." + error;
+ }
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ if (!$util.isInteger(message.accessPolicyVersion))
+ return "accessPolicyVersion: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates an InsertDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.InsertDatasetRequest} InsertDatasetRequest
+ */
+ InsertDatasetRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.InsertDatasetRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.InsertDatasetRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.InsertDatasetRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.dataset != null) {
+ if (!$util.isObject(object.dataset))
+ throw TypeError(".google.cloud.bigquery.v2.InsertDatasetRequest.dataset: object expected");
+ message.dataset = $root.google.cloud.bigquery.v2.Dataset.fromObject(object.dataset, long + 1);
+ }
+ if (object.accessPolicyVersion != null)
+ message.accessPolicyVersion = object.accessPolicyVersion | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an InsertDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.InsertDatasetRequest} message InsertDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ InsertDatasetRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.dataset = null;
+ object.accessPolicyVersion = 0;
+ }
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ object.dataset = $root.google.cloud.bigquery.v2.Dataset.toObject(message.dataset, options, q + 1);
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ object.accessPolicyVersion = message.accessPolicyVersion;
+ return object;
+ };
+
+ /**
+ * Converts this InsertDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ InsertDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for InsertDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.InsertDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ InsertDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.InsertDatasetRequest";
+ };
+
+ return InsertDatasetRequest;
+ })();
+
+ v2.UpdateOrPatchDatasetRequest = (function() {
+
+ /**
+ * Properties of an UpdateOrPatchDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IUpdateOrPatchDatasetRequest
+ * @property {string|null} [projectId] UpdateOrPatchDatasetRequest projectId
+ * @property {string|null} [datasetId] UpdateOrPatchDatasetRequest datasetId
+ * @property {google.cloud.bigquery.v2.IDataset|null} [dataset] UpdateOrPatchDatasetRequest dataset
+ * @property {google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode|null} [updateMode] UpdateOrPatchDatasetRequest updateMode
+ * @property {number|null} [accessPolicyVersion] UpdateOrPatchDatasetRequest accessPolicyVersion
+ */
+
+ /**
+ * Constructs a new UpdateOrPatchDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents an UpdateOrPatchDatasetRequest.
+ * @implements IUpdateOrPatchDatasetRequest
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest=} [properties] Properties to set
+ */
+ function UpdateOrPatchDatasetRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * UpdateOrPatchDatasetRequest projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @instance
+ */
+ UpdateOrPatchDatasetRequest.prototype.projectId = "";
+
+ /**
+ * UpdateOrPatchDatasetRequest datasetId.
+ * @member {string} datasetId
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @instance
+ */
+ UpdateOrPatchDatasetRequest.prototype.datasetId = "";
+
+ /**
+ * UpdateOrPatchDatasetRequest dataset.
+ * @member {google.cloud.bigquery.v2.IDataset|null|undefined} dataset
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @instance
+ */
+ UpdateOrPatchDatasetRequest.prototype.dataset = null;
+
+ /**
+ * UpdateOrPatchDatasetRequest updateMode.
+ * @member {google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode} updateMode
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @instance
+ */
+ UpdateOrPatchDatasetRequest.prototype.updateMode = 0;
+
+ /**
+ * UpdateOrPatchDatasetRequest accessPolicyVersion.
+ * @member {number} accessPolicyVersion
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @instance
+ */
+ UpdateOrPatchDatasetRequest.prototype.accessPolicyVersion = 0;
+
+ /**
+ * Creates a new UpdateOrPatchDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest} UpdateOrPatchDatasetRequest instance
+ */
+ UpdateOrPatchDatasetRequest.create = function create(properties) {
+ return new UpdateOrPatchDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateOrPatchDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest} message UpdateOrPatchDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateOrPatchDatasetRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetId);
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ $root.google.cloud.bigquery.v2.Dataset.encode(message.dataset, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.updateMode != null && Object.hasOwnProperty.call(message, "updateMode"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.updateMode);
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.accessPolicyVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateOrPatchDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IUpdateOrPatchDatasetRequest} message UpdateOrPatchDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateOrPatchDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateOrPatchDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest} UpdateOrPatchDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateOrPatchDatasetRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.datasetId = reader.string();
+ break;
+ }
+ case 3: {
+ message.dataset = $root.google.cloud.bigquery.v2.Dataset.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 4: {
+ message.updateMode = reader.int32();
+ break;
+ }
+ case 5: {
+ message.accessPolicyVersion = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateOrPatchDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest} UpdateOrPatchDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateOrPatchDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateOrPatchDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateOrPatchDatasetRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ if (!$util.isString(message.datasetId))
+ return "datasetId: string expected";
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) {
+ var error = $root.google.cloud.bigquery.v2.Dataset.verify(message.dataset, long + 1);
+ if (error)
+ return "dataset." + error;
+ }
+ if (message.updateMode != null && Object.hasOwnProperty.call(message, "updateMode"))
+ switch (message.updateMode) {
+ default:
+ return "updateMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ if (!$util.isInteger(message.accessPolicyVersion))
+ return "accessPolicyVersion: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateOrPatchDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest} UpdateOrPatchDatasetRequest
+ */
+ UpdateOrPatchDatasetRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.datasetId != null)
+ message.datasetId = String(object.datasetId);
+ if (object.dataset != null) {
+ if (!$util.isObject(object.dataset))
+ throw TypeError(".google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.dataset: object expected");
+ message.dataset = $root.google.cloud.bigquery.v2.Dataset.fromObject(object.dataset, long + 1);
+ }
+ switch (object.updateMode) {
+ default:
+ if (typeof object.updateMode === "number") {
+ message.updateMode = object.updateMode;
+ break;
+ }
+ break;
+ case "UPDATE_MODE_UNSPECIFIED":
+ case 0:
+ message.updateMode = 0;
+ break;
+ case "UPDATE_METADATA":
+ case 1:
+ message.updateMode = 1;
+ break;
+ case "UPDATE_ACL":
+ case 2:
+ message.updateMode = 2;
+ break;
+ case "UPDATE_FULL":
+ case 3:
+ message.updateMode = 3;
+ break;
+ }
+ if (object.accessPolicyVersion != null)
+ message.accessPolicyVersion = object.accessPolicyVersion | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateOrPatchDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest} message UpdateOrPatchDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateOrPatchDatasetRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.datasetId = "";
+ object.dataset = null;
+ object.updateMode = options.enums === String ? "UPDATE_MODE_UNSPECIFIED" : 0;
+ object.accessPolicyVersion = 0;
+ }
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ object.datasetId = message.datasetId;
+ if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset"))
+ object.dataset = $root.google.cloud.bigquery.v2.Dataset.toObject(message.dataset, options, q + 1);
+ if (message.updateMode != null && Object.hasOwnProperty.call(message, "updateMode"))
+ object.updateMode = options.enums === String ? $root.google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode[message.updateMode] === undefined ? message.updateMode : $root.google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode[message.updateMode] : message.updateMode;
+ if (message.accessPolicyVersion != null && Object.hasOwnProperty.call(message, "accessPolicyVersion"))
+ object.accessPolicyVersion = message.accessPolicyVersion;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateOrPatchDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateOrPatchDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateOrPatchDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateOrPatchDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest";
+ };
+
+ /**
+ * UpdateMode enum.
+ * @name google.cloud.bigquery.v2.UpdateOrPatchDatasetRequest.UpdateMode
+ * @enum {number}
+ * @property {number} UPDATE_MODE_UNSPECIFIED=0 UPDATE_MODE_UNSPECIFIED value
+ * @property {number} UPDATE_METADATA=1 UPDATE_METADATA value
+ * @property {number} UPDATE_ACL=2 UPDATE_ACL value
+ * @property {number} UPDATE_FULL=3 UPDATE_FULL value
+ */
+ UpdateOrPatchDatasetRequest.UpdateMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "UPDATE_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "UPDATE_METADATA"] = 1;
+ values[valuesById[2] = "UPDATE_ACL"] = 2;
+ values[valuesById[3] = "UPDATE_FULL"] = 3;
+ return values;
+ })();
+
+ return UpdateOrPatchDatasetRequest;
+ })();
+
+ v2.DeleteDatasetRequest = (function() {
+
+ /**
+ * Properties of a DeleteDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IDeleteDatasetRequest
+ * @property {string|null} [projectId] DeleteDatasetRequest projectId
+ * @property {string|null} [datasetId] DeleteDatasetRequest datasetId
+ * @property {boolean|null} [deleteContents] DeleteDatasetRequest deleteContents
+ */
+
+ /**
+ * Constructs a new DeleteDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a DeleteDatasetRequest.
+ * @implements IDeleteDatasetRequest
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IDeleteDatasetRequest=} [properties] Properties to set
+ */
+ function DeleteDatasetRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DeleteDatasetRequest projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @instance
+ */
+ DeleteDatasetRequest.prototype.projectId = "";
+
+ /**
+ * DeleteDatasetRequest datasetId.
+ * @member {string} datasetId
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @instance
+ */
+ DeleteDatasetRequest.prototype.datasetId = "";
+
+ /**
+ * DeleteDatasetRequest deleteContents.
+ * @member {boolean} deleteContents
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @instance
+ */
+ DeleteDatasetRequest.prototype.deleteContents = false;
+
+ /**
+ * Creates a new DeleteDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IDeleteDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.DeleteDatasetRequest} DeleteDatasetRequest instance
+ */
+ DeleteDatasetRequest.create = function create(properties) {
+ return new DeleteDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.DeleteDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDatasetRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetId);
+ if (message.deleteContents != null && Object.hasOwnProperty.call(message, "deleteContents"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deleteContents);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DeleteDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.DeleteDatasetRequest} DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDatasetRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.DeleteDatasetRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.datasetId = reader.string();
+ break;
+ }
+ case 3: {
+ message.deleteContents = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.DeleteDatasetRequest} DeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteDatasetRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ if (!$util.isString(message.datasetId))
+ return "datasetId: string expected";
+ if (message.deleteContents != null && Object.hasOwnProperty.call(message, "deleteContents"))
+ if (typeof message.deleteContents !== "boolean")
+ return "deleteContents: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.DeleteDatasetRequest} DeleteDatasetRequest
+ */
+ DeleteDatasetRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.DeleteDatasetRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.DeleteDatasetRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.DeleteDatasetRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.datasetId != null)
+ message.datasetId = String(object.datasetId);
+ if (object.deleteContents != null)
+ message.deleteContents = Boolean(object.deleteContents);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.DeleteDatasetRequest} message DeleteDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteDatasetRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.datasetId = "";
+ object.deleteContents = false;
+ }
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ object.datasetId = message.datasetId;
+ if (message.deleteContents != null && Object.hasOwnProperty.call(message, "deleteContents"))
+ object.deleteContents = message.deleteContents;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.DeleteDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.DeleteDatasetRequest";
+ };
+
+ return DeleteDatasetRequest;
+ })();
+
+ v2.ListDatasetsRequest = (function() {
+
+ /**
+ * Properties of a ListDatasetsRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IListDatasetsRequest
+ * @property {string|null} [projectId] ListDatasetsRequest projectId
+ * @property {google.protobuf.IUInt32Value|null} [maxResults] ListDatasetsRequest maxResults
+ * @property {string|null} [pageToken] ListDatasetsRequest pageToken
+ * @property {boolean|null} [all] ListDatasetsRequest all
+ * @property {string|null} [filter] ListDatasetsRequest filter
+ */
+
+ /**
+ * Constructs a new ListDatasetsRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a ListDatasetsRequest.
+ * @implements IListDatasetsRequest
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IListDatasetsRequest=} [properties] Properties to set
+ */
+ function ListDatasetsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListDatasetsRequest projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.projectId = "";
+
+ /**
+ * ListDatasetsRequest maxResults.
+ * @member {google.protobuf.IUInt32Value|null|undefined} maxResults
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.maxResults = null;
+
+ /**
+ * ListDatasetsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.pageToken = "";
+
+ /**
+ * ListDatasetsRequest all.
+ * @member {boolean} all
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.all = false;
+
+ /**
+ * ListDatasetsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @instance
+ */
+ ListDatasetsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListDatasetsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IListDatasetsRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.ListDatasetsRequest} ListDatasetsRequest instance
+ */
+ ListDatasetsRequest.create = function create(properties) {
+ return new ListDatasetsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.bigquery.v2.ListDatasetsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatasetsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults"))
+ $root.google.protobuf.UInt32Value.encode(message.maxResults, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.all != null && Object.hasOwnProperty.call(message, "all"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.all);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListDatasetsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListDatasetsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.ListDatasetsRequest} ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatasetsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.ListDatasetsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.maxResults = $root.google.protobuf.UInt32Value.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.all = reader.bool();
+ break;
+ }
+ case 5: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.ListDatasetsRequest} ListDatasetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListDatasetsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListDatasetsRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListDatasetsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) {
+ var error = $root.google.protobuf.UInt32Value.verify(message.maxResults, long + 1);
+ if (error)
+ return "maxResults." + error;
+ }
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.all != null && Object.hasOwnProperty.call(message, "all"))
+ if (typeof message.all !== "boolean")
+ return "all: boolean expected";
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.ListDatasetsRequest} ListDatasetsRequest
+ */
+ ListDatasetsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.ListDatasetsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.ListDatasetsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.ListDatasetsRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.maxResults != null) {
+ if (!$util.isObject(object.maxResults))
+ throw TypeError(".google.cloud.bigquery.v2.ListDatasetsRequest.maxResults: object expected");
+ message.maxResults = $root.google.protobuf.UInt32Value.fromObject(object.maxResults, long + 1);
+ }
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.all != null)
+ message.all = Boolean(object.all);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.ListDatasetsRequest} message ListDatasetsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListDatasetsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.maxResults = null;
+ object.pageToken = "";
+ object.all = false;
+ object.filter = "";
+ }
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults"))
+ object.maxResults = $root.google.protobuf.UInt32Value.toObject(message.maxResults, options, q + 1);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.all != null && Object.hasOwnProperty.call(message, "all"))
+ object.all = message.all;
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListDatasetsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListDatasetsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListDatasetsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.ListDatasetsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListDatasetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.ListDatasetsRequest";
+ };
+
+ return ListDatasetsRequest;
+ })();
+
+ v2.ListFormatDataset = (function() {
+
+ /**
+ * Properties of a ListFormatDataset.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IListFormatDataset
+ * @property {string|null} [kind] ListFormatDataset kind
+ * @property {string|null} [id] ListFormatDataset id
+ * @property {google.cloud.bigquery.v2.IDatasetReference|null} [datasetReference] ListFormatDataset datasetReference
+ * @property {Object.|null} [labels] ListFormatDataset labels
+ * @property {google.protobuf.IStringValue|null} [friendlyName] ListFormatDataset friendlyName
+ * @property {string|null} [location] ListFormatDataset location
+ * @property {string|null} [type] ListFormatDataset type
+ * @property {string|null} [catalogSource] ListFormatDataset catalogSource
+ * @property {google.cloud.bigquery.v2.IExternalDatasetReference|null} [externalDatasetReference] ListFormatDataset externalDatasetReference
+ */
+
+ /**
+ * Constructs a new ListFormatDataset.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a ListFormatDataset.
+ * @implements IListFormatDataset
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IListFormatDataset=} [properties] Properties to set
+ */
+ function ListFormatDataset(properties) {
+ this.labels = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListFormatDataset kind.
+ * @member {string} kind
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.kind = "";
+
+ /**
+ * ListFormatDataset id.
+ * @member {string} id
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.id = "";
+
+ /**
+ * ListFormatDataset datasetReference.
+ * @member {google.cloud.bigquery.v2.IDatasetReference|null|undefined} datasetReference
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.datasetReference = null;
+
+ /**
+ * ListFormatDataset labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.labels = $util.emptyObject;
+
+ /**
+ * ListFormatDataset friendlyName.
+ * @member {google.protobuf.IStringValue|null|undefined} friendlyName
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.friendlyName = null;
+
+ /**
+ * ListFormatDataset location.
+ * @member {string} location
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.location = "";
+
+ /**
+ * ListFormatDataset type.
+ * @member {string} type
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.type = "";
+
+ /**
+ * ListFormatDataset catalogSource.
+ * @member {string|null|undefined} catalogSource
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.catalogSource = null;
+
+ /**
+ * ListFormatDataset externalDatasetReference.
+ * @member {google.cloud.bigquery.v2.IExternalDatasetReference|null|undefined} externalDatasetReference
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ */
+ ListFormatDataset.prototype.externalDatasetReference = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(ListFormatDataset.prototype, "_catalogSource", {
+ get: $util.oneOfGetter($oneOfFields = ["catalogSource"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new ListFormatDataset instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {google.cloud.bigquery.v2.IListFormatDataset=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.ListFormatDataset} ListFormatDataset instance
+ */
+ ListFormatDataset.create = function create(properties) {
+ return new ListFormatDataset(properties);
+ };
+
+ /**
+ * Encodes the specified ListFormatDataset message. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatDataset.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {google.cloud.bigquery.v2.IListFormatDataset} message ListFormatDataset message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFormatDataset.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.id);
+ if (message.datasetReference != null && Object.hasOwnProperty.call(message, "datasetReference"))
+ $root.google.cloud.bigquery.v2.DatasetReference.encode(message.datasetReference, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName"))
+ $root.google.protobuf.StringValue.encode(message.friendlyName, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.location);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.type);
+ if (message.externalDatasetReference != null && Object.hasOwnProperty.call(message, "externalDatasetReference"))
+ $root.google.cloud.bigquery.v2.ExternalDatasetReference.encode(message.externalDatasetReference, writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim();
+ if (message.catalogSource != null && Object.hasOwnProperty.call(message, "catalogSource"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.catalogSource);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListFormatDataset message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ListFormatDataset.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {google.cloud.bigquery.v2.IListFormatDataset} message ListFormatDataset message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFormatDataset.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFormatDataset message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.ListFormatDataset} ListFormatDataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFormatDataset.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.ListFormatDataset(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.id = reader.string();
+ break;
+ }
+ case 3: {
+ message.datasetReference = $root.google.cloud.bigquery.v2.DatasetReference.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 4: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ 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, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.labels, key);
+ message.labels[key] = value;
+ break;
+ }
+ case 5: {
+ message.friendlyName = $root.google.protobuf.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.location = reader.string();
+ break;
+ }
+ case 7: {
+ message.type = reader.string();
+ break;
+ }
+ case 12: {
+ message.catalogSource = reader.string();
+ break;
+ }
+ case 11: {
+ message.externalDatasetReference = $root.google.cloud.bigquery.v2.ExternalDatasetReference.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListFormatDataset message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.ListFormatDataset} ListFormatDataset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFormatDataset.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFormatDataset message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFormatDataset.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.datasetReference != null && Object.hasOwnProperty.call(message, "datasetReference")) {
+ var error = $root.google.cloud.bigquery.v2.DatasetReference.verify(message.datasetReference, long + 1);
+ if (error)
+ return "datasetReference." + error;
+ }
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName")) {
+ var error = $root.google.protobuf.StringValue.verify(message.friendlyName, long + 1);
+ if (error)
+ return "friendlyName." + error;
+ }
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.catalogSource != null && Object.hasOwnProperty.call(message, "catalogSource")) {
+ properties._catalogSource = 1;
+ if (!$util.isString(message.catalogSource))
+ return "catalogSource: string expected";
+ }
+ if (message.externalDatasetReference != null && Object.hasOwnProperty.call(message, "externalDatasetReference")) {
+ var error = $root.google.cloud.bigquery.v2.ExternalDatasetReference.verify(message.externalDatasetReference, long + 1);
+ if (error)
+ return "externalDatasetReference." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListFormatDataset message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.ListFormatDataset} ListFormatDataset
+ */
+ ListFormatDataset.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.ListFormatDataset)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.ListFormatDataset: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.ListFormatDataset();
+ if (object.kind != null)
+ message.kind = String(object.kind);
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.datasetReference != null) {
+ if (!$util.isObject(object.datasetReference))
+ throw TypeError(".google.cloud.bigquery.v2.ListFormatDataset.datasetReference: object expected");
+ message.datasetReference = $root.google.cloud.bigquery.v2.DatasetReference.fromObject(object.datasetReference, long + 1);
+ }
+ if (object.labels) {
+ if (!$util.isObject(object.labels))
+ throw TypeError(".google.cloud.bigquery.v2.ListFormatDataset.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.labels, keys[i]);
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ }
+ if (object.friendlyName != null) {
+ if (!$util.isObject(object.friendlyName))
+ throw TypeError(".google.cloud.bigquery.v2.ListFormatDataset.friendlyName: object expected");
+ message.friendlyName = $root.google.protobuf.StringValue.fromObject(object.friendlyName, long + 1);
+ }
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.catalogSource != null)
+ message.catalogSource = String(object.catalogSource);
+ if (object.externalDatasetReference != null) {
+ if (!$util.isObject(object.externalDatasetReference))
+ throw TypeError(".google.cloud.bigquery.v2.ListFormatDataset.externalDatasetReference: object expected");
+ message.externalDatasetReference = $root.google.cloud.bigquery.v2.ExternalDatasetReference.fromObject(object.externalDatasetReference, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListFormatDataset message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {google.cloud.bigquery.v2.ListFormatDataset} message ListFormatDataset
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFormatDataset.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.kind = "";
+ object.id = "";
+ object.datasetReference = null;
+ object.friendlyName = null;
+ object.location = "";
+ object.type = "";
+ object.externalDatasetReference = null;
+ }
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ object.kind = message.kind;
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ object.id = message.id;
+ if (message.datasetReference != null && Object.hasOwnProperty.call(message, "datasetReference"))
+ object.datasetReference = $root.google.cloud.bigquery.v2.DatasetReference.toObject(message.datasetReference, options, q + 1);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.labels, keys2[j]);
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ }
+ if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName"))
+ object.friendlyName = $root.google.protobuf.StringValue.toObject(message.friendlyName, options, q + 1);
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ object.location = message.location;
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = message.type;
+ if (message.externalDatasetReference != null && Object.hasOwnProperty.call(message, "externalDatasetReference"))
+ object.externalDatasetReference = $root.google.cloud.bigquery.v2.ExternalDatasetReference.toObject(message.externalDatasetReference, options, q + 1);
+ if (message.catalogSource != null && Object.hasOwnProperty.call(message, "catalogSource")) {
+ object.catalogSource = message.catalogSource;
+ if (options.oneofs)
+ object._catalogSource = "catalogSource";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListFormatDataset to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFormatDataset.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFormatDataset
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.ListFormatDataset
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFormatDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.ListFormatDataset";
+ };
+
+ return ListFormatDataset;
+ })();
+
+ v2.DatasetList = (function() {
+
+ /**
+ * Properties of a DatasetList.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IDatasetList
+ * @property {string|null} [kind] DatasetList kind
+ * @property {string|null} [etag] DatasetList etag
+ * @property {string|null} [nextPageToken] DatasetList nextPageToken
+ * @property {Array.|null} [datasets] DatasetList datasets
+ * @property {Array.|null} [unreachable] DatasetList unreachable
+ */
+
+ /**
+ * Constructs a new DatasetList.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a DatasetList.
+ * @implements IDatasetList
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IDatasetList=} [properties] Properties to set
+ */
+ function DatasetList(properties) {
+ this.datasets = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DatasetList kind.
+ * @member {string} kind
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @instance
+ */
+ DatasetList.prototype.kind = "";
+
+ /**
+ * DatasetList etag.
+ * @member {string} etag
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @instance
+ */
+ DatasetList.prototype.etag = "";
+
+ /**
+ * DatasetList nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @instance
+ */
+ DatasetList.prototype.nextPageToken = "";
+
+ /**
+ * DatasetList datasets.
+ * @member {Array.} datasets
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @instance
+ */
+ DatasetList.prototype.datasets = $util.emptyArray;
+
+ /**
+ * DatasetList unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @instance
+ */
+ DatasetList.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new DatasetList instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetList=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.DatasetList} DatasetList instance
+ */
+ DatasetList.create = function create(properties) {
+ return new DatasetList(properties);
+ };
+
+ /**
+ * Encodes the specified DatasetList message. Does not implicitly {@link google.cloud.bigquery.v2.DatasetList.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetList} message DatasetList message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatasetList.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag);
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.nextPageToken);
+ if (message.datasets != null && message.datasets.length)
+ for (var i = 0; i < message.datasets.length; ++i)
+ $root.google.cloud.bigquery.v2.ListFormatDataset.encode(message.datasets[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DatasetList message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DatasetList.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetList} message DatasetList message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatasetList.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DatasetList message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.DatasetList} DatasetList
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatasetList.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.DatasetList();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.etag = reader.string();
+ break;
+ }
+ case 3: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.datasets && message.datasets.length))
+ message.datasets = [];
+ message.datasets.push($root.google.cloud.bigquery.v2.ListFormatDataset.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 5: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DatasetList message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.DatasetList} DatasetList
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatasetList.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DatasetList message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DatasetList.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.datasets != null && Object.hasOwnProperty.call(message, "datasets")) {
+ if (!Array.isArray(message.datasets))
+ return "datasets: array expected";
+ for (var i = 0; i < message.datasets.length; ++i) {
+ var error = $root.google.cloud.bigquery.v2.ListFormatDataset.verify(message.datasets[i], long + 1);
+ if (error)
+ return "datasets." + error;
+ }
+ }
+ if (message.unreachable != null && Object.hasOwnProperty.call(message, "unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DatasetList message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.DatasetList} DatasetList
+ */
+ DatasetList.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.DatasetList)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.DatasetList: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.DatasetList();
+ if (object.kind != null)
+ message.kind = String(object.kind);
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.datasets) {
+ if (!Array.isArray(object.datasets))
+ throw TypeError(".google.cloud.bigquery.v2.DatasetList.datasets: array expected");
+ message.datasets = [];
+ for (var i = 0; i < object.datasets.length; ++i) {
+ if (!$util.isObject(object.datasets[i]))
+ throw TypeError(".google.cloud.bigquery.v2.DatasetList.datasets: object expected");
+ message.datasets[i] = $root.google.cloud.bigquery.v2.ListFormatDataset.fromObject(object.datasets[i], long + 1);
+ }
+ }
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.bigquery.v2.DatasetList.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DatasetList message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {google.cloud.bigquery.v2.DatasetList} message DatasetList
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DatasetList.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.datasets = [];
+ object.unreachable = [];
+ }
+ if (options.defaults) {
+ object.kind = "";
+ object.etag = "";
+ object.nextPageToken = "";
+ }
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ object.kind = message.kind;
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ object.etag = message.etag;
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.datasets && message.datasets.length) {
+ object.datasets = [];
+ for (var j = 0; j < message.datasets.length; ++j)
+ object.datasets[j] = $root.google.cloud.bigquery.v2.ListFormatDataset.toObject(message.datasets[j], options, q + 1);
+ }
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DatasetList to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DatasetList.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DatasetList
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.DatasetList
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DatasetList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.DatasetList";
+ };
+
+ return DatasetList;
+ })();
+
+ v2.UndeleteDatasetRequest = (function() {
+
+ /**
+ * Properties of an UndeleteDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IUndeleteDatasetRequest
+ * @property {string|null} [projectId] UndeleteDatasetRequest projectId
+ * @property {string|null} [datasetId] UndeleteDatasetRequest datasetId
+ * @property {google.protobuf.ITimestamp|null} [deletionTime] UndeleteDatasetRequest deletionTime
+ */
+
+ /**
+ * Constructs a new UndeleteDatasetRequest.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents an UndeleteDatasetRequest.
+ * @implements IUndeleteDatasetRequest
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IUndeleteDatasetRequest=} [properties] Properties to set
+ */
+ function UndeleteDatasetRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * UndeleteDatasetRequest projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @instance
+ */
+ UndeleteDatasetRequest.prototype.projectId = "";
+
+ /**
+ * UndeleteDatasetRequest datasetId.
+ * @member {string} datasetId
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @instance
+ */
+ UndeleteDatasetRequest.prototype.datasetId = "";
+
+ /**
+ * UndeleteDatasetRequest deletionTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} deletionTime
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @instance
+ */
+ UndeleteDatasetRequest.prototype.deletionTime = null;
+
+ /**
+ * Creates a new UndeleteDatasetRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IUndeleteDatasetRequest=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.UndeleteDatasetRequest} UndeleteDatasetRequest instance
+ */
+ UndeleteDatasetRequest.create = function create(properties) {
+ return new UndeleteDatasetRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UndeleteDatasetRequest message. Does not implicitly {@link google.cloud.bigquery.v2.UndeleteDatasetRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IUndeleteDatasetRequest} message UndeleteDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UndeleteDatasetRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetId);
+ if (message.deletionTime != null && Object.hasOwnProperty.call(message, "deletionTime"))
+ $root.google.protobuf.Timestamp.encode(message.deletionTime, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UndeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.UndeleteDatasetRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.IUndeleteDatasetRequest} message UndeleteDatasetRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UndeleteDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an UndeleteDatasetRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.UndeleteDatasetRequest} UndeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UndeleteDatasetRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.UndeleteDatasetRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.datasetId = reader.string();
+ break;
+ }
+ case 3: {
+ message.deletionTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UndeleteDatasetRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.UndeleteDatasetRequest} UndeleteDatasetRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UndeleteDatasetRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UndeleteDatasetRequest message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UndeleteDatasetRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ if (!$util.isString(message.datasetId))
+ return "datasetId: string expected";
+ if (message.deletionTime != null && Object.hasOwnProperty.call(message, "deletionTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.deletionTime, long + 1);
+ if (error)
+ return "deletionTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UndeleteDatasetRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.UndeleteDatasetRequest} UndeleteDatasetRequest
+ */
+ UndeleteDatasetRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.UndeleteDatasetRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.UndeleteDatasetRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.UndeleteDatasetRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.datasetId != null)
+ message.datasetId = String(object.datasetId);
+ if (object.deletionTime != null) {
+ if (!$util.isObject(object.deletionTime))
+ throw TypeError(".google.cloud.bigquery.v2.UndeleteDatasetRequest.deletionTime: object expected");
+ message.deletionTime = $root.google.protobuf.Timestamp.fromObject(object.deletionTime, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UndeleteDatasetRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {google.cloud.bigquery.v2.UndeleteDatasetRequest} message UndeleteDatasetRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UndeleteDatasetRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.datasetId = "";
+ object.deletionTime = null;
+ }
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ object.datasetId = message.datasetId;
+ if (message.deletionTime != null && Object.hasOwnProperty.call(message, "deletionTime"))
+ object.deletionTime = $root.google.protobuf.Timestamp.toObject(message.deletionTime, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this UndeleteDatasetRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UndeleteDatasetRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UndeleteDatasetRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.UndeleteDatasetRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UndeleteDatasetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.UndeleteDatasetRequest";
+ };
+
+ return UndeleteDatasetRequest;
+ })();
+
+ v2.DatasetReference = (function() {
+
+ /**
+ * Properties of a DatasetReference.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IDatasetReference
+ * @property {string|null} [datasetId] DatasetReference datasetId
+ * @property {string|null} [projectId] DatasetReference projectId
+ */
+
+ /**
+ * Constructs a new DatasetReference.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a DatasetReference.
+ * @implements IDatasetReference
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IDatasetReference=} [properties] Properties to set
+ */
+ function DatasetReference(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DatasetReference datasetId.
+ * @member {string} datasetId
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @instance
+ */
+ DatasetReference.prototype.datasetId = "";
+
+ /**
+ * DatasetReference projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @instance
+ */
+ DatasetReference.prototype.projectId = "";
+
+ /**
+ * Creates a new DatasetReference instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetReference=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.DatasetReference} DatasetReference instance
+ */
+ DatasetReference.create = function create(properties) {
+ return new DatasetReference(properties);
+ };
+
+ /**
+ * Encodes the specified DatasetReference message. Does not implicitly {@link google.cloud.bigquery.v2.DatasetReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetReference} message DatasetReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatasetReference.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId);
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DatasetReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DatasetReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IDatasetReference} message DatasetReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatasetReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DatasetReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.DatasetReference} DatasetReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatasetReference.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.DatasetReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.datasetId = reader.string();
+ break;
+ }
+ case 2: {
+ message.projectId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DatasetReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.DatasetReference} DatasetReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatasetReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DatasetReference message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DatasetReference.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ if (!$util.isString(message.datasetId))
+ return "datasetId: string expected";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DatasetReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.DatasetReference} DatasetReference
+ */
+ DatasetReference.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.DatasetReference)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.DatasetReference: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.DatasetReference();
+ if (object.datasetId != null)
+ message.datasetId = String(object.datasetId);
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DatasetReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {google.cloud.bigquery.v2.DatasetReference} message DatasetReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DatasetReference.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.datasetId = "";
+ object.projectId = "";
+ }
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ object.datasetId = message.datasetId;
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ return object;
+ };
+
+ /**
+ * Converts this DatasetReference to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DatasetReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DatasetReference
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.DatasetReference
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DatasetReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.DatasetReference";
+ };
+
+ return DatasetReference;
+ })();
+
+ v2.EncryptionConfiguration = (function() {
+
+ /**
+ * Properties of an EncryptionConfiguration.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IEncryptionConfiguration
+ * @property {google.protobuf.IStringValue|null} [kmsKeyName] EncryptionConfiguration kmsKeyName
+ */
+
+ /**
+ * Constructs a new EncryptionConfiguration.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents an EncryptionConfiguration.
+ * @implements IEncryptionConfiguration
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IEncryptionConfiguration=} [properties] Properties to set
+ */
+ function EncryptionConfiguration(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * EncryptionConfiguration kmsKeyName.
+ * @member {google.protobuf.IStringValue|null|undefined} kmsKeyName
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @instance
+ */
+ EncryptionConfiguration.prototype.kmsKeyName = null;
+
+ /**
+ * Creates a new EncryptionConfiguration instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {google.cloud.bigquery.v2.IEncryptionConfiguration=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.EncryptionConfiguration} EncryptionConfiguration instance
+ */
+ EncryptionConfiguration.create = function create(properties) {
+ return new EncryptionConfiguration(properties);
+ };
+
+ /**
+ * Encodes the specified EncryptionConfiguration message. Does not implicitly {@link google.cloud.bigquery.v2.EncryptionConfiguration.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {google.cloud.bigquery.v2.IEncryptionConfiguration} message EncryptionConfiguration message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptionConfiguration.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ $root.google.protobuf.StringValue.encode(message.kmsKeyName, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EncryptionConfiguration message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.EncryptionConfiguration.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {google.cloud.bigquery.v2.IEncryptionConfiguration} message EncryptionConfiguration message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptionConfiguration.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an EncryptionConfiguration message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.EncryptionConfiguration} EncryptionConfiguration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptionConfiguration.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.EncryptionConfiguration();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.kmsKeyName = $root.google.protobuf.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EncryptionConfiguration message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.EncryptionConfiguration} EncryptionConfiguration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptionConfiguration.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EncryptionConfiguration message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EncryptionConfiguration.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName")) {
+ var error = $root.google.protobuf.StringValue.verify(message.kmsKeyName, long + 1);
+ if (error)
+ return "kmsKeyName." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an EncryptionConfiguration message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.EncryptionConfiguration} EncryptionConfiguration
+ */
+ EncryptionConfiguration.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.EncryptionConfiguration)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.EncryptionConfiguration: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.EncryptionConfiguration();
+ if (object.kmsKeyName != null) {
+ if (!$util.isObject(object.kmsKeyName))
+ throw TypeError(".google.cloud.bigquery.v2.EncryptionConfiguration.kmsKeyName: object expected");
+ message.kmsKeyName = $root.google.protobuf.StringValue.fromObject(object.kmsKeyName, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EncryptionConfiguration message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {google.cloud.bigquery.v2.EncryptionConfiguration} message EncryptionConfiguration
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EncryptionConfiguration.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.kmsKeyName = null;
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ object.kmsKeyName = $root.google.protobuf.StringValue.toObject(message.kmsKeyName, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this EncryptionConfiguration to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EncryptionConfiguration.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EncryptionConfiguration
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.EncryptionConfiguration
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EncryptionConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.EncryptionConfiguration";
+ };
+
+ return EncryptionConfiguration;
+ })();
+
+ v2.ExternalCatalogDatasetOptions = (function() {
+
+ /**
+ * Properties of an ExternalCatalogDatasetOptions.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IExternalCatalogDatasetOptions
+ * @property {Object.|null} [parameters] ExternalCatalogDatasetOptions parameters
+ * @property {string|null} [defaultStorageLocationUri] ExternalCatalogDatasetOptions defaultStorageLocationUri
+ */
+
+ /**
+ * Constructs a new ExternalCatalogDatasetOptions.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents an ExternalCatalogDatasetOptions.
+ * @implements IExternalCatalogDatasetOptions
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IExternalCatalogDatasetOptions=} [properties] Properties to set
+ */
+ function ExternalCatalogDatasetOptions(properties) {
+ this.parameters = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ExternalCatalogDatasetOptions parameters.
+ * @member {Object.} parameters
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @instance
+ */
+ ExternalCatalogDatasetOptions.prototype.parameters = $util.emptyObject;
+
+ /**
+ * ExternalCatalogDatasetOptions defaultStorageLocationUri.
+ * @member {string} defaultStorageLocationUri
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @instance
+ */
+ ExternalCatalogDatasetOptions.prototype.defaultStorageLocationUri = "";
+
+ /**
+ * Creates a new ExternalCatalogDatasetOptions instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {google.cloud.bigquery.v2.IExternalCatalogDatasetOptions=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.ExternalCatalogDatasetOptions} ExternalCatalogDatasetOptions instance
+ */
+ ExternalCatalogDatasetOptions.create = function create(properties) {
+ return new ExternalCatalogDatasetOptions(properties);
+ };
+
+ /**
+ * Encodes the specified ExternalCatalogDatasetOptions message. Does not implicitly {@link google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {google.cloud.bigquery.v2.IExternalCatalogDatasetOptions} message ExternalCatalogDatasetOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExternalCatalogDatasetOptions.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters"))
+ for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.parameters[keys[i]]).ldelim();
+ if (message.defaultStorageLocationUri != null && Object.hasOwnProperty.call(message, "defaultStorageLocationUri"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.defaultStorageLocationUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ExternalCatalogDatasetOptions message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {google.cloud.bigquery.v2.IExternalCatalogDatasetOptions} message ExternalCatalogDatasetOptions message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExternalCatalogDatasetOptions.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an ExternalCatalogDatasetOptions message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.ExternalCatalogDatasetOptions} ExternalCatalogDatasetOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExternalCatalogDatasetOptions.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.ExternalCatalogDatasetOptions(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (message.parameters === $util.emptyObject)
+ message.parameters = {};
+ 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, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.parameters, key);
+ message.parameters[key] = value;
+ break;
+ }
+ case 2: {
+ message.defaultStorageLocationUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ExternalCatalogDatasetOptions message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.ExternalCatalogDatasetOptions} ExternalCatalogDatasetOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExternalCatalogDatasetOptions.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ExternalCatalogDatasetOptions message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ExternalCatalogDatasetOptions.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) {
+ if (!$util.isObject(message.parameters))
+ return "parameters: object expected";
+ var key = Object.keys(message.parameters);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.parameters[key[i]]))
+ return "parameters: string{k:string} expected";
+ }
+ if (message.defaultStorageLocationUri != null && Object.hasOwnProperty.call(message, "defaultStorageLocationUri"))
+ if (!$util.isString(message.defaultStorageLocationUri))
+ return "defaultStorageLocationUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an ExternalCatalogDatasetOptions message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.ExternalCatalogDatasetOptions} ExternalCatalogDatasetOptions
+ */
+ ExternalCatalogDatasetOptions.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.ExternalCatalogDatasetOptions)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.ExternalCatalogDatasetOptions: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.ExternalCatalogDatasetOptions();
+ if (object.parameters) {
+ if (!$util.isObject(object.parameters))
+ throw TypeError(".google.cloud.bigquery.v2.ExternalCatalogDatasetOptions.parameters: object expected");
+ message.parameters = {};
+ for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.parameters, keys[i]);
+ message.parameters[keys[i]] = String(object.parameters[keys[i]]);
+ }
+ }
+ if (object.defaultStorageLocationUri != null)
+ message.defaultStorageLocationUri = String(object.defaultStorageLocationUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ExternalCatalogDatasetOptions message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {google.cloud.bigquery.v2.ExternalCatalogDatasetOptions} message ExternalCatalogDatasetOptions
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ExternalCatalogDatasetOptions.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.objects || options.defaults)
+ object.parameters = {};
+ if (options.defaults)
+ object.defaultStorageLocationUri = "";
+ var keys2;
+ if (message.parameters && (keys2 = Object.keys(message.parameters)).length) {
+ object.parameters = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.parameters, keys2[j]);
+ object.parameters[keys2[j]] = message.parameters[keys2[j]];
+ }
+ }
+ if (message.defaultStorageLocationUri != null && Object.hasOwnProperty.call(message, "defaultStorageLocationUri"))
+ object.defaultStorageLocationUri = message.defaultStorageLocationUri;
+ return object;
+ };
+
+ /**
+ * Converts this ExternalCatalogDatasetOptions to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ExternalCatalogDatasetOptions.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ExternalCatalogDatasetOptions
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.ExternalCatalogDatasetOptions
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ExternalCatalogDatasetOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.ExternalCatalogDatasetOptions";
+ };
+
+ return ExternalCatalogDatasetOptions;
+ })();
+
+ v2.ExternalDatasetReference = (function() {
+
+ /**
+ * Properties of an ExternalDatasetReference.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IExternalDatasetReference
+ * @property {string|null} [externalSource] ExternalDatasetReference externalSource
+ * @property {string|null} [connection] ExternalDatasetReference connection
+ */
+
+ /**
+ * Constructs a new ExternalDatasetReference.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents an ExternalDatasetReference.
+ * @implements IExternalDatasetReference
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IExternalDatasetReference=} [properties] Properties to set
+ */
+ function ExternalDatasetReference(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ExternalDatasetReference externalSource.
+ * @member {string} externalSource
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @instance
+ */
+ ExternalDatasetReference.prototype.externalSource = "";
+
+ /**
+ * ExternalDatasetReference connection.
+ * @member {string} connection
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @instance
+ */
+ ExternalDatasetReference.prototype.connection = "";
+
+ /**
+ * Creates a new ExternalDatasetReference instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IExternalDatasetReference=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.ExternalDatasetReference} ExternalDatasetReference instance
+ */
+ ExternalDatasetReference.create = function create(properties) {
+ return new ExternalDatasetReference(properties);
+ };
+
+ /**
+ * Encodes the specified ExternalDatasetReference message. Does not implicitly {@link google.cloud.bigquery.v2.ExternalDatasetReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IExternalDatasetReference} message ExternalDatasetReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExternalDatasetReference.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.externalSource != null && Object.hasOwnProperty.call(message, "externalSource"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.externalSource);
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.connection);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ExternalDatasetReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ExternalDatasetReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IExternalDatasetReference} message ExternalDatasetReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExternalDatasetReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an ExternalDatasetReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.ExternalDatasetReference} ExternalDatasetReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExternalDatasetReference.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.ExternalDatasetReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 2: {
+ message.externalSource = reader.string();
+ break;
+ }
+ case 3: {
+ message.connection = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ExternalDatasetReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.ExternalDatasetReference} ExternalDatasetReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExternalDatasetReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ExternalDatasetReference message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ExternalDatasetReference.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.externalSource != null && Object.hasOwnProperty.call(message, "externalSource"))
+ if (!$util.isString(message.externalSource))
+ return "externalSource: string expected";
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ if (!$util.isString(message.connection))
+ return "connection: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an ExternalDatasetReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.ExternalDatasetReference} ExternalDatasetReference
+ */
+ ExternalDatasetReference.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.ExternalDatasetReference)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.ExternalDatasetReference: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.ExternalDatasetReference();
+ if (object.externalSource != null)
+ message.externalSource = String(object.externalSource);
+ if (object.connection != null)
+ message.connection = String(object.connection);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ExternalDatasetReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {google.cloud.bigquery.v2.ExternalDatasetReference} message ExternalDatasetReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ExternalDatasetReference.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.externalSource = "";
+ object.connection = "";
+ }
+ if (message.externalSource != null && Object.hasOwnProperty.call(message, "externalSource"))
+ object.externalSource = message.externalSource;
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ object.connection = message.connection;
+ return object;
+ };
+
+ /**
+ * Converts this ExternalDatasetReference to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ExternalDatasetReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ExternalDatasetReference
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.ExternalDatasetReference
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ExternalDatasetReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.ExternalDatasetReference";
+ };
+
+ return ExternalDatasetReference;
+ })();
+
+ v2.RestrictionConfig = (function() {
+
+ /**
+ * Properties of a RestrictionConfig.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IRestrictionConfig
+ * @property {google.cloud.bigquery.v2.RestrictionConfig.RestrictionType|null} [type] RestrictionConfig type
+ */
+
+ /**
+ * Constructs a new RestrictionConfig.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a RestrictionConfig.
+ * @implements IRestrictionConfig
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IRestrictionConfig=} [properties] Properties to set
+ */
+ function RestrictionConfig(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * RestrictionConfig type.
+ * @member {google.cloud.bigquery.v2.RestrictionConfig.RestrictionType} type
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @instance
+ */
+ RestrictionConfig.prototype.type = 0;
+
+ /**
+ * Creates a new RestrictionConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {google.cloud.bigquery.v2.IRestrictionConfig=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.RestrictionConfig} RestrictionConfig instance
+ */
+ RestrictionConfig.create = function create(properties) {
+ return new RestrictionConfig(properties);
+ };
+
+ /**
+ * Encodes the specified RestrictionConfig message. Does not implicitly {@link google.cloud.bigquery.v2.RestrictionConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {google.cloud.bigquery.v2.IRestrictionConfig} message RestrictionConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestrictionConfig.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RestrictionConfig message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RestrictionConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {google.cloud.bigquery.v2.IRestrictionConfig} message RestrictionConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestrictionConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a RestrictionConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.RestrictionConfig} RestrictionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestrictionConfig.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.RestrictionConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RestrictionConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.RestrictionConfig} RestrictionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestrictionConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RestrictionConfig message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RestrictionConfig.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RestrictionConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.RestrictionConfig} RestrictionConfig
+ */
+ RestrictionConfig.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.RestrictionConfig)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.RestrictionConfig: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.RestrictionConfig();
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "RESTRICTION_TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "RESTRICTED_DATA_EGRESS":
+ case 1:
+ message.type = 1;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RestrictionConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {google.cloud.bigquery.v2.RestrictionConfig} message RestrictionConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RestrictionConfig.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.type = options.enums === String ? "RESTRICTION_TYPE_UNSPECIFIED" : 0;
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = options.enums === String ? $root.google.cloud.bigquery.v2.RestrictionConfig.RestrictionType[message.type] === undefined ? message.type : $root.google.cloud.bigquery.v2.RestrictionConfig.RestrictionType[message.type] : message.type;
+ return object;
+ };
+
+ /**
+ * Converts this RestrictionConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RestrictionConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RestrictionConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.RestrictionConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RestrictionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.RestrictionConfig";
+ };
+
+ /**
+ * RestrictionType enum.
+ * @name google.cloud.bigquery.v2.RestrictionConfig.RestrictionType
+ * @enum {number}
+ * @property {number} RESTRICTION_TYPE_UNSPECIFIED=0 RESTRICTION_TYPE_UNSPECIFIED value
+ * @property {number} RESTRICTED_DATA_EGRESS=1 RESTRICTED_DATA_EGRESS value
+ */
+ RestrictionConfig.RestrictionType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RESTRICTION_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "RESTRICTED_DATA_EGRESS"] = 1;
+ return values;
+ })();
+
+ return RestrictionConfig;
+ })();
+
+ v2.RoutineReference = (function() {
+
+ /**
+ * Properties of a RoutineReference.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IRoutineReference
+ * @property {string|null} [projectId] RoutineReference projectId
+ * @property {string|null} [datasetId] RoutineReference datasetId
+ * @property {string|null} [routineId] RoutineReference routineId
+ */
+
+ /**
+ * Constructs a new RoutineReference.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a RoutineReference.
+ * @implements IRoutineReference
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IRoutineReference=} [properties] Properties to set
+ */
+ function RoutineReference(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * RoutineReference projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @instance
+ */
+ RoutineReference.prototype.projectId = "";
+
+ /**
+ * RoutineReference datasetId.
+ * @member {string} datasetId
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @instance
+ */
+ RoutineReference.prototype.datasetId = "";
+
+ /**
+ * RoutineReference routineId.
+ * @member {string} routineId
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @instance
+ */
+ RoutineReference.prototype.routineId = "";
+
+ /**
+ * Creates a new RoutineReference instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IRoutineReference=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.RoutineReference} RoutineReference instance
+ */
+ RoutineReference.create = function create(properties) {
+ return new RoutineReference(properties);
+ };
+
+ /**
+ * Encodes the specified RoutineReference message. Does not implicitly {@link google.cloud.bigquery.v2.RoutineReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IRoutineReference} message RoutineReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RoutineReference.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetId);
+ if (message.routineId != null && Object.hasOwnProperty.call(message, "routineId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.routineId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RoutineReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.RoutineReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {google.cloud.bigquery.v2.IRoutineReference} message RoutineReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RoutineReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a RoutineReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.RoutineReference} RoutineReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RoutineReference.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.RoutineReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.datasetId = reader.string();
+ break;
+ }
+ case 3: {
+ message.routineId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RoutineReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.RoutineReference} RoutineReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RoutineReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RoutineReference message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RoutineReference.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ if (!$util.isString(message.datasetId))
+ return "datasetId: string expected";
+ if (message.routineId != null && Object.hasOwnProperty.call(message, "routineId"))
+ if (!$util.isString(message.routineId))
+ return "routineId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a RoutineReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.RoutineReference} RoutineReference
+ */
+ RoutineReference.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.RoutineReference)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.RoutineReference: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.RoutineReference();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.datasetId != null)
+ message.datasetId = String(object.datasetId);
+ if (object.routineId != null)
+ message.routineId = String(object.routineId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RoutineReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {google.cloud.bigquery.v2.RoutineReference} message RoutineReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RoutineReference.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.datasetId = "";
+ object.routineId = "";
+ }
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ object.datasetId = message.datasetId;
+ if (message.routineId != null && Object.hasOwnProperty.call(message, "routineId"))
+ object.routineId = message.routineId;
+ return object;
+ };
+
+ /**
+ * Converts this RoutineReference to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RoutineReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RoutineReference
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.RoutineReference
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RoutineReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.RoutineReference";
+ };
+
+ return RoutineReference;
+ })();
+
+ v2.TableReference = (function() {
+
+ /**
+ * Properties of a TableReference.
+ * @memberof google.cloud.bigquery.v2
+ * @interface ITableReference
+ * @property {string|null} [projectId] TableReference projectId
+ * @property {string|null} [datasetId] TableReference datasetId
+ * @property {string|null} [tableId] TableReference tableId
+ */
+
+ /**
+ * Constructs a new TableReference.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a TableReference.
+ * @implements ITableReference
+ * @constructor
+ * @param {google.cloud.bigquery.v2.ITableReference=} [properties] Properties to set
+ */
+ function TableReference(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * TableReference projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @instance
+ */
+ TableReference.prototype.projectId = "";
+
+ /**
+ * TableReference datasetId.
+ * @member {string} datasetId
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @instance
+ */
+ TableReference.prototype.datasetId = "";
+
+ /**
+ * TableReference tableId.
+ * @member {string} tableId
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @instance
+ */
+ TableReference.prototype.tableId = "";
+
+ /**
+ * Creates a new TableReference instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableReference=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.TableReference} TableReference instance
+ */
+ TableReference.create = function create(properties) {
+ return new TableReference(properties);
+ };
+
+ /**
+ * Encodes the specified TableReference message. Does not implicitly {@link google.cloud.bigquery.v2.TableReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableReference} message TableReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableReference.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetId);
+ if (message.tableId != null && Object.hasOwnProperty.call(message, "tableId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.tableId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TableReference message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableReference} message TableReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a TableReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.TableReference} TableReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableReference.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.TableReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.datasetId = reader.string();
+ break;
+ }
+ case 3: {
+ message.tableId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TableReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.TableReference} TableReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TableReference message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TableReference.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ if (!$util.isString(message.datasetId))
+ return "datasetId: string expected";
+ if (message.tableId != null && Object.hasOwnProperty.call(message, "tableId"))
+ if (!$util.isString(message.tableId))
+ return "tableId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TableReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.TableReference} TableReference
+ */
+ TableReference.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.TableReference)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.TableReference: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.TableReference();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.datasetId != null)
+ message.datasetId = String(object.datasetId);
+ if (object.tableId != null)
+ message.tableId = String(object.tableId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TableReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {google.cloud.bigquery.v2.TableReference} message TableReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TableReference.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.datasetId = "";
+ object.tableId = "";
+ }
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ object.projectId = message.projectId;
+ if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId"))
+ object.datasetId = message.datasetId;
+ if (message.tableId != null && Object.hasOwnProperty.call(message, "tableId"))
+ object.tableId = message.tableId;
+ return object;
+ };
+
+ /**
+ * Converts this TableReference to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TableReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TableReference
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.TableReference
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TableReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.TableReference";
+ };
+
+ return TableReference;
+ })();
+
+ v2.TableSchema = (function() {
+
+ /**
+ * Properties of a TableSchema.
+ * @memberof google.cloud.bigquery.v2
+ * @interface ITableSchema
+ * @property {Array.|null} [fields] TableSchema fields
+ * @property {google.cloud.bigquery.v2.IForeignTypeInfo|null} [foreignTypeInfo] TableSchema foreignTypeInfo
+ */
+
+ /**
+ * Constructs a new TableSchema.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a TableSchema.
+ * @implements ITableSchema
+ * @constructor
+ * @param {google.cloud.bigquery.v2.ITableSchema=} [properties] Properties to set
+ */
+ function TableSchema(properties) {
+ this.fields = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * TableSchema fields.
+ * @member {Array.} fields
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @instance
+ */
+ TableSchema.prototype.fields = $util.emptyArray;
+
+ /**
+ * TableSchema foreignTypeInfo.
+ * @member {google.cloud.bigquery.v2.IForeignTypeInfo|null|undefined} foreignTypeInfo
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @instance
+ */
+ TableSchema.prototype.foreignTypeInfo = null;
+
+ /**
+ * Creates a new TableSchema instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableSchema=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.TableSchema} TableSchema instance
+ */
+ TableSchema.create = function create(properties) {
+ return new TableSchema(properties);
+ };
+
+ /**
+ * Encodes the specified TableSchema message. Does not implicitly {@link google.cloud.bigquery.v2.TableSchema.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableSchema} message TableSchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableSchema.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.fields != null && message.fields.length)
+ for (var i = 0; i < message.fields.length; ++i)
+ $root.google.cloud.bigquery.v2.TableFieldSchema.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.foreignTypeInfo != null && Object.hasOwnProperty.call(message, "foreignTypeInfo"))
+ $root.google.cloud.bigquery.v2.ForeignTypeInfo.encode(message.foreignTypeInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TableSchema message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableSchema.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableSchema} message TableSchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableSchema.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a TableSchema message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.TableSchema} TableSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableSchema.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.TableSchema();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.fields && message.fields.length))
+ message.fields = [];
+ message.fields.push($root.google.cloud.bigquery.v2.TableFieldSchema.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 3: {
+ message.foreignTypeInfo = $root.google.cloud.bigquery.v2.ForeignTypeInfo.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TableSchema message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.TableSchema} TableSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableSchema.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TableSchema message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TableSchema.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) {
+ if (!Array.isArray(message.fields))
+ return "fields: array expected";
+ for (var i = 0; i < message.fields.length; ++i) {
+ var error = $root.google.cloud.bigquery.v2.TableFieldSchema.verify(message.fields[i], long + 1);
+ if (error)
+ return "fields." + error;
+ }
+ }
+ if (message.foreignTypeInfo != null && Object.hasOwnProperty.call(message, "foreignTypeInfo")) {
+ var error = $root.google.cloud.bigquery.v2.ForeignTypeInfo.verify(message.foreignTypeInfo, long + 1);
+ if (error)
+ return "foreignTypeInfo." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TableSchema message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.TableSchema} TableSchema
+ */
+ TableSchema.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.TableSchema)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.TableSchema: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.TableSchema();
+ if (object.fields) {
+ if (!Array.isArray(object.fields))
+ throw TypeError(".google.cloud.bigquery.v2.TableSchema.fields: array expected");
+ message.fields = [];
+ for (var i = 0; i < object.fields.length; ++i) {
+ if (!$util.isObject(object.fields[i]))
+ throw TypeError(".google.cloud.bigquery.v2.TableSchema.fields: object expected");
+ message.fields[i] = $root.google.cloud.bigquery.v2.TableFieldSchema.fromObject(object.fields[i], long + 1);
+ }
+ }
+ if (object.foreignTypeInfo != null) {
+ if (!$util.isObject(object.foreignTypeInfo))
+ throw TypeError(".google.cloud.bigquery.v2.TableSchema.foreignTypeInfo: object expected");
+ message.foreignTypeInfo = $root.google.cloud.bigquery.v2.ForeignTypeInfo.fromObject(object.foreignTypeInfo, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TableSchema message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {google.cloud.bigquery.v2.TableSchema} message TableSchema
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TableSchema.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.fields = [];
+ if (options.defaults)
+ object.foreignTypeInfo = null;
+ if (message.fields && message.fields.length) {
+ object.fields = [];
+ for (var j = 0; j < message.fields.length; ++j)
+ object.fields[j] = $root.google.cloud.bigquery.v2.TableFieldSchema.toObject(message.fields[j], options, q + 1);
+ }
+ if (message.foreignTypeInfo != null && Object.hasOwnProperty.call(message, "foreignTypeInfo"))
+ object.foreignTypeInfo = $root.google.cloud.bigquery.v2.ForeignTypeInfo.toObject(message.foreignTypeInfo, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this TableSchema to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TableSchema.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TableSchema
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.TableSchema
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TableSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.TableSchema";
+ };
+
+ return TableSchema;
+ })();
+
+ v2.ForeignTypeInfo = (function() {
+
+ /**
+ * Properties of a ForeignTypeInfo.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IForeignTypeInfo
+ * @property {google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem|null} [typeSystem] ForeignTypeInfo typeSystem
+ */
+
+ /**
+ * Constructs a new ForeignTypeInfo.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a ForeignTypeInfo.
+ * @implements IForeignTypeInfo
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IForeignTypeInfo=} [properties] Properties to set
+ */
+ function ForeignTypeInfo(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ForeignTypeInfo typeSystem.
+ * @member {google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem} typeSystem
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @instance
+ */
+ ForeignTypeInfo.prototype.typeSystem = 0;
+
+ /**
+ * Creates a new ForeignTypeInfo instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.IForeignTypeInfo=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.ForeignTypeInfo} ForeignTypeInfo instance
+ */
+ ForeignTypeInfo.create = function create(properties) {
+ return new ForeignTypeInfo(properties);
+ };
+
+ /**
+ * Encodes the specified ForeignTypeInfo message. Does not implicitly {@link google.cloud.bigquery.v2.ForeignTypeInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.IForeignTypeInfo} message ForeignTypeInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ForeignTypeInfo.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.typeSystem != null && Object.hasOwnProperty.call(message, "typeSystem"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.typeSystem);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ForeignTypeInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ForeignTypeInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.IForeignTypeInfo} message ForeignTypeInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ForeignTypeInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ForeignTypeInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.ForeignTypeInfo} ForeignTypeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ForeignTypeInfo.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.ForeignTypeInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.typeSystem = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ForeignTypeInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.ForeignTypeInfo} ForeignTypeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ForeignTypeInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ForeignTypeInfo message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ForeignTypeInfo.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.typeSystem != null && Object.hasOwnProperty.call(message, "typeSystem"))
+ switch (message.typeSystem) {
+ default:
+ return "typeSystem: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ForeignTypeInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.ForeignTypeInfo} ForeignTypeInfo
+ */
+ ForeignTypeInfo.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.ForeignTypeInfo)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.ForeignTypeInfo: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.ForeignTypeInfo();
+ switch (object.typeSystem) {
+ default:
+ if (typeof object.typeSystem === "number") {
+ message.typeSystem = object.typeSystem;
+ break;
+ }
+ break;
+ case "TYPE_SYSTEM_UNSPECIFIED":
+ case 0:
+ message.typeSystem = 0;
+ break;
+ case "HIVE":
+ case 1:
+ message.typeSystem = 1;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ForeignTypeInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.ForeignTypeInfo} message ForeignTypeInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ForeignTypeInfo.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.typeSystem = options.enums === String ? "TYPE_SYSTEM_UNSPECIFIED" : 0;
+ if (message.typeSystem != null && Object.hasOwnProperty.call(message, "typeSystem"))
+ object.typeSystem = options.enums === String ? $root.google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem[message.typeSystem] === undefined ? message.typeSystem : $root.google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem[message.typeSystem] : message.typeSystem;
+ return object;
+ };
+
+ /**
+ * Converts this ForeignTypeInfo to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ForeignTypeInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ForeignTypeInfo
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.ForeignTypeInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ForeignTypeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.ForeignTypeInfo";
+ };
+
+ /**
+ * TypeSystem enum.
+ * @name google.cloud.bigquery.v2.ForeignTypeInfo.TypeSystem
+ * @enum {number}
+ * @property {number} TYPE_SYSTEM_UNSPECIFIED=0 TYPE_SYSTEM_UNSPECIFIED value
+ * @property {number} HIVE=1 HIVE value
+ */
+ ForeignTypeInfo.TypeSystem = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_SYSTEM_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "HIVE"] = 1;
+ return values;
+ })();
+
+ return ForeignTypeInfo;
+ })();
+
+ v2.DataPolicyOption = (function() {
+
+ /**
+ * Properties of a DataPolicyOption.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IDataPolicyOption
+ * @property {string|null} [name] DataPolicyOption name
+ */
+
+ /**
+ * Constructs a new DataPolicyOption.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a DataPolicyOption.
+ * @implements IDataPolicyOption
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IDataPolicyOption=} [properties] Properties to set
+ */
+ function DataPolicyOption(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DataPolicyOption name.
+ * @member {string|null|undefined} name
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @instance
+ */
+ DataPolicyOption.prototype.name = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(DataPolicyOption.prototype, "_name", {
+ get: $util.oneOfGetter($oneOfFields = ["name"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new DataPolicyOption instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataPolicyOption=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.DataPolicyOption} DataPolicyOption instance
+ */
+ DataPolicyOption.create = function create(properties) {
+ return new DataPolicyOption(properties);
+ };
+
+ /**
+ * Encodes the specified DataPolicyOption message. Does not implicitly {@link google.cloud.bigquery.v2.DataPolicyOption.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataPolicyOption} message DataPolicyOption message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DataPolicyOption.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DataPolicyOption message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DataPolicyOption.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataPolicyOption} message DataPolicyOption message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DataPolicyOption.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DataPolicyOption message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.DataPolicyOption} DataPolicyOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DataPolicyOption.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.DataPolicyOption();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DataPolicyOption message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.DataPolicyOption} DataPolicyOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DataPolicyOption.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DataPolicyOption message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DataPolicyOption.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.name != null && Object.hasOwnProperty.call(message, "name")) {
+ properties._name = 1;
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DataPolicyOption message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.DataPolicyOption} DataPolicyOption
+ */
+ DataPolicyOption.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.DataPolicyOption)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.DataPolicyOption: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.DataPolicyOption();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DataPolicyOption message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {google.cloud.bigquery.v2.DataPolicyOption} message DataPolicyOption
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DataPolicyOption.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (message.name != null && Object.hasOwnProperty.call(message, "name")) {
+ object.name = message.name;
+ if (options.oneofs)
+ object._name = "name";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DataPolicyOption to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DataPolicyOption.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DataPolicyOption
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.DataPolicyOption
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DataPolicyOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.DataPolicyOption";
+ };
+
+ return DataPolicyOption;
+ })();
+
+ v2.DataPolicyList = (function() {
+
+ /**
+ * Properties of a DataPolicyList.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IDataPolicyList
+ * @property {Array.|null} [dataPolicies] DataPolicyList dataPolicies
+ */
+
+ /**
+ * Constructs a new DataPolicyList.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a DataPolicyList.
+ * @implements IDataPolicyList
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IDataPolicyList=} [properties] Properties to set
+ */
+ function DataPolicyList(properties) {
+ this.dataPolicies = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DataPolicyList dataPolicies.
+ * @member {Array.} dataPolicies
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @instance
+ */
+ DataPolicyList.prototype.dataPolicies = $util.emptyArray;
+
+ /**
+ * Creates a new DataPolicyList instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataPolicyList=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.DataPolicyList} DataPolicyList instance
+ */
+ DataPolicyList.create = function create(properties) {
+ return new DataPolicyList(properties);
+ };
+
+ /**
+ * Encodes the specified DataPolicyList message. Does not implicitly {@link google.cloud.bigquery.v2.DataPolicyList.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataPolicyList} message DataPolicyList message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DataPolicyList.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.dataPolicies != null && message.dataPolicies.length)
+ for (var i = 0; i < message.dataPolicies.length; ++i)
+ $root.google.cloud.bigquery.v2.DataPolicyOption.encode(message.dataPolicies[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DataPolicyList message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.DataPolicyList.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {google.cloud.bigquery.v2.IDataPolicyList} message DataPolicyList message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DataPolicyList.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DataPolicyList message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.DataPolicyList} DataPolicyList
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DataPolicyList.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.DataPolicyList();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.dataPolicies && message.dataPolicies.length))
+ message.dataPolicies = [];
+ message.dataPolicies.push($root.google.cloud.bigquery.v2.DataPolicyOption.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DataPolicyList message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.DataPolicyList} DataPolicyList
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DataPolicyList.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DataPolicyList message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DataPolicyList.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.dataPolicies != null && Object.hasOwnProperty.call(message, "dataPolicies")) {
+ if (!Array.isArray(message.dataPolicies))
+ return "dataPolicies: array expected";
+ for (var i = 0; i < message.dataPolicies.length; ++i) {
+ var error = $root.google.cloud.bigquery.v2.DataPolicyOption.verify(message.dataPolicies[i], long + 1);
+ if (error)
+ return "dataPolicies." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DataPolicyList message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.DataPolicyList} DataPolicyList
+ */
+ DataPolicyList.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.DataPolicyList)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.DataPolicyList: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.DataPolicyList();
+ if (object.dataPolicies) {
+ if (!Array.isArray(object.dataPolicies))
+ throw TypeError(".google.cloud.bigquery.v2.DataPolicyList.dataPolicies: array expected");
+ message.dataPolicies = [];
+ for (var i = 0; i < object.dataPolicies.length; ++i) {
+ if (!$util.isObject(object.dataPolicies[i]))
+ throw TypeError(".google.cloud.bigquery.v2.DataPolicyList.dataPolicies: object expected");
+ message.dataPolicies[i] = $root.google.cloud.bigquery.v2.DataPolicyOption.fromObject(object.dataPolicies[i], long + 1);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DataPolicyList message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {google.cloud.bigquery.v2.DataPolicyList} message DataPolicyList
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DataPolicyList.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.dataPolicies = [];
+ if (message.dataPolicies && message.dataPolicies.length) {
+ object.dataPolicies = [];
+ for (var j = 0; j < message.dataPolicies.length; ++j)
+ object.dataPolicies[j] = $root.google.cloud.bigquery.v2.DataPolicyOption.toObject(message.dataPolicies[j], options, q + 1);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DataPolicyList to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DataPolicyList.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DataPolicyList
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.DataPolicyList
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DataPolicyList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.DataPolicyList";
+ };
+
+ return DataPolicyList;
+ })();
+
+ v2.TableFieldSchema = (function() {
+
+ /**
+ * Properties of a TableFieldSchema.
+ * @memberof google.cloud.bigquery.v2
+ * @interface ITableFieldSchema
+ * @property {string|null} [name] TableFieldSchema name
+ * @property {string|null} [type] TableFieldSchema type
+ * @property {string|null} [mode] TableFieldSchema mode
+ * @property {Array.|null} [fields] TableFieldSchema fields
+ * @property {google.protobuf.IStringValue|null} [description] TableFieldSchema description
+ * @property {google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList|null} [policyTags] TableFieldSchema policyTags
+ * @property {google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo|null} [dataGovernanceTagsInfo] TableFieldSchema dataGovernanceTagsInfo
+ * @property {Array.|null} [dataPolicies] TableFieldSchema dataPolicies
+ * @property {google.cloud.bigquery.v2.IDataPolicyList|null} [dataPolicyList] TableFieldSchema dataPolicyList
+ * @property {number|Long|null} [maxLength] TableFieldSchema maxLength
+ * @property {number|Long|null} [precision] TableFieldSchema precision
+ * @property {number|Long|null} [scale] TableFieldSchema scale
+ * @property {google.protobuf.IInt64Value|null} [timestampPrecision] TableFieldSchema timestampPrecision
+ * @property {google.cloud.bigquery.v2.TableFieldSchema.RoundingMode|null} [roundingMode] TableFieldSchema roundingMode
+ * @property {google.protobuf.IStringValue|null} [collation] TableFieldSchema collation
+ * @property {google.protobuf.IStringValue|null} [defaultValueExpression] TableFieldSchema defaultValueExpression
+ * @property {google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType|null} [rangeElementType] TableFieldSchema rangeElementType
+ * @property {string|null} [foreignTypeDefinition] TableFieldSchema foreignTypeDefinition
+ * @property {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn|null} [generatedColumn] TableFieldSchema generatedColumn
+ */
+
+ /**
+ * Constructs a new TableFieldSchema.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents a TableFieldSchema.
+ * @implements ITableFieldSchema
+ * @constructor
+ * @param {google.cloud.bigquery.v2.ITableFieldSchema=} [properties] Properties to set
+ */
+ function TableFieldSchema(properties) {
+ this.fields = [];
+ this.dataPolicies = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * TableFieldSchema name.
+ * @member {string} name
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.name = "";
+
+ /**
+ * TableFieldSchema type.
+ * @member {string} type
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.type = "";
+
+ /**
+ * TableFieldSchema mode.
+ * @member {string} mode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.mode = "";
+
+ /**
+ * TableFieldSchema fields.
+ * @member {Array.} fields
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.fields = $util.emptyArray;
+
+ /**
+ * TableFieldSchema description.
+ * @member {google.protobuf.IStringValue|null|undefined} description
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.description = null;
+
+ /**
+ * TableFieldSchema policyTags.
+ * @member {google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList|null|undefined} policyTags
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.policyTags = null;
+
+ /**
+ * TableFieldSchema dataGovernanceTagsInfo.
+ * @member {google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo|null|undefined} dataGovernanceTagsInfo
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.dataGovernanceTagsInfo = null;
+
+ /**
+ * TableFieldSchema dataPolicies.
+ * @member {Array.} dataPolicies
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.dataPolicies = $util.emptyArray;
+
+ /**
+ * TableFieldSchema dataPolicyList.
+ * @member {google.cloud.bigquery.v2.IDataPolicyList|null|undefined} dataPolicyList
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.dataPolicyList = null;
+
+ /**
+ * TableFieldSchema maxLength.
+ * @member {number|Long} maxLength
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.maxLength = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * TableFieldSchema precision.
+ * @member {number|Long} precision
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.precision = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * TableFieldSchema scale.
+ * @member {number|Long} scale
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.scale = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * TableFieldSchema timestampPrecision.
+ * @member {google.protobuf.IInt64Value|null|undefined} timestampPrecision
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.timestampPrecision = null;
+
+ /**
+ * TableFieldSchema roundingMode.
+ * @member {google.cloud.bigquery.v2.TableFieldSchema.RoundingMode} roundingMode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.roundingMode = 0;
+
+ /**
+ * TableFieldSchema collation.
+ * @member {google.protobuf.IStringValue|null|undefined} collation
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.collation = null;
+
+ /**
+ * TableFieldSchema defaultValueExpression.
+ * @member {google.protobuf.IStringValue|null|undefined} defaultValueExpression
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.defaultValueExpression = null;
+
+ /**
+ * TableFieldSchema rangeElementType.
+ * @member {google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType|null|undefined} rangeElementType
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.rangeElementType = null;
+
+ /**
+ * TableFieldSchema foreignTypeDefinition.
+ * @member {string} foreignTypeDefinition
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.foreignTypeDefinition = "";
+
+ /**
+ * TableFieldSchema generatedColumn.
+ * @member {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn|null|undefined} generatedColumn
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ */
+ TableFieldSchema.prototype.generatedColumn = null;
+
+ /**
+ * Creates a new TableFieldSchema instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableFieldSchema=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema} TableFieldSchema instance
+ */
+ TableFieldSchema.create = function create(properties) {
+ return new TableFieldSchema(properties);
+ };
+
+ /**
+ * Encodes the specified TableFieldSchema message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableFieldSchema} message TableFieldSchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableFieldSchema.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.type);
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.mode);
+ if (message.fields != null && message.fields.length)
+ for (var i = 0; i < message.fields.length; ++i)
+ $root.google.cloud.bigquery.v2.TableFieldSchema.encode(message.fields[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ $root.google.protobuf.StringValue.encode(message.description, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.policyTags != null && Object.hasOwnProperty.call(message, "policyTags"))
+ $root.google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.encode(message.policyTags, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim();
+ if (message.maxLength != null && Object.hasOwnProperty.call(message, "maxLength"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int64(message.maxLength);
+ if (message.precision != null && Object.hasOwnProperty.call(message, "precision"))
+ writer.uint32(/* id 11, wireType 0 =*/88).int64(message.precision);
+ if (message.scale != null && Object.hasOwnProperty.call(message, "scale"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int64(message.scale);
+ if (message.collation != null && Object.hasOwnProperty.call(message, "collation"))
+ $root.google.protobuf.StringValue.encode(message.collation, writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim();
+ if (message.defaultValueExpression != null && Object.hasOwnProperty.call(message, "defaultValueExpression"))
+ $root.google.protobuf.StringValue.encode(message.defaultValueExpression, writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim();
+ if (message.roundingMode != null && Object.hasOwnProperty.call(message, "roundingMode"))
+ writer.uint32(/* id 15, wireType 0 =*/120).int32(message.roundingMode);
+ if (message.rangeElementType != null && Object.hasOwnProperty.call(message, "rangeElementType"))
+ $root.google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.encode(message.rangeElementType, writer.uint32(/* id 18, wireType 2 =*/146).fork(), q + 1).ldelim();
+ if (message.dataPolicies != null && message.dataPolicies.length)
+ for (var i = 0; i < message.dataPolicies.length; ++i)
+ $root.google.cloud.bigquery.v2.DataPolicyOption.encode(message.dataPolicies[i], writer.uint32(/* id 21, wireType 2 =*/170).fork(), q + 1).ldelim();
+ if (message.foreignTypeDefinition != null && Object.hasOwnProperty.call(message, "foreignTypeDefinition"))
+ writer.uint32(/* id 23, wireType 2 =*/186).string(message.foreignTypeDefinition);
+ if (message.timestampPrecision != null && Object.hasOwnProperty.call(message, "timestampPrecision"))
+ $root.google.protobuf.Int64Value.encode(message.timestampPrecision, writer.uint32(/* id 27, wireType 2 =*/218).fork(), q + 1).ldelim();
+ if (message.generatedColumn != null && Object.hasOwnProperty.call(message, "generatedColumn"))
+ $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.encode(message.generatedColumn, writer.uint32(/* id 28, wireType 2 =*/226).fork(), q + 1).ldelim();
+ if (message.dataPolicyList != null && Object.hasOwnProperty.call(message, "dataPolicyList"))
+ $root.google.cloud.bigquery.v2.DataPolicyList.encode(message.dataPolicyList, writer.uint32(/* id 29, wireType 2 =*/234).fork(), q + 1).ldelim();
+ if (message.dataGovernanceTagsInfo != null && Object.hasOwnProperty.call(message, "dataGovernanceTagsInfo"))
+ $root.google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.encode(message.dataGovernanceTagsInfo, writer.uint32(/* id 30, wireType 2 =*/242).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TableFieldSchema message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {google.cloud.bigquery.v2.ITableFieldSchema} message TableFieldSchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TableFieldSchema.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a TableFieldSchema message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema} TableFieldSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableFieldSchema.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.TableFieldSchema();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.type = reader.string();
+ break;
+ }
+ case 3: {
+ message.mode = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.fields && message.fields.length))
+ message.fields = [];
+ message.fields.push($root.google.cloud.bigquery.v2.TableFieldSchema.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 6: {
+ message.description = $root.google.protobuf.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 9: {
+ message.policyTags = $root.google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 30: {
+ message.dataGovernanceTagsInfo = $root.google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 21: {
+ if (!(message.dataPolicies && message.dataPolicies.length))
+ message.dataPolicies = [];
+ message.dataPolicies.push($root.google.cloud.bigquery.v2.DataPolicyOption.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 29: {
+ message.dataPolicyList = $root.google.cloud.bigquery.v2.DataPolicyList.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 10: {
+ message.maxLength = reader.int64();
+ break;
+ }
+ case 11: {
+ message.precision = reader.int64();
+ break;
+ }
+ case 12: {
+ message.scale = reader.int64();
+ break;
+ }
+ case 27: {
+ message.timestampPrecision = $root.google.protobuf.Int64Value.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 15: {
+ message.roundingMode = reader.int32();
+ break;
+ }
+ case 13: {
+ message.collation = $root.google.protobuf.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 14: {
+ message.defaultValueExpression = $root.google.protobuf.StringValue.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 18: {
+ message.rangeElementType = $root.google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 23: {
+ message.foreignTypeDefinition = reader.string();
+ break;
+ }
+ case 28: {
+ message.generatedColumn = $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TableFieldSchema message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema} TableFieldSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TableFieldSchema.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TableFieldSchema message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TableFieldSchema.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
+ if (!$util.isString(message.mode))
+ return "mode: string expected";
+ if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) {
+ if (!Array.isArray(message.fields))
+ return "fields: array expected";
+ for (var i = 0; i < message.fields.length; ++i) {
+ var error = $root.google.cloud.bigquery.v2.TableFieldSchema.verify(message.fields[i], long + 1);
+ if (error)
+ return "fields." + error;
+ }
+ }
+ if (message.description != null && Object.hasOwnProperty.call(message, "description")) {
+ var error = $root.google.protobuf.StringValue.verify(message.description, long + 1);
+ if (error)
+ return "description." + error;
+ }
+ if (message.policyTags != null && Object.hasOwnProperty.call(message, "policyTags")) {
+ var error = $root.google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.verify(message.policyTags, long + 1);
+ if (error)
+ return "policyTags." + error;
+ }
+ if (message.dataGovernanceTagsInfo != null && Object.hasOwnProperty.call(message, "dataGovernanceTagsInfo")) {
+ var error = $root.google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.verify(message.dataGovernanceTagsInfo, long + 1);
+ if (error)
+ return "dataGovernanceTagsInfo." + error;
+ }
+ if (message.dataPolicies != null && Object.hasOwnProperty.call(message, "dataPolicies")) {
+ if (!Array.isArray(message.dataPolicies))
+ return "dataPolicies: array expected";
+ for (var i = 0; i < message.dataPolicies.length; ++i) {
+ var error = $root.google.cloud.bigquery.v2.DataPolicyOption.verify(message.dataPolicies[i], long + 1);
+ if (error)
+ return "dataPolicies." + error;
+ }
+ }
+ if (message.dataPolicyList != null && Object.hasOwnProperty.call(message, "dataPolicyList")) {
+ var error = $root.google.cloud.bigquery.v2.DataPolicyList.verify(message.dataPolicyList, long + 1);
+ if (error)
+ return "dataPolicyList." + error;
+ }
+ if (message.maxLength != null && Object.hasOwnProperty.call(message, "maxLength"))
+ if (!$util.isInteger(message.maxLength) && !(message.maxLength && $util.isInteger(message.maxLength.low) && $util.isInteger(message.maxLength.high)))
+ return "maxLength: integer|Long expected";
+ if (message.precision != null && Object.hasOwnProperty.call(message, "precision"))
+ if (!$util.isInteger(message.precision) && !(message.precision && $util.isInteger(message.precision.low) && $util.isInteger(message.precision.high)))
+ return "precision: integer|Long expected";
+ if (message.scale != null && Object.hasOwnProperty.call(message, "scale"))
+ if (!$util.isInteger(message.scale) && !(message.scale && $util.isInteger(message.scale.low) && $util.isInteger(message.scale.high)))
+ return "scale: integer|Long expected";
+ if (message.timestampPrecision != null && Object.hasOwnProperty.call(message, "timestampPrecision")) {
+ var error = $root.google.protobuf.Int64Value.verify(message.timestampPrecision, long + 1);
+ if (error)
+ return "timestampPrecision." + error;
+ }
+ if (message.roundingMode != null && Object.hasOwnProperty.call(message, "roundingMode"))
+ switch (message.roundingMode) {
+ default:
+ return "roundingMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.collation != null && Object.hasOwnProperty.call(message, "collation")) {
+ var error = $root.google.protobuf.StringValue.verify(message.collation, long + 1);
+ if (error)
+ return "collation." + error;
+ }
+ if (message.defaultValueExpression != null && Object.hasOwnProperty.call(message, "defaultValueExpression")) {
+ var error = $root.google.protobuf.StringValue.verify(message.defaultValueExpression, long + 1);
+ if (error)
+ return "defaultValueExpression." + error;
+ }
+ if (message.rangeElementType != null && Object.hasOwnProperty.call(message, "rangeElementType")) {
+ var error = $root.google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.verify(message.rangeElementType, long + 1);
+ if (error)
+ return "rangeElementType." + error;
+ }
+ if (message.foreignTypeDefinition != null && Object.hasOwnProperty.call(message, "foreignTypeDefinition"))
+ if (!$util.isString(message.foreignTypeDefinition))
+ return "foreignTypeDefinition: string expected";
+ if (message.generatedColumn != null && Object.hasOwnProperty.call(message, "generatedColumn")) {
+ var error = $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.verify(message.generatedColumn, long + 1);
+ if (error)
+ return "generatedColumn." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TableFieldSchema message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema} TableFieldSchema
+ */
+ TableFieldSchema.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.TableFieldSchema)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.TableFieldSchema();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.mode != null)
+ message.mode = String(object.mode);
+ if (object.fields) {
+ if (!Array.isArray(object.fields))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.fields: array expected");
+ message.fields = [];
+ for (var i = 0; i < object.fields.length; ++i) {
+ if (!$util.isObject(object.fields[i]))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.fields: object expected");
+ message.fields[i] = $root.google.cloud.bigquery.v2.TableFieldSchema.fromObject(object.fields[i], long + 1);
+ }
+ }
+ if (object.description != null) {
+ if (!$util.isObject(object.description))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.description: object expected");
+ message.description = $root.google.protobuf.StringValue.fromObject(object.description, long + 1);
+ }
+ if (object.policyTags != null) {
+ if (!$util.isObject(object.policyTags))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.policyTags: object expected");
+ message.policyTags = $root.google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.fromObject(object.policyTags, long + 1);
+ }
+ if (object.dataGovernanceTagsInfo != null) {
+ if (!$util.isObject(object.dataGovernanceTagsInfo))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.dataGovernanceTagsInfo: object expected");
+ message.dataGovernanceTagsInfo = $root.google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.fromObject(object.dataGovernanceTagsInfo, long + 1);
+ }
+ if (object.dataPolicies) {
+ if (!Array.isArray(object.dataPolicies))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.dataPolicies: array expected");
+ message.dataPolicies = [];
+ for (var i = 0; i < object.dataPolicies.length; ++i) {
+ if (!$util.isObject(object.dataPolicies[i]))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.dataPolicies: object expected");
+ message.dataPolicies[i] = $root.google.cloud.bigquery.v2.DataPolicyOption.fromObject(object.dataPolicies[i], long + 1);
+ }
+ }
+ if (object.dataPolicyList != null) {
+ if (!$util.isObject(object.dataPolicyList))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.dataPolicyList: object expected");
+ message.dataPolicyList = $root.google.cloud.bigquery.v2.DataPolicyList.fromObject(object.dataPolicyList, long + 1);
+ }
+ if (object.maxLength != null)
+ if ($util.Long)
+ message.maxLength = $util.Long.fromValue(object.maxLength, false);
+ else if (typeof object.maxLength === "string")
+ message.maxLength = parseInt(object.maxLength, 10);
+ else if (typeof object.maxLength === "number")
+ message.maxLength = object.maxLength;
+ else if (typeof object.maxLength === "object")
+ message.maxLength = new $util.LongBits(object.maxLength.low >>> 0, object.maxLength.high >>> 0).toNumber();
+ if (object.precision != null)
+ if ($util.Long)
+ message.precision = $util.Long.fromValue(object.precision, false);
+ else if (typeof object.precision === "string")
+ message.precision = parseInt(object.precision, 10);
+ else if (typeof object.precision === "number")
+ message.precision = object.precision;
+ else if (typeof object.precision === "object")
+ message.precision = new $util.LongBits(object.precision.low >>> 0, object.precision.high >>> 0).toNumber();
+ if (object.scale != null)
+ if ($util.Long)
+ message.scale = $util.Long.fromValue(object.scale, false);
+ else if (typeof object.scale === "string")
+ message.scale = parseInt(object.scale, 10);
+ else if (typeof object.scale === "number")
+ message.scale = object.scale;
+ else if (typeof object.scale === "object")
+ message.scale = new $util.LongBits(object.scale.low >>> 0, object.scale.high >>> 0).toNumber();
+ if (object.timestampPrecision != null) {
+ if (!$util.isObject(object.timestampPrecision))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.timestampPrecision: object expected");
+ message.timestampPrecision = $root.google.protobuf.Int64Value.fromObject(object.timestampPrecision, long + 1);
+ }
+ switch (object.roundingMode) {
+ default:
+ if (typeof object.roundingMode === "number") {
+ message.roundingMode = object.roundingMode;
+ break;
+ }
+ break;
+ case "ROUNDING_MODE_UNSPECIFIED":
+ case 0:
+ message.roundingMode = 0;
+ break;
+ case "ROUND_HALF_AWAY_FROM_ZERO":
+ case 1:
+ message.roundingMode = 1;
+ break;
+ case "ROUND_HALF_EVEN":
+ case 2:
+ message.roundingMode = 2;
+ break;
+ }
+ if (object.collation != null) {
+ if (!$util.isObject(object.collation))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.collation: object expected");
+ message.collation = $root.google.protobuf.StringValue.fromObject(object.collation, long + 1);
+ }
+ if (object.defaultValueExpression != null) {
+ if (!$util.isObject(object.defaultValueExpression))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.defaultValueExpression: object expected");
+ message.defaultValueExpression = $root.google.protobuf.StringValue.fromObject(object.defaultValueExpression, long + 1);
+ }
+ if (object.rangeElementType != null) {
+ if (!$util.isObject(object.rangeElementType))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.rangeElementType: object expected");
+ message.rangeElementType = $root.google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.fromObject(object.rangeElementType, long + 1);
+ }
+ if (object.foreignTypeDefinition != null)
+ message.foreignTypeDefinition = String(object.foreignTypeDefinition);
+ if (object.generatedColumn != null) {
+ if (!$util.isObject(object.generatedColumn))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.generatedColumn: object expected");
+ message.generatedColumn = $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.fromObject(object.generatedColumn, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TableFieldSchema message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema} message TableFieldSchema
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TableFieldSchema.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.fields = [];
+ object.dataPolicies = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.type = "";
+ object.mode = "";
+ object.description = null;
+ object.policyTags = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.maxLength = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.maxLength = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.precision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.precision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.scale = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.scale = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ object.collation = null;
+ object.defaultValueExpression = null;
+ object.roundingMode = options.enums === String ? "ROUNDING_MODE_UNSPECIFIED" : 0;
+ object.rangeElementType = null;
+ object.foreignTypeDefinition = "";
+ object.timestampPrecision = null;
+ object.generatedColumn = null;
+ object.dataPolicyList = null;
+ object.dataGovernanceTagsInfo = null;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = message.type;
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
+ object.mode = message.mode;
+ if (message.fields && message.fields.length) {
+ object.fields = [];
+ for (var j = 0; j < message.fields.length; ++j)
+ object.fields[j] = $root.google.cloud.bigquery.v2.TableFieldSchema.toObject(message.fields[j], options, q + 1);
+ }
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ object.description = $root.google.protobuf.StringValue.toObject(message.description, options, q + 1);
+ if (message.policyTags != null && Object.hasOwnProperty.call(message, "policyTags"))
+ object.policyTags = $root.google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.toObject(message.policyTags, options, q + 1);
+ if (message.maxLength != null && Object.hasOwnProperty.call(message, "maxLength"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.maxLength = typeof message.maxLength === "number" ? BigInt(message.maxLength) : $util.Long.fromBits(message.maxLength.low >>> 0, message.maxLength.high >>> 0, false).toBigInt();
+ else if (typeof message.maxLength === "number")
+ object.maxLength = options.longs === String ? String(message.maxLength) : message.maxLength;
+ else
+ object.maxLength = options.longs === String ? $util.Long.prototype.toString.call(message.maxLength) : options.longs === Number ? new $util.LongBits(message.maxLength.low >>> 0, message.maxLength.high >>> 0).toNumber() : message.maxLength;
+ if (message.precision != null && Object.hasOwnProperty.call(message, "precision"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.precision = typeof message.precision === "number" ? BigInt(message.precision) : $util.Long.fromBits(message.precision.low >>> 0, message.precision.high >>> 0, false).toBigInt();
+ else if (typeof message.precision === "number")
+ object.precision = options.longs === String ? String(message.precision) : message.precision;
+ else
+ object.precision = options.longs === String ? $util.Long.prototype.toString.call(message.precision) : options.longs === Number ? new $util.LongBits(message.precision.low >>> 0, message.precision.high >>> 0).toNumber() : message.precision;
+ if (message.scale != null && Object.hasOwnProperty.call(message, "scale"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.scale = typeof message.scale === "number" ? BigInt(message.scale) : $util.Long.fromBits(message.scale.low >>> 0, message.scale.high >>> 0, false).toBigInt();
+ else if (typeof message.scale === "number")
+ object.scale = options.longs === String ? String(message.scale) : message.scale;
+ else
+ object.scale = options.longs === String ? $util.Long.prototype.toString.call(message.scale) : options.longs === Number ? new $util.LongBits(message.scale.low >>> 0, message.scale.high >>> 0).toNumber() : message.scale;
+ if (message.collation != null && Object.hasOwnProperty.call(message, "collation"))
+ object.collation = $root.google.protobuf.StringValue.toObject(message.collation, options, q + 1);
+ if (message.defaultValueExpression != null && Object.hasOwnProperty.call(message, "defaultValueExpression"))
+ object.defaultValueExpression = $root.google.protobuf.StringValue.toObject(message.defaultValueExpression, options, q + 1);
+ if (message.roundingMode != null && Object.hasOwnProperty.call(message, "roundingMode"))
+ object.roundingMode = options.enums === String ? $root.google.cloud.bigquery.v2.TableFieldSchema.RoundingMode[message.roundingMode] === undefined ? message.roundingMode : $root.google.cloud.bigquery.v2.TableFieldSchema.RoundingMode[message.roundingMode] : message.roundingMode;
+ if (message.rangeElementType != null && Object.hasOwnProperty.call(message, "rangeElementType"))
+ object.rangeElementType = $root.google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.toObject(message.rangeElementType, options, q + 1);
+ if (message.dataPolicies && message.dataPolicies.length) {
+ object.dataPolicies = [];
+ for (var j = 0; j < message.dataPolicies.length; ++j)
+ object.dataPolicies[j] = $root.google.cloud.bigquery.v2.DataPolicyOption.toObject(message.dataPolicies[j], options, q + 1);
+ }
+ if (message.foreignTypeDefinition != null && Object.hasOwnProperty.call(message, "foreignTypeDefinition"))
+ object.foreignTypeDefinition = message.foreignTypeDefinition;
+ if (message.timestampPrecision != null && Object.hasOwnProperty.call(message, "timestampPrecision"))
+ object.timestampPrecision = $root.google.protobuf.Int64Value.toObject(message.timestampPrecision, options, q + 1);
+ if (message.generatedColumn != null && Object.hasOwnProperty.call(message, "generatedColumn"))
+ object.generatedColumn = $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.toObject(message.generatedColumn, options, q + 1);
+ if (message.dataPolicyList != null && Object.hasOwnProperty.call(message, "dataPolicyList"))
+ object.dataPolicyList = $root.google.cloud.bigquery.v2.DataPolicyList.toObject(message.dataPolicyList, options, q + 1);
+ if (message.dataGovernanceTagsInfo != null && Object.hasOwnProperty.call(message, "dataGovernanceTagsInfo"))
+ object.dataGovernanceTagsInfo = $root.google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.toObject(message.dataGovernanceTagsInfo, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this TableFieldSchema to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TableFieldSchema.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TableFieldSchema
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TableFieldSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.TableFieldSchema";
+ };
+
+ TableFieldSchema.PolicyTagList = (function() {
+
+ /**
+ * Properties of a PolicyTagList.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @interface IPolicyTagList
+ * @property {Array.|null} [names] PolicyTagList names
+ */
+
+ /**
+ * Constructs a new PolicyTagList.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @classdesc Represents a PolicyTagList.
+ * @implements IPolicyTagList
+ * @constructor
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList=} [properties] Properties to set
+ */
+ function PolicyTagList(properties) {
+ this.names = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * PolicyTagList names.
+ * @member {Array.} names
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @instance
+ */
+ PolicyTagList.prototype.names = $util.emptyArray;
+
+ /**
+ * Creates a new PolicyTagList instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList} PolicyTagList instance
+ */
+ PolicyTagList.create = function create(properties) {
+ return new PolicyTagList(properties);
+ };
+
+ /**
+ * Encodes the specified PolicyTagList message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList} message PolicyTagList message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PolicyTagList.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.names != null && message.names.length)
+ for (var i = 0; i < message.names.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PolicyTagList message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IPolicyTagList} message PolicyTagList message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PolicyTagList.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a PolicyTagList message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList} PolicyTagList
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PolicyTagList.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.names && message.names.length))
+ message.names = [];
+ message.names.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PolicyTagList message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList} PolicyTagList
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PolicyTagList.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PolicyTagList message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PolicyTagList.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.names != null && Object.hasOwnProperty.call(message, "names")) {
+ if (!Array.isArray(message.names))
+ return "names: array expected";
+ for (var i = 0; i < message.names.length; ++i)
+ if (!$util.isString(message.names[i]))
+ return "names: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PolicyTagList message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList} PolicyTagList
+ */
+ PolicyTagList.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList();
+ if (object.names) {
+ if (!Array.isArray(object.names))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList.names: array expected");
+ message.names = [];
+ for (var i = 0; i < object.names.length; ++i)
+ message.names[i] = String(object.names[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PolicyTagList message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList} message PolicyTagList
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PolicyTagList.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.names = [];
+ if (message.names && message.names.length) {
+ object.names = [];
+ for (var j = 0; j < message.names.length; ++j)
+ object.names[j] = message.names[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this PolicyTagList to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PolicyTagList.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PolicyTagList
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PolicyTagList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.TableFieldSchema.PolicyTagList";
+ };
+
+ return PolicyTagList;
+ })();
+
+ TableFieldSchema.DataGovernanceTagsInfo = (function() {
+
+ /**
+ * Properties of a DataGovernanceTagsInfo.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @interface IDataGovernanceTagsInfo
+ * @property {Object.|null} [dataGovernanceTags] DataGovernanceTagsInfo dataGovernanceTags
+ */
+
+ /**
+ * Constructs a new DataGovernanceTagsInfo.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @classdesc Represents a DataGovernanceTagsInfo.
+ * @implements IDataGovernanceTagsInfo
+ * @constructor
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo=} [properties] Properties to set
+ */
+ function DataGovernanceTagsInfo(properties) {
+ this.dataGovernanceTags = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DataGovernanceTagsInfo dataGovernanceTags.
+ * @member {Object.} dataGovernanceTags
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @instance
+ */
+ DataGovernanceTagsInfo.prototype.dataGovernanceTags = $util.emptyObject;
+
+ /**
+ * Creates a new DataGovernanceTagsInfo instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo} DataGovernanceTagsInfo instance
+ */
+ DataGovernanceTagsInfo.create = function create(properties) {
+ return new DataGovernanceTagsInfo(properties);
+ };
+
+ /**
+ * Encodes the specified DataGovernanceTagsInfo message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo} message DataGovernanceTagsInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DataGovernanceTagsInfo.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.dataGovernanceTags != null && Object.hasOwnProperty.call(message, "dataGovernanceTags"))
+ for (var keys = Object.keys(message.dataGovernanceTags), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.dataGovernanceTags[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DataGovernanceTagsInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IDataGovernanceTagsInfo} message DataGovernanceTagsInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DataGovernanceTagsInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DataGovernanceTagsInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo} DataGovernanceTagsInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DataGovernanceTagsInfo.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (message.dataGovernanceTags === $util.emptyObject)
+ message.dataGovernanceTags = {};
+ 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, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.dataGovernanceTags, key);
+ message.dataGovernanceTags[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DataGovernanceTagsInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo} DataGovernanceTagsInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DataGovernanceTagsInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DataGovernanceTagsInfo message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DataGovernanceTagsInfo.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.dataGovernanceTags != null && Object.hasOwnProperty.call(message, "dataGovernanceTags")) {
+ if (!$util.isObject(message.dataGovernanceTags))
+ return "dataGovernanceTags: object expected";
+ var key = Object.keys(message.dataGovernanceTags);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.dataGovernanceTags[key[i]]))
+ return "dataGovernanceTags: string{k:string} expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DataGovernanceTagsInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo} DataGovernanceTagsInfo
+ */
+ DataGovernanceTagsInfo.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo();
+ if (object.dataGovernanceTags) {
+ if (!$util.isObject(object.dataGovernanceTags))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo.dataGovernanceTags: object expected");
+ message.dataGovernanceTags = {};
+ for (var keys = Object.keys(object.dataGovernanceTags), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.dataGovernanceTags, keys[i]);
+ message.dataGovernanceTags[keys[i]] = String(object.dataGovernanceTags[keys[i]]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DataGovernanceTagsInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo} message DataGovernanceTagsInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DataGovernanceTagsInfo.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.objects || options.defaults)
+ object.dataGovernanceTags = {};
+ var keys2;
+ if (message.dataGovernanceTags && (keys2 = Object.keys(message.dataGovernanceTags)).length) {
+ object.dataGovernanceTags = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.dataGovernanceTags, keys2[j]);
+ object.dataGovernanceTags[keys2[j]] = message.dataGovernanceTags[keys2[j]];
+ }
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DataGovernanceTagsInfo to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DataGovernanceTagsInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DataGovernanceTagsInfo
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DataGovernanceTagsInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.TableFieldSchema.DataGovernanceTagsInfo";
+ };
+
+ return DataGovernanceTagsInfo;
+ })();
+
+ /**
+ * RoundingMode enum.
+ * @name google.cloud.bigquery.v2.TableFieldSchema.RoundingMode
+ * @enum {number}
+ * @property {number} ROUNDING_MODE_UNSPECIFIED=0 ROUNDING_MODE_UNSPECIFIED value
+ * @property {number} ROUND_HALF_AWAY_FROM_ZERO=1 ROUND_HALF_AWAY_FROM_ZERO value
+ * @property {number} ROUND_HALF_EVEN=2 ROUND_HALF_EVEN value
+ */
+ TableFieldSchema.RoundingMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ROUNDING_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ROUND_HALF_AWAY_FROM_ZERO"] = 1;
+ values[valuesById[2] = "ROUND_HALF_EVEN"] = 2;
+ return values;
+ })();
+
+ TableFieldSchema.FieldElementType = (function() {
+
+ /**
+ * Properties of a FieldElementType.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @interface IFieldElementType
+ * @property {string|null} [type] FieldElementType type
+ */
+
+ /**
+ * Constructs a new FieldElementType.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @classdesc Represents a FieldElementType.
+ * @implements IFieldElementType
+ * @constructor
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType=} [properties] Properties to set
+ */
+ function FieldElementType(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * FieldElementType type.
+ * @member {string} type
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @instance
+ */
+ FieldElementType.prototype.type = "";
+
+ /**
+ * Creates a new FieldElementType instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.FieldElementType} FieldElementType instance
+ */
+ FieldElementType.create = function create(properties) {
+ return new FieldElementType(properties);
+ };
+
+ /**
+ * Encodes the specified FieldElementType message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType} message FieldElementType message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FieldElementType.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FieldElementType message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.FieldElementType.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IFieldElementType} message FieldElementType message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FieldElementType.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a FieldElementType message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.FieldElementType} FieldElementType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FieldElementType.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.TableFieldSchema.FieldElementType();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FieldElementType message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.FieldElementType} FieldElementType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FieldElementType.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FieldElementType message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FieldElementType.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FieldElementType message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.FieldElementType} FieldElementType
+ */
+ FieldElementType.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.TableFieldSchema.FieldElementType)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.FieldElementType: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.TableFieldSchema.FieldElementType();
+ if (object.type != null)
+ message.type = String(object.type);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FieldElementType message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.FieldElementType} message FieldElementType
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FieldElementType.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.type = "";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = message.type;
+ return object;
+ };
+
+ /**
+ * Converts this FieldElementType to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FieldElementType.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FieldElementType
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.FieldElementType
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FieldElementType.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.TableFieldSchema.FieldElementType";
+ };
+
+ return FieldElementType;
+ })();
+
+ TableFieldSchema.GeneratedExpressionInfo = (function() {
+
+ /**
+ * Properties of a GeneratedExpressionInfo.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @interface IGeneratedExpressionInfo
+ * @property {string|null} [generationExpression] GeneratedExpressionInfo generationExpression
+ * @property {boolean|null} [asynchronous] GeneratedExpressionInfo asynchronous
+ * @property {boolean|null} [stored] GeneratedExpressionInfo stored
+ */
+
+ /**
+ * Constructs a new GeneratedExpressionInfo.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @classdesc Represents a GeneratedExpressionInfo.
+ * @implements IGeneratedExpressionInfo
+ * @constructor
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo=} [properties] Properties to set
+ */
+ function GeneratedExpressionInfo(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GeneratedExpressionInfo generationExpression.
+ * @member {string|null|undefined} generationExpression
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @instance
+ */
+ GeneratedExpressionInfo.prototype.generationExpression = null;
+
+ /**
+ * GeneratedExpressionInfo asynchronous.
+ * @member {boolean|null|undefined} asynchronous
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @instance
+ */
+ GeneratedExpressionInfo.prototype.asynchronous = null;
+
+ /**
+ * GeneratedExpressionInfo stored.
+ * @member {boolean|null|undefined} stored
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @instance
+ */
+ GeneratedExpressionInfo.prototype.stored = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(GeneratedExpressionInfo.prototype, "_generationExpression", {
+ get: $util.oneOfGetter($oneOfFields = ["generationExpression"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(GeneratedExpressionInfo.prototype, "_asynchronous", {
+ get: $util.oneOfGetter($oneOfFields = ["asynchronous"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(GeneratedExpressionInfo.prototype, "_stored", {
+ get: $util.oneOfGetter($oneOfFields = ["stored"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new GeneratedExpressionInfo instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo} GeneratedExpressionInfo instance
+ */
+ GeneratedExpressionInfo.create = function create(properties) {
+ return new GeneratedExpressionInfo(properties);
+ };
+
+ /**
+ * Encodes the specified GeneratedExpressionInfo message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo} message GeneratedExpressionInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GeneratedExpressionInfo.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.generationExpression != null && Object.hasOwnProperty.call(message, "generationExpression"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.generationExpression);
+ if (message.asynchronous != null && Object.hasOwnProperty.call(message, "asynchronous"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.asynchronous);
+ if (message.stored != null && Object.hasOwnProperty.call(message, "stored"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.stored);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GeneratedExpressionInfo message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo} message GeneratedExpressionInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GeneratedExpressionInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GeneratedExpressionInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo} GeneratedExpressionInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GeneratedExpressionInfo.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.generationExpression = reader.string();
+ break;
+ }
+ case 2: {
+ message.asynchronous = reader.bool();
+ break;
+ }
+ case 3: {
+ message.stored = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GeneratedExpressionInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo} GeneratedExpressionInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GeneratedExpressionInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GeneratedExpressionInfo message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GeneratedExpressionInfo.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.generationExpression != null && Object.hasOwnProperty.call(message, "generationExpression")) {
+ properties._generationExpression = 1;
+ if (!$util.isString(message.generationExpression))
+ return "generationExpression: string expected";
+ }
+ if (message.asynchronous != null && Object.hasOwnProperty.call(message, "asynchronous")) {
+ properties._asynchronous = 1;
+ if (typeof message.asynchronous !== "boolean")
+ return "asynchronous: boolean expected";
+ }
+ if (message.stored != null && Object.hasOwnProperty.call(message, "stored")) {
+ properties._stored = 1;
+ if (typeof message.stored !== "boolean")
+ return "stored: boolean expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GeneratedExpressionInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo} GeneratedExpressionInfo
+ */
+ GeneratedExpressionInfo.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo();
+ if (object.generationExpression != null)
+ message.generationExpression = String(object.generationExpression);
+ if (object.asynchronous != null)
+ message.asynchronous = Boolean(object.asynchronous);
+ if (object.stored != null)
+ message.stored = Boolean(object.stored);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GeneratedExpressionInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo} message GeneratedExpressionInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GeneratedExpressionInfo.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (message.generationExpression != null && Object.hasOwnProperty.call(message, "generationExpression")) {
+ object.generationExpression = message.generationExpression;
+ if (options.oneofs)
+ object._generationExpression = "generationExpression";
+ }
+ if (message.asynchronous != null && Object.hasOwnProperty.call(message, "asynchronous")) {
+ object.asynchronous = message.asynchronous;
+ if (options.oneofs)
+ object._asynchronous = "asynchronous";
+ }
+ if (message.stored != null && Object.hasOwnProperty.call(message, "stored")) {
+ object.stored = message.stored;
+ if (options.oneofs)
+ object._stored = "stored";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this GeneratedExpressionInfo to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GeneratedExpressionInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GeneratedExpressionInfo
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GeneratedExpressionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo";
+ };
+
+ return GeneratedExpressionInfo;
+ })();
+
+ TableFieldSchema.GeneratedColumn = (function() {
+
+ /**
+ * Properties of a GeneratedColumn.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @interface IGeneratedColumn
+ * @property {google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode|null} [generatedMode] GeneratedColumn generatedMode
+ * @property {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo|null} [generatedExpressionInfo] GeneratedColumn generatedExpressionInfo
+ */
+
+ /**
+ * Constructs a new GeneratedColumn.
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema
+ * @classdesc Represents a GeneratedColumn.
+ * @implements IGeneratedColumn
+ * @constructor
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn=} [properties] Properties to set
+ */
+ function GeneratedColumn(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GeneratedColumn generatedMode.
+ * @member {google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode|null|undefined} generatedMode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @instance
+ */
+ GeneratedColumn.prototype.generatedMode = null;
+
+ /**
+ * GeneratedColumn generatedExpressionInfo.
+ * @member {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedExpressionInfo|null|undefined} generatedExpressionInfo
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @instance
+ */
+ GeneratedColumn.prototype.generatedExpressionInfo = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(GeneratedColumn.prototype, "_generatedMode", {
+ get: $util.oneOfGetter($oneOfFields = ["generatedMode"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * GeneratedColumn definition.
+ * @member {"generatedExpressionInfo"|undefined} definition
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @instance
+ */
+ Object.defineProperty(GeneratedColumn.prototype, "definition", {
+ get: $util.oneOfGetter($oneOfFields = ["generatedExpressionInfo"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new GeneratedColumn instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn} GeneratedColumn instance
+ */
+ GeneratedColumn.create = function create(properties) {
+ return new GeneratedColumn(properties);
+ };
+
+ /**
+ * Encodes the specified GeneratedColumn message. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn} message GeneratedColumn message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GeneratedColumn.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.generatedMode != null && Object.hasOwnProperty.call(message, "generatedMode"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.generatedMode);
+ if (message.generatedExpressionInfo != null && Object.hasOwnProperty.call(message, "generatedExpressionInfo"))
+ $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.encode(message.generatedExpressionInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GeneratedColumn message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.IGeneratedColumn} message GeneratedColumn message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GeneratedColumn.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GeneratedColumn message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn} GeneratedColumn
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GeneratedColumn.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.generatedMode = reader.int32();
+ break;
+ }
+ case 3: {
+ message.generatedExpressionInfo = $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GeneratedColumn message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn} GeneratedColumn
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GeneratedColumn.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GeneratedColumn message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GeneratedColumn.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.generatedMode != null && Object.hasOwnProperty.call(message, "generatedMode")) {
+ properties._generatedMode = 1;
+ switch (message.generatedMode) {
+ default:
+ return "generatedMode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ }
+ if (message.generatedExpressionInfo != null && Object.hasOwnProperty.call(message, "generatedExpressionInfo")) {
+ properties.definition = 1;
+ {
+ var error = $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.verify(message.generatedExpressionInfo, long + 1);
+ if (error)
+ return "generatedExpressionInfo." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GeneratedColumn message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn} GeneratedColumn
+ */
+ GeneratedColumn.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn();
+ switch (object.generatedMode) {
+ default:
+ if (typeof object.generatedMode === "number") {
+ message.generatedMode = object.generatedMode;
+ break;
+ }
+ break;
+ case "GENERATED_MODE_UNSPECIFIED":
+ case 0:
+ message.generatedMode = 0;
+ break;
+ case "GENERATED_ALWAYS":
+ case 1:
+ message.generatedMode = 1;
+ break;
+ case "GENERATED_BY_DEFAULT":
+ case 2:
+ message.generatedMode = 2;
+ break;
+ }
+ if (object.generatedExpressionInfo != null) {
+ if (!$util.isObject(object.generatedExpressionInfo))
+ throw TypeError(".google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.generatedExpressionInfo: object expected");
+ message.generatedExpressionInfo = $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.fromObject(object.generatedExpressionInfo, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GeneratedColumn message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn} message GeneratedColumn
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GeneratedColumn.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (message.generatedMode != null && Object.hasOwnProperty.call(message, "generatedMode")) {
+ object.generatedMode = options.enums === String ? $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode[message.generatedMode] === undefined ? message.generatedMode : $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode[message.generatedMode] : message.generatedMode;
+ if (options.oneofs)
+ object._generatedMode = "generatedMode";
+ }
+ if (message.generatedExpressionInfo != null && Object.hasOwnProperty.call(message, "generatedExpressionInfo")) {
+ object.generatedExpressionInfo = $root.google.cloud.bigquery.v2.TableFieldSchema.GeneratedExpressionInfo.toObject(message.generatedExpressionInfo, options, q + 1);
+ if (options.oneofs)
+ object.definition = "generatedExpressionInfo";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this GeneratedColumn to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GeneratedColumn.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GeneratedColumn
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GeneratedColumn.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn";
+ };
+
+ /**
+ * GeneratedMode enum.
+ * @name google.cloud.bigquery.v2.TableFieldSchema.GeneratedColumn.GeneratedMode
+ * @enum {number}
+ * @property {number} GENERATED_MODE_UNSPECIFIED=0 GENERATED_MODE_UNSPECIFIED value
+ * @property {number} GENERATED_ALWAYS=1 GENERATED_ALWAYS value
+ * @property {number} GENERATED_BY_DEFAULT=2 GENERATED_BY_DEFAULT value
+ */
+ GeneratedColumn.GeneratedMode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "GENERATED_MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "GENERATED_ALWAYS"] = 1;
+ values[valuesById[2] = "GENERATED_BY_DEFAULT"] = 2;
+ return values;
+ })();
+
+ return GeneratedColumn;
+ })();
+
+ return TableFieldSchema;
+ })();
+
+ /**
+ * DecimalTargetType enum.
+ * @name google.cloud.bigquery.v2.DecimalTargetType
+ * @enum {number}
+ * @property {number} DECIMAL_TARGET_TYPE_UNSPECIFIED=0 DECIMAL_TARGET_TYPE_UNSPECIFIED value
+ * @property {number} NUMERIC=1 NUMERIC value
+ * @property {number} BIGNUMERIC=2 BIGNUMERIC value
+ * @property {number} STRING=3 STRING value
+ */
+ v2.DecimalTargetType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DECIMAL_TARGET_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NUMERIC"] = 1;
+ values[valuesById[2] = "BIGNUMERIC"] = 2;
+ values[valuesById[3] = "STRING"] = 3;
+ return values;
+ })();
+
+ v2.ErrorProto = (function() {
+
+ /**
+ * Properties of an ErrorProto.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IErrorProto
+ * @property {string|null} [reason] ErrorProto reason
+ * @property {string|null} [location] ErrorProto location
+ * @property {string|null} [debugInfo] ErrorProto debugInfo
+ * @property {string|null} [message] ErrorProto message
+ */
+
+ /**
+ * Constructs a new ErrorProto.
+ * @memberof google.cloud.bigquery.v2
+ * @classdesc Represents an ErrorProto.
+ * @implements IErrorProto
+ * @constructor
+ * @param {google.cloud.bigquery.v2.IErrorProto=} [properties] Properties to set
+ */
+ function ErrorProto(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ErrorProto reason.
+ * @member {string} reason
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @instance
+ */
+ ErrorProto.prototype.reason = "";
+
+ /**
+ * ErrorProto location.
+ * @member {string} location
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @instance
+ */
+ ErrorProto.prototype.location = "";
+
+ /**
+ * ErrorProto debugInfo.
+ * @member {string} debugInfo
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @instance
+ */
+ ErrorProto.prototype.debugInfo = "";
+
+ /**
+ * ErrorProto message.
+ * @member {string} message
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @instance
+ */
+ ErrorProto.prototype.message = "";
+
+ /**
+ * Creates a new ErrorProto instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {google.cloud.bigquery.v2.IErrorProto=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.v2.ErrorProto} ErrorProto instance
+ */
+ ErrorProto.create = function create(properties) {
+ return new ErrorProto(properties);
+ };
+
+ /**
+ * Encodes the specified ErrorProto message. Does not implicitly {@link google.cloud.bigquery.v2.ErrorProto.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {google.cloud.bigquery.v2.IErrorProto} message ErrorProto message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorProto.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason);
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.location);
+ if (message.debugInfo != null && Object.hasOwnProperty.call(message, "debugInfo"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.debugInfo);
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.message);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ErrorProto message, length delimited. Does not implicitly {@link google.cloud.bigquery.v2.ErrorProto.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {google.cloud.bigquery.v2.IErrorProto} message ErrorProto message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorProto.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an ErrorProto message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.v2.ErrorProto} ErrorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorProto.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.v2.ErrorProto();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.reason = reader.string();
+ break;
+ }
+ case 2: {
+ message.location = reader.string();
+ break;
+ }
+ case 3: {
+ message.debugInfo = reader.string();
+ break;
+ }
+ case 4: {
+ message.message = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ErrorProto message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.v2.ErrorProto} ErrorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorProto.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ErrorProto message.
+ * @function verify
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ErrorProto.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
+ if (!$util.isString(message.reason))
+ return "reason: string expected";
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.debugInfo != null && Object.hasOwnProperty.call(message, "debugInfo"))
+ if (!$util.isString(message.debugInfo))
+ return "debugInfo: string expected";
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an ErrorProto message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.v2.ErrorProto} ErrorProto
+ */
+ ErrorProto.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.bigquery.v2.ErrorProto)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.bigquery.v2.ErrorProto: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.bigquery.v2.ErrorProto();
+ if (object.reason != null)
+ message.reason = String(object.reason);
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.debugInfo != null)
+ message.debugInfo = String(object.debugInfo);
+ if (object.message != null)
+ message.message = String(object.message);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ErrorProto message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {google.cloud.bigquery.v2.ErrorProto} message ErrorProto
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ErrorProto.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.reason = "";
+ object.location = "";
+ object.debugInfo = "";
+ object.message = "";
+ }
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
+ object.reason = message.reason;
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ object.location = message.location;
+ if (message.debugInfo != null && Object.hasOwnProperty.call(message, "debugInfo"))
+ object.debugInfo = message.debugInfo;
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ object.message = message.message;
+ return object;
+ };
+
+ /**
+ * Converts this ErrorProto to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ErrorProto.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ErrorProto
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.v2.ErrorProto
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ErrorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.v2.ErrorProto";
+ };
+
+ return ErrorProto;
+ })();
+
+ v2.ExternalCatalogTableOptions = (function() {
+
+ /**
+ * Properties of an ExternalCatalogTableOptions.
+ * @memberof google.cloud.bigquery.v2
+ * @interface IExternalCatalogTableOptions
+ * @property {Object.