diff --git a/owlbot.py b/owlbot.py index 2b75bdf00..e79cea206 100644 --- a/owlbot.py +++ b/owlbot.py @@ -18,6 +18,7 @@ import os from pathlib import Path from synthtool import _tracked_paths +from typing import AnyStr import shutil logging.basicConfig(level=logging.DEBUG) @@ -25,25 +26,88 @@ staging = Path("owl-bot-staging") if staging.is_dir(): - logging.info(f"Copying files from staging directory ${staging}.") + versions = ['v2'] + versions_admin = [f"admin/{p}" for p in versions] + logging.info(f"Copying files from staging directory {staging}.") + + src_paths = {} + src_files = {} + for version in versions + versions_admin: + src_paths[version] = staging / version + src_files[version] = list([fn for fn in src_paths[version].glob('**/*.*')]) # Copy bigtable library. - # src/index.ts src/v2/index.ts has added AdminClients manually, we don't wanna override it. + # src/index.ts src/admin/v2/index.ts has added AdminClients manually, we don't wanna override it. # src/*.ts is a added layer for the client libraries, they need extra setting in tsconfig.json & tslint.json # Tracking issues: 1. https://github.com/googleapis/nodejs-bigtable/issues/636 # 2. https://github.com/googleapis/nodejs-bigtable/issues/635 - for version in ['v2']: - library = staging / version + for version in versions: + library = src_paths[version] _tracked_paths.add(library) - s.copy([library], excludes=['package.json', 'README.md', 'src/index.ts', 'src/v2/index.ts', 'tsconfig.json', 'tslint.json', '.github/sync-repo-settings.yaml']) + admin_files = filter( + lambda f: str(f).find('_admin') >= 0, + src_files[version] + ) + excludes = [ + 'package.json', + 'README.md', + 'src/index.ts', + 'src/v2/index.ts', + 'tsconfig.json', + 'tslint.json', + '.github/sync-repo-settings.yaml', + '.OwlBot.yaml', + ] + list(admin_files) + logging.info(f"excluding files for non-admin: {excludes}") + s.copy([library], excludes = excludes) - # Copy the admin library. - # Not override system-test for admin/v2, just keep the v2 version. - for version in ['v2']: - library = staging / 'admin' / version + # Copy the admin library pieces and knit them in. + # Don't override system-test for admin/v2, just keep the v2 version. + for version in versions: + admin_version = f"admin/{version}" + library = src_paths[admin_version] + inProtoPath = f"protos/google/bigtable/{admin_version}" + protos = library / inProtoPath + classes = library / 'src' / version + samples = library / 'samples' / 'generated' + tests = library / 'test' _tracked_paths.add(library) - s.copy([library], excludes=['package.json', 'README.md', 'src/index.ts', 'src/v2/index.ts', 'tsconfig.json', 'tslint.json', 'system-test/fixtures/sample/src/index.ts', 'system-test/fixtures/sample/src/index.js', '.github/sync-repo-settings.yaml']) + + # We also have to munge the proto paths in the *_proto_list.json due to making it a level deeper. + # That also applies to the classes themselves. + classesStr = str(classes) + jsons = [fn + for fn + in src_files[admin_version] + if str(fn)[:len(classesStr)] == classesStr] + for jfn in jsons: + logging.info(f"munging json file: {str(jfn)}") + contents = jfn.read_text() + contents = contents.replace("'../..", "'../../..") + contents = contents.replace('"../..', '"../../..') + jfn.write_text(contents) + + # Also to the tests that import stuff from src. ../ -> ../../../ + testsStr = str(tests) + tfns = [fn + for fn + in src_files[admin_version] + if str(fn)[:len(testsStr)] == testsStr] + for tfn in tfns: + logging.info(f"munging test file: {str(tfn)}") + contents = tfn.read_text() + contents = contents.replace("'../", "'../../../") + tfn.write_text(contents) + + os.system(f"mkdir -p {inProtoPath}") + s.copy([protos / '*'], destination=inProtoPath) + os.system(f"mkdir -p src/{admin_version}") + s.copy([classes / '*'], destination=f"src/{admin_version}") + os.system(f"mkdir -p samples/generated/{admin_version}") + s.copy([samples / 'v2' / '*admin*'], destination=f"samples/generated/{admin_version}") + os.system(f"mkdir -p test/{admin_version}") + s.copy([tests / '*admin*.ts'], destination=f"test/{admin_version}") # Replace the client name for generated system-test. system_test_files=['system-test/fixtures/sample/src/index.ts','system-test/fixtures/sample/src/index.js'] diff --git a/protos/google/bigtable/admin/v2/bigtable_table_admin.proto b/protos/google/bigtable/admin/v2/bigtable_table_admin.proto index bc8578cc9..6267fa909 100644 --- a/protos/google/bigtable/admin/v2/bigtable_table_admin.proto +++ b/protos/google/bigtable/admin/v2/bigtable_table_admin.proto @@ -389,7 +389,7 @@ service BigtableTableAdmin { }; } - // Gets the access control policy for a Table or Backup resource. + // Gets the access control policy for a Bigtable resource. // Returns an empty policy if the resource exists but does not have a policy // set. rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) @@ -401,11 +401,19 @@ service BigtableTableAdmin { post: "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy" body: "*" } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:getIamPolicy" + body: "*" + } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:getIamPolicy" + body: "*" + } }; option (google.api.method_signature) = "resource"; } - // Sets the access control policy on a Table or Backup resource. + // Sets the access control policy on a Bigtable resource. // Replaces any existing policy. rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { @@ -416,11 +424,19 @@ service BigtableTableAdmin { post: "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy" body: "*" } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:setIamPolicy" + body: "*" + } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:setIamPolicy" + body: "*" + } }; option (google.api.method_signature) = "resource,policy"; } - // Returns permissions that the caller has on the specified Table or Backup + // Returns permissions that the caller has on the specified Bigtable // resource. rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { @@ -431,9 +447,72 @@ service BigtableTableAdmin { post: "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions" body: "*" } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:testIamPermissions" + body: "*" + } + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:testIamPermissions" + body: "*" + } }; option (google.api.method_signature) = "resource,permissions"; } + + // Creates a new schema bundle in the specified table. + rpc CreateSchemaBundle(CreateSchemaBundleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles" + body: "schema_bundle" + }; + option (google.api.method_signature) = + "parent,schema_bundle_id,schema_bundle"; + option (google.longrunning.operation_info) = { + response_type: "SchemaBundle" + metadata_type: "CreateSchemaBundleMetadata" + }; + } + + // Updates a schema bundle in the specified table. + rpc UpdateSchemaBundle(UpdateSchemaBundleRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{schema_bundle.name=projects/*/instances/*/tables/*/schemaBundles/*}" + body: "schema_bundle" + }; + option (google.api.method_signature) = "schema_bundle,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "SchemaBundle" + metadata_type: "UpdateSchemaBundleMetadata" + }; + } + + // Gets metadata information about the specified schema bundle. + rpc GetSchemaBundle(GetSchemaBundleRequest) returns (SchemaBundle) { + option (google.api.http) = { + get: "/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all schema bundles associated with the specified table. + rpc ListSchemaBundles(ListSchemaBundlesRequest) + returns (ListSchemaBundlesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a schema bundle in the specified table. + rpc DeleteSchemaBundle(DeleteSchemaBundleRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}" + }; + option (google.api.method_signature) = "name"; + } } // The request for @@ -1307,7 +1386,8 @@ message CreateAuthorizedViewRequest { // The metadata for the Operation returned by CreateAuthorizedView. message CreateAuthorizedViewMetadata { - // The request that prompted the initiation of this CreateInstance operation. + // The request that prompted the initiation of this CreateAuthorizedView + // operation. CreateAuthorizedViewRequest original_request = 1; // The time at which the original request was received. @@ -1344,8 +1424,8 @@ message ListAuthorizedViewsRequest { // Optional. The value of `next_page_token` returned by a previous call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The resource_view to be applied to the returned views' fields. - // Default to NAME_ONLY. + // Optional. The resource_view to be applied to the returned AuthorizedViews' + // fields. Default to NAME_ONLY. AuthorizedView.ResponseView view = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1384,8 +1464,8 @@ message GetAuthorizedViewRequest { message UpdateAuthorizedViewRequest { // Required. The AuthorizedView to update. The `name` in `authorized_view` is // used to identify the AuthorizedView. AuthorizedView name must in this - // format - // projects//instances//tables//authorizedViews/ + // format: + // `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. AuthorizedView authorized_view = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. The list of fields to update. @@ -1436,3 +1516,145 @@ message DeleteAuthorizedViewRequest { // returned. string etag = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// The request for +// [CreateSchemaBundle][google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle]. +message CreateSchemaBundleRequest { + // Required. The parent resource where this schema bundle will be created. + // Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Table" + } + ]; + + // Required. The unique ID to use for the schema bundle, which will become the + // final component of the schema bundle's resource name. + string schema_bundle_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The schema bundle to create. + SchemaBundle schema_bundle = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The metadata for the Operation returned by +// [CreateSchemaBundle][google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle]. +message CreateSchemaBundleMetadata { + // The unique name identifying this schema bundle. + // Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + string name = 1; + + // The time at which this operation started. + google.protobuf.Timestamp start_time = 2; + + // If set, the time at which this operation finished or was canceled. + google.protobuf.Timestamp end_time = 3; +} + +// The request for +// [UpdateSchemaBundle][google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle]. +message UpdateSchemaBundleRequest { + // Required. The schema bundle to update. + // + // The schema bundle's `name` field is used to identify the schema bundle to + // update. Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + SchemaBundle schema_bundle = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, ignore the safety checks when updating the Schema Bundle. + // The safety checks are: + // - The new Schema Bundle is backwards compatible with the existing Schema + // Bundle. + bool ignore_warnings = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The metadata for the Operation returned by +// [UpdateSchemaBundle][google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle]. +message UpdateSchemaBundleMetadata { + // The unique name identifying this schema bundle. + // Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + string name = 1; + + // The time at which this operation started. + google.protobuf.Timestamp start_time = 2; + + // If set, the time at which this operation finished or was canceled. + google.protobuf.Timestamp end_time = 3; +} + +// The request for +// [GetSchemaBundle][google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle]. +message GetSchemaBundleRequest { + // Required. The unique name of the schema bundle to retrieve. + // Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/SchemaBundle" + } + ]; +} + +// The request for +// [ListSchemaBundles][google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles]. +message ListSchemaBundlesRequest { + // Required. The parent, which owns this collection of schema bundles. + // Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "bigtableadmin.googleapis.com/SchemaBundle" + } + ]; + + // The maximum number of schema bundles to return. If the value is positive, + // the server may return at most this value. If unspecified, the server will + // return the maximum allowed page size. + int32 page_size = 2; + + // A page token, received from a previous `ListSchemaBundles` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListSchemaBundles` must + // match the call that provided the page token. + string page_token = 3; +} + +// The response for +// [ListSchemaBundles][google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles]. +message ListSchemaBundlesResponse { + // The schema bundles from the specified table. + repeated SchemaBundle schema_bundles = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// The request for +// [DeleteSchemaBundle][google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle]. +message DeleteSchemaBundleRequest { + // Required. The unique name of the schema bundle to delete. + // Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/SchemaBundle" + } + ]; + + // Optional. The etag of the schema bundle. + // If this is provided, it must match the server's etag. The server + // returns an ABORTED error on a mismatched etag. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/protos/google/bigtable/admin/v2/instance.proto b/protos/google/bigtable/admin/v2/instance.proto index aacccd555..5baa006a9 100644 --- a/protos/google/bigtable/admin/v2/instance.proto +++ b/protos/google/bigtable/admin/v2/instance.proto @@ -114,6 +114,21 @@ message Instance { // Output only. Reserved for future use. optional bool satisfies_pzi = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // - "123/environment": "production", + // - "123/costCenter": "marketing" + // + // Tags and Labels (above) are both used to bind metadata to resources, with + // different use-cases. See + // https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + // in-depth overview on the difference between tags and labels. + map tags = 12 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // The Autoscaling targets for a Cluster. These determine the recommended nodes. @@ -482,6 +497,9 @@ message LogicalView { // up-to-date value before proceeding. The server returns an ABORTED error on // a mismatched etag. string etag = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set to true to make the LogicalView protected against deletion. + bool deletion_protection = 6 [(google.api.field_behavior) = OPTIONAL]; } // A materialized view object that can be referenced in SQL queries. diff --git a/protos/google/bigtable/admin/v2/table.proto b/protos/google/bigtable/admin/v2/table.proto index 35d2a0c64..68913d057 100644 --- a/protos/google/bigtable/admin/v2/table.proto +++ b/protos/google/bigtable/admin/v2/table.proto @@ -637,3 +637,51 @@ enum RestoreSourceType { // A backup was used as the source of the restore. BACKUP = 1; } + +// Represents a protobuf schema. +message ProtoSchema { + // Required. Contains a protobuf-serialized + // [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + // which could include multiple proto files. + // To generate it, [install](https://grpc.io/docs/protoc-installation/) and + // run `protoc` with + // `--include_imports` and `--descriptor_set_out`. For example, to generate + // for moon/shot/app.proto, run + // ``` + // $protoc --proto_path=/app_path --proto_path=/lib_path \ + // --include_imports \ + // --descriptor_set_out=descriptors.pb \ + // moon/shot/app.proto + // ``` + // For more details, see protobuffer [self + // description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + bytes proto_descriptors = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A named collection of related schemas. +message SchemaBundle { + option (google.api.resource) = { + type: "bigtableadmin.googleapis.com/SchemaBundle" + pattern: "projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}" + plural: "schemaBundles" + singular: "schemaBundle" + }; + + // Identifier. The unique name identifying this schema bundle. + // Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // The type of this schema bundle. The oneof case cannot change after + // creation. + oneof type { + // Schema for Protobufs. + ProtoSchema proto_schema = 2; + } + + // Optional. The etag for this schema bundle. + // This may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. The server + // returns an ABORTED error on a mismatched etag. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/protos/google/bigtable/admin/v2/types.proto b/protos/google/bigtable/admin/v2/types.proto index 81fcd674d..adafda693 100644 --- a/protos/google/bigtable/admin/v2/types.proto +++ b/protos/google/bigtable/admin/v2/types.proto @@ -297,6 +297,28 @@ message Type { Encoding encoding = 2; } + // A protobuf message type. + // Values of type `Proto` are stored in `Value.bytes_value`. + message Proto { + // The ID of the schema bundle that this proto is defined in. + string schema_bundle_id = 1; + + // The fully qualified name of the protobuf message, including package. In + // the format of "foo.bar.Message". + string message_name = 2; + } + + // A protobuf enum type. + // Values of type `Enum` are stored in `Value.int_value`. + message Enum { + // The ID of the schema bundle that this enum is defined in. + string schema_bundle_id = 1; + + // The fully qualified name of the protobuf enum message, including package. + // In the format of "foo.bar.EnumMessage". + string enum_name = 2; + } + // An ordered list of elements of a given type. // Values of type `Array` are stored in `Value.array_value`. message Array { @@ -413,5 +435,11 @@ message Type { // Map Map map_type = 4; + + // Proto + Proto proto_type = 13; + + // Enum + Enum enum_type = 14; } } diff --git a/protos/google/bigtable/v2/bigtable.proto b/protos/google/bigtable/v2/bigtable.proto index d2bb06a5a..66536293e 100644 --- a/protos/google/bigtable/v2/bigtable.proto +++ b/protos/google/bigtable/v2/bigtable.proto @@ -77,6 +77,10 @@ service Bigtable { post: "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows" body: "*" } + additional_bindings { + post: "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows" + body: "*" + } }; option (google.api.routing) = { routing_parameters { @@ -86,7 +90,11 @@ service Bigtable { routing_parameters { field: "app_profile_id" } routing_parameters { field: "authorized_view_name" - path_template: "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + path_template: "{table_name=projects/*/instances/*/tables/*}/**" + } + routing_parameters { + field: "materialized_view_name" + path_template: "{name=projects/*/instances/*}/**" } }; option (google.api.method_signature) = "table_name"; @@ -104,6 +112,9 @@ service Bigtable { additional_bindings { get: "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys" } + additional_bindings { + get: "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys" + } }; option (google.api.routing) = { routing_parameters { @@ -113,7 +124,11 @@ service Bigtable { routing_parameters { field: "app_profile_id" } routing_parameters { field: "authorized_view_name" - path_template: "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + path_template: "{table_name=projects/*/instances/*/tables/*}/**" + } + routing_parameters { + field: "materialized_view_name" + path_template: "{name=projects/*/instances/*}/**" } }; option (google.api.method_signature) = "table_name"; @@ -139,7 +154,7 @@ service Bigtable { routing_parameters { field: "app_profile_id" } routing_parameters { field: "authorized_view_name" - path_template: "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + path_template: "{table_name=projects/*/instances/*/tables/*}/**" } }; option (google.api.method_signature) = "table_name,row_key,mutations"; @@ -167,7 +182,7 @@ service Bigtable { routing_parameters { field: "app_profile_id" } routing_parameters { field: "authorized_view_name" - path_template: "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + path_template: "{table_name=projects/*/instances/*/tables/*}/**" } }; option (google.api.method_signature) = "table_name,entries"; @@ -193,7 +208,7 @@ service Bigtable { routing_parameters { field: "app_profile_id" } routing_parameters { field: "authorized_view_name" - path_template: "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + path_template: "{table_name=projects/*/instances/*/tables/*}/**" } }; option (google.api.method_signature) = @@ -243,7 +258,7 @@ service Bigtable { routing_parameters { field: "app_profile_id" } routing_parameters { field: "authorized_view_name" - path_template: "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + path_template: "{table_name=projects/*/instances/*/tables/*}/**" } }; option (google.api.method_signature) = "table_name,row_key,rules"; @@ -251,10 +266,10 @@ service Bigtable { "table_name,row_key,rules,app_profile_id"; } - // NOTE: This API is intended to be used by Apache Beam BigtableIO. // Returns the current list of partitions that make up the table's // change stream. The union of partitions will cover the entire keyspace. // Partitions can be read with `ReadChangeStream`. + // NOTE: This API is only intended to be used by Apache Beam BigtableIO. rpc GenerateInitialChangeStreamPartitions( GenerateInitialChangeStreamPartitionsRequest) returns (stream GenerateInitialChangeStreamPartitionsResponse) { @@ -266,10 +281,10 @@ service Bigtable { option (google.api.method_signature) = "table_name,app_profile_id"; } - // NOTE: This API is intended to be used by Apache Beam BigtableIO. // Reads changes from a table's change stream. Changes will // reflect both user-initiated mutations and mutations that are caused by // garbage collection. + // NOTE: This API is only intended to be used by Apache Beam BigtableIO. rpc ReadChangeStream(ReadChangeStreamRequest) returns (stream ReadChangeStreamResponse) { option (google.api.http) = { @@ -478,26 +493,11 @@ message ReadRowsResponse { // key, allowing the client to skip that work on a retry. bytes last_scanned_row_key = 2; - // - // If requested, provide enhanced query performance statistics. The semantics - // dictate: - // * request_stats is empty on every (streamed) response, except - // * request_stats has non-empty information after all chunks have been - // streamed, where the ReadRowsResponse message only contains - // request_stats. - // * For example, if a read request would have returned an empty - // response instead a single ReadRowsResponse is streamed with empty - // chunks and request_stats filled. - // - // Visually, response messages will stream as follows: - // ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}} - // \______________________/ \________________________________/ - // Primary response Trailer of RequestStats info - // - // Or if the read did not return any values: - // {chunks: [], request_stats: {...}} - // \________________________________/ - // Trailer of RequestStats info + // If requested, return enhanced query performance statistics. The field + // request_stats is empty in a streamed response unless the ReadRowsResponse + // message contains request_stats in the last message of the stream. Always + // returned when requested, even when the read request returns an empty + // response. RequestStats request_stats = 3; } @@ -597,6 +597,10 @@ message MutateRowRequest { // are applied in order, meaning that earlier mutations can be masked by later // ones. Must contain at least one entry and at most 100000. repeated Mutation mutations = 3 [(google.api.field_behavior) = REQUIRED]; + + // If set consistently across retries, prevents this mutation from being + // double applied to aggregate column families within a 15m window. + Idempotency idempotency = 8; } // Response message for Bigtable.MutateRow. @@ -613,6 +617,10 @@ message MutateRowsRequest { // Mutations are applied in order, meaning that earlier mutations can be // masked by later ones. You must specify at least one mutation. repeated Mutation mutations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If set consistently across retries, prevents this mutation from being + // double applied to aggregate column families within a 15m window. + Idempotency idempotency = 3; } // Optional. The unique name of the table to which the mutations should be @@ -691,7 +699,7 @@ message RateLimitInfo { // target load should be 80. After adjusting, the client should ignore // `factor` until another `period` has passed. // - // The client can measure its load using any unit that's comparable over time + // The client can measure its load using any unit that's comparable over time. // For example, QPS can be used as long as each request involves a similar // amount of work. double factor = 2; @@ -815,7 +823,8 @@ message ReadModifyWriteRowRequest { // Required. Rules specifying how the specified row's contents are to be // transformed into writes. Entries are applied in order, meaning that earlier - // rules will affect the results of later ones. + // rules will affect the results of later ones. At least one entry must be + // specified, and there can be at most 100000 rules. repeated ReadModifyWriteRule rules = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -888,10 +897,10 @@ message ReadChangeStreamRequest { // the position. Tokens are delivered on the stream as part of `Heartbeat` // and `CloseStream` messages. // - // If a single token is provided, the token’s partition must exactly match - // the request’s partition. If multiple tokens are provided, as in the case + // If a single token is provided, the token's partition must exactly match + // the request's partition. If multiple tokens are provided, as in the case // of a partition merge, the union of the token partitions must exactly - // cover the request’s partition. Otherwise, INVALID_ARGUMENT will be + // cover the request's partition. Otherwise, INVALID_ARGUMENT will be // returned. StreamContinuationTokens continuation_tokens = 6; } @@ -999,8 +1008,8 @@ message ReadChangeStreamResponse { // An estimate of the commit timestamp that is usually lower than or equal // to any timestamp for a record that will be delivered in the future on the // stream. It is possible that, under particular circumstances that a future - // record has a timestamp is is lower than a previously seen timestamp. For - // an example usage see + // record has a timestamp that is lower than a previously seen timestamp. + // For an example usage see // https://beam.apache.org/documentation/basics/#watermarks google.protobuf.Timestamp estimated_low_watermark = 10; } @@ -1015,8 +1024,8 @@ message ReadChangeStreamResponse { // An estimate of the commit timestamp that is usually lower than or equal // to any timestamp for a record that will be delivered in the future on the // stream. It is possible that, under particular circumstances that a future - // record has a timestamp is is lower than a previously seen timestamp. For - // an example usage see + // record has a timestamp that is lower than a previously seen timestamp. + // For an example usage see // https://beam.apache.org/documentation/basics/#watermarks google.protobuf.Timestamp estimated_low_watermark = 2; } @@ -1027,17 +1036,19 @@ message ReadChangeStreamResponse { // If `continuation_tokens` & `new_partitions` are present, then a change in // partitioning requires the client to open a new stream for each token to // resume reading. Example: - // [B, D) ends - // | - // v - // new_partitions: [A, C) [C, E) - // continuation_tokens.partitions: [B,C) [C,D) - // ^---^ ^---^ - // ^ ^ - // | | - // | StreamContinuationToken 2 - // | - // StreamContinuationToken 1 + // + // [B, D) ends + // | + // v + // new_partitions: [A, C) [C, E) + // continuation_tokens.partitions: [B,C) [C,D) + // ^---^ ^---^ + // ^ ^ + // | | + // | StreamContinuationToken 2 + // | + // StreamContinuationToken 1 + // // To read the new partition [A,C), supply the continuation tokens whose // ranges cover the new partition, for example ContinuationToken[A,B) & // ContinuationToken[B,C). diff --git a/protos/google/bigtable/v2/data.proto b/protos/google/bigtable/v2/data.proto index 924b3f262..8320a0c22 100644 --- a/protos/google/bigtable/v2/data.proto +++ b/protos/google/bigtable/v2/data.proto @@ -138,6 +138,7 @@ message Value { bool bool_value = 10; // Represents a typed value transported as a floating point number. + // Does not support NaN or infinities. double float_value = 11; // Represents a typed value transported as a timestamp. @@ -836,3 +837,20 @@ message PartialResultSet { // buffer size may still need to be increased if the estimate is too low. int32 estimated_batch_size = 4; } + +// Parameters on mutations where clients want to ensure idempotency (i.e. +// at-most-once semantics). This is currently only needed for certain aggregate +// types. +message Idempotency { + // Unique token used to identify replays of this mutation. + // Must be at least 8 bytes long. + bytes token = 1; + + // Client-assigned timestamp when the mutation's first attempt was sent. + // Used to reject mutations that arrive after idempotency protection may + // have expired. May cause spurious rejections if clock skew is too high. + // + // Leave unset or zero to always accept the mutation, at the risk of + // double counting if the protection for previous attempts has expired. + google.protobuf.Timestamp start_time = 2; +} diff --git a/protos/google/bigtable/v2/request_stats.proto b/protos/google/bigtable/v2/request_stats.proto index 1e4fc5706..0049f8f73 100644 --- a/protos/google/bigtable/v2/request_stats.proto +++ b/protos/google/bigtable/v2/request_stats.proto @@ -98,8 +98,7 @@ message FullReadStatsView { // RequestStats is the container for additional information pertaining to a // single request, helpful for evaluating the performance of the sent request. -// Currently, there are the following supported methods: -// * google.bigtable.v2.ReadRows +// Currently, the following method is supported: google.bigtable.v2.ReadRows message RequestStats { // Information pertaining to each request type received. The type is chosen // based on the requested view. diff --git a/protos/google/bigtable/v2/response_params.proto b/protos/google/bigtable/v2/response_params.proto index e3da4f228..076ddbd1b 100644 --- a/protos/google/bigtable/v2/response_params.proto +++ b/protos/google/bigtable/v2/response_params.proto @@ -25,9 +25,6 @@ option php_namespace = "Google\\Cloud\\Bigtable\\V2"; option ruby_package = "Google::Cloud::Bigtable::V2"; // Response metadata proto -// This is an experimental feature that will be used to get zone_id and -// cluster_id from response trailers to tag the metrics. This should not be -// used by customers directly message ResponseParams { // The cloud bigtable zone associated with the cluster. optional string zone_id = 1; diff --git a/protos/google/bigtable/v2/types.proto b/protos/google/bigtable/v2/types.proto index e70ee766a..607cf2bea 100644 --- a/protos/google/bigtable/v2/types.proto +++ b/protos/google/bigtable/v2/types.proto @@ -31,36 +31,41 @@ option ruby_package = "Google::Cloud::Bigtable::V2"; // familiarity and consistency across products and features. // // For compatibility with Bigtable's existing untyped APIs, each `Type` includes -// an `Encoding` which describes how to convert to/from the underlying data. +// an `Encoding` which describes how to convert to or from the underlying data. // -// Each encoding also defines the following properties: +// Each encoding can operate in one of two modes: // -// * Order-preserving: Does the encoded value sort consistently with the -// original typed value? Note that Bigtable will always sort data based on -// the raw encoded value, *not* the decoded type. -// - Example: BYTES values sort in the same order as their raw encodings. -// - Counterexample: Encoding INT64 as a fixed-width decimal string does -// *not* preserve sort order when dealing with negative numbers. -// `INT64(1) > INT64(-1)`, but `STRING("-00001") > STRING("00001)`. -// * Self-delimiting: If we concatenate two encoded values, can we always tell -// where the first one ends and the second one begins? -// - Example: If we encode INT64s to fixed-width STRINGs, the first value -// will always contain exactly N digits, possibly preceded by a sign. -// - Counterexample: If we concatenate two UTF-8 encoded STRINGs, we have -// no way to tell where the first one ends. -// * Compatibility: Which other systems have matching encoding schemes? For -// example, does this encoding have a GoogleSQL equivalent? HBase? Java? +// - Sorted: In this mode, Bigtable guarantees that `Encode(X) <= Encode(Y)` +// if and only if `X <= Y`. This is useful anywhere sort order is important, +// for example when encoding keys. +// - Distinct: In this mode, Bigtable guarantees that if `X != Y` then +// `Encode(X) != Encode(Y)`. However, the converse is not guaranteed. For +// example, both `{'foo': '1', 'bar': '2'}` and `{'bar': '2', 'foo': '1'}` +// are valid encodings of the same JSON value. +// +// The API clearly documents which mode is used wherever an encoding can be +// configured. Each encoding also documents which values are supported in which +// modes. For example, when encoding INT64 as a numeric STRING, negative numbers +// cannot be encoded in sorted mode. This is because `INT64(1) > INT64(-1)`, but +// `STRING("-00001") > STRING("00001")`. message Type { // Bytes // Values of type `Bytes` are stored in `Value.bytes_value`. message Bytes { - // Rules used to convert to/from lower level types. + // Rules used to convert to or from lower level types. message Encoding { - // Leaves the value "as-is" - // * Order-preserving? Yes - // * Self-delimiting? No - // * Compatibility? N/A - message Raw {} + // Leaves the value as-is. + // + // Sorted mode: all values are supported. + // + // Distinct mode: all values are supported. + message Raw { + // If set, allows NULL values to be encoded as the empty string "". + // + // The actual empty string, or any value which only contains the + // null byte `0x00`, has one more null byte appended. + bool escape_nulls = 1; + } // Which encoding to use. oneof encoding { @@ -69,28 +74,47 @@ message Type { } } - // The encoding to use when converting to/from lower level types. + // The encoding to use when converting to or from lower level types. Encoding encoding = 1; } // String // Values of type `String` are stored in `Value.string_value`. message String { - // Rules used to convert to/from lower level types. + // Rules used to convert to or from lower level types. message Encoding { // Deprecated: prefer the equivalent `Utf8Bytes`. message Utf8Raw { option deprecated = true; } - // UTF-8 encoding - // * Order-preserving? Yes (code point order) - // * Self-delimiting? No - // * Compatibility? - // - BigQuery Federation `TEXT` encoding - // - HBase `Bytes.toBytes` - // - Java `String#getBytes(StandardCharsets.UTF_8)` - message Utf8Bytes {} + // UTF-8 encoding. + // + // Sorted mode: + // - All values are supported. + // - Code point order is preserved. + // + // Distinct mode: all values are supported. + // + // Compatible with: + // + // - BigQuery `TEXT` encoding + // - HBase `Bytes.toBytes` + // - Java `String#getBytes(StandardCharsets.UTF_8)` + message Utf8Bytes { + // Single-character escape sequence used to support NULL values. + // + // If set, allows NULL values to be encoded as the empty string "". + // + // The actual empty string, or any value where every character equals + // `null_escape_char`, has one more `null_escape_char` appended. + // + // If `null_escape_char` is set and does not equal the ASCII null + // character `0x00`, then the encoding will not support sorted mode. + // + // . + string null_escape_char = 1; + } // Which encoding to use. oneof encoding { @@ -102,36 +126,50 @@ message Type { } } - // The encoding to use when converting to/from lower level types. + // The encoding to use when converting to or from lower level types. Encoding encoding = 1; } // Int64 // Values of type `Int64` are stored in `Value.int_value`. message Int64 { - // Rules used to convert to/from lower level types. + // Rules used to convert to or from lower level types. message Encoding { - // Encodes the value as an 8-byte big endian twos complement `Bytes` - // value. - // * Order-preserving? No (positive values only) - // * Self-delimiting? Yes - // * Compatibility? - // - BigQuery Federation `BINARY` encoding - // - HBase `Bytes.toBytes` - // - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` + // Encodes the value as an 8-byte big-endian two's complement value. + // + // Sorted mode: non-negative values are supported. + // + // Distinct mode: all values are supported. + // + // Compatible with: + // + // - BigQuery `BINARY` encoding + // - HBase `Bytes.toBytes` + // - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` message BigEndianBytes { // Deprecated: ignored if set. - Bytes bytes_type = 1; + Bytes bytes_type = 1 [deprecated = true]; } + // Encodes the value in a variable length binary format of up to 10 bytes. + // Values that are closer to zero use fewer bytes. + // + // Sorted mode: all values are supported. + // + // Distinct mode: all values are supported. + message OrderedCodeBytes {} + // Which encoding to use. oneof encoding { // Use `BigEndianBytes` encoding. BigEndianBytes big_endian_bytes = 1; + + // Use `OrderedCodeBytes` encoding. + OrderedCodeBytes ordered_code_bytes = 2; } } - // The encoding to use when converting to/from lower level types. + // The encoding to use when converting to or from lower level types. Encoding encoding = 1; } @@ -149,7 +187,24 @@ message Type { // Timestamp // Values of type `Timestamp` are stored in `Value.timestamp_value`. - message Timestamp {} + message Timestamp { + // Rules used to convert to or from lower level types. + message Encoding { + // Which encoding to use. + oneof encoding { + // Encodes the number of microseconds since the Unix epoch using the + // given `Int64` encoding. Values must be microsecond-aligned. + // + // Compatible with: + // + // - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + Int64.Encoding unix_micros_int64 = 1; + } + } + + // The encoding to use when converting to or from lower level types. + Encoding encoding = 1; + } // Date // Values of type `Date` are stored in `Value.date_value`. @@ -170,8 +225,119 @@ message Type { Type type = 2; } + // Rules used to convert to or from lower level types. + message Encoding { + // Uses the encoding of `fields[0].type` as-is. + // Only valid if `fields.size == 1`. + message Singleton {} + + // Fields are encoded independently and concatenated with a configurable + // `delimiter` in between. + // + // A struct with no fields defined is encoded as a single `delimiter`. + // + // Sorted mode: + // + // - Fields are encoded in sorted mode. + // - Encoded field values must not contain any bytes <= `delimiter[0]` + // - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + // `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + // + // Distinct mode: + // + // - Fields are encoded in distinct mode. + // - Encoded field values must not contain `delimiter[0]`. + message DelimitedBytes { + // Byte sequence used to delimit concatenated fields. The delimiter must + // contain at least 1 character and at most 50 characters. + bytes delimiter = 1; + } + + // Fields are encoded independently and concatenated with the fixed byte + // pair `{0x00, 0x01}` in between. + // + // Any null `(0x00)` byte in an encoded field is replaced by the fixed + // byte pair `{0x00, 0xFF}`. + // + // Fields that encode to the empty string "" have special handling: + // + // - If *every* field encodes to "", or if the STRUCT has no fields + // defined, then the STRUCT is encoded as the fixed byte pair + // `{0x00, 0x00}`. + // - Otherwise, the STRUCT only encodes until the last non-empty field, + // omitting any trailing empty fields. Any empty fields that aren't + // omitted are replaced with the fixed byte pair `{0x00, 0x00}`. + // + // Examples: + // + // ``` + // - STRUCT() -> "\00\00" + // - STRUCT("") -> "\00\00" + // - STRUCT("", "") -> "\00\00" + // - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" + // - STRUCT("A", "") -> "A" + // - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" + // - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" + // ``` + // + // + // Since null bytes are always escaped, this encoding can cause size + // blowup for encodings like `Int64.BigEndianBytes` that are likely to + // produce many such bytes. + // + // Sorted mode: + // + // - Fields are encoded in sorted mode. + // - All values supported by the field encodings are allowed + // - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + // `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + // + // Distinct mode: + // + // - Fields are encoded in distinct mode. + // - All values supported by the field encodings are allowed. + message OrderedCodeBytes {} + + // Which encoding to use. + oneof encoding { + // Use `Singleton` encoding. + Singleton singleton = 1; + + // Use `DelimitedBytes` encoding. + DelimitedBytes delimited_bytes = 2; + + // User `OrderedCodeBytes` encoding. + OrderedCodeBytes ordered_code_bytes = 3; + } + } + // The names and types of the fields in this struct. repeated Field fields = 1; + + // The encoding to use when converting to or from lower level types. + Encoding encoding = 2; + } + + // A protobuf message type. + // Values of type `Proto` are stored in `Value.bytes_value`. + message Proto { + // The ID of the schema bundle that this proto is defined in. + string schema_bundle_id = 1; + + // The fully qualified name of the protobuf message, including package. In + // the format of "foo.bar.Message". + string message_name = 2; + } + + // A protobuf enum type. + // Values of type `Enum` are stored in `Value.int_value`. + message Enum { + // The ID of the schema bundle that this enum is defined in. + string schema_bundle_id = 1; + + // The fully qualified name of the protobuf enum message, including package. + // In the format of "foo.bar.EnumMessage". + string enum_name = 2; } // An ordered list of elements of a given type. @@ -199,9 +365,9 @@ message Type { // A value that combines incremental updates into a summarized value. // - // Data is never directly written or read using type `Aggregate`. Writes will - // provide either the `input_type` or `state_type`, and reads will always - // return the `state_type` . + // Data is never directly written or read using type `Aggregate`. Writes + // provide either the `input_type` or `state_type`, and reads always return + // the `state_type` . message Aggregate { // Computes the sum of the input values. // Allowed input: `Int64` @@ -227,14 +393,13 @@ message Type { // Special state conversions: `Int64` (the unique count estimate) message HyperLogLogPlusPlusUniqueCount {} - // Type of the inputs that are accumulated by this `Aggregate`, which must - // specify a full encoding. + // Type of the inputs that are accumulated by this `Aggregate`. // Use `AddInput` mutations to accumulate new inputs. Type input_type = 1; // Output only. Type that holds the internal accumulator state for the // `Aggregate`. This is a function of the `input_type` and `aggregator` - // chosen, and will always specify a full encoding. + // chosen. Type state_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Which aggregator function to use. The configured types must match. @@ -290,5 +455,11 @@ message Type { // Map Map map_type = 4; + + // Proto + Proto proto_type = 13; + + // Enum + Enum enum_type = 14; } } diff --git a/protos/protos.d.ts b/protos/protos.d.ts index cf33904dd..74fb0050c 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -5285,6 +5285,9 @@ export namespace google { /** Instance satisfiesPzi */ satisfiesPzi?: (boolean|null); + + /** Instance tags */ + tags?: ({ [k: string]: string }|null); } /** Represents an Instance. */ @@ -5320,6 +5323,9 @@ export namespace google { /** Instance satisfiesPzi. */ public satisfiesPzi?: (boolean|null); + /** Instance tags. */ + public tags: { [k: string]: string }; + /** * Creates a new Instance instance using the specified properties. * @param [properties] Properties to set @@ -6885,6 +6891,9 @@ export namespace google { /** LogicalView etag */ etag?: (string|null); + + /** LogicalView deletionProtection */ + deletionProtection?: (boolean|null); } /** Represents a LogicalView. */ @@ -6905,6 +6914,9 @@ export namespace google { /** LogicalView etag. */ public etag: string; + /** LogicalView deletionProtection. */ + public deletionProtection: boolean; + /** * Creates a new LogicalView instance using the specified properties. * @param [properties] Properties to set @@ -7653,6 +7665,76 @@ export namespace google { * @returns Promise */ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise; + + /** + * Calls CreateSchemaBundle. + * @param request CreateSchemaBundleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createSchemaBundle(request: google.bigtable.admin.v2.ICreateSchemaBundleRequest, callback: google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundleCallback): void; + + /** + * Calls CreateSchemaBundle. + * @param request CreateSchemaBundleRequest message or plain object + * @returns Promise + */ + public createSchemaBundle(request: google.bigtable.admin.v2.ICreateSchemaBundleRequest): Promise; + + /** + * Calls UpdateSchemaBundle. + * @param request UpdateSchemaBundleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateSchemaBundle(request: google.bigtable.admin.v2.IUpdateSchemaBundleRequest, callback: google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundleCallback): void; + + /** + * Calls UpdateSchemaBundle. + * @param request UpdateSchemaBundleRequest message or plain object + * @returns Promise + */ + public updateSchemaBundle(request: google.bigtable.admin.v2.IUpdateSchemaBundleRequest): Promise; + + /** + * Calls GetSchemaBundle. + * @param request GetSchemaBundleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SchemaBundle + */ + public getSchemaBundle(request: google.bigtable.admin.v2.IGetSchemaBundleRequest, callback: google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundleCallback): void; + + /** + * Calls GetSchemaBundle. + * @param request GetSchemaBundleRequest message or plain object + * @returns Promise + */ + public getSchemaBundle(request: google.bigtable.admin.v2.IGetSchemaBundleRequest): Promise; + + /** + * Calls ListSchemaBundles. + * @param request ListSchemaBundlesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSchemaBundlesResponse + */ + public listSchemaBundles(request: google.bigtable.admin.v2.IListSchemaBundlesRequest, callback: google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundlesCallback): void; + + /** + * Calls ListSchemaBundles. + * @param request ListSchemaBundlesRequest message or plain object + * @returns Promise + */ + public listSchemaBundles(request: google.bigtable.admin.v2.IListSchemaBundlesRequest): Promise; + + /** + * Calls DeleteSchemaBundle. + * @param request DeleteSchemaBundleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteSchemaBundle(request: google.bigtable.admin.v2.IDeleteSchemaBundleRequest, callback: google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundleCallback): void; + + /** + * Calls DeleteSchemaBundle. + * @param request DeleteSchemaBundleRequest message or plain object + * @returns Promise + */ + public deleteSchemaBundle(request: google.bigtable.admin.v2.IDeleteSchemaBundleRequest): Promise; } namespace BigtableTableAdmin { @@ -7866,6 +7948,41 @@ export namespace google { * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createSchemaBundle}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateSchemaBundleCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateSchemaBundle}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateSchemaBundleCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSchemaBundle}. + * @param error Error, if any + * @param [response] SchemaBundle + */ + type GetSchemaBundleCallback = (error: (Error|null), response?: google.bigtable.admin.v2.SchemaBundle) => void; + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSchemaBundles}. + * @param error Error, if any + * @param [response] ListSchemaBundlesResponse + */ + type ListSchemaBundlesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListSchemaBundlesResponse) => void; + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSchemaBundle}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSchemaBundleCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } /** Properties of a RestoreTableRequest. */ @@ -12886,3944 +13003,3252 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RestoreInfo. */ - interface IRestoreInfo { + /** Properties of a CreateSchemaBundleRequest. */ + interface ICreateSchemaBundleRequest { - /** RestoreInfo sourceType */ - sourceType?: (google.bigtable.admin.v2.RestoreSourceType|keyof typeof google.bigtable.admin.v2.RestoreSourceType|null); + /** CreateSchemaBundleRequest parent */ + parent?: (string|null); - /** RestoreInfo backupInfo */ - backupInfo?: (google.bigtable.admin.v2.IBackupInfo|null); + /** CreateSchemaBundleRequest schemaBundleId */ + schemaBundleId?: (string|null); + + /** CreateSchemaBundleRequest schemaBundle */ + schemaBundle?: (google.bigtable.admin.v2.ISchemaBundle|null); } - /** Represents a RestoreInfo. */ - class RestoreInfo implements IRestoreInfo { + /** Represents a CreateSchemaBundleRequest. */ + class CreateSchemaBundleRequest implements ICreateSchemaBundleRequest { /** - * Constructs a new RestoreInfo. + * Constructs a new CreateSchemaBundleRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.IRestoreInfo); + constructor(properties?: google.bigtable.admin.v2.ICreateSchemaBundleRequest); - /** RestoreInfo sourceType. */ - public sourceType: (google.bigtable.admin.v2.RestoreSourceType|keyof typeof google.bigtable.admin.v2.RestoreSourceType); + /** CreateSchemaBundleRequest parent. */ + public parent: string; - /** RestoreInfo backupInfo. */ - public backupInfo?: (google.bigtable.admin.v2.IBackupInfo|null); + /** CreateSchemaBundleRequest schemaBundleId. */ + public schemaBundleId: string; - /** RestoreInfo sourceInfo. */ - public sourceInfo?: "backupInfo"; + /** CreateSchemaBundleRequest schemaBundle. */ + public schemaBundle?: (google.bigtable.admin.v2.ISchemaBundle|null); /** - * Creates a new RestoreInfo instance using the specified properties. + * Creates a new CreateSchemaBundleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RestoreInfo instance + * @returns CreateSchemaBundleRequest instance */ - public static create(properties?: google.bigtable.admin.v2.IRestoreInfo): google.bigtable.admin.v2.RestoreInfo; + public static create(properties?: google.bigtable.admin.v2.ICreateSchemaBundleRequest): google.bigtable.admin.v2.CreateSchemaBundleRequest; /** - * Encodes the specified RestoreInfo message. Does not implicitly {@link google.bigtable.admin.v2.RestoreInfo.verify|verify} messages. - * @param message RestoreInfo message or plain object to encode + * Encodes the specified CreateSchemaBundleRequest message. Does not implicitly {@link google.bigtable.admin.v2.CreateSchemaBundleRequest.verify|verify} messages. + * @param message CreateSchemaBundleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.IRestoreInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.ICreateSchemaBundleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RestoreInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.RestoreInfo.verify|verify} messages. - * @param message RestoreInfo message or plain object to encode + * Encodes the specified CreateSchemaBundleRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.CreateSchemaBundleRequest.verify|verify} messages. + * @param message CreateSchemaBundleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.IRestoreInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.ICreateSchemaBundleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestoreInfo message from the specified reader or buffer. + * Decodes a CreateSchemaBundleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RestoreInfo + * @returns CreateSchemaBundleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.RestoreInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.CreateSchemaBundleRequest; /** - * Decodes a RestoreInfo message from the specified reader or buffer, length delimited. + * Decodes a CreateSchemaBundleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestoreInfo + * @returns CreateSchemaBundleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.RestoreInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.CreateSchemaBundleRequest; /** - * Verifies a RestoreInfo message. + * Verifies a CreateSchemaBundleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RestoreInfo message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSchemaBundleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestoreInfo + * @returns CreateSchemaBundleRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.RestoreInfo; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.CreateSchemaBundleRequest; /** - * Creates a plain object from a RestoreInfo message. Also converts values to other types if specified. - * @param message RestoreInfo + * Creates a plain object from a CreateSchemaBundleRequest message. Also converts values to other types if specified. + * @param message CreateSchemaBundleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.RestoreInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.CreateSchemaBundleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestoreInfo to JSON. + * Converts this CreateSchemaBundleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RestoreInfo + * Gets the default type url for CreateSchemaBundleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ChangeStreamConfig. */ - interface IChangeStreamConfig { + /** Properties of a CreateSchemaBundleMetadata. */ + interface ICreateSchemaBundleMetadata { - /** ChangeStreamConfig retentionPeriod */ - retentionPeriod?: (google.protobuf.IDuration|null); + /** CreateSchemaBundleMetadata name */ + name?: (string|null); + + /** CreateSchemaBundleMetadata startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** CreateSchemaBundleMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ChangeStreamConfig. */ - class ChangeStreamConfig implements IChangeStreamConfig { + /** Represents a CreateSchemaBundleMetadata. */ + class CreateSchemaBundleMetadata implements ICreateSchemaBundleMetadata { /** - * Constructs a new ChangeStreamConfig. + * Constructs a new CreateSchemaBundleMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.IChangeStreamConfig); + constructor(properties?: google.bigtable.admin.v2.ICreateSchemaBundleMetadata); - /** ChangeStreamConfig retentionPeriod. */ - public retentionPeriod?: (google.protobuf.IDuration|null); + /** CreateSchemaBundleMetadata name. */ + public name: string; + + /** CreateSchemaBundleMetadata startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** CreateSchemaBundleMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ChangeStreamConfig instance using the specified properties. + * Creates a new CreateSchemaBundleMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeStreamConfig instance + * @returns CreateSchemaBundleMetadata instance */ - public static create(properties?: google.bigtable.admin.v2.IChangeStreamConfig): google.bigtable.admin.v2.ChangeStreamConfig; + public static create(properties?: google.bigtable.admin.v2.ICreateSchemaBundleMetadata): google.bigtable.admin.v2.CreateSchemaBundleMetadata; /** - * Encodes the specified ChangeStreamConfig message. Does not implicitly {@link google.bigtable.admin.v2.ChangeStreamConfig.verify|verify} messages. - * @param message ChangeStreamConfig message or plain object to encode + * Encodes the specified CreateSchemaBundleMetadata message. Does not implicitly {@link google.bigtable.admin.v2.CreateSchemaBundleMetadata.verify|verify} messages. + * @param message CreateSchemaBundleMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.IChangeStreamConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.ICreateSchemaBundleMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeStreamConfig message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ChangeStreamConfig.verify|verify} messages. - * @param message ChangeStreamConfig message or plain object to encode + * Encodes the specified CreateSchemaBundleMetadata message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.CreateSchemaBundleMetadata.verify|verify} messages. + * @param message CreateSchemaBundleMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.IChangeStreamConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.ICreateSchemaBundleMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeStreamConfig message from the specified reader or buffer. + * Decodes a CreateSchemaBundleMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeStreamConfig + * @returns CreateSchemaBundleMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.ChangeStreamConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.CreateSchemaBundleMetadata; /** - * Decodes a ChangeStreamConfig message from the specified reader or buffer, length delimited. + * Decodes a CreateSchemaBundleMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeStreamConfig + * @returns CreateSchemaBundleMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.ChangeStreamConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.CreateSchemaBundleMetadata; /** - * Verifies a ChangeStreamConfig message. + * Verifies a CreateSchemaBundleMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChangeStreamConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSchemaBundleMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeStreamConfig + * @returns CreateSchemaBundleMetadata */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.ChangeStreamConfig; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.CreateSchemaBundleMetadata; /** - * Creates a plain object from a ChangeStreamConfig message. Also converts values to other types if specified. - * @param message ChangeStreamConfig + * Creates a plain object from a CreateSchemaBundleMetadata message. Also converts values to other types if specified. + * @param message CreateSchemaBundleMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.ChangeStreamConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.CreateSchemaBundleMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeStreamConfig to JSON. + * Converts this CreateSchemaBundleMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChangeStreamConfig + * Gets the default type url for CreateSchemaBundleMetadata * @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 name */ - name?: (string|null); - - /** Table clusterStates */ - clusterStates?: ({ [k: string]: google.bigtable.admin.v2.Table.IClusterState }|null); - - /** Table columnFamilies */ - columnFamilies?: ({ [k: string]: google.bigtable.admin.v2.IColumnFamily }|null); - - /** Table granularity */ - granularity?: (google.bigtable.admin.v2.Table.TimestampGranularity|keyof typeof google.bigtable.admin.v2.Table.TimestampGranularity|null); + /** Properties of an UpdateSchemaBundleRequest. */ + interface IUpdateSchemaBundleRequest { - /** Table restoreInfo */ - restoreInfo?: (google.bigtable.admin.v2.IRestoreInfo|null); - - /** Table changeStreamConfig */ - changeStreamConfig?: (google.bigtable.admin.v2.IChangeStreamConfig|null); - - /** Table deletionProtection */ - deletionProtection?: (boolean|null); + /** UpdateSchemaBundleRequest schemaBundle */ + schemaBundle?: (google.bigtable.admin.v2.ISchemaBundle|null); - /** Table automatedBackupPolicy */ - automatedBackupPolicy?: (google.bigtable.admin.v2.Table.IAutomatedBackupPolicy|null); + /** UpdateSchemaBundleRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** Table rowKeySchema */ - rowKeySchema?: (google.bigtable.admin.v2.Type.IStruct|null); + /** UpdateSchemaBundleRequest ignoreWarnings */ + ignoreWarnings?: (boolean|null); } - /** Represents a Table. */ - class Table implements ITable { + /** Represents an UpdateSchemaBundleRequest. */ + class UpdateSchemaBundleRequest implements IUpdateSchemaBundleRequest { /** - * Constructs a new Table. + * Constructs a new UpdateSchemaBundleRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.ITable); - - /** Table name. */ - public name: string; - - /** Table clusterStates. */ - public clusterStates: { [k: string]: google.bigtable.admin.v2.Table.IClusterState }; + constructor(properties?: google.bigtable.admin.v2.IUpdateSchemaBundleRequest); - /** Table columnFamilies. */ - public columnFamilies: { [k: string]: google.bigtable.admin.v2.IColumnFamily }; - - /** Table granularity. */ - public granularity: (google.bigtable.admin.v2.Table.TimestampGranularity|keyof typeof google.bigtable.admin.v2.Table.TimestampGranularity); - - /** Table restoreInfo. */ - public restoreInfo?: (google.bigtable.admin.v2.IRestoreInfo|null); - - /** Table changeStreamConfig. */ - public changeStreamConfig?: (google.bigtable.admin.v2.IChangeStreamConfig|null); - - /** Table deletionProtection. */ - public deletionProtection: boolean; - - /** Table automatedBackupPolicy. */ - public automatedBackupPolicy?: (google.bigtable.admin.v2.Table.IAutomatedBackupPolicy|null); + /** UpdateSchemaBundleRequest schemaBundle. */ + public schemaBundle?: (google.bigtable.admin.v2.ISchemaBundle|null); - /** Table rowKeySchema. */ - public rowKeySchema?: (google.bigtable.admin.v2.Type.IStruct|null); + /** UpdateSchemaBundleRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** Table automatedBackupConfig. */ - public automatedBackupConfig?: "automatedBackupPolicy"; + /** UpdateSchemaBundleRequest ignoreWarnings. */ + public ignoreWarnings: boolean; /** - * Creates a new Table instance using the specified properties. + * Creates a new UpdateSchemaBundleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Table instance + * @returns UpdateSchemaBundleRequest instance */ - public static create(properties?: google.bigtable.admin.v2.ITable): google.bigtable.admin.v2.Table; + public static create(properties?: google.bigtable.admin.v2.IUpdateSchemaBundleRequest): google.bigtable.admin.v2.UpdateSchemaBundleRequest; /** - * Encodes the specified Table message. Does not implicitly {@link google.bigtable.admin.v2.Table.verify|verify} messages. - * @param message Table message or plain object to encode + * Encodes the specified UpdateSchemaBundleRequest message. Does not implicitly {@link google.bigtable.admin.v2.UpdateSchemaBundleRequest.verify|verify} messages. + * @param message UpdateSchemaBundleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.IUpdateSchemaBundleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.verify|verify} messages. - * @param message Table message or plain object to encode + * Encodes the specified UpdateSchemaBundleRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.UpdateSchemaBundleRequest.verify|verify} messages. + * @param message UpdateSchemaBundleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.IUpdateSchemaBundleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes an UpdateSchemaBundleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Table + * @returns UpdateSchemaBundleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Table; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.UpdateSchemaBundleRequest; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes an UpdateSchemaBundleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Table + * @returns UpdateSchemaBundleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Table; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.UpdateSchemaBundleRequest; /** - * Verifies a Table message. + * Verifies an UpdateSchemaBundleRequest message. * @param message Plain object 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. + * Creates an UpdateSchemaBundleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Table + * @returns UpdateSchemaBundleRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Table; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.UpdateSchemaBundleRequest; /** - * Creates a plain object from a Table message. Also converts values to other types if specified. - * @param message Table + * Creates a plain object from an UpdateSchemaBundleRequest message. Also converts values to other types if specified. + * @param message UpdateSchemaBundleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.UpdateSchemaBundleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Table to JSON. + * Converts this UpdateSchemaBundleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Table + * Gets the default type url for UpdateSchemaBundleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Table { + /** Properties of an UpdateSchemaBundleMetadata. */ + interface IUpdateSchemaBundleMetadata { - /** Properties of a ClusterState. */ - interface IClusterState { + /** UpdateSchemaBundleMetadata name */ + name?: (string|null); - /** ClusterState replicationState */ - replicationState?: (google.bigtable.admin.v2.Table.ClusterState.ReplicationState|keyof typeof google.bigtable.admin.v2.Table.ClusterState.ReplicationState|null); + /** UpdateSchemaBundleMetadata startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** ClusterState encryptionInfo */ - encryptionInfo?: (google.bigtable.admin.v2.IEncryptionInfo[]|null); - } + /** UpdateSchemaBundleMetadata endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } - /** Represents a ClusterState. */ - class ClusterState implements IClusterState { + /** Represents an UpdateSchemaBundleMetadata. */ + class UpdateSchemaBundleMetadata implements IUpdateSchemaBundleMetadata { - /** - * Constructs a new ClusterState. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Table.IClusterState); + /** + * Constructs a new UpdateSchemaBundleMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IUpdateSchemaBundleMetadata); - /** ClusterState replicationState. */ - public replicationState: (google.bigtable.admin.v2.Table.ClusterState.ReplicationState|keyof typeof google.bigtable.admin.v2.Table.ClusterState.ReplicationState); + /** UpdateSchemaBundleMetadata name. */ + public name: string; - /** ClusterState encryptionInfo. */ - public encryptionInfo: google.bigtable.admin.v2.IEncryptionInfo[]; + /** UpdateSchemaBundleMetadata startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new ClusterState instance using the specified properties. - * @param [properties] Properties to set - * @returns ClusterState instance - */ - public static create(properties?: google.bigtable.admin.v2.Table.IClusterState): google.bigtable.admin.v2.Table.ClusterState; + /** UpdateSchemaBundleMetadata endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified ClusterState message. Does not implicitly {@link google.bigtable.admin.v2.Table.ClusterState.verify|verify} messages. - * @param message ClusterState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Table.IClusterState, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UpdateSchemaBundleMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSchemaBundleMetadata instance + */ + public static create(properties?: google.bigtable.admin.v2.IUpdateSchemaBundleMetadata): google.bigtable.admin.v2.UpdateSchemaBundleMetadata; - /** - * Encodes the specified ClusterState message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.ClusterState.verify|verify} messages. - * @param message ClusterState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Table.IClusterState, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateSchemaBundleMetadata message. Does not implicitly {@link google.bigtable.admin.v2.UpdateSchemaBundleMetadata.verify|verify} messages. + * @param message UpdateSchemaBundleMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IUpdateSchemaBundleMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ClusterState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClusterState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Table.ClusterState; + /** + * Encodes the specified UpdateSchemaBundleMetadata message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.UpdateSchemaBundleMetadata.verify|verify} messages. + * @param message UpdateSchemaBundleMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IUpdateSchemaBundleMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ClusterState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ClusterState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Table.ClusterState; + /** + * Decodes an UpdateSchemaBundleMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSchemaBundleMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.UpdateSchemaBundleMetadata; - /** - * Verifies a ClusterState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an UpdateSchemaBundleMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSchemaBundleMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.UpdateSchemaBundleMetadata; - /** - * Creates a ClusterState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClusterState - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Table.ClusterState; + /** + * Verifies an UpdateSchemaBundleMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a ClusterState message. Also converts values to other types if specified. - * @param message ClusterState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Table.ClusterState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an UpdateSchemaBundleMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSchemaBundleMetadata + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.UpdateSchemaBundleMetadata; - /** - * Converts this ClusterState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an UpdateSchemaBundleMetadata message. Also converts values to other types if specified. + * @param message UpdateSchemaBundleMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.UpdateSchemaBundleMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ClusterState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this UpdateSchemaBundleMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace ClusterState { + /** + * Gets the default type url for UpdateSchemaBundleMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ReplicationState enum. */ - enum ReplicationState { - STATE_NOT_KNOWN = 0, - INITIALIZING = 1, - PLANNED_MAINTENANCE = 2, - UNPLANNED_MAINTENANCE = 3, - READY = 4, - READY_OPTIMIZING = 5 - } - } + /** Properties of a GetSchemaBundleRequest. */ + interface IGetSchemaBundleRequest { - /** TimestampGranularity enum. */ - enum TimestampGranularity { - TIMESTAMP_GRANULARITY_UNSPECIFIED = 0, - MILLIS = 1 - } + /** GetSchemaBundleRequest name */ + name?: (string|null); + } - /** View enum. */ - enum View { - VIEW_UNSPECIFIED = 0, - NAME_ONLY = 1, - SCHEMA_VIEW = 2, - REPLICATION_VIEW = 3, - ENCRYPTION_VIEW = 5, - FULL = 4 - } + /** Represents a GetSchemaBundleRequest. */ + class GetSchemaBundleRequest implements IGetSchemaBundleRequest { - /** Properties of an AutomatedBackupPolicy. */ - interface IAutomatedBackupPolicy { + /** + * Constructs a new GetSchemaBundleRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IGetSchemaBundleRequest); - /** AutomatedBackupPolicy retentionPeriod */ - retentionPeriod?: (google.protobuf.IDuration|null); + /** GetSchemaBundleRequest name. */ + public name: string; - /** AutomatedBackupPolicy frequency */ - frequency?: (google.protobuf.IDuration|null); - } + /** + * Creates a new GetSchemaBundleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaBundleRequest instance + */ + public static create(properties?: google.bigtable.admin.v2.IGetSchemaBundleRequest): google.bigtable.admin.v2.GetSchemaBundleRequest; - /** Represents an AutomatedBackupPolicy. */ - class AutomatedBackupPolicy implements IAutomatedBackupPolicy { + /** + * Encodes the specified GetSchemaBundleRequest message. Does not implicitly {@link google.bigtable.admin.v2.GetSchemaBundleRequest.verify|verify} messages. + * @param message GetSchemaBundleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IGetSchemaBundleRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new AutomatedBackupPolicy. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Table.IAutomatedBackupPolicy); + /** + * Encodes the specified GetSchemaBundleRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GetSchemaBundleRequest.verify|verify} messages. + * @param message GetSchemaBundleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IGetSchemaBundleRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutomatedBackupPolicy retentionPeriod. */ - public retentionPeriod?: (google.protobuf.IDuration|null); + /** + * Decodes a GetSchemaBundleRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaBundleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.GetSchemaBundleRequest; - /** AutomatedBackupPolicy frequency. */ - public frequency?: (google.protobuf.IDuration|null); + /** + * Decodes a GetSchemaBundleRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaBundleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.GetSchemaBundleRequest; - /** - * Creates a new AutomatedBackupPolicy instance using the specified properties. - * @param [properties] Properties to set - * @returns AutomatedBackupPolicy instance - */ - public static create(properties?: google.bigtable.admin.v2.Table.IAutomatedBackupPolicy): google.bigtable.admin.v2.Table.AutomatedBackupPolicy; + /** + * Verifies a GetSchemaBundleRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified AutomatedBackupPolicy message. Does not implicitly {@link google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify|verify} messages. - * @param message AutomatedBackupPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Table.IAutomatedBackupPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a GetSchemaBundleRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaBundleRequest + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.GetSchemaBundleRequest; - /** - * Encodes the specified AutomatedBackupPolicy message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify|verify} messages. - * @param message AutomatedBackupPolicy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Table.IAutomatedBackupPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a GetSchemaBundleRequest message. Also converts values to other types if specified. + * @param message GetSchemaBundleRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.GetSchemaBundleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an AutomatedBackupPolicy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutomatedBackupPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Table.AutomatedBackupPolicy; + /** + * Converts this GetSchemaBundleRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes an AutomatedBackupPolicy message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomatedBackupPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Table.AutomatedBackupPolicy; + /** + * Gets the default type url for GetSchemaBundleRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies an AutomatedBackupPolicy message. - * @param message Plain 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 AutomatedBackupPolicy message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutomatedBackupPolicy - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Table.AutomatedBackupPolicy; - - /** - * Creates a plain object from an AutomatedBackupPolicy message. Also converts values to other types if specified. - * @param message AutomatedBackupPolicy - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Table.AutomatedBackupPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AutomatedBackupPolicy to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AutomatedBackupPolicy - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an AuthorizedView. */ - interface IAuthorizedView { - - /** AuthorizedView name */ - name?: (string|null); + /** Properties of a ListSchemaBundlesRequest. */ + interface IListSchemaBundlesRequest { - /** AuthorizedView subsetView */ - subsetView?: (google.bigtable.admin.v2.AuthorizedView.ISubsetView|null); + /** ListSchemaBundlesRequest parent */ + parent?: (string|null); - /** AuthorizedView etag */ - etag?: (string|null); + /** ListSchemaBundlesRequest pageSize */ + pageSize?: (number|null); - /** AuthorizedView deletionProtection */ - deletionProtection?: (boolean|null); + /** ListSchemaBundlesRequest pageToken */ + pageToken?: (string|null); } - /** Represents an AuthorizedView. */ - class AuthorizedView implements IAuthorizedView { + /** Represents a ListSchemaBundlesRequest. */ + class ListSchemaBundlesRequest implements IListSchemaBundlesRequest { /** - * Constructs a new AuthorizedView. + * Constructs a new ListSchemaBundlesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.IAuthorizedView); - - /** AuthorizedView name. */ - public name: string; + constructor(properties?: google.bigtable.admin.v2.IListSchemaBundlesRequest); - /** AuthorizedView subsetView. */ - public subsetView?: (google.bigtable.admin.v2.AuthorizedView.ISubsetView|null); - - /** AuthorizedView etag. */ - public etag: string; + /** ListSchemaBundlesRequest parent. */ + public parent: string; - /** AuthorizedView deletionProtection. */ - public deletionProtection: boolean; + /** ListSchemaBundlesRequest pageSize. */ + public pageSize: number; - /** AuthorizedView authorizedView. */ - public authorizedView?: "subsetView"; + /** ListSchemaBundlesRequest pageToken. */ + public pageToken: string; /** - * Creates a new AuthorizedView instance using the specified properties. + * Creates a new ListSchemaBundlesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AuthorizedView instance + * @returns ListSchemaBundlesRequest instance */ - public static create(properties?: google.bigtable.admin.v2.IAuthorizedView): google.bigtable.admin.v2.AuthorizedView; + public static create(properties?: google.bigtable.admin.v2.IListSchemaBundlesRequest): google.bigtable.admin.v2.ListSchemaBundlesRequest; /** - * Encodes the specified AuthorizedView message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.verify|verify} messages. - * @param message AuthorizedView message or plain object to encode + * Encodes the specified ListSchemaBundlesRequest message. Does not implicitly {@link google.bigtable.admin.v2.ListSchemaBundlesRequest.verify|verify} messages. + * @param message ListSchemaBundlesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.IAuthorizedView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.IListSchemaBundlesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AuthorizedView message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.verify|verify} messages. - * @param message AuthorizedView message or plain object to encode + * Encodes the specified ListSchemaBundlesRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ListSchemaBundlesRequest.verify|verify} messages. + * @param message ListSchemaBundlesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.IAuthorizedView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.IListSchemaBundlesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AuthorizedView message from the specified reader or buffer. + * Decodes a ListSchemaBundlesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AuthorizedView + * @returns ListSchemaBundlesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.AuthorizedView; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.ListSchemaBundlesRequest; /** - * Decodes an AuthorizedView message from the specified reader or buffer, length delimited. + * Decodes a ListSchemaBundlesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AuthorizedView + * @returns ListSchemaBundlesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.AuthorizedView; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.ListSchemaBundlesRequest; /** - * Verifies an AuthorizedView message. + * Verifies a ListSchemaBundlesRequest message. * @param message Plain 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 AuthorizedView message from a plain object. Also converts values to their respective internal types. + * Creates a ListSchemaBundlesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AuthorizedView + * @returns ListSchemaBundlesRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.AuthorizedView; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.ListSchemaBundlesRequest; /** - * Creates a plain object from an AuthorizedView message. Also converts values to other types if specified. - * @param message AuthorizedView + * Creates a plain object from a ListSchemaBundlesRequest message. Also converts values to other types if specified. + * @param message ListSchemaBundlesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.AuthorizedView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.ListSchemaBundlesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AuthorizedView to JSON. + * Converts this ListSchemaBundlesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AuthorizedView + * Gets the default type url for ListSchemaBundlesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AuthorizedView { - - /** Properties of a FamilySubsets. */ - interface IFamilySubsets { + /** Properties of a ListSchemaBundlesResponse. */ + interface IListSchemaBundlesResponse { - /** FamilySubsets qualifiers */ - qualifiers?: (Uint8Array[]|null); + /** ListSchemaBundlesResponse schemaBundles */ + schemaBundles?: (google.bigtable.admin.v2.ISchemaBundle[]|null); - /** FamilySubsets qualifierPrefixes */ - qualifierPrefixes?: (Uint8Array[]|null); - } + /** ListSchemaBundlesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a FamilySubsets. */ - class FamilySubsets implements IFamilySubsets { + /** Represents a ListSchemaBundlesResponse. */ + class ListSchemaBundlesResponse implements IListSchemaBundlesResponse { - /** - * Constructs a new FamilySubsets. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets); + /** + * Constructs a new ListSchemaBundlesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IListSchemaBundlesResponse); - /** FamilySubsets qualifiers. */ - public qualifiers: Uint8Array[]; + /** ListSchemaBundlesResponse schemaBundles. */ + public schemaBundles: google.bigtable.admin.v2.ISchemaBundle[]; - /** FamilySubsets qualifierPrefixes. */ - public qualifierPrefixes: Uint8Array[]; + /** ListSchemaBundlesResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a new FamilySubsets instance using the specified properties. - * @param [properties] Properties to set - * @returns FamilySubsets instance - */ - public static create(properties?: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets): google.bigtable.admin.v2.AuthorizedView.FamilySubsets; + /** + * Creates a new ListSchemaBundlesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSchemaBundlesResponse instance + */ + public static create(properties?: google.bigtable.admin.v2.IListSchemaBundlesResponse): google.bigtable.admin.v2.ListSchemaBundlesResponse; - /** - * Encodes the specified FamilySubsets message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify|verify} messages. - * @param message FamilySubsets message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListSchemaBundlesResponse message. Does not implicitly {@link google.bigtable.admin.v2.ListSchemaBundlesResponse.verify|verify} messages. + * @param message ListSchemaBundlesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IListSchemaBundlesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FamilySubsets message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify|verify} messages. - * @param message FamilySubsets message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListSchemaBundlesResponse message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ListSchemaBundlesResponse.verify|verify} messages. + * @param message ListSchemaBundlesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IListSchemaBundlesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FamilySubsets message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FamilySubsets - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.AuthorizedView.FamilySubsets; + /** + * Decodes a ListSchemaBundlesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSchemaBundlesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.ListSchemaBundlesResponse; - /** - * Decodes a FamilySubsets message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FamilySubsets - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.AuthorizedView.FamilySubsets; + /** + * Decodes a ListSchemaBundlesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSchemaBundlesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.ListSchemaBundlesResponse; - /** - * Verifies a FamilySubsets message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a ListSchemaBundlesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a FamilySubsets message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FamilySubsets - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.AuthorizedView.FamilySubsets; + /** + * Creates a ListSchemaBundlesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSchemaBundlesResponse + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.ListSchemaBundlesResponse; - /** - * Creates a plain object from a FamilySubsets message. Also converts values to other types if specified. - * @param message FamilySubsets - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.AuthorizedView.FamilySubsets, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ListSchemaBundlesResponse message. Also converts values to other types if specified. + * @param message ListSchemaBundlesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.ListSchemaBundlesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FamilySubsets to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this ListSchemaBundlesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FamilySubsets - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for ListSchemaBundlesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a SubsetView. */ - interface ISubsetView { + /** Properties of a DeleteSchemaBundleRequest. */ + interface IDeleteSchemaBundleRequest { - /** SubsetView rowPrefixes */ - rowPrefixes?: (Uint8Array[]|null); + /** DeleteSchemaBundleRequest name */ + name?: (string|null); - /** SubsetView familySubsets */ - familySubsets?: ({ [k: string]: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets }|null); - } + /** DeleteSchemaBundleRequest etag */ + etag?: (string|null); + } - /** Represents a SubsetView. */ - class SubsetView implements ISubsetView { + /** Represents a DeleteSchemaBundleRequest. */ + class DeleteSchemaBundleRequest implements IDeleteSchemaBundleRequest { - /** - * Constructs a new SubsetView. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.AuthorizedView.ISubsetView); + /** + * Constructs a new DeleteSchemaBundleRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IDeleteSchemaBundleRequest); - /** SubsetView rowPrefixes. */ - public rowPrefixes: Uint8Array[]; + /** DeleteSchemaBundleRequest name. */ + public name: string; - /** SubsetView familySubsets. */ - public familySubsets: { [k: string]: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets }; - - /** - * Creates a new SubsetView instance using the specified properties. - * @param [properties] Properties to set - * @returns SubsetView instance - */ - public static create(properties?: google.bigtable.admin.v2.AuthorizedView.ISubsetView): google.bigtable.admin.v2.AuthorizedView.SubsetView; - - /** - * Encodes the specified SubsetView message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.SubsetView.verify|verify} messages. - * @param message SubsetView message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.AuthorizedView.ISubsetView, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SubsetView message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.SubsetView.verify|verify} messages. - * @param message SubsetView message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.AuthorizedView.ISubsetView, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SubsetView message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SubsetView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.AuthorizedView.SubsetView; - - /** - * Decodes a SubsetView message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SubsetView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.AuthorizedView.SubsetView; - - /** - * Verifies a SubsetView message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SubsetView message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SubsetView - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.AuthorizedView.SubsetView; - - /** - * Creates a plain object from a SubsetView message. Also converts values to other types if specified. - * @param message SubsetView - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.AuthorizedView.SubsetView, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SubsetView to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SubsetView - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** ResponseView enum. */ - enum ResponseView { - RESPONSE_VIEW_UNSPECIFIED = 0, - NAME_ONLY = 1, - BASIC = 2, - FULL = 3 - } - } - - /** Properties of a ColumnFamily. */ - interface IColumnFamily { - - /** ColumnFamily gcRule */ - gcRule?: (google.bigtable.admin.v2.IGcRule|null); - - /** ColumnFamily valueType */ - valueType?: (google.bigtable.admin.v2.IType|null); - } - - /** Represents a ColumnFamily. */ - class ColumnFamily implements IColumnFamily { - - /** - * Constructs a new ColumnFamily. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.IColumnFamily); - - /** ColumnFamily gcRule. */ - public gcRule?: (google.bigtable.admin.v2.IGcRule|null); - - /** ColumnFamily valueType. */ - public valueType?: (google.bigtable.admin.v2.IType|null); + /** DeleteSchemaBundleRequest etag. */ + public etag: string; /** - * Creates a new ColumnFamily instance using the specified properties. + * Creates a new DeleteSchemaBundleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ColumnFamily instance + * @returns DeleteSchemaBundleRequest instance */ - public static create(properties?: google.bigtable.admin.v2.IColumnFamily): google.bigtable.admin.v2.ColumnFamily; + public static create(properties?: google.bigtable.admin.v2.IDeleteSchemaBundleRequest): google.bigtable.admin.v2.DeleteSchemaBundleRequest; /** - * Encodes the specified ColumnFamily message. Does not implicitly {@link google.bigtable.admin.v2.ColumnFamily.verify|verify} messages. - * @param message ColumnFamily message or plain object to encode + * Encodes the specified DeleteSchemaBundleRequest message. Does not implicitly {@link google.bigtable.admin.v2.DeleteSchemaBundleRequest.verify|verify} messages. + * @param message DeleteSchemaBundleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.IColumnFamily, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.IDeleteSchemaBundleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ColumnFamily message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ColumnFamily.verify|verify} messages. - * @param message ColumnFamily message or plain object to encode + * Encodes the specified DeleteSchemaBundleRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.DeleteSchemaBundleRequest.verify|verify} messages. + * @param message DeleteSchemaBundleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.IColumnFamily, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.IDeleteSchemaBundleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ColumnFamily message from the specified reader or buffer. + * Decodes a DeleteSchemaBundleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ColumnFamily + * @returns DeleteSchemaBundleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.ColumnFamily; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.DeleteSchemaBundleRequest; /** - * Decodes a ColumnFamily message from the specified reader or buffer, length delimited. + * Decodes a DeleteSchemaBundleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ColumnFamily + * @returns DeleteSchemaBundleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.ColumnFamily; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.DeleteSchemaBundleRequest; /** - * Verifies a ColumnFamily message. + * Verifies a DeleteSchemaBundleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ColumnFamily message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSchemaBundleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ColumnFamily + * @returns DeleteSchemaBundleRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.ColumnFamily; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.DeleteSchemaBundleRequest; /** - * Creates a plain object from a ColumnFamily message. Also converts values to other types if specified. - * @param message ColumnFamily + * Creates a plain object from a DeleteSchemaBundleRequest message. Also converts values to other types if specified. + * @param message DeleteSchemaBundleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.ColumnFamily, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.DeleteSchemaBundleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ColumnFamily to JSON. + * Converts this DeleteSchemaBundleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ColumnFamily + * Gets the default type url for DeleteSchemaBundleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GcRule. */ - interface IGcRule { - - /** GcRule maxNumVersions */ - maxNumVersions?: (number|null); - - /** GcRule maxAge */ - maxAge?: (google.protobuf.IDuration|null); + /** Properties of a RestoreInfo. */ + interface IRestoreInfo { - /** GcRule intersection */ - intersection?: (google.bigtable.admin.v2.GcRule.IIntersection|null); + /** RestoreInfo sourceType */ + sourceType?: (google.bigtable.admin.v2.RestoreSourceType|keyof typeof google.bigtable.admin.v2.RestoreSourceType|null); - /** GcRule union */ - union?: (google.bigtable.admin.v2.GcRule.IUnion|null); + /** RestoreInfo backupInfo */ + backupInfo?: (google.bigtable.admin.v2.IBackupInfo|null); } - /** Represents a GcRule. */ - class GcRule implements IGcRule { + /** Represents a RestoreInfo. */ + class RestoreInfo implements IRestoreInfo { /** - * Constructs a new GcRule. + * Constructs a new RestoreInfo. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.IGcRule); - - /** GcRule maxNumVersions. */ - public maxNumVersions?: (number|null); - - /** GcRule maxAge. */ - public maxAge?: (google.protobuf.IDuration|null); + constructor(properties?: google.bigtable.admin.v2.IRestoreInfo); - /** GcRule intersection. */ - public intersection?: (google.bigtable.admin.v2.GcRule.IIntersection|null); + /** RestoreInfo sourceType. */ + public sourceType: (google.bigtable.admin.v2.RestoreSourceType|keyof typeof google.bigtable.admin.v2.RestoreSourceType); - /** GcRule union. */ - public union?: (google.bigtable.admin.v2.GcRule.IUnion|null); + /** RestoreInfo backupInfo. */ + public backupInfo?: (google.bigtable.admin.v2.IBackupInfo|null); - /** GcRule rule. */ - public rule?: ("maxNumVersions"|"maxAge"|"intersection"|"union"); + /** RestoreInfo sourceInfo. */ + public sourceInfo?: "backupInfo"; /** - * Creates a new GcRule instance using the specified properties. + * Creates a new RestoreInfo instance using the specified properties. * @param [properties] Properties to set - * @returns GcRule instance + * @returns RestoreInfo instance */ - public static create(properties?: google.bigtable.admin.v2.IGcRule): google.bigtable.admin.v2.GcRule; + public static create(properties?: google.bigtable.admin.v2.IRestoreInfo): google.bigtable.admin.v2.RestoreInfo; /** - * Encodes the specified GcRule message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.verify|verify} messages. - * @param message GcRule message or plain object to encode + * Encodes the specified RestoreInfo message. Does not implicitly {@link google.bigtable.admin.v2.RestoreInfo.verify|verify} messages. + * @param message RestoreInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.IGcRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.IRestoreInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GcRule message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.verify|verify} messages. - * @param message GcRule message or plain object to encode + * Encodes the specified RestoreInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.RestoreInfo.verify|verify} messages. + * @param message RestoreInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.IGcRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.IRestoreInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GcRule message from the specified reader or buffer. + * Decodes a RestoreInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GcRule + * @returns RestoreInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.GcRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.RestoreInfo; /** - * Decodes a GcRule message from the specified reader or buffer, length delimited. + * Decodes a RestoreInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GcRule + * @returns RestoreInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.GcRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.RestoreInfo; /** - * Verifies a GcRule message. + * Verifies a RestoreInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GcRule message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GcRule + * @returns RestoreInfo */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.GcRule; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.RestoreInfo; /** - * Creates a plain object from a GcRule message. Also converts values to other types if specified. - * @param message GcRule + * Creates a plain object from a RestoreInfo message. Also converts values to other types if specified. + * @param message RestoreInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.GcRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.RestoreInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GcRule to JSON. + * Converts this RestoreInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GcRule + * Gets the default type url for RestoreInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace GcRule { + /** Properties of a ChangeStreamConfig. */ + interface IChangeStreamConfig { - /** Properties of an Intersection. */ - interface IIntersection { + /** ChangeStreamConfig retentionPeriod */ + retentionPeriod?: (google.protobuf.IDuration|null); + } - /** Intersection rules */ - rules?: (google.bigtable.admin.v2.IGcRule[]|null); - } + /** Represents a ChangeStreamConfig. */ + class ChangeStreamConfig implements IChangeStreamConfig { - /** Represents an Intersection. */ - class Intersection implements IIntersection { + /** + * Constructs a new ChangeStreamConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IChangeStreamConfig); - /** - * Constructs a new Intersection. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.GcRule.IIntersection); - - /** Intersection rules. */ - public rules: google.bigtable.admin.v2.IGcRule[]; - - /** - * Creates a new Intersection instance using the specified properties. - * @param [properties] Properties to set - * @returns Intersection instance - */ - public static create(properties?: google.bigtable.admin.v2.GcRule.IIntersection): google.bigtable.admin.v2.GcRule.Intersection; - - /** - * Encodes the specified Intersection message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Intersection.verify|verify} messages. - * @param message Intersection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.GcRule.IIntersection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Intersection message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Intersection.verify|verify} messages. - * @param message Intersection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.GcRule.IIntersection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Intersection message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Intersection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.GcRule.Intersection; - - /** - * Decodes an Intersection message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Intersection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.GcRule.Intersection; - - /** - * Verifies an Intersection message. - * @param message Plain 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 Intersection message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Intersection - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.GcRule.Intersection; - - /** - * Creates a plain object from an Intersection message. Also converts values to other types if specified. - * @param message Intersection - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.GcRule.Intersection, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Intersection to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Intersection - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an Union. */ - interface IUnion { - - /** Union rules */ - rules?: (google.bigtable.admin.v2.IGcRule[]|null); - } - - /** Represents an Union. */ - class Union implements IUnion { - - /** - * Constructs a new Union. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.GcRule.IUnion); - - /** Union rules. */ - public rules: google.bigtable.admin.v2.IGcRule[]; - - /** - * Creates a new Union instance using the specified properties. - * @param [properties] Properties to set - * @returns Union instance - */ - public static create(properties?: google.bigtable.admin.v2.GcRule.IUnion): google.bigtable.admin.v2.GcRule.Union; - - /** - * Encodes the specified Union message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Union.verify|verify} messages. - * @param message Union message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.GcRule.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Union message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Union.verify|verify} messages. - * @param message Union message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.GcRule.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Union message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Union - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.GcRule.Union; - - /** - * Decodes an Union message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Union - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.GcRule.Union; - - /** - * Verifies an Union message. - * @param message Plain 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 Union message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Union - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.GcRule.Union; - - /** - * Creates a plain object from an Union message. Also converts values to other types if specified. - * @param message Union - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.GcRule.Union, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Union to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Union - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an EncryptionInfo. */ - interface IEncryptionInfo { - - /** EncryptionInfo encryptionType */ - encryptionType?: (google.bigtable.admin.v2.EncryptionInfo.EncryptionType|keyof typeof google.bigtable.admin.v2.EncryptionInfo.EncryptionType|null); - - /** EncryptionInfo encryptionStatus */ - encryptionStatus?: (google.rpc.IStatus|null); - - /** EncryptionInfo kmsKeyVersion */ - kmsKeyVersion?: (string|null); - } - - /** Represents an EncryptionInfo. */ - class EncryptionInfo implements IEncryptionInfo { - - /** - * Constructs a new EncryptionInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.IEncryptionInfo); - - /** EncryptionInfo encryptionType. */ - public encryptionType: (google.bigtable.admin.v2.EncryptionInfo.EncryptionType|keyof typeof google.bigtable.admin.v2.EncryptionInfo.EncryptionType); - - /** EncryptionInfo encryptionStatus. */ - public encryptionStatus?: (google.rpc.IStatus|null); - - /** EncryptionInfo kmsKeyVersion. */ - public kmsKeyVersion: string; + /** ChangeStreamConfig retentionPeriod. */ + public retentionPeriod?: (google.protobuf.IDuration|null); /** - * Creates a new EncryptionInfo instance using the specified properties. + * Creates a new ChangeStreamConfig instance using the specified properties. * @param [properties] Properties to set - * @returns EncryptionInfo instance + * @returns ChangeStreamConfig instance */ - public static create(properties?: google.bigtable.admin.v2.IEncryptionInfo): google.bigtable.admin.v2.EncryptionInfo; + public static create(properties?: google.bigtable.admin.v2.IChangeStreamConfig): google.bigtable.admin.v2.ChangeStreamConfig; /** - * Encodes the specified EncryptionInfo message. Does not implicitly {@link google.bigtable.admin.v2.EncryptionInfo.verify|verify} messages. - * @param message EncryptionInfo message or plain object to encode + * Encodes the specified ChangeStreamConfig message. Does not implicitly {@link google.bigtable.admin.v2.ChangeStreamConfig.verify|verify} messages. + * @param message ChangeStreamConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.IEncryptionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.IChangeStreamConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EncryptionInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.EncryptionInfo.verify|verify} messages. - * @param message EncryptionInfo message or plain object to encode + * Encodes the specified ChangeStreamConfig message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ChangeStreamConfig.verify|verify} messages. + * @param message ChangeStreamConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.IEncryptionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.IChangeStreamConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EncryptionInfo message from the specified reader or buffer. + * Decodes a ChangeStreamConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EncryptionInfo + * @returns ChangeStreamConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.EncryptionInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.ChangeStreamConfig; /** - * Decodes an EncryptionInfo message from the specified reader or buffer, length delimited. + * Decodes a ChangeStreamConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EncryptionInfo + * @returns ChangeStreamConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.EncryptionInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.ChangeStreamConfig; /** - * Verifies an EncryptionInfo message. + * Verifies a ChangeStreamConfig message. * @param message Plain 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 EncryptionInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeStreamConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EncryptionInfo + * @returns ChangeStreamConfig */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.EncryptionInfo; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.ChangeStreamConfig; /** - * Creates a plain object from an EncryptionInfo message. Also converts values to other types if specified. - * @param message EncryptionInfo + * Creates a plain object from a ChangeStreamConfig message. Also converts values to other types if specified. + * @param message ChangeStreamConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.EncryptionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.ChangeStreamConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EncryptionInfo to JSON. + * Converts this ChangeStreamConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EncryptionInfo + * Gets the default type url for ChangeStreamConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace EncryptionInfo { + /** Properties of a Table. */ + interface ITable { - /** EncryptionType enum. */ - enum EncryptionType { - ENCRYPTION_TYPE_UNSPECIFIED = 0, - GOOGLE_DEFAULT_ENCRYPTION = 1, - CUSTOMER_MANAGED_ENCRYPTION = 2 - } - } + /** Table name */ + name?: (string|null); - /** Properties of a Snapshot. */ - interface ISnapshot { + /** Table clusterStates */ + clusterStates?: ({ [k: string]: google.bigtable.admin.v2.Table.IClusterState }|null); - /** Snapshot name */ - name?: (string|null); + /** Table columnFamilies */ + columnFamilies?: ({ [k: string]: google.bigtable.admin.v2.IColumnFamily }|null); - /** Snapshot sourceTable */ - sourceTable?: (google.bigtable.admin.v2.ITable|null); + /** Table granularity */ + granularity?: (google.bigtable.admin.v2.Table.TimestampGranularity|keyof typeof google.bigtable.admin.v2.Table.TimestampGranularity|null); - /** Snapshot dataSizeBytes */ - dataSizeBytes?: (number|Long|string|null); + /** Table restoreInfo */ + restoreInfo?: (google.bigtable.admin.v2.IRestoreInfo|null); - /** Snapshot createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Table changeStreamConfig */ + changeStreamConfig?: (google.bigtable.admin.v2.IChangeStreamConfig|null); - /** Snapshot deleteTime */ - deleteTime?: (google.protobuf.ITimestamp|null); + /** Table deletionProtection */ + deletionProtection?: (boolean|null); - /** Snapshot state */ - state?: (google.bigtable.admin.v2.Snapshot.State|keyof typeof google.bigtable.admin.v2.Snapshot.State|null); + /** Table automatedBackupPolicy */ + automatedBackupPolicy?: (google.bigtable.admin.v2.Table.IAutomatedBackupPolicy|null); - /** Snapshot description */ - description?: (string|null); + /** Table rowKeySchema */ + rowKeySchema?: (google.bigtable.admin.v2.Type.IStruct|null); } - /** Represents a Snapshot. */ - class Snapshot implements ISnapshot { + /** Represents a Table. */ + class Table implements ITable { /** - * Constructs a new Snapshot. + * Constructs a new Table. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.ISnapshot); + constructor(properties?: google.bigtable.admin.v2.ITable); - /** Snapshot name. */ + /** Table name. */ public name: string; - /** Snapshot sourceTable. */ - public sourceTable?: (google.bigtable.admin.v2.ITable|null); + /** Table clusterStates. */ + public clusterStates: { [k: string]: google.bigtable.admin.v2.Table.IClusterState }; - /** Snapshot dataSizeBytes. */ - public dataSizeBytes: (number|Long|string); + /** Table columnFamilies. */ + public columnFamilies: { [k: string]: google.bigtable.admin.v2.IColumnFamily }; - /** Snapshot createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Table granularity. */ + public granularity: (google.bigtable.admin.v2.Table.TimestampGranularity|keyof typeof google.bigtable.admin.v2.Table.TimestampGranularity); - /** Snapshot deleteTime. */ - public deleteTime?: (google.protobuf.ITimestamp|null); + /** Table restoreInfo. */ + public restoreInfo?: (google.bigtable.admin.v2.IRestoreInfo|null); - /** Snapshot state. */ - public state: (google.bigtable.admin.v2.Snapshot.State|keyof typeof google.bigtable.admin.v2.Snapshot.State); + /** Table changeStreamConfig. */ + public changeStreamConfig?: (google.bigtable.admin.v2.IChangeStreamConfig|null); - /** Snapshot description. */ - public description: string; + /** Table deletionProtection. */ + public deletionProtection: boolean; + + /** Table automatedBackupPolicy. */ + public automatedBackupPolicy?: (google.bigtable.admin.v2.Table.IAutomatedBackupPolicy|null); + + /** Table rowKeySchema. */ + public rowKeySchema?: (google.bigtable.admin.v2.Type.IStruct|null); + + /** Table automatedBackupConfig. */ + public automatedBackupConfig?: "automatedBackupPolicy"; /** - * Creates a new Snapshot instance using the specified properties. + * Creates a new Table instance using the specified properties. * @param [properties] Properties to set - * @returns Snapshot instance + * @returns Table instance */ - public static create(properties?: google.bigtable.admin.v2.ISnapshot): google.bigtable.admin.v2.Snapshot; + public static create(properties?: google.bigtable.admin.v2.ITable): google.bigtable.admin.v2.Table; /** - * Encodes the specified Snapshot message. Does not implicitly {@link google.bigtable.admin.v2.Snapshot.verify|verify} messages. - * @param message Snapshot message or plain object to encode + * Encodes the specified Table message. Does not implicitly {@link google.bigtable.admin.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.bigtable.admin.v2.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.ITable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Snapshot.verify|verify} messages. - * @param message Snapshot message or plain object to encode + * Encodes the specified Table message, length delimited. Does not implicitly {@link google.bigtable.admin.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.bigtable.admin.v2.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.ITable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Snapshot message from the specified reader or buffer. + * 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 Snapshot + * @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.bigtable.admin.v2.Snapshot; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Table; /** - * Decodes a Snapshot message from the specified reader or buffer, length delimited. + * Decodes a Table message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Snapshot + * @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.bigtable.admin.v2.Snapshot; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Table; /** - * Verifies a Snapshot message. + * 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 Snapshot message from a plain object. Also converts values to their respective internal types. + * Creates a Table message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Snapshot + * @returns Table */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Snapshot; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Table; /** - * Creates a plain object from a Snapshot message. Also converts values to other types if specified. - * @param message Snapshot + * 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.bigtable.admin.v2.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Snapshot to JSON. + * Converts this Table to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Snapshot + * 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; } - namespace Snapshot { - - /** State enum. */ - enum State { - STATE_NOT_KNOWN = 0, - READY = 1, - CREATING = 2 - } - } + namespace Table { - /** Properties of a Backup. */ - interface IBackup { + /** Properties of a ClusterState. */ + interface IClusterState { - /** Backup name */ - name?: (string|null); + /** ClusterState replicationState */ + replicationState?: (google.bigtable.admin.v2.Table.ClusterState.ReplicationState|keyof typeof google.bigtable.admin.v2.Table.ClusterState.ReplicationState|null); - /** Backup sourceTable */ - sourceTable?: (string|null); + /** ClusterState encryptionInfo */ + encryptionInfo?: (google.bigtable.admin.v2.IEncryptionInfo[]|null); + } - /** Backup sourceBackup */ - sourceBackup?: (string|null); + /** Represents a ClusterState. */ + class ClusterState implements IClusterState { - /** Backup expireTime */ - expireTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new ClusterState. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Table.IClusterState); - /** Backup startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** ClusterState replicationState. */ + public replicationState: (google.bigtable.admin.v2.Table.ClusterState.ReplicationState|keyof typeof google.bigtable.admin.v2.Table.ClusterState.ReplicationState); - /** Backup endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** ClusterState encryptionInfo. */ + public encryptionInfo: google.bigtable.admin.v2.IEncryptionInfo[]; - /** Backup sizeBytes */ - sizeBytes?: (number|Long|string|null); + /** + * Creates a new ClusterState instance using the specified properties. + * @param [properties] Properties to set + * @returns ClusterState instance + */ + public static create(properties?: google.bigtable.admin.v2.Table.IClusterState): google.bigtable.admin.v2.Table.ClusterState; - /** Backup state */ - state?: (google.bigtable.admin.v2.Backup.State|keyof typeof google.bigtable.admin.v2.Backup.State|null); + /** + * Encodes the specified ClusterState message. Does not implicitly {@link google.bigtable.admin.v2.Table.ClusterState.verify|verify} messages. + * @param message ClusterState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Table.IClusterState, writer?: $protobuf.Writer): $protobuf.Writer; - /** Backup encryptionInfo */ - encryptionInfo?: (google.bigtable.admin.v2.IEncryptionInfo|null); + /** + * Encodes the specified ClusterState message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.ClusterState.verify|verify} messages. + * @param message ClusterState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Table.IClusterState, writer?: $protobuf.Writer): $protobuf.Writer; - /** Backup backupType */ - backupType?: (google.bigtable.admin.v2.Backup.BackupType|keyof typeof google.bigtable.admin.v2.Backup.BackupType|null); + /** + * Decodes a ClusterState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClusterState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Table.ClusterState; - /** Backup hotToStandardTime */ - hotToStandardTime?: (google.protobuf.ITimestamp|null); - } + /** + * Decodes a ClusterState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClusterState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Table.ClusterState; - /** Represents a Backup. */ - class Backup implements IBackup { + /** + * Verifies a ClusterState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new Backup. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.IBackup); + /** + * Creates a ClusterState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClusterState + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Table.ClusterState; - /** Backup name. */ - public name: string; + /** + * Creates a plain object from a ClusterState message. Also converts values to other types if specified. + * @param message ClusterState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Table.ClusterState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Backup sourceTable. */ - public sourceTable: string; + /** + * Converts this ClusterState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Backup sourceBackup. */ - public sourceBackup: string; + /** + * Gets the default type url for ClusterState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Backup expireTime. */ - public expireTime?: (google.protobuf.ITimestamp|null); + namespace ClusterState { - /** Backup startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ReplicationState enum. */ + enum ReplicationState { + STATE_NOT_KNOWN = 0, + INITIALIZING = 1, + PLANNED_MAINTENANCE = 2, + UNPLANNED_MAINTENANCE = 3, + READY = 4, + READY_OPTIMIZING = 5 + } + } - /** Backup endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** TimestampGranularity enum. */ + enum TimestampGranularity { + TIMESTAMP_GRANULARITY_UNSPECIFIED = 0, + MILLIS = 1 + } - /** Backup sizeBytes. */ - public sizeBytes: (number|Long|string); + /** View enum. */ + enum View { + VIEW_UNSPECIFIED = 0, + NAME_ONLY = 1, + SCHEMA_VIEW = 2, + REPLICATION_VIEW = 3, + ENCRYPTION_VIEW = 5, + FULL = 4 + } - /** Backup state. */ - public state: (google.bigtable.admin.v2.Backup.State|keyof typeof google.bigtable.admin.v2.Backup.State); + /** Properties of an AutomatedBackupPolicy. */ + interface IAutomatedBackupPolicy { - /** Backup encryptionInfo. */ - public encryptionInfo?: (google.bigtable.admin.v2.IEncryptionInfo|null); + /** AutomatedBackupPolicy retentionPeriod */ + retentionPeriod?: (google.protobuf.IDuration|null); - /** Backup backupType. */ - public backupType: (google.bigtable.admin.v2.Backup.BackupType|keyof typeof google.bigtable.admin.v2.Backup.BackupType); + /** AutomatedBackupPolicy frequency */ + frequency?: (google.protobuf.IDuration|null); + } - /** Backup hotToStandardTime. */ - public hotToStandardTime?: (google.protobuf.ITimestamp|null); + /** Represents an AutomatedBackupPolicy. */ + class AutomatedBackupPolicy implements IAutomatedBackupPolicy { + + /** + * Constructs a new AutomatedBackupPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Table.IAutomatedBackupPolicy); + + /** AutomatedBackupPolicy retentionPeriod. */ + public retentionPeriod?: (google.protobuf.IDuration|null); + + /** AutomatedBackupPolicy frequency. */ + public frequency?: (google.protobuf.IDuration|null); + + /** + * Creates a new AutomatedBackupPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomatedBackupPolicy instance + */ + public static create(properties?: google.bigtable.admin.v2.Table.IAutomatedBackupPolicy): google.bigtable.admin.v2.Table.AutomatedBackupPolicy; + + /** + * Encodes the specified AutomatedBackupPolicy message. Does not implicitly {@link google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify|verify} messages. + * @param message AutomatedBackupPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Table.IAutomatedBackupPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutomatedBackupPolicy message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify|verify} messages. + * @param message AutomatedBackupPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Table.IAutomatedBackupPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutomatedBackupPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomatedBackupPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Table.AutomatedBackupPolicy; + + /** + * Decodes an AutomatedBackupPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomatedBackupPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Table.AutomatedBackupPolicy; + + /** + * Verifies an AutomatedBackupPolicy message. + * @param message Plain 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 AutomatedBackupPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomatedBackupPolicy + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Table.AutomatedBackupPolicy; + + /** + * Creates a plain object from an AutomatedBackupPolicy message. Also converts values to other types if specified. + * @param message AutomatedBackupPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Table.AutomatedBackupPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutomatedBackupPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutomatedBackupPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an AuthorizedView. */ + interface IAuthorizedView { + + /** AuthorizedView name */ + name?: (string|null); + + /** AuthorizedView subsetView */ + subsetView?: (google.bigtable.admin.v2.AuthorizedView.ISubsetView|null); + + /** AuthorizedView etag */ + etag?: (string|null); + + /** AuthorizedView deletionProtection */ + deletionProtection?: (boolean|null); + } + + /** Represents an AuthorizedView. */ + class AuthorizedView implements IAuthorizedView { /** - * Creates a new Backup instance using the specified properties. + * Constructs a new AuthorizedView. * @param [properties] Properties to set - * @returns Backup instance */ - public static create(properties?: google.bigtable.admin.v2.IBackup): google.bigtable.admin.v2.Backup; + constructor(properties?: google.bigtable.admin.v2.IAuthorizedView); + + /** AuthorizedView name. */ + public name: string; + + /** AuthorizedView subsetView. */ + public subsetView?: (google.bigtable.admin.v2.AuthorizedView.ISubsetView|null); + + /** AuthorizedView etag. */ + public etag: string; + + /** AuthorizedView deletionProtection. */ + public deletionProtection: boolean; + + /** AuthorizedView authorizedView. */ + public authorizedView?: "subsetView"; /** - * Encodes the specified Backup message. Does not implicitly {@link google.bigtable.admin.v2.Backup.verify|verify} messages. - * @param message Backup message or plain object to encode + * Creates a new AuthorizedView instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthorizedView instance + */ + public static create(properties?: google.bigtable.admin.v2.IAuthorizedView): google.bigtable.admin.v2.AuthorizedView; + + /** + * Encodes the specified AuthorizedView message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.verify|verify} messages. + * @param message AuthorizedView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.IBackup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.IAuthorizedView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Backup.verify|verify} messages. - * @param message Backup message or plain object to encode + * Encodes the specified AuthorizedView message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.verify|verify} messages. + * @param message AuthorizedView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.IBackup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.IAuthorizedView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Backup message from the specified reader or buffer. + * Decodes an AuthorizedView message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Backup + * @returns AuthorizedView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Backup; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.AuthorizedView; /** - * Decodes a Backup message from the specified reader or buffer, length delimited. + * Decodes an AuthorizedView message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Backup + * @returns AuthorizedView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Backup; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.AuthorizedView; /** - * Verifies a Backup message. + * Verifies an AuthorizedView message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Backup message from a plain object. Also converts values to their respective internal types. + * Creates an AuthorizedView message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Backup + * @returns AuthorizedView */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Backup; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.AuthorizedView; /** - * Creates a plain object from a Backup message. Also converts values to other types if specified. - * @param message Backup + * Creates a plain object from an AuthorizedView message. Also converts values to other types if specified. + * @param message AuthorizedView * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Backup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.AuthorizedView, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Backup to JSON. + * Converts this AuthorizedView to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Backup + * Gets the default type url for AuthorizedView * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Backup { + namespace AuthorizedView { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - READY = 2 - } + /** Properties of a FamilySubsets. */ + interface IFamilySubsets { - /** BackupType enum. */ - enum BackupType { - BACKUP_TYPE_UNSPECIFIED = 0, - STANDARD = 1, - HOT = 2 - } - } - - /** Properties of a BackupInfo. */ - interface IBackupInfo { + /** FamilySubsets qualifiers */ + qualifiers?: (Uint8Array[]|null); - /** BackupInfo backup */ - backup?: (string|null); + /** FamilySubsets qualifierPrefixes */ + qualifierPrefixes?: (Uint8Array[]|null); + } - /** BackupInfo startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Represents a FamilySubsets. */ + class FamilySubsets implements IFamilySubsets { - /** BackupInfo endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new FamilySubsets. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets); - /** BackupInfo sourceTable */ - sourceTable?: (string|null); + /** FamilySubsets qualifiers. */ + public qualifiers: Uint8Array[]; - /** BackupInfo sourceBackup */ - sourceBackup?: (string|null); - } + /** FamilySubsets qualifierPrefixes. */ + public qualifierPrefixes: Uint8Array[]; - /** Represents a BackupInfo. */ - class BackupInfo implements IBackupInfo { + /** + * Creates a new FamilySubsets instance using the specified properties. + * @param [properties] Properties to set + * @returns FamilySubsets instance + */ + public static create(properties?: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets): google.bigtable.admin.v2.AuthorizedView.FamilySubsets; - /** - * Constructs a new BackupInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.IBackupInfo); + /** + * Encodes the specified FamilySubsets message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify|verify} messages. + * @param message FamilySubsets message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets, writer?: $protobuf.Writer): $protobuf.Writer; - /** BackupInfo backup. */ - public backup: string; + /** + * Encodes the specified FamilySubsets message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify|verify} messages. + * @param message FamilySubsets message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets, writer?: $protobuf.Writer): $protobuf.Writer; - /** BackupInfo startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a FamilySubsets message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FamilySubsets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.AuthorizedView.FamilySubsets; - /** BackupInfo endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a FamilySubsets message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FamilySubsets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.AuthorizedView.FamilySubsets; - /** BackupInfo sourceTable. */ - public sourceTable: string; + /** + * Verifies a FamilySubsets message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** BackupInfo sourceBackup. */ - public sourceBackup: string; + /** + * Creates a FamilySubsets message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FamilySubsets + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.AuthorizedView.FamilySubsets; - /** - * Creates a new BackupInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns BackupInfo instance - */ - public static create(properties?: google.bigtable.admin.v2.IBackupInfo): google.bigtable.admin.v2.BackupInfo; + /** + * Creates a plain object from a FamilySubsets message. Also converts values to other types if specified. + * @param message FamilySubsets + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.AuthorizedView.FamilySubsets, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified BackupInfo message. Does not implicitly {@link google.bigtable.admin.v2.BackupInfo.verify|verify} messages. - * @param message BackupInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this FamilySubsets to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.BackupInfo.verify|verify} messages. - * @param message BackupInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for FamilySubsets + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a BackupInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BackupInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.BackupInfo; + /** Properties of a SubsetView. */ + interface ISubsetView { - /** - * Decodes a BackupInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.BackupInfo; + /** SubsetView rowPrefixes */ + rowPrefixes?: (Uint8Array[]|null); - /** - * Verifies a BackupInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** SubsetView familySubsets */ + familySubsets?: ({ [k: string]: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets }|null); + } - /** - * Creates a BackupInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BackupInfo - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.BackupInfo; + /** Represents a SubsetView. */ + class SubsetView implements ISubsetView { - /** - * Creates a plain object from a BackupInfo message. Also converts values to other types if specified. - * @param message BackupInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.BackupInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new SubsetView. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.AuthorizedView.ISubsetView); - /** - * Converts this BackupInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SubsetView rowPrefixes. */ + public rowPrefixes: Uint8Array[]; - /** - * Gets the default type url for BackupInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SubsetView familySubsets. */ + public familySubsets: { [k: string]: google.bigtable.admin.v2.AuthorizedView.IFamilySubsets }; - /** RestoreSourceType enum. */ - enum RestoreSourceType { - RESTORE_SOURCE_TYPE_UNSPECIFIED = 0, - BACKUP = 1 - } + /** + * Creates a new SubsetView instance using the specified properties. + * @param [properties] Properties to set + * @returns SubsetView instance + */ + public static create(properties?: google.bigtable.admin.v2.AuthorizedView.ISubsetView): google.bigtable.admin.v2.AuthorizedView.SubsetView; - /** Properties of a Type. */ - interface IType { + /** + * Encodes the specified SubsetView message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.SubsetView.verify|verify} messages. + * @param message SubsetView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.AuthorizedView.ISubsetView, writer?: $protobuf.Writer): $protobuf.Writer; - /** Type bytesType */ - bytesType?: (google.bigtable.admin.v2.Type.IBytes|null); + /** + * Encodes the specified SubsetView message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.SubsetView.verify|verify} messages. + * @param message SubsetView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.AuthorizedView.ISubsetView, writer?: $protobuf.Writer): $protobuf.Writer; - /** Type stringType */ - stringType?: (google.bigtable.admin.v2.Type.IString|null); + /** + * Decodes a SubsetView message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SubsetView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.AuthorizedView.SubsetView; - /** Type int64Type */ - int64Type?: (google.bigtable.admin.v2.Type.IInt64|null); + /** + * Decodes a SubsetView message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SubsetView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.AuthorizedView.SubsetView; - /** Type float32Type */ - float32Type?: (google.bigtable.admin.v2.Type.IFloat32|null); + /** + * Verifies a SubsetView message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Type float64Type */ - float64Type?: (google.bigtable.admin.v2.Type.IFloat64|null); + /** + * Creates a SubsetView message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SubsetView + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.AuthorizedView.SubsetView; - /** Type boolType */ - boolType?: (google.bigtable.admin.v2.Type.IBool|null); + /** + * Creates a plain object from a SubsetView message. Also converts values to other types if specified. + * @param message SubsetView + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.AuthorizedView.SubsetView, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Type timestampType */ - timestampType?: (google.bigtable.admin.v2.Type.ITimestamp|null); + /** + * Converts this SubsetView to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Type dateType */ - dateType?: (google.bigtable.admin.v2.Type.IDate|null); + /** + * Gets the default type url for SubsetView + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Type aggregateType */ - aggregateType?: (google.bigtable.admin.v2.Type.IAggregate|null); + /** ResponseView enum. */ + enum ResponseView { + RESPONSE_VIEW_UNSPECIFIED = 0, + NAME_ONLY = 1, + BASIC = 2, + FULL = 3 + } + } - /** Type structType */ - structType?: (google.bigtable.admin.v2.Type.IStruct|null); + /** Properties of a ColumnFamily. */ + interface IColumnFamily { - /** Type arrayType */ - arrayType?: (google.bigtable.admin.v2.Type.IArray|null); + /** ColumnFamily gcRule */ + gcRule?: (google.bigtable.admin.v2.IGcRule|null); - /** Type mapType */ - mapType?: (google.bigtable.admin.v2.Type.IMap|null); + /** ColumnFamily valueType */ + valueType?: (google.bigtable.admin.v2.IType|null); } - /** Represents a Type. */ - class Type implements IType { + /** Represents a ColumnFamily. */ + class ColumnFamily implements IColumnFamily { /** - * Constructs a new Type. + * Constructs a new ColumnFamily. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.IType); - - /** Type bytesType. */ - public bytesType?: (google.bigtable.admin.v2.Type.IBytes|null); - - /** Type stringType. */ - public stringType?: (google.bigtable.admin.v2.Type.IString|null); - - /** Type int64Type. */ - public int64Type?: (google.bigtable.admin.v2.Type.IInt64|null); - - /** Type float32Type. */ - public float32Type?: (google.bigtable.admin.v2.Type.IFloat32|null); - - /** Type float64Type. */ - public float64Type?: (google.bigtable.admin.v2.Type.IFloat64|null); - - /** Type boolType. */ - public boolType?: (google.bigtable.admin.v2.Type.IBool|null); - - /** Type timestampType. */ - public timestampType?: (google.bigtable.admin.v2.Type.ITimestamp|null); - - /** Type dateType. */ - public dateType?: (google.bigtable.admin.v2.Type.IDate|null); - - /** Type aggregateType. */ - public aggregateType?: (google.bigtable.admin.v2.Type.IAggregate|null); - - /** Type structType. */ - public structType?: (google.bigtable.admin.v2.Type.IStruct|null); - - /** Type arrayType. */ - public arrayType?: (google.bigtable.admin.v2.Type.IArray|null); + constructor(properties?: google.bigtable.admin.v2.IColumnFamily); - /** Type mapType. */ - public mapType?: (google.bigtable.admin.v2.Type.IMap|null); + /** ColumnFamily gcRule. */ + public gcRule?: (google.bigtable.admin.v2.IGcRule|null); - /** Type kind. */ - public kind?: ("bytesType"|"stringType"|"int64Type"|"float32Type"|"float64Type"|"boolType"|"timestampType"|"dateType"|"aggregateType"|"structType"|"arrayType"|"mapType"); + /** ColumnFamily valueType. */ + public valueType?: (google.bigtable.admin.v2.IType|null); /** - * Creates a new Type instance using the specified properties. + * Creates a new ColumnFamily instance using the specified properties. * @param [properties] Properties to set - * @returns Type instance + * @returns ColumnFamily instance */ - public static create(properties?: google.bigtable.admin.v2.IType): google.bigtable.admin.v2.Type; + public static create(properties?: google.bigtable.admin.v2.IColumnFamily): google.bigtable.admin.v2.ColumnFamily; /** - * Encodes the specified Type message. Does not implicitly {@link google.bigtable.admin.v2.Type.verify|verify} messages. - * @param message Type message or plain object to encode + * Encodes the specified ColumnFamily message. Does not implicitly {@link google.bigtable.admin.v2.ColumnFamily.verify|verify} messages. + * @param message ColumnFamily message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.IType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.IColumnFamily, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Type message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.verify|verify} messages. - * @param message Type message or plain object to encode + * Encodes the specified ColumnFamily message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ColumnFamily.verify|verify} messages. + * @param message ColumnFamily message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.IType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.IColumnFamily, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Type message from the specified reader or buffer. + * Decodes a ColumnFamily message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Type + * @returns ColumnFamily * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.ColumnFamily; /** - * Decodes a Type message from the specified reader or buffer, length delimited. + * Decodes a ColumnFamily message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Type + * @returns ColumnFamily * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.ColumnFamily; /** - * Verifies a Type message. + * Verifies a ColumnFamily message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Type message from a plain object. Also converts values to their respective internal types. + * Creates a ColumnFamily message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Type + * @returns ColumnFamily */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.ColumnFamily; /** - * Creates a plain object from a Type message. Also converts values to other types if specified. - * @param message Type + * Creates a plain object from a ColumnFamily message. Also converts values to other types if specified. + * @param message ColumnFamily * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.ColumnFamily, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Type to JSON. + * Converts this ColumnFamily to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Type + * Gets the default type url for ColumnFamily * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Type { + /** Properties of a GcRule. */ + interface IGcRule { - /** Properties of a Bytes. */ - interface IBytes { + /** GcRule maxNumVersions */ + maxNumVersions?: (number|null); - /** Bytes encoding */ - encoding?: (google.bigtable.admin.v2.Type.Bytes.IEncoding|null); - } + /** GcRule maxAge */ + maxAge?: (google.protobuf.IDuration|null); - /** Represents a Bytes. */ - class Bytes implements IBytes { + /** GcRule intersection */ + intersection?: (google.bigtable.admin.v2.GcRule.IIntersection|null); - /** - * Constructs a new Bytes. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IBytes); + /** GcRule union */ + union?: (google.bigtable.admin.v2.GcRule.IUnion|null); + } - /** Bytes encoding. */ - public encoding?: (google.bigtable.admin.v2.Type.Bytes.IEncoding|null); + /** Represents a GcRule. */ + class GcRule implements IGcRule { - /** - * Creates a new Bytes instance using the specified properties. - * @param [properties] Properties to set - * @returns Bytes instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IBytes): google.bigtable.admin.v2.Type.Bytes; + /** + * Constructs a new GcRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IGcRule); - /** - * Encodes the specified Bytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.verify|verify} messages. - * @param message Bytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IBytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** GcRule maxNumVersions. */ + public maxNumVersions?: (number|null); - /** - * Encodes the specified Bytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.verify|verify} messages. - * @param message Bytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IBytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** GcRule maxAge. */ + public maxAge?: (google.protobuf.IDuration|null); - /** - * Decodes a Bytes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Bytes; + /** GcRule intersection. */ + public intersection?: (google.bigtable.admin.v2.GcRule.IIntersection|null); - /** - * Decodes a Bytes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Bytes; + /** GcRule union. */ + public union?: (google.bigtable.admin.v2.GcRule.IUnion|null); - /** - * Verifies a Bytes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** GcRule rule. */ + public rule?: ("maxNumVersions"|"maxAge"|"intersection"|"union"); - /** - * Creates a Bytes message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Bytes - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Bytes; + /** + * Creates a new GcRule instance using the specified properties. + * @param [properties] Properties to set + * @returns GcRule instance + */ + public static create(properties?: google.bigtable.admin.v2.IGcRule): google.bigtable.admin.v2.GcRule; + + /** + * Encodes the specified GcRule message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.verify|verify} messages. + * @param message GcRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IGcRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcRule message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.verify|verify} messages. + * @param message GcRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IGcRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GcRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GcRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.GcRule; + + /** + * Decodes a GcRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GcRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.GcRule; + + /** + * Verifies a GcRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GcRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GcRule + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.GcRule; + + /** + * Creates a plain object from a GcRule message. Also converts values to other types if specified. + * @param message GcRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.GcRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GcRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GcRule { + + /** Properties of an Intersection. */ + interface IIntersection { + + /** Intersection rules */ + rules?: (google.bigtable.admin.v2.IGcRule[]|null); + } + + /** Represents an Intersection. */ + class Intersection implements IIntersection { /** - * Creates a plain object from a Bytes message. Also converts values to other types if specified. - * @param message Bytes + * Constructs a new Intersection. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.GcRule.IIntersection); + + /** Intersection rules. */ + public rules: google.bigtable.admin.v2.IGcRule[]; + + /** + * Creates a new Intersection instance using the specified properties. + * @param [properties] Properties to set + * @returns Intersection instance + */ + public static create(properties?: google.bigtable.admin.v2.GcRule.IIntersection): google.bigtable.admin.v2.GcRule.Intersection; + + /** + * Encodes the specified Intersection message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Intersection.verify|verify} messages. + * @param message Intersection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.GcRule.IIntersection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Intersection message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Intersection.verify|verify} messages. + * @param message Intersection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.GcRule.IIntersection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Intersection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Intersection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.GcRule.Intersection; + + /** + * Decodes an Intersection message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Intersection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.GcRule.Intersection; + + /** + * Verifies an Intersection message. + * @param message Plain 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 Intersection message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Intersection + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.GcRule.Intersection; + + /** + * Creates a plain object from an Intersection message. Also converts values to other types if specified. + * @param message Intersection * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type.Bytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.GcRule.Intersection, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Bytes to JSON. + * Converts this Intersection to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Bytes + * Gets the default type url for Intersection * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Bytes { - - /** Properties of an Encoding. */ - interface IEncoding { + /** Properties of an Union. */ + interface IUnion { - /** Encoding raw */ - raw?: (google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw|null); - } + /** Union rules */ + rules?: (google.bigtable.admin.v2.IGcRule[]|null); + } - /** Represents an Encoding. */ - class Encoding implements IEncoding { + /** Represents an Union. */ + class Union implements IUnion { - /** - * Constructs a new Encoding. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Bytes.IEncoding); + /** + * Constructs a new Union. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.GcRule.IUnion); - /** Encoding raw. */ - public raw?: (google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw|null); + /** Union rules. */ + public rules: google.bigtable.admin.v2.IGcRule[]; - /** Encoding encoding. */ - public encoding?: "raw"; + /** + * Creates a new Union instance using the specified properties. + * @param [properties] Properties to set + * @returns Union instance + */ + public static create(properties?: google.bigtable.admin.v2.GcRule.IUnion): google.bigtable.admin.v2.GcRule.Union; - /** - * Creates a new Encoding instance using the specified properties. - * @param [properties] Properties to set - * @returns Encoding instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Bytes.IEncoding): google.bigtable.admin.v2.Type.Bytes.Encoding; + /** + * Encodes the specified Union message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Union.verify|verify} messages. + * @param message Union message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.GcRule.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Bytes.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Union message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Union.verify|verify} messages. + * @param message Union message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.GcRule.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Bytes.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an Union message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Union + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.GcRule.Union; - /** - * Decodes an Encoding message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Bytes.Encoding; - - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Bytes.Encoding; - - /** - * Verifies an Encoding message. - * @param message Plain 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 Encoding message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Encoding - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Bytes.Encoding; - - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @param message Encoding - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Bytes.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Encoding to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Encoding - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Encoding { - - /** Properties of a Raw. */ - interface IRaw { - } - - /** Represents a Raw. */ - class Raw implements IRaw { - - /** - * Constructs a new Raw. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw); - - /** - * Creates a new Raw instance using the specified properties. - * @param [properties] Properties to set - * @returns Raw instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw): google.bigtable.admin.v2.Type.Bytes.Encoding.Raw; - - /** - * Encodes the specified Raw message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. - * @param message Raw message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Raw message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. - * @param message Raw message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Raw message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Bytes.Encoding.Raw; - - /** - * Decodes a Raw message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Bytes.Encoding.Raw; - - /** - * Verifies a Raw message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Raw message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Raw - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Bytes.Encoding.Raw; - - /** - * Creates a plain object from a Raw message. Also converts values to other types if specified. - * @param message Raw - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Bytes.Encoding.Raw, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Raw to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Raw - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } - - /** Properties of a String. */ - interface IString { - - /** String encoding */ - encoding?: (google.bigtable.admin.v2.Type.String.IEncoding|null); - } - - /** Represents a String. */ - class String implements IString { - - /** - * Constructs a new String. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IString); - - /** String encoding. */ - public encoding?: (google.bigtable.admin.v2.Type.String.IEncoding|null); - - /** - * Creates a new String instance using the specified properties. - * @param [properties] Properties to set - * @returns String instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IString): google.bigtable.admin.v2.Type.String; - - /** - * Encodes the specified String message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.verify|verify} messages. - * @param message String message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IString, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified String message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.verify|verify} messages. - * @param message String message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IString, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a String message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns String - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.String; + /** + * Decodes an Union message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Union + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.GcRule.Union; /** - * Decodes a String message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns String - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.String; - - /** - * Verifies a String message. + * Verifies an Union message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a String message from a plain object. Also converts values to their respective internal types. + * Creates an Union message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns String + * @returns Union */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.String; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.GcRule.Union; /** - * Creates a plain object from a String message. Also converts values to other types if specified. - * @param message String + * Creates a plain object from an Union message. Also converts values to other types if specified. + * @param message Union * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type.String, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.GcRule.Union, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this String to JSON. + * Converts this Union to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for String + * Gets the default type url for Union * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace String { + /** Properties of an EncryptionInfo. */ + interface IEncryptionInfo { - /** Properties of an Encoding. */ - interface IEncoding { + /** EncryptionInfo encryptionType */ + encryptionType?: (google.bigtable.admin.v2.EncryptionInfo.EncryptionType|keyof typeof google.bigtable.admin.v2.EncryptionInfo.EncryptionType|null); - /** Encoding utf8Raw */ - utf8Raw?: (google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw|null); + /** EncryptionInfo encryptionStatus */ + encryptionStatus?: (google.rpc.IStatus|null); - /** Encoding utf8Bytes */ - utf8Bytes?: (google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes|null); - } + /** EncryptionInfo kmsKeyVersion */ + kmsKeyVersion?: (string|null); + } - /** Represents an Encoding. */ - class Encoding implements IEncoding { + /** Represents an EncryptionInfo. */ + class EncryptionInfo implements IEncryptionInfo { - /** - * Constructs a new Encoding. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.String.IEncoding); + /** + * Constructs a new EncryptionInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IEncryptionInfo); - /** Encoding utf8Raw. */ - public utf8Raw?: (google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw|null); + /** EncryptionInfo encryptionType. */ + public encryptionType: (google.bigtable.admin.v2.EncryptionInfo.EncryptionType|keyof typeof google.bigtable.admin.v2.EncryptionInfo.EncryptionType); - /** Encoding utf8Bytes. */ - public utf8Bytes?: (google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes|null); + /** EncryptionInfo encryptionStatus. */ + public encryptionStatus?: (google.rpc.IStatus|null); - /** Encoding encoding. */ - public encoding?: ("utf8Raw"|"utf8Bytes"); + /** EncryptionInfo kmsKeyVersion. */ + public kmsKeyVersion: string; - /** - * Creates a new Encoding instance using the specified properties. - * @param [properties] Properties to set - * @returns Encoding instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.String.IEncoding): google.bigtable.admin.v2.Type.String.Encoding; + /** + * Creates a new EncryptionInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns EncryptionInfo instance + */ + public static create(properties?: google.bigtable.admin.v2.IEncryptionInfo): google.bigtable.admin.v2.EncryptionInfo; - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.String.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EncryptionInfo message. Does not implicitly {@link google.bigtable.admin.v2.EncryptionInfo.verify|verify} messages. + * @param message EncryptionInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IEncryptionInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.String.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EncryptionInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.EncryptionInfo.verify|verify} messages. + * @param message EncryptionInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IEncryptionInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an Encoding message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.String.Encoding; + /** + * Decodes an EncryptionInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EncryptionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.EncryptionInfo; - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.String.Encoding; + /** + * Decodes an EncryptionInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EncryptionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.EncryptionInfo; - /** - * Verifies an Encoding message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies an EncryptionInfo message. + * @param message Plain 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 Encoding message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Encoding - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.String.Encoding; + /** + * Creates an EncryptionInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EncryptionInfo + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.EncryptionInfo; - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @param message Encoding - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.String.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an EncryptionInfo message. Also converts values to other types if specified. + * @param message EncryptionInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.EncryptionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Encoding to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this EncryptionInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Encoding - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for EncryptionInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - namespace Encoding { + namespace EncryptionInfo { - /** Properties of an Utf8Raw. */ - interface IUtf8Raw { - } + /** EncryptionType enum. */ + enum EncryptionType { + ENCRYPTION_TYPE_UNSPECIFIED = 0, + GOOGLE_DEFAULT_ENCRYPTION = 1, + CUSTOMER_MANAGED_ENCRYPTION = 2 + } + } - /** Represents an Utf8Raw. */ - class Utf8Raw implements IUtf8Raw { + /** Properties of a Snapshot. */ + interface ISnapshot { - /** - * Constructs a new Utf8Raw. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw); + /** Snapshot name */ + name?: (string|null); - /** - * Creates a new Utf8Raw instance using the specified properties. - * @param [properties] Properties to set - * @returns Utf8Raw instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw): google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw; + /** Snapshot sourceTable */ + sourceTable?: (google.bigtable.admin.v2.ITable|null); - /** - * Encodes the specified Utf8Raw message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. - * @param message Utf8Raw message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw, writer?: $protobuf.Writer): $protobuf.Writer; + /** Snapshot dataSizeBytes */ + dataSizeBytes?: (number|Long|string|null); - /** - * Encodes the specified Utf8Raw message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. - * @param message Utf8Raw message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw, writer?: $protobuf.Writer): $protobuf.Writer; + /** Snapshot createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes an Utf8Raw message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Utf8Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw; + /** Snapshot deleteTime */ + deleteTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes an Utf8Raw message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Utf8Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw; + /** Snapshot state */ + state?: (google.bigtable.admin.v2.Snapshot.State|keyof typeof google.bigtable.admin.v2.Snapshot.State|null); - /** - * Verifies an Utf8Raw message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Snapshot description */ + description?: (string|null); + } - /** - * Creates an Utf8Raw message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Utf8Raw - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw; + /** Represents a Snapshot. */ + class Snapshot implements ISnapshot { - /** - * Creates a plain object from an Utf8Raw message. Also converts values to other types if specified. - * @param message Utf8Raw - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new Snapshot. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.ISnapshot); - /** - * Converts this Utf8Raw to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Snapshot name. */ + public name: string; - /** - * Gets the default type url for Utf8Raw - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Snapshot sourceTable. */ + public sourceTable?: (google.bigtable.admin.v2.ITable|null); - /** Properties of an Utf8Bytes. */ - interface IUtf8Bytes { - } + /** Snapshot dataSizeBytes. */ + public dataSizeBytes: (number|Long|string); - /** Represents an Utf8Bytes. */ - class Utf8Bytes implements IUtf8Bytes { + /** Snapshot createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new Utf8Bytes. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes); + /** Snapshot deleteTime. */ + public deleteTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new Utf8Bytes instance using the specified properties. - * @param [properties] Properties to set - * @returns Utf8Bytes instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes): google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes; + /** Snapshot state. */ + public state: (google.bigtable.admin.v2.Snapshot.State|keyof typeof google.bigtable.admin.v2.Snapshot.State); - /** - * Encodes the specified Utf8Bytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. - * @param message Utf8Bytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** Snapshot description. */ + public description: string; - /** - * Encodes the specified Utf8Bytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. - * @param message Utf8Bytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Snapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns Snapshot instance + */ + public static create(properties?: google.bigtable.admin.v2.ISnapshot): google.bigtable.admin.v2.Snapshot; - /** - * Decodes an Utf8Bytes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Utf8Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes; + /** + * Encodes the specified Snapshot message. Does not implicitly {@link google.bigtable.admin.v2.Snapshot.verify|verify} messages. + * @param message Snapshot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an Utf8Bytes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Utf8Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes; + /** + * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Snapshot.verify|verify} messages. + * @param message Snapshot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an Utf8Bytes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a Snapshot message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Snapshot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Snapshot; - /** - * Creates an Utf8Bytes message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Utf8Bytes - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes; + /** + * Decodes a Snapshot message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Snapshot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Snapshot; - /** - * Creates a plain object from an Utf8Bytes message. Also converts values to other types if specified. - * @param message Utf8Bytes - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a Snapshot message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this Utf8Bytes to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Snapshot + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Snapshot; - /** - * Gets the default type url for Utf8Bytes - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** + * Creates a plain object from a Snapshot message. Also converts values to other types if specified. + * @param message Snapshot + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of an Int64. */ - interface IInt64 { + /** + * Converts this Snapshot to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Int64 encoding */ - encoding?: (google.bigtable.admin.v2.Type.Int64.IEncoding|null); - } + /** + * Gets the default type url for Snapshot + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents an Int64. */ - class Int64 implements IInt64 { + namespace Snapshot { - /** - * Constructs a new Int64. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IInt64); + /** State enum. */ + enum State { + STATE_NOT_KNOWN = 0, + READY = 1, + CREATING = 2 + } + } - /** Int64 encoding. */ - public encoding?: (google.bigtable.admin.v2.Type.Int64.IEncoding|null); + /** Properties of a Backup. */ + interface IBackup { - /** - * Creates a new Int64 instance using the specified properties. - * @param [properties] Properties to set - * @returns Int64 instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IInt64): google.bigtable.admin.v2.Type.Int64; + /** Backup name */ + name?: (string|null); - /** - * Encodes the specified Int64 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.verify|verify} messages. - * @param message Int64 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IInt64, writer?: $protobuf.Writer): $protobuf.Writer; + /** Backup sourceTable */ + sourceTable?: (string|null); - /** - * Encodes the specified Int64 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.verify|verify} messages. - * @param message Int64 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IInt64, writer?: $protobuf.Writer): $protobuf.Writer; + /** Backup sourceBackup */ + sourceBackup?: (string|null); - /** - * Decodes an Int64 message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Int64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Int64; + /** Backup expireTime */ + expireTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes an Int64 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Int64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Int64; + /** Backup startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies an Int64 message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Backup endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Creates an Int64 message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Int64 - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Int64; + /** Backup sizeBytes */ + sizeBytes?: (number|Long|string|null); - /** - * Creates a plain object from an Int64 message. Also converts values to other types if specified. - * @param message Int64 - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Int64, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Backup state */ + state?: (google.bigtable.admin.v2.Backup.State|keyof typeof google.bigtable.admin.v2.Backup.State|null); - /** - * Converts this Int64 to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Backup encryptionInfo */ + encryptionInfo?: (google.bigtable.admin.v2.IEncryptionInfo|null); - /** - * Gets the default type url for Int64 - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Backup backupType */ + backupType?: (google.bigtable.admin.v2.Backup.BackupType|keyof typeof google.bigtable.admin.v2.Backup.BackupType|null); - namespace Int64 { + /** Backup hotToStandardTime */ + hotToStandardTime?: (google.protobuf.ITimestamp|null); + } - /** Properties of an Encoding. */ - interface IEncoding { + /** Represents a Backup. */ + class Backup implements IBackup { - /** Encoding bigEndianBytes */ - bigEndianBytes?: (google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes|null); + /** + * Constructs a new Backup. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IBackup); - /** Encoding orderedCodeBytes */ - orderedCodeBytes?: (google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes|null); - } + /** Backup name. */ + public name: string; - /** Represents an Encoding. */ - class Encoding implements IEncoding { + /** Backup sourceTable. */ + public sourceTable: string; - /** - * Constructs a new Encoding. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Int64.IEncoding); + /** Backup sourceBackup. */ + public sourceBackup: string; - /** Encoding bigEndianBytes. */ - public bigEndianBytes?: (google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes|null); + /** Backup expireTime. */ + public expireTime?: (google.protobuf.ITimestamp|null); - /** Encoding orderedCodeBytes. */ - public orderedCodeBytes?: (google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes|null); + /** Backup startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** Encoding encoding. */ - public encoding?: ("bigEndianBytes"|"orderedCodeBytes"); + /** Backup endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new Encoding instance using the specified properties. - * @param [properties] Properties to set - * @returns Encoding instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Int64.IEncoding): google.bigtable.admin.v2.Type.Int64.Encoding; + /** Backup sizeBytes. */ + public sizeBytes: (number|Long|string); - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Int64.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + /** Backup state. */ + public state: (google.bigtable.admin.v2.Backup.State|keyof typeof google.bigtable.admin.v2.Backup.State); - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Int64.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + /** Backup encryptionInfo. */ + public encryptionInfo?: (google.bigtable.admin.v2.IEncryptionInfo|null); - /** - * Decodes an Encoding message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Int64.Encoding; + /** Backup backupType. */ + public backupType: (google.bigtable.admin.v2.Backup.BackupType|keyof typeof google.bigtable.admin.v2.Backup.BackupType); - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Int64.Encoding; + /** Backup hotToStandardTime. */ + public hotToStandardTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies an Encoding message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new Backup instance using the specified properties. + * @param [properties] Properties to set + * @returns Backup instance + */ + public static create(properties?: google.bigtable.admin.v2.IBackup): google.bigtable.admin.v2.Backup; - /** - * Creates an Encoding message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Encoding - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Int64.Encoding; + /** + * Encodes the specified Backup message. Does not implicitly {@link google.bigtable.admin.v2.Backup.verify|verify} messages. + * @param message Backup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IBackup, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @param message Encoding - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Int64.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Backup.verify|verify} messages. + * @param message Backup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IBackup, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Encoding to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a Backup message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Backup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Backup; - /** - * Gets the default type url for Encoding - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a Backup message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Backup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Backup; - namespace Encoding { + /** + * Verifies a Backup message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a BigEndianBytes. */ - interface IBigEndianBytes { + /** + * Creates a Backup message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Backup + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Backup; - /** BigEndianBytes bytesType */ - bytesType?: (google.bigtable.admin.v2.Type.IBytes|null); - } + /** + * Creates a plain object from a Backup message. Also converts values to other types if specified. + * @param message Backup + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Backup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a BigEndianBytes. */ - class BigEndianBytes implements IBigEndianBytes { + /** + * Converts this Backup to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new BigEndianBytes. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes); + /** + * Gets the default type url for Backup + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** BigEndianBytes bytesType. */ - public bytesType?: (google.bigtable.admin.v2.Type.IBytes|null); + namespace Backup { - /** - * Creates a new BigEndianBytes instance using the specified properties. - * @param [properties] Properties to set - * @returns BigEndianBytes instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes): google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes; + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + CREATING = 1, + READY = 2 + } - /** - * Encodes the specified BigEndianBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. - * @param message BigEndianBytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** BackupType enum. */ + enum BackupType { + BACKUP_TYPE_UNSPECIFIED = 0, + STANDARD = 1, + HOT = 2 + } + } - /** - * Encodes the specified BigEndianBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. - * @param message BigEndianBytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a BackupInfo. */ + interface IBackupInfo { - /** - * Decodes a BigEndianBytes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BigEndianBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes; + /** BackupInfo backup */ + backup?: (string|null); - /** - * Decodes a BigEndianBytes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BigEndianBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes; + /** BackupInfo startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies a BigEndianBytes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** BackupInfo endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a BigEndianBytes message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BigEndianBytes - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes; + /** BackupInfo sourceTable */ + sourceTable?: (string|null); - /** - * Creates a plain object from a BigEndianBytes message. Also converts values to other types if specified. - * @param message BigEndianBytes - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** BackupInfo sourceBackup */ + sourceBackup?: (string|null); + } - /** - * Converts this BigEndianBytes to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a BackupInfo. */ + class BackupInfo implements IBackupInfo { - /** - * Gets the default type url for BigEndianBytes - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new BackupInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IBackupInfo); - /** Properties of an OrderedCodeBytes. */ - interface IOrderedCodeBytes { - } + /** BackupInfo backup. */ + public backup: string; - /** Represents an OrderedCodeBytes. */ - class OrderedCodeBytes implements IOrderedCodeBytes { + /** BackupInfo startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new OrderedCodeBytes. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes); + /** BackupInfo endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new OrderedCodeBytes instance using the specified properties. - * @param [properties] Properties to set - * @returns OrderedCodeBytes instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes): google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes; + /** BackupInfo sourceTable. */ + public sourceTable: string; - /** - * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. - * @param message OrderedCodeBytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** BackupInfo sourceBackup. */ + public sourceBackup: string; - /** - * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. - * @param message OrderedCodeBytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new BackupInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupInfo instance + */ + public static create(properties?: google.bigtable.admin.v2.IBackupInfo): google.bigtable.admin.v2.BackupInfo; - /** - * Decodes an OrderedCodeBytes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OrderedCodeBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes; + /** + * Encodes the specified BackupInfo message. Does not implicitly {@link google.bigtable.admin.v2.BackupInfo.verify|verify} messages. + * @param message BackupInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OrderedCodeBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes; + /** + * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.BackupInfo.verify|verify} messages. + * @param message BackupInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an OrderedCodeBytes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a BackupInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.BackupInfo; - /** - * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OrderedCodeBytes - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes; + /** + * Decodes a BackupInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.BackupInfo; - /** - * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. - * @param message OrderedCodeBytes - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a BackupInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this OrderedCodeBytes to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a BackupInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupInfo + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.BackupInfo; - /** - * Gets the default type url for OrderedCodeBytes - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** + * Creates a plain object from a BackupInfo message. Also converts values to other types if specified. + * @param message BackupInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.BackupInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a Bool. */ - interface IBool { - } + /** + * Converts this BackupInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a Bool. */ - class Bool implements IBool { + /** + * Gets the default type url for BackupInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new Bool. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IBool); + /** RestoreSourceType enum. */ + enum RestoreSourceType { + RESTORE_SOURCE_TYPE_UNSPECIFIED = 0, + BACKUP = 1 + } - /** - * Creates a new Bool instance using the specified properties. - * @param [properties] Properties to set - * @returns Bool instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IBool): google.bigtable.admin.v2.Type.Bool; + /** Properties of a ProtoSchema. */ + interface IProtoSchema { - /** - * Encodes the specified Bool message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bool.verify|verify} messages. - * @param message Bool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IBool, writer?: $protobuf.Writer): $protobuf.Writer; + /** ProtoSchema protoDescriptors */ + protoDescriptors?: (Uint8Array|Buffer|string|null); + } - /** - * Encodes the specified Bool message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bool.verify|verify} messages. - * @param message Bool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IBool, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Bool message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Bool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Bool; + /** Represents a ProtoSchema. */ + class ProtoSchema implements IProtoSchema { - /** - * Decodes a Bool message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Bool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Bool; + /** + * Constructs a new ProtoSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IProtoSchema); - /** - * Verifies a Bool message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ProtoSchema protoDescriptors. */ + public protoDescriptors: (Uint8Array|Buffer|string); - /** - * Creates a Bool message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Bool - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Bool; + /** + * Creates a new ProtoSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns ProtoSchema instance + */ + public static create(properties?: google.bigtable.admin.v2.IProtoSchema): google.bigtable.admin.v2.ProtoSchema; - /** - * Creates a plain object from a Bool message. Also converts values to other types if specified. - * @param message Bool - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Bool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ProtoSchema message. Does not implicitly {@link google.bigtable.admin.v2.ProtoSchema.verify|verify} messages. + * @param message ProtoSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IProtoSchema, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Bool to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ProtoSchema message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ProtoSchema.verify|verify} messages. + * @param message ProtoSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IProtoSchema, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for Bool - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ProtoSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProtoSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.ProtoSchema; - /** Properties of a Float32. */ - interface IFloat32 { - } + /** + * Decodes a ProtoSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProtoSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.ProtoSchema; - /** Represents a Float32. */ - class Float32 implements IFloat32 { + /** + * Verifies a ProtoSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new Float32. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IFloat32); + /** + * Creates a ProtoSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProtoSchema + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.ProtoSchema; - /** - * Creates a new Float32 instance using the specified properties. - * @param [properties] Properties to set - * @returns Float32 instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IFloat32): google.bigtable.admin.v2.Type.Float32; + /** + * Creates a plain object from a ProtoSchema message. Also converts values to other types if specified. + * @param message ProtoSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.ProtoSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified Float32 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Float32.verify|verify} messages. - * @param message Float32 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IFloat32, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ProtoSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified Float32 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Float32.verify|verify} messages. - * @param message Float32 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IFloat32, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ProtoSchema + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a Float32 message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Float32 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Float32; + /** Properties of a SchemaBundle. */ + interface ISchemaBundle { - /** - * Decodes a Float32 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Float32 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Float32; + /** SchemaBundle name */ + name?: (string|null); - /** - * Verifies a Float32 message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** SchemaBundle protoSchema */ + protoSchema?: (google.bigtable.admin.v2.IProtoSchema|null); - /** - * Creates a Float32 message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Float32 - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Float32; + /** SchemaBundle etag */ + etag?: (string|null); + } - /** - * Creates a plain object from a Float32 message. Also converts values to other types if specified. - * @param message Float32 - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Float32, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a SchemaBundle. */ + class SchemaBundle implements ISchemaBundle { - /** - * Converts this Float32 to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new SchemaBundle. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.ISchemaBundle); - /** - * Gets the default type url for Float32 - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SchemaBundle name. */ + public name: string; - /** Properties of a Float64. */ - interface IFloat64 { - } + /** SchemaBundle protoSchema. */ + public protoSchema?: (google.bigtable.admin.v2.IProtoSchema|null); - /** Represents a Float64. */ - class Float64 implements IFloat64 { + /** SchemaBundle etag. */ + public etag: string; - /** - * Constructs a new Float64. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IFloat64); + /** SchemaBundle type. */ + public type?: "protoSchema"; - /** - * Creates a new Float64 instance using the specified properties. - * @param [properties] Properties to set - * @returns Float64 instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IFloat64): google.bigtable.admin.v2.Type.Float64; + /** + * Creates a new SchemaBundle instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaBundle instance + */ + public static create(properties?: google.bigtable.admin.v2.ISchemaBundle): google.bigtable.admin.v2.SchemaBundle; - /** - * Encodes the specified Float64 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Float64.verify|verify} messages. - * @param message Float64 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IFloat64, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SchemaBundle message. Does not implicitly {@link google.bigtable.admin.v2.SchemaBundle.verify|verify} messages. + * @param message SchemaBundle message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.ISchemaBundle, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Float64 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Float64.verify|verify} messages. - * @param message Float64 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IFloat64, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SchemaBundle message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.SchemaBundle.verify|verify} messages. + * @param message SchemaBundle message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.ISchemaBundle, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Float64 message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Float64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Float64; + /** + * Decodes a SchemaBundle message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaBundle + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.SchemaBundle; - /** - * Decodes a Float64 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Float64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Float64; + /** + * Decodes a SchemaBundle message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SchemaBundle + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.SchemaBundle; - /** - * Verifies a Float64 message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a SchemaBundle message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a Float64 message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Float64 - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Float64; + /** + * Creates a SchemaBundle message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SchemaBundle + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.SchemaBundle; - /** - * Creates a plain object from a Float64 message. Also converts values to other types if specified. - * @param message Float64 - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Float64, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a SchemaBundle message. Also converts values to other types if specified. + * @param message SchemaBundle + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.SchemaBundle, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Float64 to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this SchemaBundle to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Float64 - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for SchemaBundle + * @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 { + /** Properties of a Type. */ + interface IType { - /** Timestamp encoding */ - encoding?: (google.bigtable.admin.v2.Type.Timestamp.IEncoding|null); - } + /** Type bytesType */ + bytesType?: (google.bigtable.admin.v2.Type.IBytes|null); - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** Type stringType */ + stringType?: (google.bigtable.admin.v2.Type.IString|null); - /** - * Constructs a new Timestamp. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.ITimestamp); + /** Type int64Type */ + int64Type?: (google.bigtable.admin.v2.Type.IInt64|null); - /** Timestamp encoding. */ - public encoding?: (google.bigtable.admin.v2.Type.Timestamp.IEncoding|null); + /** Type float32Type */ + float32Type?: (google.bigtable.admin.v2.Type.IFloat32|null); - /** - * Creates a new Timestamp instance using the specified properties. - * @param [properties] Properties to set - * @returns Timestamp instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.ITimestamp): google.bigtable.admin.v2.Type.Timestamp; + /** Type float64Type */ + float64Type?: (google.bigtable.admin.v2.Type.IFloat64|null); - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + /** Type boolType */ + boolType?: (google.bigtable.admin.v2.Type.IBool|null); - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + /** Type timestampType */ + timestampType?: (google.bigtable.admin.v2.Type.ITimestamp|null); - /** - * 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.bigtable.admin.v2.Type.Timestamp; + /** Type dateType */ + dateType?: (google.bigtable.admin.v2.Type.IDate|null); - /** - * 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.bigtable.admin.v2.Type.Timestamp; + /** Type aggregateType */ + aggregateType?: (google.bigtable.admin.v2.Type.IAggregate|null); - /** - * 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); + /** Type structType */ + structType?: (google.bigtable.admin.v2.Type.IStruct|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.bigtable.admin.v2.Type.Timestamp; + /** Type arrayType */ + arrayType?: (google.bigtable.admin.v2.Type.IArray|null); - /** - * 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.bigtable.admin.v2.Type.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Type mapType */ + mapType?: (google.bigtable.admin.v2.Type.IMap|null); - /** - * Converts this Timestamp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Type protoType */ + protoType?: (google.bigtable.admin.v2.Type.IProto|null); - /** - * 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; - } + /** Type enumType */ + enumType?: (google.bigtable.admin.v2.Type.IEnum|null); + } - namespace Timestamp { + /** Represents a Type. */ + class Type implements IType { - /** Properties of an Encoding. */ - interface IEncoding { + /** + * Constructs a new Type. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.IType); - /** Encoding unixMicrosInt64 */ - unixMicrosInt64?: (google.bigtable.admin.v2.Type.Int64.IEncoding|null); - } + /** Type bytesType. */ + public bytesType?: (google.bigtable.admin.v2.Type.IBytes|null); - /** Represents an Encoding. */ - class Encoding implements IEncoding { + /** Type stringType. */ + public stringType?: (google.bigtable.admin.v2.Type.IString|null); - /** - * Constructs a new Encoding. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Timestamp.IEncoding); + /** Type int64Type. */ + public int64Type?: (google.bigtable.admin.v2.Type.IInt64|null); - /** Encoding unixMicrosInt64. */ - public unixMicrosInt64?: (google.bigtable.admin.v2.Type.Int64.IEncoding|null); + /** Type float32Type. */ + public float32Type?: (google.bigtable.admin.v2.Type.IFloat32|null); - /** Encoding encoding. */ - public encoding?: "unixMicrosInt64"; + /** Type float64Type. */ + public float64Type?: (google.bigtable.admin.v2.Type.IFloat64|null); - /** - * Creates a new Encoding instance using the specified properties. - * @param [properties] Properties to set - * @returns Encoding instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Timestamp.IEncoding): google.bigtable.admin.v2.Type.Timestamp.Encoding; + /** Type boolType. */ + public boolType?: (google.bigtable.admin.v2.Type.IBool|null); - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Timestamp.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + /** Type timestampType. */ + public timestampType?: (google.bigtable.admin.v2.Type.ITimestamp|null); - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Timestamp.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + /** Type dateType. */ + public dateType?: (google.bigtable.admin.v2.Type.IDate|null); - /** - * Decodes an Encoding message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Timestamp.Encoding; + /** Type aggregateType. */ + public aggregateType?: (google.bigtable.admin.v2.Type.IAggregate|null); - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Timestamp.Encoding; + /** Type structType. */ + public structType?: (google.bigtable.admin.v2.Type.IStruct|null); - /** - * Verifies an Encoding message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Type arrayType. */ + public arrayType?: (google.bigtable.admin.v2.Type.IArray|null); - /** - * Creates an Encoding message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Encoding - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Timestamp.Encoding; - - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @param message Encoding - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Timestamp.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Encoding to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Encoding - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Type mapType. */ + public mapType?: (google.bigtable.admin.v2.Type.IMap|null); - /** Properties of a Date. */ - interface IDate { - } + /** Type protoType. */ + public protoType?: (google.bigtable.admin.v2.Type.IProto|null); - /** Represents a Date. */ - class Date implements IDate { + /** Type enumType. */ + public enumType?: (google.bigtable.admin.v2.Type.IEnum|null); - /** - * Constructs a new Date. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IDate); + /** Type kind. */ + public kind?: ("bytesType"|"stringType"|"int64Type"|"float32Type"|"float64Type"|"boolType"|"timestampType"|"dateType"|"aggregateType"|"structType"|"arrayType"|"mapType"|"protoType"|"enumType"); - /** - * Creates a new Date instance using the specified properties. - * @param [properties] Properties to set - * @returns Date instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IDate): google.bigtable.admin.v2.Type.Date; + /** + * Creates a new Type instance using the specified properties. + * @param [properties] Properties to set + * @returns Type instance + */ + public static create(properties?: google.bigtable.admin.v2.IType): google.bigtable.admin.v2.Type; - /** - * Encodes the specified Date message. Does not implicitly {@link google.bigtable.admin.v2.Type.Date.verify|verify} messages. - * @param message Date message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IDate, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Type message. Does not implicitly {@link google.bigtable.admin.v2.Type.verify|verify} messages. + * @param message Type message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.IType, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Date message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Date.verify|verify} messages. - * @param message Date message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IDate, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Type message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.verify|verify} messages. + * @param message Type message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.IType, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Date message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Date - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Date; + /** + * Decodes a Type message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Type + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type; - /** - * Decodes a Date message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Date - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Date; + /** + * Decodes a Type message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Type + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type; - /** - * Verifies a Date message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a Type message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a Date message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Date - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Date; + /** + * Creates a Type message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Type + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type; - /** - * Creates a plain object from a Date message. Also converts values to other types if specified. - * @param message Date - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Date, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a Type message. Also converts values to other types if specified. + * @param message Type + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Date to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this Type to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Date - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for Type + * @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 { + namespace Type { - /** Struct fields */ - fields?: (google.bigtable.admin.v2.Type.Struct.IField[]|null); + /** Properties of a Bytes. */ + interface IBytes { - /** Struct encoding */ - encoding?: (google.bigtable.admin.v2.Type.Struct.IEncoding|null); + /** Bytes encoding */ + encoding?: (google.bigtable.admin.v2.Type.Bytes.IEncoding|null); } - /** Represents a Struct. */ - class Struct implements IStruct { + /** Represents a Bytes. */ + class Bytes implements IBytes { /** - * Constructs a new Struct. + * Constructs a new Bytes. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.Type.IStruct); - - /** Struct fields. */ - public fields: google.bigtable.admin.v2.Type.Struct.IField[]; + constructor(properties?: google.bigtable.admin.v2.Type.IBytes); - /** Struct encoding. */ - public encoding?: (google.bigtable.admin.v2.Type.Struct.IEncoding|null); + /** Bytes encoding. */ + public encoding?: (google.bigtable.admin.v2.Type.Bytes.IEncoding|null); /** - * Creates a new Struct instance using the specified properties. + * Creates a new Bytes instance using the specified properties. * @param [properties] Properties to set - * @returns Struct instance + * @returns Bytes instance */ - public static create(properties?: google.bigtable.admin.v2.Type.IStruct): google.bigtable.admin.v2.Type.Struct; + public static create(properties?: google.bigtable.admin.v2.Type.IBytes): google.bigtable.admin.v2.Type.Bytes; /** - * Encodes the specified Struct message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode + * Encodes the specified Bytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.verify|verify} messages. + * @param message Bytes message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.Type.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.Type.IBytes, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode + * Encodes the specified Bytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.verify|verify} messages. + * @param message Bytes message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IBytes, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Struct message from the specified reader or buffer. + * Decodes a Bytes message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Struct + * @returns Bytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Bytes; /** - * Decodes a Struct message from the specified reader or buffer, length delimited. + * Decodes a Bytes message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Struct + * @returns Bytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Bytes; /** - * Verifies a Struct message. + * Verifies a Bytes message. * @param message Plain object 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. + * Creates a Bytes message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Struct + * @returns Bytes */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Bytes; /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. - * @param message Struct + * Creates a plain object from a Bytes message. Also converts values to other types if specified. + * @param message Bytes * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.Type.Bytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Struct to JSON. + * Converts this Bytes to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Struct + * Gets the default type url for Bytes * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Struct { - - /** Properties of a Field. */ - interface IField { + namespace Bytes { - /** Field fieldName */ - fieldName?: (string|null); + /** Properties of an Encoding. */ + interface IEncoding { - /** Field type */ - type?: (google.bigtable.admin.v2.IType|null); - } - - /** Represents a Field. */ - class Field implements IField { - - /** - * Constructs a new Field. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Struct.IField); - - /** Field fieldName. */ - public fieldName: string; - - /** Field type. */ - public type?: (google.bigtable.admin.v2.IType|null); - - /** - * Creates a new Field instance using the specified properties. - * @param [properties] Properties to set - * @returns Field instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Struct.IField): google.bigtable.admin.v2.Type.Struct.Field; - - /** - * Encodes the specified Field message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Struct.IField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.IField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Field message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Field; - - /** - * Decodes a Field message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Field; - - /** - * Verifies a Field message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Field - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Field; - - /** - * Creates a plain object from a Field message. Also converts values to other types if specified. - * @param message Field - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Struct.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Field to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Field - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an Encoding. */ - interface IEncoding { - - /** Encoding singleton */ - singleton?: (google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton|null); - - /** Encoding delimitedBytes */ - delimitedBytes?: (google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes|null); - - /** Encoding orderedCodeBytes */ - orderedCodeBytes?: (google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes|null); + /** Encoding raw */ + raw?: (google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw|null); } /** Represents an Encoding. */ @@ -16833,42 +16258,36 @@ export namespace google { * Constructs a new Encoding. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.Type.Struct.IEncoding); - - /** Encoding singleton. */ - public singleton?: (google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton|null); - - /** Encoding delimitedBytes. */ - public delimitedBytes?: (google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes|null); + constructor(properties?: google.bigtable.admin.v2.Type.Bytes.IEncoding); - /** Encoding orderedCodeBytes. */ - public orderedCodeBytes?: (google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes|null); + /** Encoding raw. */ + public raw?: (google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw|null); /** Encoding encoding. */ - public encoding?: ("singleton"|"delimitedBytes"|"orderedCodeBytes"); + public encoding?: "raw"; /** * Creates a new Encoding instance using the specified properties. * @param [properties] Properties to set * @returns Encoding instance */ - public static create(properties?: google.bigtable.admin.v2.Type.Struct.IEncoding): google.bigtable.admin.v2.Type.Struct.Encoding; + public static create(properties?: google.bigtable.admin.v2.Type.Bytes.IEncoding): google.bigtable.admin.v2.Type.Bytes.Encoding; /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.verify|verify} messages. + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.verify|verify} messages. * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.Type.Struct.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.Type.Bytes.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.verify|verify} messages. + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.verify|verify} messages. * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Bytes.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Encoding message from the specified reader or buffer. @@ -16878,7 +16297,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Encoding; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Bytes.Encoding; /** * Decodes an Encoding message from the specified reader or buffer, length delimited. @@ -16887,7 +16306,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Encoding; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Bytes.Encoding; /** * Verifies an Encoding message. @@ -16901,7 +16320,7 @@ export namespace google { * @param object Plain object * @returns Encoding */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Encoding; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Bytes.Encoding; /** * Creates a plain object from an Encoding message. Also converts values to other types if specified. @@ -16909,7 +16328,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type.Struct.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.Type.Bytes.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Encoding to JSON. @@ -16927,9006 +16346,12176 @@ export namespace google { namespace Encoding { - /** Properties of a Singleton. */ - interface ISingleton { + /** Properties of a Raw. */ + interface IRaw { } - /** Represents a Singleton. */ - class Singleton implements ISingleton { + /** Represents a Raw. */ + class Raw implements IRaw { /** - * Constructs a new Singleton. + * Constructs a new Raw. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton); + constructor(properties?: google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw); /** - * Creates a new Singleton instance using the specified properties. + * Creates a new Raw instance using the specified properties. * @param [properties] Properties to set - * @returns Singleton instance + * @returns Raw instance */ - public static create(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton): google.bigtable.admin.v2.Type.Struct.Encoding.Singleton; + public static create(properties?: google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw): google.bigtable.admin.v2.Type.Bytes.Encoding.Raw; /** - * Encodes the specified Singleton message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. - * @param message Singleton message or plain object to encode + * Encodes the specified Raw message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. + * @param message Raw message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Singleton message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. - * @param message Singleton message or plain object to encode + * Encodes the specified Raw message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. + * @param message Raw message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Singleton message from the specified reader or buffer. + * Decodes a Raw message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Singleton + * @returns Raw * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Encoding.Singleton; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Bytes.Encoding.Raw; /** - * Decodes a Singleton message from the specified reader or buffer, length delimited. + * Decodes a Raw message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Singleton + * @returns Raw * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Encoding.Singleton; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Bytes.Encoding.Raw; /** - * Verifies a Singleton message. + * Verifies a Raw message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Singleton message from a plain object. Also converts values to their respective internal types. + * Creates a Raw message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Singleton + * @returns Raw */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Encoding.Singleton; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Bytes.Encoding.Raw; /** - * Creates a plain object from a Singleton message. Also converts values to other types if specified. - * @param message Singleton + * Creates a plain object from a Raw message. Also converts values to other types if specified. + * @param message Raw * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type.Struct.Encoding.Singleton, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.Type.Bytes.Encoding.Raw, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Singleton to JSON. + * Converts this Raw to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Singleton + * Gets the default type url for Raw * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } + } - /** Properties of a DelimitedBytes. */ - interface IDelimitedBytes { - - /** DelimitedBytes delimiter */ - delimiter?: (Uint8Array|Buffer|string|null); - } + /** Properties of a String. */ + interface IString { - /** Represents a DelimitedBytes. */ - class DelimitedBytes implements IDelimitedBytes { + /** String encoding */ + encoding?: (google.bigtable.admin.v2.Type.String.IEncoding|null); + } - /** - * Constructs a new DelimitedBytes. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes); + /** Represents a String. */ + class String implements IString { - /** DelimitedBytes delimiter. */ - public delimiter: (Uint8Array|Buffer|string); + /** + * Constructs a new String. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IString); - /** - * Creates a new DelimitedBytes instance using the specified properties. - * @param [properties] Properties to set - * @returns DelimitedBytes instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes): google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes; + /** String encoding. */ + public encoding?: (google.bigtable.admin.v2.Type.String.IEncoding|null); - /** - * Encodes the specified DelimitedBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. - * @param message DelimitedBytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DelimitedBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. - * @param message DelimitedBytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DelimitedBytes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DelimitedBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes; - - /** - * Decodes a DelimitedBytes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DelimitedBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes; - - /** - * Verifies a DelimitedBytes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DelimitedBytes message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DelimitedBytes - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes; - - /** - * Creates a plain object from a DelimitedBytes message. Also converts values to other types if specified. - * @param message DelimitedBytes - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DelimitedBytes to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DelimitedBytes - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an OrderedCodeBytes. */ - interface IOrderedCodeBytes { - } - - /** Represents an OrderedCodeBytes. */ - class OrderedCodeBytes implements IOrderedCodeBytes { - - /** - * Constructs a new OrderedCodeBytes. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes); - - /** - * Creates a new OrderedCodeBytes instance using the specified properties. - * @param [properties] Properties to set - * @returns OrderedCodeBytes instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes): google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes; - - /** - * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. - * @param message OrderedCodeBytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. - * @param message OrderedCodeBytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OrderedCodeBytes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OrderedCodeBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes; - - /** - * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OrderedCodeBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes; - - /** - * Verifies an OrderedCodeBytes message. - * @param message Plain 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 OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OrderedCodeBytes - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes; - - /** - * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. - * @param message OrderedCodeBytes - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this OrderedCodeBytes to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for OrderedCodeBytes - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } - - /** Properties of an Array. */ - interface IArray { - - /** Array elementType */ - elementType?: (google.bigtable.admin.v2.IType|null); - } - - /** Represents an Array. */ - class Array implements IArray { - - /** - * Constructs a new Array. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IArray); - - /** Array elementType. */ - public elementType?: (google.bigtable.admin.v2.IType|null); - - /** - * Creates a new Array instance using the specified properties. - * @param [properties] Properties to set - * @returns Array instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IArray): google.bigtable.admin.v2.Type.Array; + /** + * Creates a new String instance using the specified properties. + * @param [properties] Properties to set + * @returns String instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IString): google.bigtable.admin.v2.Type.String; /** - * Encodes the specified Array message. Does not implicitly {@link google.bigtable.admin.v2.Type.Array.verify|verify} messages. - * @param message Array message or plain object to encode + * Encodes the specified String message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.verify|verify} messages. + * @param message String message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.Type.IArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.Type.IString, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Array message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Array.verify|verify} messages. - * @param message Array message or plain object to encode + * Encodes the specified String message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.verify|verify} messages. + * @param message String message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IString, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Array message from the specified reader or buffer. + * Decodes a String message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Array + * @returns String * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Array; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.String; /** - * Decodes an Array message from the specified reader or buffer, length delimited. + * Decodes a String message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Array + * @returns String * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Array; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.String; /** - * Verifies an Array message. + * Verifies a String message. * @param message Plain 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 Array message from a plain object. Also converts values to their respective internal types. + * Creates a String message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Array + * @returns String */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Array; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.String; /** - * Creates a plain object from an Array message. Also converts values to other types if specified. - * @param message Array + * Creates a plain object from a String message. Also converts values to other types if specified. + * @param message String * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type.Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.Type.String, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Array to JSON. + * Converts this String to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Array + * Gets the default type url for String * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Map. */ - interface IMap { + namespace String { - /** Map keyType */ - keyType?: (google.bigtable.admin.v2.IType|null); + /** Properties of an Encoding. */ + interface IEncoding { - /** Map valueType */ - valueType?: (google.bigtable.admin.v2.IType|null); - } + /** Encoding utf8Raw */ + utf8Raw?: (google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw|null); - /** Represents a Map. */ - class Map implements IMap { + /** Encoding utf8Bytes */ + utf8Bytes?: (google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes|null); + } - /** - * Constructs a new Map. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IMap); + /** Represents an Encoding. */ + class Encoding implements IEncoding { - /** Map keyType. */ - public keyType?: (google.bigtable.admin.v2.IType|null); + /** + * Constructs a new Encoding. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.String.IEncoding); - /** Map valueType. */ - public valueType?: (google.bigtable.admin.v2.IType|null); + /** Encoding utf8Raw. */ + public utf8Raw?: (google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw|null); - /** - * Creates a new Map instance using the specified properties. - * @param [properties] Properties to set - * @returns Map instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IMap): google.bigtable.admin.v2.Type.Map; - - /** - * Encodes the specified Map message. Does not implicitly {@link google.bigtable.admin.v2.Type.Map.verify|verify} messages. - * @param message Map message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Map message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Map.verify|verify} messages. - * @param message Map message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Map message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Map - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Map; - - /** - * Decodes a Map message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Map - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Map; - - /** - * Verifies a Map message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Map message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Map - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Map; - - /** - * Creates a plain object from a Map message. Also converts values to other types if specified. - * @param message Map - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Map, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Map to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Map - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an Aggregate. */ - interface IAggregate { - - /** Aggregate inputType */ - inputType?: (google.bigtable.admin.v2.IType|null); - - /** Aggregate stateType */ - stateType?: (google.bigtable.admin.v2.IType|null); - - /** Aggregate sum */ - sum?: (google.bigtable.admin.v2.Type.Aggregate.ISum|null); - - /** Aggregate hllppUniqueCount */ - hllppUniqueCount?: (google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount|null); - - /** Aggregate max */ - max?: (google.bigtable.admin.v2.Type.Aggregate.IMax|null); - - /** Aggregate min */ - min?: (google.bigtable.admin.v2.Type.Aggregate.IMin|null); - } - - /** Represents an Aggregate. */ - class Aggregate implements IAggregate { - - /** - * Constructs a new Aggregate. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.IAggregate); - - /** Aggregate inputType. */ - public inputType?: (google.bigtable.admin.v2.IType|null); - - /** Aggregate stateType. */ - public stateType?: (google.bigtable.admin.v2.IType|null); - - /** Aggregate sum. */ - public sum?: (google.bigtable.admin.v2.Type.Aggregate.ISum|null); - - /** Aggregate hllppUniqueCount. */ - public hllppUniqueCount?: (google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount|null); - - /** Aggregate max. */ - public max?: (google.bigtable.admin.v2.Type.Aggregate.IMax|null); - - /** Aggregate min. */ - public min?: (google.bigtable.admin.v2.Type.Aggregate.IMin|null); - - /** Aggregate aggregator. */ - public aggregator?: ("sum"|"hllppUniqueCount"|"max"|"min"); - - /** - * Creates a new Aggregate instance using the specified properties. - * @param [properties] Properties to set - * @returns Aggregate instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.IAggregate): google.bigtable.admin.v2.Type.Aggregate; - - /** - * Encodes the specified Aggregate message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.verify|verify} messages. - * @param message Aggregate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.IAggregate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Aggregate message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.verify|verify} messages. - * @param message Aggregate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.IAggregate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Aggregate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Aggregate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate; - - /** - * Decodes an Aggregate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Aggregate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate; - - /** - * Verifies an Aggregate message. - * @param message Plain 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 Aggregate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Aggregate - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate; - - /** - * Creates a plain object from an Aggregate message. Also converts values to other types if specified. - * @param message Aggregate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Aggregate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Aggregate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Aggregate - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Aggregate { - - /** Properties of a Sum. */ - interface ISum { - } - - /** Represents a Sum. */ - class Sum implements ISum { + /** Encoding utf8Bytes. */ + public utf8Bytes?: (google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes|null); - /** - * Constructs a new Sum. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Aggregate.ISum); + /** Encoding encoding. */ + public encoding?: ("utf8Raw"|"utf8Bytes"); /** - * Creates a new Sum instance using the specified properties. + * Creates a new Encoding instance using the specified properties. * @param [properties] Properties to set - * @returns Sum instance + * @returns Encoding instance */ - public static create(properties?: google.bigtable.admin.v2.Type.Aggregate.ISum): google.bigtable.admin.v2.Type.Aggregate.Sum; + public static create(properties?: google.bigtable.admin.v2.Type.String.IEncoding): google.bigtable.admin.v2.Type.String.Encoding; /** - * Encodes the specified Sum message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Sum.verify|verify} messages. - * @param message Sum message or plain object to encode + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.Type.Aggregate.ISum, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.Type.String.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Sum message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Sum.verify|verify} messages. - * @param message Sum message or plain object to encode + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Aggregate.ISum, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.Type.String.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Sum message from the specified reader or buffer. + * Decodes an Encoding message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Sum + * @returns Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate.Sum; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.String.Encoding; /** - * Decodes a Sum message from the specified reader or buffer, length delimited. + * Decodes an Encoding message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Sum + * @returns Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate.Sum; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.String.Encoding; /** - * Verifies a Sum message. + * Verifies an Encoding message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Sum message from a plain object. Also converts values to their respective internal types. + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Sum + * @returns Encoding */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate.Sum; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.String.Encoding; /** - * Creates a plain object from a Sum message. Also converts values to other types if specified. - * @param message Sum + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @param message Encoding * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type.Aggregate.Sum, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.Type.String.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Sum to JSON. + * Converts this Encoding to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Sum + * Gets the default type url for Encoding * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Max. */ - interface IMax { - } - - /** Represents a Max. */ - class Max implements IMax { + namespace Encoding { - /** - * Constructs a new Max. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Aggregate.IMax); + /** Properties of an Utf8Raw. */ + interface IUtf8Raw { + } - /** - * Creates a new Max instance using the specified properties. - * @param [properties] Properties to set - * @returns Max instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Aggregate.IMax): google.bigtable.admin.v2.Type.Aggregate.Max; + /** Represents an Utf8Raw. */ + class Utf8Raw implements IUtf8Raw { - /** - * Encodes the specified Max message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Max.verify|verify} messages. - * @param message Max message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Aggregate.IMax, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Utf8Raw. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw); - /** - * Encodes the specified Max message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Max.verify|verify} messages. - * @param message Max message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Aggregate.IMax, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Utf8Raw instance using the specified properties. + * @param [properties] Properties to set + * @returns Utf8Raw instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw): google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw; - /** - * Decodes a Max message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Max - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate.Max; + /** + * Encodes the specified Utf8Raw message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. + * @param message Utf8Raw message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Max message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Max - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate.Max; + /** + * Encodes the specified Utf8Raw message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. + * @param message Utf8Raw message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Max message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an Utf8Raw message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Utf8Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw; - /** - * Creates a Max message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Max - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate.Max; + /** + * Decodes an Utf8Raw message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Utf8Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw; - /** - * Creates a plain object from a Max message. Also converts values to other types if specified. - * @param message Max - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Aggregate.Max, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies an Utf8Raw message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this Max to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an Utf8Raw message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Utf8Raw + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw; - /** - * Gets the default type url for Max - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from an Utf8Raw message. Also converts values to other types if specified. + * @param message Utf8Raw + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a Min. */ - interface IMin { - } + /** + * Converts this Utf8Raw to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a Min. */ - class Min implements IMin { + /** + * Gets the default type url for Utf8Raw + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new Min. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.admin.v2.Type.Aggregate.IMin); + /** Properties of an Utf8Bytes. */ + interface IUtf8Bytes { + } - /** - * Creates a new Min instance using the specified properties. - * @param [properties] Properties to set - * @returns Min instance - */ - public static create(properties?: google.bigtable.admin.v2.Type.Aggregate.IMin): google.bigtable.admin.v2.Type.Aggregate.Min; + /** Represents an Utf8Bytes. */ + class Utf8Bytes implements IUtf8Bytes { - /** - * Encodes the specified Min message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Min.verify|verify} messages. - * @param message Min message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.admin.v2.Type.Aggregate.IMin, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Utf8Bytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes); - /** - * Encodes the specified Min message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Min.verify|verify} messages. - * @param message Min message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Aggregate.IMin, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Utf8Bytes instance using the specified properties. + * @param [properties] Properties to set + * @returns Utf8Bytes instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes): google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes; - /** - * Decodes a Min message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Min - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate.Min; + /** + * Encodes the specified Utf8Bytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. + * @param message Utf8Bytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Min message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Min - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate.Min; + /** + * Encodes the specified Utf8Bytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. + * @param message Utf8Bytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Min message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an Utf8Bytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Utf8Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes; - /** - * Creates a Min message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Min - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate.Min; + /** + * Decodes an Utf8Bytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Utf8Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes; - /** - * Creates a plain object from a Min message. Also converts values to other types if specified. - * @param message Min - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.admin.v2.Type.Aggregate.Min, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies an Utf8Bytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this Min to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an Utf8Bytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Utf8Bytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes; - /** - * Gets the default type url for Min - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates a plain object from an Utf8Bytes message. Also converts values to other types if specified. + * @param message Utf8Bytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Utf8Bytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Utf8Bytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } + } - /** Properties of a HyperLogLogPlusPlusUniqueCount. */ - interface IHyperLogLogPlusPlusUniqueCount { + /** Properties of an Int64. */ + interface IInt64 { + + /** Int64 encoding */ + encoding?: (google.bigtable.admin.v2.Type.Int64.IEncoding|null); + } + + /** Represents an Int64. */ + class Int64 implements IInt64 { + + /** + * Constructs a new Int64. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IInt64); + + /** Int64 encoding. */ + public encoding?: (google.bigtable.admin.v2.Type.Int64.IEncoding|null); + + /** + * Creates a new Int64 instance using the specified properties. + * @param [properties] Properties to set + * @returns Int64 instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IInt64): google.bigtable.admin.v2.Type.Int64; + + /** + * Encodes the specified Int64 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.verify|verify} messages. + * @param message Int64 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IInt64, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Int64 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.verify|verify} messages. + * @param message Int64 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IInt64, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Int64 message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Int64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Int64; + + /** + * Decodes an Int64 message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Int64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Int64; + + /** + * Verifies an Int64 message. + * @param message Plain 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 Int64 message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Int64 + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Int64; + + /** + * Creates a plain object from an Int64 message. Also converts values to other types if specified. + * @param message Int64 + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Int64, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Int64 to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Int64 + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Int64 { + + /** Properties of an Encoding. */ + interface IEncoding { + + /** Encoding bigEndianBytes */ + bigEndianBytes?: (google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes|null); + + /** Encoding orderedCodeBytes */ + orderedCodeBytes?: (google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes|null); } - /** Represents a HyperLogLogPlusPlusUniqueCount. */ - class HyperLogLogPlusPlusUniqueCount implements IHyperLogLogPlusPlusUniqueCount { + /** Represents an Encoding. */ + class Encoding implements IEncoding { /** - * Constructs a new HyperLogLogPlusPlusUniqueCount. + * Constructs a new Encoding. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount); + constructor(properties?: google.bigtable.admin.v2.Type.Int64.IEncoding); + + /** Encoding bigEndianBytes. */ + public bigEndianBytes?: (google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes|null); + + /** Encoding orderedCodeBytes. */ + public orderedCodeBytes?: (google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes|null); + + /** Encoding encoding. */ + public encoding?: ("bigEndianBytes"|"orderedCodeBytes"); /** - * Creates a new HyperLogLogPlusPlusUniqueCount instance using the specified properties. + * Creates a new Encoding instance using the specified properties. * @param [properties] Properties to set - * @returns HyperLogLogPlusPlusUniqueCount instance + * @returns Encoding instance */ - public static create(properties?: google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount): google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount; + public static create(properties?: google.bigtable.admin.v2.Type.Int64.IEncoding): google.bigtable.admin.v2.Type.Int64.Encoding; /** - * Encodes the specified HyperLogLogPlusPlusUniqueCount message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify|verify} messages. - * @param message HyperLogLogPlusPlusUniqueCount message or plain object to encode + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.admin.v2.Type.Int64.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HyperLogLogPlusPlusUniqueCount message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify|verify} messages. - * @param message HyperLogLogPlusPlusUniqueCount message or plain object to encode + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Int64.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HyperLogLogPlusPlusUniqueCount message from the specified reader or buffer. + * Decodes an Encoding message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HyperLogLogPlusPlusUniqueCount + * @returns Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Int64.Encoding; /** - * Decodes a HyperLogLogPlusPlusUniqueCount message from the specified reader or buffer, length delimited. + * Decodes an Encoding message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HyperLogLogPlusPlusUniqueCount + * @returns Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Int64.Encoding; /** - * Verifies a HyperLogLogPlusPlusUniqueCount message. + * Verifies an Encoding message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HyperLogLogPlusPlusUniqueCount message from a plain object. Also converts values to their respective internal types. + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HyperLogLogPlusPlusUniqueCount + * @returns Encoding */ - public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount; + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Int64.Encoding; /** - * Creates a plain object from a HyperLogLogPlusPlusUniqueCount message. Also converts values to other types if specified. - * @param message HyperLogLogPlusPlusUniqueCount + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @param message Encoding * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.admin.v2.Type.Int64.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HyperLogLogPlusPlusUniqueCount to JSON. + * Converts this Encoding to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HyperLogLogPlusPlusUniqueCount + * Gets the default type url for Encoding * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - } - } - } - /** Namespace v2. */ - namespace v2 { + namespace Encoding { + + /** Properties of a BigEndianBytes. */ + interface IBigEndianBytes { + + /** BigEndianBytes bytesType */ + bytesType?: (google.bigtable.admin.v2.Type.IBytes|null); + } + + /** Represents a BigEndianBytes. */ + class BigEndianBytes implements IBigEndianBytes { + + /** + * Constructs a new BigEndianBytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes); + + /** BigEndianBytes bytesType. */ + public bytesType?: (google.bigtable.admin.v2.Type.IBytes|null); + + /** + * Creates a new BigEndianBytes instance using the specified properties. + * @param [properties] Properties to set + * @returns BigEndianBytes instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes): google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes; + + /** + * Encodes the specified BigEndianBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * @param message BigEndianBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BigEndianBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * @param message BigEndianBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BigEndianBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BigEndianBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes; + + /** + * Decodes a BigEndianBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BigEndianBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes; + + /** + * Verifies a BigEndianBytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BigEndianBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BigEndianBytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes; + + /** + * Creates a plain object from a BigEndianBytes message. Also converts values to other types if specified. + * @param message BigEndianBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BigEndianBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BigEndianBytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OrderedCodeBytes. */ + interface IOrderedCodeBytes { + } + + /** Represents an OrderedCodeBytes. */ + class OrderedCodeBytes implements IOrderedCodeBytes { + + /** + * Constructs a new OrderedCodeBytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes); + + /** + * Creates a new OrderedCodeBytes instance using the specified properties. + * @param [properties] Properties to set + * @returns OrderedCodeBytes instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes): google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes; + + /** + * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. + * @param message OrderedCodeBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. + * @param message OrderedCodeBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes; + + /** + * Verifies an OrderedCodeBytes message. + * @param message Plain 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 OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OrderedCodeBytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes; + + /** + * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * @param message OrderedCodeBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OrderedCodeBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OrderedCodeBytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of a Bool. */ + interface IBool { + } + + /** Represents a Bool. */ + class Bool implements IBool { + + /** + * Constructs a new Bool. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IBool); + + /** + * Creates a new Bool instance using the specified properties. + * @param [properties] Properties to set + * @returns Bool instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IBool): google.bigtable.admin.v2.Type.Bool; + + /** + * Encodes the specified Bool message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bool.verify|verify} messages. + * @param message Bool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IBool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Bool message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bool.verify|verify} messages. + * @param message Bool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IBool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Bool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Bool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Bool; + + /** + * Decodes a Bool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Bool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Bool; + + /** + * Verifies a Bool message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Bool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Bool + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Bool; + + /** + * Creates a plain object from a Bool message. Also converts values to other types if specified. + * @param message Bool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Bool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Bool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Bool + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Float32. */ + interface IFloat32 { + } + + /** Represents a Float32. */ + class Float32 implements IFloat32 { + + /** + * Constructs a new Float32. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IFloat32); + + /** + * Creates a new Float32 instance using the specified properties. + * @param [properties] Properties to set + * @returns Float32 instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IFloat32): google.bigtable.admin.v2.Type.Float32; + + /** + * Encodes the specified Float32 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Float32.verify|verify} messages. + * @param message Float32 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IFloat32, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Float32 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Float32.verify|verify} messages. + * @param message Float32 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IFloat32, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Float32 message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Float32 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Float32; + + /** + * Decodes a Float32 message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Float32 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Float32; + + /** + * Verifies a Float32 message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Float32 message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Float32 + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Float32; + + /** + * Creates a plain object from a Float32 message. Also converts values to other types if specified. + * @param message Float32 + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Float32, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Float32 to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Float32 + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Float64. */ + interface IFloat64 { + } + + /** Represents a Float64. */ + class Float64 implements IFloat64 { + + /** + * Constructs a new Float64. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IFloat64); + + /** + * Creates a new Float64 instance using the specified properties. + * @param [properties] Properties to set + * @returns Float64 instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IFloat64): google.bigtable.admin.v2.Type.Float64; + + /** + * Encodes the specified Float64 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Float64.verify|verify} messages. + * @param message Float64 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IFloat64, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Float64 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Float64.verify|verify} messages. + * @param message Float64 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IFloat64, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Float64 message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Float64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Float64; + + /** + * Decodes a Float64 message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Float64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Float64; + + /** + * Verifies a Float64 message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Float64 message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Float64 + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Float64; + + /** + * Creates a plain object from a Float64 message. Also converts values to other types if specified. + * @param message Float64 + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Float64, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Float64 to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Float64 + * @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 encoding */ + encoding?: (google.bigtable.admin.v2.Type.Timestamp.IEncoding|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.ITimestamp); + + /** Timestamp encoding. */ + public encoding?: (google.bigtable.admin.v2.Type.Timestamp.IEncoding|null); + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.ITimestamp): google.bigtable.admin.v2.Type.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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; + } + + namespace Timestamp { + + /** Properties of an Encoding. */ + interface IEncoding { + + /** Encoding unixMicrosInt64 */ + unixMicrosInt64?: (google.bigtable.admin.v2.Type.Int64.IEncoding|null); + } + + /** Represents an Encoding. */ + class Encoding implements IEncoding { + + /** + * Constructs a new Encoding. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Timestamp.IEncoding); + + /** Encoding unixMicrosInt64. */ + public unixMicrosInt64?: (google.bigtable.admin.v2.Type.Int64.IEncoding|null); + + /** Encoding encoding. */ + public encoding?: "unixMicrosInt64"; + + /** + * Creates a new Encoding instance using the specified properties. + * @param [properties] Properties to set + * @returns Encoding instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Timestamp.IEncoding): google.bigtable.admin.v2.Type.Timestamp.Encoding; + + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Timestamp.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Timestamp.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Encoding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Timestamp.Encoding; + + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Timestamp.Encoding; + + /** + * Verifies an Encoding message. + * @param message Plain 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 Encoding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Encoding + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Timestamp.Encoding; + + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @param message Encoding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Timestamp.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Encoding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Encoding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a Date. */ + interface IDate { + } + + /** Represents a Date. */ + class Date implements IDate { + + /** + * Constructs a new Date. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IDate); + + /** + * Creates a new Date instance using the specified properties. + * @param [properties] Properties to set + * @returns Date instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IDate): google.bigtable.admin.v2.Type.Date; + + /** + * Encodes the specified Date message. Does not implicitly {@link google.bigtable.admin.v2.Type.Date.verify|verify} messages. + * @param message Date message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IDate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Date message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Date.verify|verify} messages. + * @param message Date message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IDate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Date message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Date + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Date; + + /** + * Decodes a Date message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Date + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Date; + + /** + * Verifies a Date message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Date message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Date + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Date; + + /** + * Creates a plain object from a Date message. Also converts values to other types if specified. + * @param message Date + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Date, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Date to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Date + * @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?: (google.bigtable.admin.v2.Type.Struct.IField[]|null); + + /** Struct encoding */ + encoding?: (google.bigtable.admin.v2.Type.Struct.IEncoding|null); + } + + /** Represents a Struct. */ + class Struct implements IStruct { + + /** + * Constructs a new Struct. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IStruct); + + /** Struct fields. */ + public fields: google.bigtable.admin.v2.Type.Struct.IField[]; + + /** Struct encoding. */ + public encoding?: (google.bigtable.admin.v2.Type.Struct.IEncoding|null); + + /** + * Creates a new Struct instance using the specified properties. + * @param [properties] Properties to set + * @returns Struct instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IStruct): google.bigtable.admin.v2.Type.Struct; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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.bigtable.admin.v2.Type.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; + } + + namespace Struct { + + /** Properties of a Field. */ + interface IField { + + /** Field fieldName */ + fieldName?: (string|null); + + /** Field type */ + type?: (google.bigtable.admin.v2.IType|null); + } + + /** Represents a Field. */ + class Field implements IField { + + /** + * Constructs a new Field. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Struct.IField); + + /** Field fieldName. */ + public fieldName: string; + + /** Field type. */ + public type?: (google.bigtable.admin.v2.IType|null); + + /** + * Creates a new Field instance using the specified properties. + * @param [properties] Properties to set + * @returns Field instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Struct.IField): google.bigtable.admin.v2.Type.Struct.Field; + + /** + * Encodes the specified Field message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Struct.IField, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Field message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.IField, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Field message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Field; + + /** + * Decodes a Field message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Field; + + /** + * Verifies a Field message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Field message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Field + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Field; + + /** + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @param message Field + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Struct.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Field to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Field + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Encoding. */ + interface IEncoding { + + /** Encoding singleton */ + singleton?: (google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton|null); + + /** Encoding delimitedBytes */ + delimitedBytes?: (google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes|null); + + /** Encoding orderedCodeBytes */ + orderedCodeBytes?: (google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes|null); + } + + /** Represents an Encoding. */ + class Encoding implements IEncoding { + + /** + * Constructs a new Encoding. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Struct.IEncoding); + + /** Encoding singleton. */ + public singleton?: (google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton|null); + + /** Encoding delimitedBytes. */ + public delimitedBytes?: (google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes|null); + + /** Encoding orderedCodeBytes. */ + public orderedCodeBytes?: (google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes|null); + + /** Encoding encoding. */ + public encoding?: ("singleton"|"delimitedBytes"|"orderedCodeBytes"); + + /** + * Creates a new Encoding instance using the specified properties. + * @param [properties] Properties to set + * @returns Encoding instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Struct.IEncoding): google.bigtable.admin.v2.Type.Struct.Encoding; + + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Struct.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Encoding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Encoding; + + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Encoding; + + /** + * Verifies an Encoding message. + * @param message Plain 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 Encoding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Encoding + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Encoding; + + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @param message Encoding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Struct.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Encoding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Encoding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Encoding { + + /** Properties of a Singleton. */ + interface ISingleton { + } + + /** Represents a Singleton. */ + class Singleton implements ISingleton { + + /** + * Constructs a new Singleton. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton); + + /** + * Creates a new Singleton instance using the specified properties. + * @param [properties] Properties to set + * @returns Singleton instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton): google.bigtable.admin.v2.Type.Struct.Encoding.Singleton; + + /** + * Encodes the specified Singleton message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. + * @param message Singleton message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Singleton message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. + * @param message Singleton message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Singleton message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Singleton + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Encoding.Singleton; + + /** + * Decodes a Singleton message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Singleton + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Encoding.Singleton; + + /** + * Verifies a Singleton message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Singleton message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Singleton + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Encoding.Singleton; + + /** + * Creates a plain object from a Singleton message. Also converts values to other types if specified. + * @param message Singleton + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Struct.Encoding.Singleton, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Singleton to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Singleton + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DelimitedBytes. */ + interface IDelimitedBytes { + + /** DelimitedBytes delimiter */ + delimiter?: (Uint8Array|Buffer|string|null); + } + + /** Represents a DelimitedBytes. */ + class DelimitedBytes implements IDelimitedBytes { + + /** + * Constructs a new DelimitedBytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes); + + /** DelimitedBytes delimiter. */ + public delimiter: (Uint8Array|Buffer|string); + + /** + * Creates a new DelimitedBytes instance using the specified properties. + * @param [properties] Properties to set + * @returns DelimitedBytes instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes): google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes; + + /** + * Encodes the specified DelimitedBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * @param message DelimitedBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DelimitedBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * @param message DelimitedBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DelimitedBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DelimitedBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes; + + /** + * Decodes a DelimitedBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DelimitedBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes; + + /** + * Verifies a DelimitedBytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DelimitedBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DelimitedBytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes; + + /** + * Creates a plain object from a DelimitedBytes message. Also converts values to other types if specified. + * @param message DelimitedBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DelimitedBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DelimitedBytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OrderedCodeBytes. */ + interface IOrderedCodeBytes { + } + + /** Represents an OrderedCodeBytes. */ + class OrderedCodeBytes implements IOrderedCodeBytes { + + /** + * Constructs a new OrderedCodeBytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes); + + /** + * Creates a new OrderedCodeBytes instance using the specified properties. + * @param [properties] Properties to set + * @returns OrderedCodeBytes instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes): google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes; + + /** + * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. + * @param message OrderedCodeBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. + * @param message OrderedCodeBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes; + + /** + * Verifies an OrderedCodeBytes message. + * @param message Plain 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 OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OrderedCodeBytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes; + + /** + * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * @param message OrderedCodeBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OrderedCodeBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OrderedCodeBytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of a Proto. */ + interface IProto { + + /** Proto schemaBundleId */ + schemaBundleId?: (string|null); + + /** Proto messageName */ + messageName?: (string|null); + } + + /** Represents a Proto. */ + class Proto implements IProto { + + /** + * Constructs a new Proto. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IProto); + + /** Proto schemaBundleId. */ + public schemaBundleId: string; + + /** Proto messageName. */ + public messageName: string; + + /** + * Creates a new Proto instance using the specified properties. + * @param [properties] Properties to set + * @returns Proto instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IProto): google.bigtable.admin.v2.Type.Proto; + + /** + * Encodes the specified Proto message. Does not implicitly {@link google.bigtable.admin.v2.Type.Proto.verify|verify} messages. + * @param message Proto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Proto message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Proto.verify|verify} messages. + * @param message Proto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Proto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Proto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Proto; + + /** + * Decodes a Proto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Proto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Proto; + + /** + * Verifies a Proto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Proto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Proto + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Proto; + + /** + * Creates a plain object from a Proto message. Also converts values to other types if specified. + * @param message Proto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Proto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Proto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Proto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Enum. */ + interface IEnum { + + /** Enum schemaBundleId */ + schemaBundleId?: (string|null); + + /** Enum enumName */ + enumName?: (string|null); + } + + /** Represents an Enum. */ + class Enum implements IEnum { + + /** + * Constructs a new Enum. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IEnum); + + /** Enum schemaBundleId. */ + public schemaBundleId: string; + + /** Enum enumName. */ + public enumName: string; + + /** + * Creates a new Enum instance using the specified properties. + * @param [properties] Properties to set + * @returns Enum instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IEnum): google.bigtable.admin.v2.Type.Enum; + + /** + * Encodes the specified Enum message. Does not implicitly {@link google.bigtable.admin.v2.Type.Enum.verify|verify} messages. + * @param message Enum message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IEnum, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Enum message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Enum.verify|verify} messages. + * @param message Enum message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IEnum, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Enum message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Enum + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Enum; + + /** + * Decodes an Enum message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Enum + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Enum; + + /** + * Verifies an Enum message. + * @param message Plain 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 Enum message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Enum + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Enum; + + /** + * Creates a plain object from an Enum message. Also converts values to other types if specified. + * @param message Enum + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Enum, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Enum to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Enum + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Array. */ + interface IArray { + + /** Array elementType */ + elementType?: (google.bigtable.admin.v2.IType|null); + } + + /** Represents an Array. */ + class Array implements IArray { + + /** + * Constructs a new Array. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IArray); + + /** Array elementType. */ + public elementType?: (google.bigtable.admin.v2.IType|null); + + /** + * Creates a new Array instance using the specified properties. + * @param [properties] Properties to set + * @returns Array instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IArray): google.bigtable.admin.v2.Type.Array; + + /** + * Encodes the specified Array message. Does not implicitly {@link google.bigtable.admin.v2.Type.Array.verify|verify} messages. + * @param message Array message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IArray, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Array message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Array.verify|verify} messages. + * @param message Array message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IArray, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Array message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Array + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Array; + + /** + * Decodes an Array message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Array + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Array; + + /** + * Verifies an Array message. + * @param message Plain 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 Array message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Array + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Array; + + /** + * Creates a plain object from an Array message. Also converts values to other types if specified. + * @param message Array + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Array to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Array + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Map. */ + interface IMap { + + /** Map keyType */ + keyType?: (google.bigtable.admin.v2.IType|null); + + /** Map valueType */ + valueType?: (google.bigtable.admin.v2.IType|null); + } + + /** Represents a Map. */ + class Map implements IMap { + + /** + * Constructs a new Map. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IMap); + + /** Map keyType. */ + public keyType?: (google.bigtable.admin.v2.IType|null); + + /** Map valueType. */ + public valueType?: (google.bigtable.admin.v2.IType|null); + + /** + * Creates a new Map instance using the specified properties. + * @param [properties] Properties to set + * @returns Map instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IMap): google.bigtable.admin.v2.Type.Map; + + /** + * Encodes the specified Map message. Does not implicitly {@link google.bigtable.admin.v2.Type.Map.verify|verify} messages. + * @param message Map message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Map message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Map.verify|verify} messages. + * @param message Map message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Map message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Map + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Map; + + /** + * Decodes a Map message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Map + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Map; + + /** + * Verifies a Map message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Map message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Map + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Map; + + /** + * Creates a plain object from a Map message. Also converts values to other types if specified. + * @param message Map + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Map, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Map to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Map + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Aggregate. */ + interface IAggregate { + + /** Aggregate inputType */ + inputType?: (google.bigtable.admin.v2.IType|null); + + /** Aggregate stateType */ + stateType?: (google.bigtable.admin.v2.IType|null); + + /** Aggregate sum */ + sum?: (google.bigtable.admin.v2.Type.Aggregate.ISum|null); + + /** Aggregate hllppUniqueCount */ + hllppUniqueCount?: (google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount|null); + + /** Aggregate max */ + max?: (google.bigtable.admin.v2.Type.Aggregate.IMax|null); + + /** Aggregate min */ + min?: (google.bigtable.admin.v2.Type.Aggregate.IMin|null); + } + + /** Represents an Aggregate. */ + class Aggregate implements IAggregate { + + /** + * Constructs a new Aggregate. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.IAggregate); + + /** Aggregate inputType. */ + public inputType?: (google.bigtable.admin.v2.IType|null); + + /** Aggregate stateType. */ + public stateType?: (google.bigtable.admin.v2.IType|null); + + /** Aggregate sum. */ + public sum?: (google.bigtable.admin.v2.Type.Aggregate.ISum|null); + + /** Aggregate hllppUniqueCount. */ + public hllppUniqueCount?: (google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount|null); + + /** Aggregate max. */ + public max?: (google.bigtable.admin.v2.Type.Aggregate.IMax|null); + + /** Aggregate min. */ + public min?: (google.bigtable.admin.v2.Type.Aggregate.IMin|null); + + /** Aggregate aggregator. */ + public aggregator?: ("sum"|"hllppUniqueCount"|"max"|"min"); + + /** + * Creates a new Aggregate instance using the specified properties. + * @param [properties] Properties to set + * @returns Aggregate instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.IAggregate): google.bigtable.admin.v2.Type.Aggregate; + + /** + * Encodes the specified Aggregate message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.verify|verify} messages. + * @param message Aggregate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.IAggregate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Aggregate message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.verify|verify} messages. + * @param message Aggregate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.IAggregate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Aggregate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Aggregate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate; + + /** + * Decodes an Aggregate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Aggregate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate; + + /** + * Verifies an Aggregate message. + * @param message Plain 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 Aggregate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Aggregate + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate; + + /** + * Creates a plain object from an Aggregate message. Also converts values to other types if specified. + * @param message Aggregate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Aggregate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Aggregate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Aggregate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Aggregate { + + /** Properties of a Sum. */ + interface ISum { + } + + /** Represents a Sum. */ + class Sum implements ISum { + + /** + * Constructs a new Sum. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Aggregate.ISum); + + /** + * Creates a new Sum instance using the specified properties. + * @param [properties] Properties to set + * @returns Sum instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Aggregate.ISum): google.bigtable.admin.v2.Type.Aggregate.Sum; + + /** + * Encodes the specified Sum message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Sum.verify|verify} messages. + * @param message Sum message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Aggregate.ISum, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Sum message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Sum.verify|verify} messages. + * @param message Sum message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Aggregate.ISum, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Sum message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Sum + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate.Sum; + + /** + * Decodes a Sum message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Sum + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate.Sum; + + /** + * Verifies a Sum message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Sum message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Sum + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate.Sum; + + /** + * Creates a plain object from a Sum message. Also converts values to other types if specified. + * @param message Sum + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Aggregate.Sum, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Sum to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Sum + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Max. */ + interface IMax { + } + + /** Represents a Max. */ + class Max implements IMax { + + /** + * Constructs a new Max. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Aggregate.IMax); + + /** + * Creates a new Max instance using the specified properties. + * @param [properties] Properties to set + * @returns Max instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Aggregate.IMax): google.bigtable.admin.v2.Type.Aggregate.Max; + + /** + * Encodes the specified Max message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Max.verify|verify} messages. + * @param message Max message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Aggregate.IMax, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Max message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Max.verify|verify} messages. + * @param message Max message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Aggregate.IMax, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Max message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Max + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate.Max; + + /** + * Decodes a Max message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Max + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate.Max; + + /** + * Verifies a Max message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Max message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Max + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate.Max; + + /** + * Creates a plain object from a Max message. Also converts values to other types if specified. + * @param message Max + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Aggregate.Max, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Max to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Max + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Min. */ + interface IMin { + } + + /** Represents a Min. */ + class Min implements IMin { + + /** + * Constructs a new Min. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Aggregate.IMin); + + /** + * Creates a new Min instance using the specified properties. + * @param [properties] Properties to set + * @returns Min instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Aggregate.IMin): google.bigtable.admin.v2.Type.Aggregate.Min; + + /** + * Encodes the specified Min message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Min.verify|verify} messages. + * @param message Min message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Aggregate.IMin, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Min message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Min.verify|verify} messages. + * @param message Min message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Aggregate.IMin, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Min message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Min + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate.Min; + + /** + * Decodes a Min message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Min + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate.Min; + + /** + * Verifies a Min message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Min message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Min + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate.Min; + + /** + * Creates a plain object from a Min message. Also converts values to other types if specified. + * @param message Min + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Aggregate.Min, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Min to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Min + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HyperLogLogPlusPlusUniqueCount. */ + interface IHyperLogLogPlusPlusUniqueCount { + } + + /** Represents a HyperLogLogPlusPlusUniqueCount. */ + class HyperLogLogPlusPlusUniqueCount implements IHyperLogLogPlusPlusUniqueCount { + + /** + * Constructs a new HyperLogLogPlusPlusUniqueCount. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount); + + /** + * Creates a new HyperLogLogPlusPlusUniqueCount instance using the specified properties. + * @param [properties] Properties to set + * @returns HyperLogLogPlusPlusUniqueCount instance + */ + public static create(properties?: google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount): google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount; + + /** + * Encodes the specified HyperLogLogPlusPlusUniqueCount message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify|verify} messages. + * @param message HyperLogLogPlusPlusUniqueCount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HyperLogLogPlusPlusUniqueCount message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify|verify} messages. + * @param message HyperLogLogPlusPlusUniqueCount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HyperLogLogPlusPlusUniqueCount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HyperLogLogPlusPlusUniqueCount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount; + + /** + * Decodes a HyperLogLogPlusPlusUniqueCount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HyperLogLogPlusPlusUniqueCount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount; + + /** + * Verifies a HyperLogLogPlusPlusUniqueCount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HyperLogLogPlusPlusUniqueCount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HyperLogLogPlusPlusUniqueCount + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount; + + /** + * Creates a plain object from a HyperLogLogPlusPlusUniqueCount message. Also converts values to other types if specified. + * @param message HyperLogLogPlusPlusUniqueCount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HyperLogLogPlusPlusUniqueCount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HyperLogLogPlusPlusUniqueCount + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + } + } + + /** Namespace v2. */ + namespace v2 { /** Represents a Bigtable */ class Bigtable extends $protobuf.rpc.Service { /** - * Constructs a new Bigtable service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new Bigtable 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 Bigtable 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): Bigtable; + + /** + * Calls ReadRows. + * @param request ReadRowsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadRowsResponse + */ + public readRows(request: google.bigtable.v2.IReadRowsRequest, callback: google.bigtable.v2.Bigtable.ReadRowsCallback): void; + + /** + * Calls ReadRows. + * @param request ReadRowsRequest message or plain object + * @returns Promise + */ + public readRows(request: google.bigtable.v2.IReadRowsRequest): Promise; + + /** + * Calls SampleRowKeys. + * @param request SampleRowKeysRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SampleRowKeysResponse + */ + public sampleRowKeys(request: google.bigtable.v2.ISampleRowKeysRequest, callback: google.bigtable.v2.Bigtable.SampleRowKeysCallback): void; + + /** + * Calls SampleRowKeys. + * @param request SampleRowKeysRequest message or plain object + * @returns Promise + */ + public sampleRowKeys(request: google.bigtable.v2.ISampleRowKeysRequest): Promise; + + /** + * Calls MutateRow. + * @param request MutateRowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MutateRowResponse + */ + public mutateRow(request: google.bigtable.v2.IMutateRowRequest, callback: google.bigtable.v2.Bigtable.MutateRowCallback): void; + + /** + * Calls MutateRow. + * @param request MutateRowRequest message or plain object + * @returns Promise + */ + public mutateRow(request: google.bigtable.v2.IMutateRowRequest): Promise; + + /** + * Calls MutateRows. + * @param request MutateRowsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MutateRowsResponse + */ + public mutateRows(request: google.bigtable.v2.IMutateRowsRequest, callback: google.bigtable.v2.Bigtable.MutateRowsCallback): void; + + /** + * Calls MutateRows. + * @param request MutateRowsRequest message or plain object + * @returns Promise + */ + public mutateRows(request: google.bigtable.v2.IMutateRowsRequest): Promise; + + /** + * Calls CheckAndMutateRow. + * @param request CheckAndMutateRowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CheckAndMutateRowResponse + */ + public checkAndMutateRow(request: google.bigtable.v2.ICheckAndMutateRowRequest, callback: google.bigtable.v2.Bigtable.CheckAndMutateRowCallback): void; + + /** + * Calls CheckAndMutateRow. + * @param request CheckAndMutateRowRequest message or plain object + * @returns Promise + */ + public checkAndMutateRow(request: google.bigtable.v2.ICheckAndMutateRowRequest): Promise; + + /** + * Calls PingAndWarm. + * @param request PingAndWarmRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PingAndWarmResponse + */ + public pingAndWarm(request: google.bigtable.v2.IPingAndWarmRequest, callback: google.bigtable.v2.Bigtable.PingAndWarmCallback): void; + + /** + * Calls PingAndWarm. + * @param request PingAndWarmRequest message or plain object + * @returns Promise + */ + public pingAndWarm(request: google.bigtable.v2.IPingAndWarmRequest): Promise; + + /** + * Calls ReadModifyWriteRow. + * @param request ReadModifyWriteRowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadModifyWriteRowResponse + */ + public readModifyWriteRow(request: google.bigtable.v2.IReadModifyWriteRowRequest, callback: google.bigtable.v2.Bigtable.ReadModifyWriteRowCallback): void; + + /** + * Calls ReadModifyWriteRow. + * @param request ReadModifyWriteRowRequest message or plain object + * @returns Promise + */ + public readModifyWriteRow(request: google.bigtable.v2.IReadModifyWriteRowRequest): Promise; + + /** + * Calls GenerateInitialChangeStreamPartitions. + * @param request GenerateInitialChangeStreamPartitionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GenerateInitialChangeStreamPartitionsResponse + */ + public generateInitialChangeStreamPartitions(request: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest, callback: google.bigtable.v2.Bigtable.GenerateInitialChangeStreamPartitionsCallback): void; + + /** + * Calls GenerateInitialChangeStreamPartitions. + * @param request GenerateInitialChangeStreamPartitionsRequest message or plain object + * @returns Promise + */ + public generateInitialChangeStreamPartitions(request: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest): Promise; + + /** + * Calls ReadChangeStream. + * @param request ReadChangeStreamRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadChangeStreamResponse + */ + public readChangeStream(request: google.bigtable.v2.IReadChangeStreamRequest, callback: google.bigtable.v2.Bigtable.ReadChangeStreamCallback): void; + + /** + * Calls ReadChangeStream. + * @param request ReadChangeStreamRequest message or plain object + * @returns Promise + */ + public readChangeStream(request: google.bigtable.v2.IReadChangeStreamRequest): Promise; + + /** + * Calls PrepareQuery. + * @param request PrepareQueryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PrepareQueryResponse + */ + public prepareQuery(request: google.bigtable.v2.IPrepareQueryRequest, callback: google.bigtable.v2.Bigtable.PrepareQueryCallback): void; + + /** + * Calls PrepareQuery. + * @param request PrepareQueryRequest message or plain object + * @returns Promise + */ + public prepareQuery(request: google.bigtable.v2.IPrepareQueryRequest): Promise; + + /** + * Calls ExecuteQuery. + * @param request ExecuteQueryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecuteQueryResponse + */ + public executeQuery(request: google.bigtable.v2.IExecuteQueryRequest, callback: google.bigtable.v2.Bigtable.ExecuteQueryCallback): void; + + /** + * Calls ExecuteQuery. + * @param request ExecuteQueryRequest message or plain object + * @returns Promise + */ + public executeQuery(request: google.bigtable.v2.IExecuteQueryRequest): Promise; + } + + namespace Bigtable { + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. + * @param error Error, if any + * @param [response] ReadRowsResponse + */ + type ReadRowsCallback = (error: (Error|null), response?: google.bigtable.v2.ReadRowsResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. + * @param error Error, if any + * @param [response] SampleRowKeysResponse + */ + type SampleRowKeysCallback = (error: (Error|null), response?: google.bigtable.v2.SampleRowKeysResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. + * @param error Error, if any + * @param [response] MutateRowResponse + */ + type MutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. + * @param error Error, if any + * @param [response] MutateRowsResponse + */ + type MutateRowsCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowsResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. + * @param error Error, if any + * @param [response] CheckAndMutateRowResponse + */ + type CheckAndMutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.CheckAndMutateRowResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. + * @param error Error, if any + * @param [response] PingAndWarmResponse + */ + type PingAndWarmCallback = (error: (Error|null), response?: google.bigtable.v2.PingAndWarmResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. + * @param error Error, if any + * @param [response] ReadModifyWriteRowResponse + */ + type ReadModifyWriteRowCallback = (error: (Error|null), response?: google.bigtable.v2.ReadModifyWriteRowResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|generateInitialChangeStreamPartitions}. + * @param error Error, if any + * @param [response] GenerateInitialChangeStreamPartitionsResponse + */ + type GenerateInitialChangeStreamPartitionsCallback = (error: (Error|null), response?: google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|readChangeStream}. + * @param error Error, if any + * @param [response] ReadChangeStreamResponse + */ + type ReadChangeStreamCallback = (error: (Error|null), response?: google.bigtable.v2.ReadChangeStreamResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|prepareQuery}. + * @param error Error, if any + * @param [response] PrepareQueryResponse + */ + type PrepareQueryCallback = (error: (Error|null), response?: google.bigtable.v2.PrepareQueryResponse) => void; + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|executeQuery}. + * @param error Error, if any + * @param [response] ExecuteQueryResponse + */ + type ExecuteQueryCallback = (error: (Error|null), response?: google.bigtable.v2.ExecuteQueryResponse) => void; + } + + /** Properties of a ReadRowsRequest. */ + interface IReadRowsRequest { + + /** ReadRowsRequest tableName */ + tableName?: (string|null); + + /** ReadRowsRequest authorizedViewName */ + authorizedViewName?: (string|null); + + /** ReadRowsRequest materializedViewName */ + materializedViewName?: (string|null); + + /** ReadRowsRequest appProfileId */ + appProfileId?: (string|null); + + /** ReadRowsRequest rows */ + rows?: (google.bigtable.v2.IRowSet|null); + + /** ReadRowsRequest filter */ + filter?: (google.bigtable.v2.IRowFilter|null); + + /** ReadRowsRequest rowsLimit */ + rowsLimit?: (number|Long|string|null); + + /** ReadRowsRequest requestStatsView */ + requestStatsView?: (google.bigtable.v2.ReadRowsRequest.RequestStatsView|keyof typeof google.bigtable.v2.ReadRowsRequest.RequestStatsView|null); + + /** ReadRowsRequest reversed */ + reversed?: (boolean|null); + } + + /** Represents a ReadRowsRequest. */ + class ReadRowsRequest implements IReadRowsRequest { + + /** + * Constructs a new ReadRowsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IReadRowsRequest); + + /** ReadRowsRequest tableName. */ + public tableName: string; + + /** ReadRowsRequest authorizedViewName. */ + public authorizedViewName: string; + + /** ReadRowsRequest materializedViewName. */ + public materializedViewName: string; + + /** ReadRowsRequest appProfileId. */ + public appProfileId: string; + + /** ReadRowsRequest rows. */ + public rows?: (google.bigtable.v2.IRowSet|null); + + /** ReadRowsRequest filter. */ + public filter?: (google.bigtable.v2.IRowFilter|null); + + /** ReadRowsRequest rowsLimit. */ + public rowsLimit: (number|Long|string); + + /** ReadRowsRequest requestStatsView. */ + public requestStatsView: (google.bigtable.v2.ReadRowsRequest.RequestStatsView|keyof typeof google.bigtable.v2.ReadRowsRequest.RequestStatsView); + + /** ReadRowsRequest reversed. */ + public reversed: boolean; + + /** + * Creates a new ReadRowsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadRowsRequest instance + */ + public static create(properties?: google.bigtable.v2.IReadRowsRequest): google.bigtable.v2.ReadRowsRequest; + + /** + * Encodes the specified ReadRowsRequest message. Does not implicitly {@link google.bigtable.v2.ReadRowsRequest.verify|verify} messages. + * @param message ReadRowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IReadRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadRowsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsRequest.verify|verify} messages. + * @param message ReadRowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IReadRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadRowsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadRowsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadRowsRequest; + + /** + * Decodes a ReadRowsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadRowsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadRowsRequest; + + /** + * Verifies a ReadRowsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReadRowsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadRowsRequest + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadRowsRequest; + + /** + * Creates a plain object from a ReadRowsRequest message. Also converts values to other types if specified. + * @param message ReadRowsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ReadRowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadRowsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadRowsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReadRowsRequest { + + /** RequestStatsView enum. */ + enum RequestStatsView { + REQUEST_STATS_VIEW_UNSPECIFIED = 0, + REQUEST_STATS_NONE = 1, + REQUEST_STATS_FULL = 2 + } + } + + /** Properties of a ReadRowsResponse. */ + interface IReadRowsResponse { + + /** ReadRowsResponse chunks */ + chunks?: (google.bigtable.v2.ReadRowsResponse.ICellChunk[]|null); + + /** ReadRowsResponse lastScannedRowKey */ + lastScannedRowKey?: (Uint8Array|Buffer|string|null); + + /** ReadRowsResponse requestStats */ + requestStats?: (google.bigtable.v2.IRequestStats|null); + } + + /** Represents a ReadRowsResponse. */ + class ReadRowsResponse implements IReadRowsResponse { + + /** + * Constructs a new ReadRowsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IReadRowsResponse); + + /** ReadRowsResponse chunks. */ + public chunks: google.bigtable.v2.ReadRowsResponse.ICellChunk[]; + + /** ReadRowsResponse lastScannedRowKey. */ + public lastScannedRowKey: (Uint8Array|Buffer|string); + + /** ReadRowsResponse requestStats. */ + public requestStats?: (google.bigtable.v2.IRequestStats|null); + + /** + * Creates a new ReadRowsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadRowsResponse instance + */ + public static create(properties?: google.bigtable.v2.IReadRowsResponse): google.bigtable.v2.ReadRowsResponse; + + /** + * Encodes the specified ReadRowsResponse message. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.verify|verify} messages. + * @param message ReadRowsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IReadRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadRowsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.verify|verify} messages. + * @param message ReadRowsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IReadRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadRowsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadRowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadRowsResponse; + + /** + * Decodes a ReadRowsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadRowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadRowsResponse; + + /** + * Verifies a ReadRowsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReadRowsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadRowsResponse + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadRowsResponse; + + /** + * Creates a plain object from a ReadRowsResponse message. Also converts values to other types if specified. + * @param message ReadRowsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ReadRowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadRowsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadRowsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReadRowsResponse { + + /** Properties of a CellChunk. */ + interface ICellChunk { + + /** CellChunk rowKey */ + rowKey?: (Uint8Array|Buffer|string|null); + + /** CellChunk familyName */ + familyName?: (google.protobuf.IStringValue|null); + + /** CellChunk qualifier */ + qualifier?: (google.protobuf.IBytesValue|null); + + /** CellChunk timestampMicros */ + timestampMicros?: (number|Long|string|null); + + /** CellChunk labels */ + labels?: (string[]|null); + + /** CellChunk value */ + value?: (Uint8Array|Buffer|string|null); + + /** CellChunk valueSize */ + valueSize?: (number|null); + + /** CellChunk resetRow */ + resetRow?: (boolean|null); + + /** CellChunk commitRow */ + commitRow?: (boolean|null); + } + + /** Represents a CellChunk. */ + class CellChunk implements ICellChunk { + + /** + * Constructs a new CellChunk. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ReadRowsResponse.ICellChunk); + + /** CellChunk rowKey. */ + public rowKey: (Uint8Array|Buffer|string); + + /** CellChunk familyName. */ + public familyName?: (google.protobuf.IStringValue|null); + + /** CellChunk qualifier. */ + public qualifier?: (google.protobuf.IBytesValue|null); + + /** CellChunk timestampMicros. */ + public timestampMicros: (number|Long|string); + + /** CellChunk labels. */ + public labels: string[]; + + /** CellChunk value. */ + public value: (Uint8Array|Buffer|string); + + /** CellChunk valueSize. */ + public valueSize: number; + + /** CellChunk resetRow. */ + public resetRow?: (boolean|null); + + /** CellChunk commitRow. */ + public commitRow?: (boolean|null); + + /** CellChunk rowStatus. */ + public rowStatus?: ("resetRow"|"commitRow"); + + /** + * Creates a new CellChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns CellChunk instance + */ + public static create(properties?: google.bigtable.v2.ReadRowsResponse.ICellChunk): google.bigtable.v2.ReadRowsResponse.CellChunk; + + /** + * Encodes the specified CellChunk message. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.CellChunk.verify|verify} messages. + * @param message CellChunk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ReadRowsResponse.ICellChunk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CellChunk message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.CellChunk.verify|verify} messages. + * @param message CellChunk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ReadRowsResponse.ICellChunk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CellChunk message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CellChunk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadRowsResponse.CellChunk; + + /** + * Decodes a CellChunk message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CellChunk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadRowsResponse.CellChunk; + + /** + * Verifies a CellChunk message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CellChunk message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CellChunk + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadRowsResponse.CellChunk; + + /** + * Creates a plain object from a CellChunk message. Also converts values to other types if specified. + * @param message CellChunk + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ReadRowsResponse.CellChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CellChunk to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CellChunk + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a SampleRowKeysRequest. */ + interface ISampleRowKeysRequest { + + /** SampleRowKeysRequest tableName */ + tableName?: (string|null); + + /** SampleRowKeysRequest authorizedViewName */ + authorizedViewName?: (string|null); + + /** SampleRowKeysRequest materializedViewName */ + materializedViewName?: (string|null); + + /** SampleRowKeysRequest appProfileId */ + appProfileId?: (string|null); + } + + /** Represents a SampleRowKeysRequest. */ + class SampleRowKeysRequest implements ISampleRowKeysRequest { + + /** + * Constructs a new SampleRowKeysRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ISampleRowKeysRequest); + + /** SampleRowKeysRequest tableName. */ + public tableName: string; + + /** SampleRowKeysRequest authorizedViewName. */ + public authorizedViewName: string; + + /** SampleRowKeysRequest materializedViewName. */ + public materializedViewName: string; + + /** SampleRowKeysRequest appProfileId. */ + public appProfileId: string; + + /** + * Creates a new SampleRowKeysRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SampleRowKeysRequest instance + */ + public static create(properties?: google.bigtable.v2.ISampleRowKeysRequest): google.bigtable.v2.SampleRowKeysRequest; + + /** + * Encodes the specified SampleRowKeysRequest message. Does not implicitly {@link google.bigtable.v2.SampleRowKeysRequest.verify|verify} messages. + * @param message SampleRowKeysRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ISampleRowKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SampleRowKeysRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.SampleRowKeysRequest.verify|verify} messages. + * @param message SampleRowKeysRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ISampleRowKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SampleRowKeysRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SampleRowKeysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.SampleRowKeysRequest; + + /** + * Decodes a SampleRowKeysRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SampleRowKeysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.SampleRowKeysRequest; + + /** + * Verifies a SampleRowKeysRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SampleRowKeysRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SampleRowKeysRequest + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.SampleRowKeysRequest; + + /** + * Creates a plain object from a SampleRowKeysRequest message. Also converts values to other types if specified. + * @param message SampleRowKeysRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.SampleRowKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SampleRowKeysRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SampleRowKeysRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SampleRowKeysResponse. */ + interface ISampleRowKeysResponse { + + /** SampleRowKeysResponse rowKey */ + rowKey?: (Uint8Array|Buffer|string|null); + + /** SampleRowKeysResponse offsetBytes */ + offsetBytes?: (number|Long|string|null); + } + + /** Represents a SampleRowKeysResponse. */ + class SampleRowKeysResponse implements ISampleRowKeysResponse { + + /** + * Constructs a new SampleRowKeysResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ISampleRowKeysResponse); + + /** SampleRowKeysResponse rowKey. */ + public rowKey: (Uint8Array|Buffer|string); + + /** SampleRowKeysResponse offsetBytes. */ + public offsetBytes: (number|Long|string); + + /** + * Creates a new SampleRowKeysResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SampleRowKeysResponse instance + */ + public static create(properties?: google.bigtable.v2.ISampleRowKeysResponse): google.bigtable.v2.SampleRowKeysResponse; + + /** + * Encodes the specified SampleRowKeysResponse message. Does not implicitly {@link google.bigtable.v2.SampleRowKeysResponse.verify|verify} messages. + * @param message SampleRowKeysResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ISampleRowKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SampleRowKeysResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.SampleRowKeysResponse.verify|verify} messages. + * @param message SampleRowKeysResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ISampleRowKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SampleRowKeysResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SampleRowKeysResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.SampleRowKeysResponse; + + /** + * Decodes a SampleRowKeysResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SampleRowKeysResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.SampleRowKeysResponse; + + /** + * Verifies a SampleRowKeysResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SampleRowKeysResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SampleRowKeysResponse + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.SampleRowKeysResponse; + + /** + * Creates a plain object from a SampleRowKeysResponse message. Also converts values to other types if specified. + * @param message SampleRowKeysResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.SampleRowKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SampleRowKeysResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SampleRowKeysResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MutateRowRequest. */ + interface IMutateRowRequest { + + /** MutateRowRequest tableName */ + tableName?: (string|null); + + /** MutateRowRequest authorizedViewName */ + authorizedViewName?: (string|null); + + /** MutateRowRequest appProfileId */ + appProfileId?: (string|null); + + /** MutateRowRequest rowKey */ + rowKey?: (Uint8Array|Buffer|string|null); + + /** MutateRowRequest mutations */ + mutations?: (google.bigtable.v2.IMutation[]|null); + + /** MutateRowRequest idempotency */ + idempotency?: (google.bigtable.v2.IIdempotency|null); + } + + /** Represents a MutateRowRequest. */ + class MutateRowRequest implements IMutateRowRequest { + + /** + * Constructs a new MutateRowRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IMutateRowRequest); + + /** MutateRowRequest tableName. */ + public tableName: string; + + /** MutateRowRequest authorizedViewName. */ + public authorizedViewName: string; + + /** MutateRowRequest appProfileId. */ + public appProfileId: string; + + /** MutateRowRequest rowKey. */ + public rowKey: (Uint8Array|Buffer|string); + + /** MutateRowRequest mutations. */ + public mutations: google.bigtable.v2.IMutation[]; + + /** MutateRowRequest idempotency. */ + public idempotency?: (google.bigtable.v2.IIdempotency|null); + + /** + * Creates a new MutateRowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateRowRequest instance + */ + public static create(properties?: google.bigtable.v2.IMutateRowRequest): google.bigtable.v2.MutateRowRequest; + + /** + * Encodes the specified MutateRowRequest message. Does not implicitly {@link google.bigtable.v2.MutateRowRequest.verify|verify} messages. + * @param message MutateRowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IMutateRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MutateRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowRequest.verify|verify} messages. + * @param message MutateRowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IMutateRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MutateRowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateRowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.MutateRowRequest; + + /** + * Decodes a MutateRowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateRowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.MutateRowRequest; + + /** + * Verifies a MutateRowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MutateRowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateRowRequest + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.MutateRowRequest; + + /** + * Creates a plain object from a MutateRowRequest message. Also converts values to other types if specified. + * @param message MutateRowRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.MutateRowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MutateRowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MutateRowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MutateRowResponse. */ + interface IMutateRowResponse { + } + + /** Represents a MutateRowResponse. */ + class MutateRowResponse implements IMutateRowResponse { + + /** + * Constructs a new MutateRowResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IMutateRowResponse); + + /** + * Creates a new MutateRowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateRowResponse instance + */ + public static create(properties?: google.bigtable.v2.IMutateRowResponse): google.bigtable.v2.MutateRowResponse; + + /** + * Encodes the specified MutateRowResponse message. Does not implicitly {@link google.bigtable.v2.MutateRowResponse.verify|verify} messages. + * @param message MutateRowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IMutateRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MutateRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowResponse.verify|verify} messages. + * @param message MutateRowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IMutateRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MutateRowResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateRowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.MutateRowResponse; + + /** + * Decodes a MutateRowResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateRowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.MutateRowResponse; + + /** + * Verifies a MutateRowResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MutateRowResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateRowResponse + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.MutateRowResponse; + + /** + * Creates a plain object from a MutateRowResponse message. Also converts values to other types if specified. + * @param message MutateRowResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.MutateRowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MutateRowResponse to JSON. + * @returns JSON object */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public toJSON(): { [k: string]: any }; /** - * Creates new Bigtable 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. + * Gets the default type url for MutateRowResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Bigtable; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MutateRowsRequest. */ + interface IMutateRowsRequest { + + /** MutateRowsRequest tableName */ + tableName?: (string|null); + + /** MutateRowsRequest authorizedViewName */ + authorizedViewName?: (string|null); + + /** MutateRowsRequest appProfileId */ + appProfileId?: (string|null); + + /** MutateRowsRequest entries */ + entries?: (google.bigtable.v2.MutateRowsRequest.IEntry[]|null); + } + + /** Represents a MutateRowsRequest. */ + class MutateRowsRequest implements IMutateRowsRequest { + + /** + * Constructs a new MutateRowsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IMutateRowsRequest); + + /** MutateRowsRequest tableName. */ + public tableName: string; + + /** MutateRowsRequest authorizedViewName. */ + public authorizedViewName: string; + + /** MutateRowsRequest appProfileId. */ + public appProfileId: string; + + /** MutateRowsRequest entries. */ + public entries: google.bigtable.v2.MutateRowsRequest.IEntry[]; + + /** + * Creates a new MutateRowsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateRowsRequest instance + */ + public static create(properties?: google.bigtable.v2.IMutateRowsRequest): google.bigtable.v2.MutateRowsRequest; + + /** + * Encodes the specified MutateRowsRequest message. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.verify|verify} messages. + * @param message MutateRowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IMutateRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MutateRowsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.verify|verify} messages. + * @param message MutateRowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IMutateRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MutateRowsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateRowsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.MutateRowsRequest; + + /** + * Decodes a MutateRowsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateRowsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.MutateRowsRequest; + + /** + * Verifies a MutateRowsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MutateRowsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateRowsRequest + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.MutateRowsRequest; + + /** + * Creates a plain object from a MutateRowsRequest message. Also converts values to other types if specified. + * @param message MutateRowsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.MutateRowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MutateRowsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MutateRowsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MutateRowsRequest { + + /** Properties of an Entry. */ + interface IEntry { + + /** Entry rowKey */ + rowKey?: (Uint8Array|Buffer|string|null); + + /** Entry mutations */ + mutations?: (google.bigtable.v2.IMutation[]|null); + + /** Entry idempotency */ + idempotency?: (google.bigtable.v2.IIdempotency|null); + } + + /** Represents an Entry. */ + class Entry implements IEntry { + + /** + * Constructs a new Entry. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.MutateRowsRequest.IEntry); + + /** Entry rowKey. */ + public rowKey: (Uint8Array|Buffer|string); + + /** Entry mutations. */ + public mutations: google.bigtable.v2.IMutation[]; + + /** Entry idempotency. */ + public idempotency?: (google.bigtable.v2.IIdempotency|null); + + /** + * Creates a new Entry instance using the specified properties. + * @param [properties] Properties to set + * @returns Entry instance + */ + public static create(properties?: google.bigtable.v2.MutateRowsRequest.IEntry): google.bigtable.v2.MutateRowsRequest.Entry; + + /** + * Encodes the specified Entry message. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.IEntry, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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 MutateRowsResponse. */ + interface IMutateRowsResponse { + + /** MutateRowsResponse entries */ + entries?: (google.bigtable.v2.MutateRowsResponse.IEntry[]|null); + + /** MutateRowsResponse rateLimitInfo */ + rateLimitInfo?: (google.bigtable.v2.IRateLimitInfo|null); + } + + /** Represents a MutateRowsResponse. */ + class MutateRowsResponse implements IMutateRowsResponse { /** - * Calls ReadRows. - * @param request ReadRowsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadRowsResponse + * Constructs a new MutateRowsResponse. + * @param [properties] Properties to set */ - public readRows(request: google.bigtable.v2.IReadRowsRequest, callback: google.bigtable.v2.Bigtable.ReadRowsCallback): void; + constructor(properties?: google.bigtable.v2.IMutateRowsResponse); - /** - * Calls ReadRows. - * @param request ReadRowsRequest message or plain object - * @returns Promise - */ - public readRows(request: google.bigtable.v2.IReadRowsRequest): Promise; + /** MutateRowsResponse entries. */ + public entries: google.bigtable.v2.MutateRowsResponse.IEntry[]; - /** - * Calls SampleRowKeys. - * @param request SampleRowKeysRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SampleRowKeysResponse - */ - public sampleRowKeys(request: google.bigtable.v2.ISampleRowKeysRequest, callback: google.bigtable.v2.Bigtable.SampleRowKeysCallback): void; + /** MutateRowsResponse rateLimitInfo. */ + public rateLimitInfo?: (google.bigtable.v2.IRateLimitInfo|null); /** - * Calls SampleRowKeys. - * @param request SampleRowKeysRequest message or plain object - * @returns Promise + * Creates a new MutateRowsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateRowsResponse instance */ - public sampleRowKeys(request: google.bigtable.v2.ISampleRowKeysRequest): Promise; + public static create(properties?: google.bigtable.v2.IMutateRowsResponse): google.bigtable.v2.MutateRowsResponse; /** - * Calls MutateRow. - * @param request MutateRowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MutateRowResponse + * Encodes the specified MutateRowsResponse message. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.verify|verify} messages. + * @param message MutateRowsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public mutateRow(request: google.bigtable.v2.IMutateRowRequest, callback: google.bigtable.v2.Bigtable.MutateRowCallback): void; + public static encode(message: google.bigtable.v2.IMutateRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls MutateRow. - * @param request MutateRowRequest message or plain object - * @returns Promise + * Encodes the specified MutateRowsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.verify|verify} messages. + * @param message MutateRowsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public mutateRow(request: google.bigtable.v2.IMutateRowRequest): Promise; + public static encodeDelimited(message: google.bigtable.v2.IMutateRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls MutateRows. - * @param request MutateRowsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MutateRowsResponse + * Decodes a MutateRowsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateRowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public mutateRows(request: google.bigtable.v2.IMutateRowsRequest, callback: google.bigtable.v2.Bigtable.MutateRowsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.MutateRowsResponse; /** - * Calls MutateRows. - * @param request MutateRowsRequest message or plain object - * @returns Promise + * Decodes a MutateRowsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateRowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public mutateRows(request: google.bigtable.v2.IMutateRowsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.MutateRowsResponse; /** - * Calls CheckAndMutateRow. - * @param request CheckAndMutateRowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CheckAndMutateRowResponse + * Verifies a MutateRowsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public checkAndMutateRow(request: google.bigtable.v2.ICheckAndMutateRowRequest, callback: google.bigtable.v2.Bigtable.CheckAndMutateRowCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CheckAndMutateRow. - * @param request CheckAndMutateRowRequest message or plain object - * @returns Promise + * Creates a MutateRowsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateRowsResponse */ - public checkAndMutateRow(request: google.bigtable.v2.ICheckAndMutateRowRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.MutateRowsResponse; /** - * Calls PingAndWarm. - * @param request PingAndWarmRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PingAndWarmResponse + * Creates a plain object from a MutateRowsResponse message. Also converts values to other types if specified. + * @param message MutateRowsResponse + * @param [options] Conversion options + * @returns Plain object */ - public pingAndWarm(request: google.bigtable.v2.IPingAndWarmRequest, callback: google.bigtable.v2.Bigtable.PingAndWarmCallback): void; + public static toObject(message: google.bigtable.v2.MutateRowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls PingAndWarm. - * @param request PingAndWarmRequest message or plain object - * @returns Promise + * Converts this MutateRowsResponse to JSON. + * @returns JSON object */ - public pingAndWarm(request: google.bigtable.v2.IPingAndWarmRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ReadModifyWriteRow. - * @param request ReadModifyWriteRowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadModifyWriteRowResponse + * Gets the default type url for MutateRowsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public readModifyWriteRow(request: google.bigtable.v2.IReadModifyWriteRowRequest, callback: google.bigtable.v2.Bigtable.ReadModifyWriteRowCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls ReadModifyWriteRow. - * @param request ReadModifyWriteRowRequest message or plain object - * @returns Promise - */ - public readModifyWriteRow(request: google.bigtable.v2.IReadModifyWriteRowRequest): Promise; + namespace MutateRowsResponse { - /** - * Calls GenerateInitialChangeStreamPartitions. - * @param request GenerateInitialChangeStreamPartitionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GenerateInitialChangeStreamPartitionsResponse - */ - public generateInitialChangeStreamPartitions(request: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest, callback: google.bigtable.v2.Bigtable.GenerateInitialChangeStreamPartitionsCallback): void; + /** Properties of an Entry. */ + interface IEntry { - /** - * Calls GenerateInitialChangeStreamPartitions. - * @param request GenerateInitialChangeStreamPartitionsRequest message or plain object - * @returns Promise - */ - public generateInitialChangeStreamPartitions(request: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest): Promise; + /** Entry index */ + index?: (number|Long|string|null); - /** - * Calls ReadChangeStream. - * @param request ReadChangeStreamRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadChangeStreamResponse - */ - public readChangeStream(request: google.bigtable.v2.IReadChangeStreamRequest, callback: google.bigtable.v2.Bigtable.ReadChangeStreamCallback): void; + /** Entry status */ + status?: (google.rpc.IStatus|null); + } - /** - * Calls ReadChangeStream. - * @param request ReadChangeStreamRequest message or plain object - * @returns Promise - */ - public readChangeStream(request: google.bigtable.v2.IReadChangeStreamRequest): Promise; + /** Represents an Entry. */ + class Entry implements IEntry { - /** - * Calls PrepareQuery. - * @param request PrepareQueryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PrepareQueryResponse - */ - public prepareQuery(request: google.bigtable.v2.IPrepareQueryRequest, callback: google.bigtable.v2.Bigtable.PrepareQueryCallback): void; + /** + * Constructs a new Entry. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.MutateRowsResponse.IEntry); - /** - * Calls PrepareQuery. - * @param request PrepareQueryRequest message or plain object - * @returns Promise - */ - public prepareQuery(request: google.bigtable.v2.IPrepareQueryRequest): Promise; + /** Entry index. */ + public index: (number|Long|string); - /** - * Calls ExecuteQuery. - * @param request ExecuteQueryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecuteQueryResponse - */ - public executeQuery(request: google.bigtable.v2.IExecuteQueryRequest, callback: google.bigtable.v2.Bigtable.ExecuteQueryCallback): void; + /** Entry status. */ + public status?: (google.rpc.IStatus|null); + + /** + * Creates a new Entry instance using the specified properties. + * @param [properties] Properties to set + * @returns Entry instance + */ + public static create(properties?: google.bigtable.v2.MutateRowsResponse.IEntry): google.bigtable.v2.MutateRowsResponse.Entry; + + /** + * Encodes the specified Entry message. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.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.bigtable.v2.MutateRowsResponse.IEntry, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.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.bigtable.v2.MutateRowsResponse.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.bigtable.v2.MutateRowsResponse.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.bigtable.v2.MutateRowsResponse.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.bigtable.v2.MutateRowsResponse.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.bigtable.v2.MutateRowsResponse.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; + } + } - /** - * Calls ExecuteQuery. - * @param request ExecuteQueryRequest message or plain object - * @returns Promise - */ - public executeQuery(request: google.bigtable.v2.IExecuteQueryRequest): Promise; + /** Properties of a RateLimitInfo. */ + interface IRateLimitInfo { + + /** RateLimitInfo period */ + period?: (google.protobuf.IDuration|null); + + /** RateLimitInfo factor */ + factor?: (number|null); } - namespace Bigtable { + /** Represents a RateLimitInfo. */ + class RateLimitInfo implements IRateLimitInfo { /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. - * @param error Error, if any - * @param [response] ReadRowsResponse + * Constructs a new RateLimitInfo. + * @param [properties] Properties to set */ - type ReadRowsCallback = (error: (Error|null), response?: google.bigtable.v2.ReadRowsResponse) => void; + constructor(properties?: google.bigtable.v2.IRateLimitInfo); + + /** RateLimitInfo period. */ + public period?: (google.protobuf.IDuration|null); + + /** RateLimitInfo factor. */ + public factor: number; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. - * @param error Error, if any - * @param [response] SampleRowKeysResponse + * Creates a new RateLimitInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns RateLimitInfo instance */ - type SampleRowKeysCallback = (error: (Error|null), response?: google.bigtable.v2.SampleRowKeysResponse) => void; + public static create(properties?: google.bigtable.v2.IRateLimitInfo): google.bigtable.v2.RateLimitInfo; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. - * @param error Error, if any - * @param [response] MutateRowResponse + * Encodes the specified RateLimitInfo message. Does not implicitly {@link google.bigtable.v2.RateLimitInfo.verify|verify} messages. + * @param message RateLimitInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type MutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowResponse) => void; + public static encode(message: google.bigtable.v2.IRateLimitInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. - * @param error Error, if any - * @param [response] MutateRowsResponse + * Encodes the specified RateLimitInfo message, length delimited. Does not implicitly {@link google.bigtable.v2.RateLimitInfo.verify|verify} messages. + * @param message RateLimitInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type MutateRowsCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowsResponse) => void; + public static encodeDelimited(message: google.bigtable.v2.IRateLimitInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. - * @param error Error, if any - * @param [response] CheckAndMutateRowResponse + * Decodes a RateLimitInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RateLimitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CheckAndMutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.CheckAndMutateRowResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RateLimitInfo; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. - * @param error Error, if any - * @param [response] PingAndWarmResponse + * Decodes a RateLimitInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RateLimitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type PingAndWarmCallback = (error: (Error|null), response?: google.bigtable.v2.PingAndWarmResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RateLimitInfo; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. - * @param error Error, if any - * @param [response] ReadModifyWriteRowResponse + * Verifies a RateLimitInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ReadModifyWriteRowCallback = (error: (Error|null), response?: google.bigtable.v2.ReadModifyWriteRowResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.bigtable.v2.Bigtable|generateInitialChangeStreamPartitions}. - * @param error Error, if any - * @param [response] GenerateInitialChangeStreamPartitionsResponse + * Creates a RateLimitInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RateLimitInfo */ - type GenerateInitialChangeStreamPartitionsCallback = (error: (Error|null), response?: google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RateLimitInfo; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readChangeStream}. - * @param error Error, if any - * @param [response] ReadChangeStreamResponse + * Creates a plain object from a RateLimitInfo message. Also converts values to other types if specified. + * @param message RateLimitInfo + * @param [options] Conversion options + * @returns Plain object */ - type ReadChangeStreamCallback = (error: (Error|null), response?: google.bigtable.v2.ReadChangeStreamResponse) => void; + public static toObject(message: google.bigtable.v2.RateLimitInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|prepareQuery}. - * @param error Error, if any - * @param [response] PrepareQueryResponse + * Converts this RateLimitInfo to JSON. + * @returns JSON object */ - type PrepareQueryCallback = (error: (Error|null), response?: google.bigtable.v2.PrepareQueryResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|executeQuery}. - * @param error Error, if any - * @param [response] ExecuteQueryResponse + * Gets the default type url for RateLimitInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ExecuteQueryCallback = (error: (Error|null), response?: google.bigtable.v2.ExecuteQueryResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadRowsRequest. */ - interface IReadRowsRequest { + /** Properties of a CheckAndMutateRowRequest. */ + interface ICheckAndMutateRowRequest { - /** ReadRowsRequest tableName */ + /** CheckAndMutateRowRequest tableName */ tableName?: (string|null); - /** ReadRowsRequest authorizedViewName */ + /** CheckAndMutateRowRequest authorizedViewName */ authorizedViewName?: (string|null); - /** ReadRowsRequest materializedViewName */ - materializedViewName?: (string|null); - - /** ReadRowsRequest appProfileId */ + /** CheckAndMutateRowRequest appProfileId */ appProfileId?: (string|null); - /** ReadRowsRequest rows */ - rows?: (google.bigtable.v2.IRowSet|null); - - /** ReadRowsRequest filter */ - filter?: (google.bigtable.v2.IRowFilter|null); + /** CheckAndMutateRowRequest rowKey */ + rowKey?: (Uint8Array|Buffer|string|null); - /** ReadRowsRequest rowsLimit */ - rowsLimit?: (number|Long|string|null); + /** CheckAndMutateRowRequest predicateFilter */ + predicateFilter?: (google.bigtable.v2.IRowFilter|null); - /** ReadRowsRequest requestStatsView */ - requestStatsView?: (google.bigtable.v2.ReadRowsRequest.RequestStatsView|keyof typeof google.bigtable.v2.ReadRowsRequest.RequestStatsView|null); + /** CheckAndMutateRowRequest trueMutations */ + trueMutations?: (google.bigtable.v2.IMutation[]|null); - /** ReadRowsRequest reversed */ - reversed?: (boolean|null); + /** CheckAndMutateRowRequest falseMutations */ + falseMutations?: (google.bigtable.v2.IMutation[]|null); } - /** Represents a ReadRowsRequest. */ - class ReadRowsRequest implements IReadRowsRequest { + /** Represents a CheckAndMutateRowRequest. */ + class CheckAndMutateRowRequest implements ICheckAndMutateRowRequest { /** - * Constructs a new ReadRowsRequest. + * Constructs a new CheckAndMutateRowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IReadRowsRequest); + constructor(properties?: google.bigtable.v2.ICheckAndMutateRowRequest); - /** ReadRowsRequest tableName. */ + /** CheckAndMutateRowRequest tableName. */ public tableName: string; - /** ReadRowsRequest authorizedViewName. */ + /** CheckAndMutateRowRequest authorizedViewName. */ public authorizedViewName: string; - /** ReadRowsRequest materializedViewName. */ - public materializedViewName: string; - - /** ReadRowsRequest appProfileId. */ + /** CheckAndMutateRowRequest appProfileId. */ public appProfileId: string; - /** ReadRowsRequest rows. */ - public rows?: (google.bigtable.v2.IRowSet|null); - - /** ReadRowsRequest filter. */ - public filter?: (google.bigtable.v2.IRowFilter|null); + /** CheckAndMutateRowRequest rowKey. */ + public rowKey: (Uint8Array|Buffer|string); - /** ReadRowsRequest rowsLimit. */ - public rowsLimit: (number|Long|string); + /** CheckAndMutateRowRequest predicateFilter. */ + public predicateFilter?: (google.bigtable.v2.IRowFilter|null); - /** ReadRowsRequest requestStatsView. */ - public requestStatsView: (google.bigtable.v2.ReadRowsRequest.RequestStatsView|keyof typeof google.bigtable.v2.ReadRowsRequest.RequestStatsView); + /** CheckAndMutateRowRequest trueMutations. */ + public trueMutations: google.bigtable.v2.IMutation[]; - /** ReadRowsRequest reversed. */ - public reversed: boolean; + /** CheckAndMutateRowRequest falseMutations. */ + public falseMutations: google.bigtable.v2.IMutation[]; /** - * Creates a new ReadRowsRequest instance using the specified properties. + * Creates a new CheckAndMutateRowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadRowsRequest instance + * @returns CheckAndMutateRowRequest instance */ - public static create(properties?: google.bigtable.v2.IReadRowsRequest): google.bigtable.v2.ReadRowsRequest; + public static create(properties?: google.bigtable.v2.ICheckAndMutateRowRequest): google.bigtable.v2.CheckAndMutateRowRequest; /** - * Encodes the specified ReadRowsRequest message. Does not implicitly {@link google.bigtable.v2.ReadRowsRequest.verify|verify} messages. - * @param message ReadRowsRequest message or plain object to encode + * Encodes the specified CheckAndMutateRowRequest message. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowRequest.verify|verify} messages. + * @param message CheckAndMutateRowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IReadRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.ICheckAndMutateRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadRowsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsRequest.verify|verify} messages. - * @param message ReadRowsRequest message or plain object to encode + * Encodes the specified CheckAndMutateRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowRequest.verify|verify} messages. + * @param message CheckAndMutateRowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IReadRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.ICheckAndMutateRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadRowsRequest message from the specified reader or buffer. + * Decodes a CheckAndMutateRowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadRowsRequest + * @returns CheckAndMutateRowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadRowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.CheckAndMutateRowRequest; /** - * Decodes a ReadRowsRequest message from the specified reader or buffer, length delimited. + * Decodes a CheckAndMutateRowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadRowsRequest + * @returns CheckAndMutateRowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadRowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.CheckAndMutateRowRequest; /** - * Verifies a ReadRowsRequest message. + * Verifies a CheckAndMutateRowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadRowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CheckAndMutateRowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadRowsRequest + * @returns CheckAndMutateRowRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadRowsRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.CheckAndMutateRowRequest; /** - * Creates a plain object from a ReadRowsRequest message. Also converts values to other types if specified. - * @param message ReadRowsRequest + * Creates a plain object from a CheckAndMutateRowRequest message. Also converts values to other types if specified. + * @param message CheckAndMutateRowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ReadRowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReadRowsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.CheckAndMutateRowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Gets the default type url for ReadRowsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ReadRowsRequest { - - /** RequestStatsView enum. */ - enum RequestStatsView { - REQUEST_STATS_VIEW_UNSPECIFIED = 0, - REQUEST_STATS_NONE = 1, - REQUEST_STATS_FULL = 2 - } - } - - /** Properties of a ReadRowsResponse. */ - interface IReadRowsResponse { + * Converts this CheckAndMutateRowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ReadRowsResponse chunks */ - chunks?: (google.bigtable.v2.ReadRowsResponse.ICellChunk[]|null); + /** + * Gets the default type url for CheckAndMutateRowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ReadRowsResponse lastScannedRowKey */ - lastScannedRowKey?: (Uint8Array|Buffer|string|null); + /** Properties of a CheckAndMutateRowResponse. */ + interface ICheckAndMutateRowResponse { - /** ReadRowsResponse requestStats */ - requestStats?: (google.bigtable.v2.IRequestStats|null); + /** CheckAndMutateRowResponse predicateMatched */ + predicateMatched?: (boolean|null); } - /** Represents a ReadRowsResponse. */ - class ReadRowsResponse implements IReadRowsResponse { + /** Represents a CheckAndMutateRowResponse. */ + class CheckAndMutateRowResponse implements ICheckAndMutateRowResponse { /** - * Constructs a new ReadRowsResponse. + * Constructs a new CheckAndMutateRowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IReadRowsResponse); - - /** ReadRowsResponse chunks. */ - public chunks: google.bigtable.v2.ReadRowsResponse.ICellChunk[]; - - /** ReadRowsResponse lastScannedRowKey. */ - public lastScannedRowKey: (Uint8Array|Buffer|string); + constructor(properties?: google.bigtable.v2.ICheckAndMutateRowResponse); - /** ReadRowsResponse requestStats. */ - public requestStats?: (google.bigtable.v2.IRequestStats|null); + /** CheckAndMutateRowResponse predicateMatched. */ + public predicateMatched: boolean; /** - * Creates a new ReadRowsResponse instance using the specified properties. + * Creates a new CheckAndMutateRowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadRowsResponse instance + * @returns CheckAndMutateRowResponse instance */ - public static create(properties?: google.bigtable.v2.IReadRowsResponse): google.bigtable.v2.ReadRowsResponse; + public static create(properties?: google.bigtable.v2.ICheckAndMutateRowResponse): google.bigtable.v2.CheckAndMutateRowResponse; /** - * Encodes the specified ReadRowsResponse message. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.verify|verify} messages. - * @param message ReadRowsResponse message or plain object to encode + * Encodes the specified CheckAndMutateRowResponse message. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowResponse.verify|verify} messages. + * @param message CheckAndMutateRowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IReadRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.ICheckAndMutateRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadRowsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.verify|verify} messages. - * @param message ReadRowsResponse message or plain object to encode + * Encodes the specified CheckAndMutateRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowResponse.verify|verify} messages. + * @param message CheckAndMutateRowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IReadRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.ICheckAndMutateRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadRowsResponse message from the specified reader or buffer. + * Decodes a CheckAndMutateRowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadRowsResponse + * @returns CheckAndMutateRowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadRowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.CheckAndMutateRowResponse; /** - * Decodes a ReadRowsResponse message from the specified reader or buffer, length delimited. + * Decodes a CheckAndMutateRowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadRowsResponse + * @returns CheckAndMutateRowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadRowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.CheckAndMutateRowResponse; /** - * Verifies a ReadRowsResponse message. + * Verifies a CheckAndMutateRowResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadRowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CheckAndMutateRowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadRowsResponse + * @returns CheckAndMutateRowResponse */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadRowsResponse; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.CheckAndMutateRowResponse; /** - * Creates a plain object from a ReadRowsResponse message. Also converts values to other types if specified. - * @param message ReadRowsResponse + * Creates a plain object from a CheckAndMutateRowResponse message. Also converts values to other types if specified. + * @param message CheckAndMutateRowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ReadRowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.CheckAndMutateRowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadRowsResponse to JSON. + * Converts this CheckAndMutateRowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadRowsResponse + * Gets the default type url for CheckAndMutateRowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ReadRowsResponse { - - /** Properties of a CellChunk. */ - interface ICellChunk { - - /** CellChunk rowKey */ - rowKey?: (Uint8Array|Buffer|string|null); - - /** CellChunk familyName */ - familyName?: (google.protobuf.IStringValue|null); - - /** CellChunk qualifier */ - qualifier?: (google.protobuf.IBytesValue|null); - - /** CellChunk timestampMicros */ - timestampMicros?: (number|Long|string|null); - - /** CellChunk labels */ - labels?: (string[]|null); - - /** CellChunk value */ - value?: (Uint8Array|Buffer|string|null); - - /** CellChunk valueSize */ - valueSize?: (number|null); - - /** CellChunk resetRow */ - resetRow?: (boolean|null); - - /** CellChunk commitRow */ - commitRow?: (boolean|null); - } - - /** Represents a CellChunk. */ - class CellChunk implements ICellChunk { - - /** - * Constructs a new CellChunk. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ReadRowsResponse.ICellChunk); - - /** CellChunk rowKey. */ - public rowKey: (Uint8Array|Buffer|string); - - /** CellChunk familyName. */ - public familyName?: (google.protobuf.IStringValue|null); - - /** CellChunk qualifier. */ - public qualifier?: (google.protobuf.IBytesValue|null); - - /** CellChunk timestampMicros. */ - public timestampMicros: (number|Long|string); - - /** CellChunk labels. */ - public labels: string[]; - - /** CellChunk value. */ - public value: (Uint8Array|Buffer|string); - - /** CellChunk valueSize. */ - public valueSize: number; - - /** CellChunk resetRow. */ - public resetRow?: (boolean|null); - - /** CellChunk commitRow. */ - public commitRow?: (boolean|null); - - /** CellChunk rowStatus. */ - public rowStatus?: ("resetRow"|"commitRow"); - - /** - * Creates a new CellChunk instance using the specified properties. - * @param [properties] Properties to set - * @returns CellChunk instance - */ - public static create(properties?: google.bigtable.v2.ReadRowsResponse.ICellChunk): google.bigtable.v2.ReadRowsResponse.CellChunk; - - /** - * Encodes the specified CellChunk message. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.CellChunk.verify|verify} messages. - * @param message CellChunk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ReadRowsResponse.ICellChunk, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CellChunk message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.CellChunk.verify|verify} messages. - * @param message CellChunk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ReadRowsResponse.ICellChunk, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CellChunk message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CellChunk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadRowsResponse.CellChunk; - - /** - * Decodes a CellChunk message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CellChunk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadRowsResponse.CellChunk; - - /** - * Verifies a CellChunk message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CellChunk message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CellChunk - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadRowsResponse.CellChunk; - - /** - * Creates a plain object from a CellChunk message. Also converts values to other types if specified. - * @param message CellChunk - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadRowsResponse.CellChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CellChunk to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CellChunk - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a SampleRowKeysRequest. */ - interface ISampleRowKeysRequest { - - /** SampleRowKeysRequest tableName */ - tableName?: (string|null); - - /** SampleRowKeysRequest authorizedViewName */ - authorizedViewName?: (string|null); + /** Properties of a PingAndWarmRequest. */ + interface IPingAndWarmRequest { - /** SampleRowKeysRequest materializedViewName */ - materializedViewName?: (string|null); + /** PingAndWarmRequest name */ + name?: (string|null); - /** SampleRowKeysRequest appProfileId */ + /** PingAndWarmRequest appProfileId */ appProfileId?: (string|null); } - /** Represents a SampleRowKeysRequest. */ - class SampleRowKeysRequest implements ISampleRowKeysRequest { - + /** Represents a PingAndWarmRequest. */ + class PingAndWarmRequest implements IPingAndWarmRequest { + /** - * Constructs a new SampleRowKeysRequest. + * Constructs a new PingAndWarmRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.ISampleRowKeysRequest); - - /** SampleRowKeysRequest tableName. */ - public tableName: string; - - /** SampleRowKeysRequest authorizedViewName. */ - public authorizedViewName: string; + constructor(properties?: google.bigtable.v2.IPingAndWarmRequest); - /** SampleRowKeysRequest materializedViewName. */ - public materializedViewName: string; + /** PingAndWarmRequest name. */ + public name: string; - /** SampleRowKeysRequest appProfileId. */ + /** PingAndWarmRequest appProfileId. */ public appProfileId: string; /** - * Creates a new SampleRowKeysRequest instance using the specified properties. + * Creates a new PingAndWarmRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SampleRowKeysRequest instance + * @returns PingAndWarmRequest instance */ - public static create(properties?: google.bigtable.v2.ISampleRowKeysRequest): google.bigtable.v2.SampleRowKeysRequest; + public static create(properties?: google.bigtable.v2.IPingAndWarmRequest): google.bigtable.v2.PingAndWarmRequest; /** - * Encodes the specified SampleRowKeysRequest message. Does not implicitly {@link google.bigtable.v2.SampleRowKeysRequest.verify|verify} messages. - * @param message SampleRowKeysRequest message or plain object to encode + * Encodes the specified PingAndWarmRequest message. Does not implicitly {@link google.bigtable.v2.PingAndWarmRequest.verify|verify} messages. + * @param message PingAndWarmRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.ISampleRowKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IPingAndWarmRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SampleRowKeysRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.SampleRowKeysRequest.verify|verify} messages. - * @param message SampleRowKeysRequest message or plain object to encode + * Encodes the specified PingAndWarmRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.PingAndWarmRequest.verify|verify} messages. + * @param message PingAndWarmRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.ISampleRowKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IPingAndWarmRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SampleRowKeysRequest message from the specified reader or buffer. + * Decodes a PingAndWarmRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SampleRowKeysRequest + * @returns PingAndWarmRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.SampleRowKeysRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PingAndWarmRequest; /** - * Decodes a SampleRowKeysRequest message from the specified reader or buffer, length delimited. + * Decodes a PingAndWarmRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SampleRowKeysRequest + * @returns PingAndWarmRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.SampleRowKeysRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PingAndWarmRequest; /** - * Verifies a SampleRowKeysRequest message. + * Verifies a PingAndWarmRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SampleRowKeysRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PingAndWarmRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SampleRowKeysRequest + * @returns PingAndWarmRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.SampleRowKeysRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PingAndWarmRequest; /** - * Creates a plain object from a SampleRowKeysRequest message. Also converts values to other types if specified. - * @param message SampleRowKeysRequest + * Creates a plain object from a PingAndWarmRequest message. Also converts values to other types if specified. + * @param message PingAndWarmRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.SampleRowKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.PingAndWarmRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SampleRowKeysRequest to JSON. + * Converts this PingAndWarmRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SampleRowKeysRequest + * Gets the default type url for PingAndWarmRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SampleRowKeysResponse. */ - interface ISampleRowKeysResponse { - - /** SampleRowKeysResponse rowKey */ - rowKey?: (Uint8Array|Buffer|string|null); - - /** SampleRowKeysResponse offsetBytes */ - offsetBytes?: (number|Long|string|null); + /** Properties of a PingAndWarmResponse. */ + interface IPingAndWarmResponse { } - /** Represents a SampleRowKeysResponse. */ - class SampleRowKeysResponse implements ISampleRowKeysResponse { + /** Represents a PingAndWarmResponse. */ + class PingAndWarmResponse implements IPingAndWarmResponse { /** - * Constructs a new SampleRowKeysResponse. + * Constructs a new PingAndWarmResponse. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.ISampleRowKeysResponse); - - /** SampleRowKeysResponse rowKey. */ - public rowKey: (Uint8Array|Buffer|string); - - /** SampleRowKeysResponse offsetBytes. */ - public offsetBytes: (number|Long|string); + constructor(properties?: google.bigtable.v2.IPingAndWarmResponse); /** - * Creates a new SampleRowKeysResponse instance using the specified properties. + * Creates a new PingAndWarmResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SampleRowKeysResponse instance + * @returns PingAndWarmResponse instance */ - public static create(properties?: google.bigtable.v2.ISampleRowKeysResponse): google.bigtable.v2.SampleRowKeysResponse; + public static create(properties?: google.bigtable.v2.IPingAndWarmResponse): google.bigtable.v2.PingAndWarmResponse; /** - * Encodes the specified SampleRowKeysResponse message. Does not implicitly {@link google.bigtable.v2.SampleRowKeysResponse.verify|verify} messages. - * @param message SampleRowKeysResponse message or plain object to encode + * Encodes the specified PingAndWarmResponse message. Does not implicitly {@link google.bigtable.v2.PingAndWarmResponse.verify|verify} messages. + * @param message PingAndWarmResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.ISampleRowKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IPingAndWarmResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SampleRowKeysResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.SampleRowKeysResponse.verify|verify} messages. - * @param message SampleRowKeysResponse message or plain object to encode + * Encodes the specified PingAndWarmResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.PingAndWarmResponse.verify|verify} messages. + * @param message PingAndWarmResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.ISampleRowKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IPingAndWarmResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SampleRowKeysResponse message from the specified reader or buffer. + * Decodes a PingAndWarmResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SampleRowKeysResponse + * @returns PingAndWarmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.SampleRowKeysResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PingAndWarmResponse; /** - * Decodes a SampleRowKeysResponse message from the specified reader or buffer, length delimited. + * Decodes a PingAndWarmResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SampleRowKeysResponse + * @returns PingAndWarmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.SampleRowKeysResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PingAndWarmResponse; /** - * Verifies a SampleRowKeysResponse message. + * Verifies a PingAndWarmResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SampleRowKeysResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PingAndWarmResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SampleRowKeysResponse + * @returns PingAndWarmResponse */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.SampleRowKeysResponse; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PingAndWarmResponse; /** - * Creates a plain object from a SampleRowKeysResponse message. Also converts values to other types if specified. - * @param message SampleRowKeysResponse + * Creates a plain object from a PingAndWarmResponse message. Also converts values to other types if specified. + * @param message PingAndWarmResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.SampleRowKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.PingAndWarmResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SampleRowKeysResponse to JSON. + * Converts this PingAndWarmResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SampleRowKeysResponse + * Gets the default type url for PingAndWarmResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateRowRequest. */ - interface IMutateRowRequest { + /** Properties of a ReadModifyWriteRowRequest. */ + interface IReadModifyWriteRowRequest { - /** MutateRowRequest tableName */ + /** ReadModifyWriteRowRequest tableName */ tableName?: (string|null); - /** MutateRowRequest authorizedViewName */ + /** ReadModifyWriteRowRequest authorizedViewName */ authorizedViewName?: (string|null); - /** MutateRowRequest appProfileId */ + /** ReadModifyWriteRowRequest appProfileId */ appProfileId?: (string|null); - /** MutateRowRequest rowKey */ + /** ReadModifyWriteRowRequest rowKey */ rowKey?: (Uint8Array|Buffer|string|null); - /** MutateRowRequest mutations */ - mutations?: (google.bigtable.v2.IMutation[]|null); + /** ReadModifyWriteRowRequest rules */ + rules?: (google.bigtable.v2.IReadModifyWriteRule[]|null); } - /** Represents a MutateRowRequest. */ - class MutateRowRequest implements IMutateRowRequest { + /** Represents a ReadModifyWriteRowRequest. */ + class ReadModifyWriteRowRequest implements IReadModifyWriteRowRequest { /** - * Constructs a new MutateRowRequest. + * Constructs a new ReadModifyWriteRowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IMutateRowRequest); + constructor(properties?: google.bigtable.v2.IReadModifyWriteRowRequest); - /** MutateRowRequest tableName. */ + /** ReadModifyWriteRowRequest tableName. */ public tableName: string; - /** MutateRowRequest authorizedViewName. */ + /** ReadModifyWriteRowRequest authorizedViewName. */ public authorizedViewName: string; - /** MutateRowRequest appProfileId. */ + /** ReadModifyWriteRowRequest appProfileId. */ public appProfileId: string; - /** MutateRowRequest rowKey. */ + /** ReadModifyWriteRowRequest rowKey. */ public rowKey: (Uint8Array|Buffer|string); - /** MutateRowRequest mutations. */ - public mutations: google.bigtable.v2.IMutation[]; + /** ReadModifyWriteRowRequest rules. */ + public rules: google.bigtable.v2.IReadModifyWriteRule[]; /** - * Creates a new MutateRowRequest instance using the specified properties. + * Creates a new ReadModifyWriteRowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MutateRowRequest instance + * @returns ReadModifyWriteRowRequest instance */ - public static create(properties?: google.bigtable.v2.IMutateRowRequest): google.bigtable.v2.MutateRowRequest; + public static create(properties?: google.bigtable.v2.IReadModifyWriteRowRequest): google.bigtable.v2.ReadModifyWriteRowRequest; /** - * Encodes the specified MutateRowRequest message. Does not implicitly {@link google.bigtable.v2.MutateRowRequest.verify|verify} messages. - * @param message MutateRowRequest message or plain object to encode + * Encodes the specified ReadModifyWriteRowRequest message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowRequest.verify|verify} messages. + * @param message ReadModifyWriteRowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IMutateRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IReadModifyWriteRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowRequest.verify|verify} messages. - * @param message MutateRowRequest message or plain object to encode + * Encodes the specified ReadModifyWriteRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowRequest.verify|verify} messages. + * @param message ReadModifyWriteRowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IMutateRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IReadModifyWriteRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateRowRequest message from the specified reader or buffer. + * Decodes a ReadModifyWriteRowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateRowRequest + * @returns ReadModifyWriteRowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.MutateRowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadModifyWriteRowRequest; /** - * Decodes a MutateRowRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadModifyWriteRowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateRowRequest + * @returns ReadModifyWriteRowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.MutateRowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadModifyWriteRowRequest; /** - * Verifies a MutateRowRequest message. + * Verifies a ReadModifyWriteRowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MutateRowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadModifyWriteRowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateRowRequest + * @returns ReadModifyWriteRowRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.MutateRowRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadModifyWriteRowRequest; /** - * Creates a plain object from a MutateRowRequest message. Also converts values to other types if specified. - * @param message MutateRowRequest + * Creates a plain object from a ReadModifyWriteRowRequest message. Also converts values to other types if specified. + * @param message ReadModifyWriteRowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.MutateRowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ReadModifyWriteRowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateRowRequest to JSON. + * Converts this ReadModifyWriteRowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MutateRowRequest + * Gets the default type url for ReadModifyWriteRowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateRowResponse. */ - interface IMutateRowResponse { + /** Properties of a ReadModifyWriteRowResponse. */ + interface IReadModifyWriteRowResponse { + + /** ReadModifyWriteRowResponse row */ + row?: (google.bigtable.v2.IRow|null); } - /** Represents a MutateRowResponse. */ - class MutateRowResponse implements IMutateRowResponse { + /** Represents a ReadModifyWriteRowResponse. */ + class ReadModifyWriteRowResponse implements IReadModifyWriteRowResponse { /** - * Constructs a new MutateRowResponse. + * Constructs a new ReadModifyWriteRowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IMutateRowResponse); + constructor(properties?: google.bigtable.v2.IReadModifyWriteRowResponse); + + /** ReadModifyWriteRowResponse row. */ + public row?: (google.bigtable.v2.IRow|null); /** - * Creates a new MutateRowResponse instance using the specified properties. + * Creates a new ReadModifyWriteRowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MutateRowResponse instance + * @returns ReadModifyWriteRowResponse instance */ - public static create(properties?: google.bigtable.v2.IMutateRowResponse): google.bigtable.v2.MutateRowResponse; + public static create(properties?: google.bigtable.v2.IReadModifyWriteRowResponse): google.bigtable.v2.ReadModifyWriteRowResponse; /** - * Encodes the specified MutateRowResponse message. Does not implicitly {@link google.bigtable.v2.MutateRowResponse.verify|verify} messages. - * @param message MutateRowResponse message or plain object to encode + * Encodes the specified ReadModifyWriteRowResponse message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowResponse.verify|verify} messages. + * @param message ReadModifyWriteRowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IMutateRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IReadModifyWriteRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowResponse.verify|verify} messages. - * @param message MutateRowResponse message or plain object to encode + * Encodes the specified ReadModifyWriteRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowResponse.verify|verify} messages. + * @param message ReadModifyWriteRowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IMutateRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IReadModifyWriteRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateRowResponse message from the specified reader or buffer. + * Decodes a ReadModifyWriteRowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateRowResponse + * @returns ReadModifyWriteRowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.MutateRowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadModifyWriteRowResponse; /** - * Decodes a MutateRowResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadModifyWriteRowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateRowResponse + * @returns ReadModifyWriteRowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.MutateRowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadModifyWriteRowResponse; /** - * Verifies a MutateRowResponse message. + * Verifies a ReadModifyWriteRowResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MutateRowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadModifyWriteRowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateRowResponse + * @returns ReadModifyWriteRowResponse */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.MutateRowResponse; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadModifyWriteRowResponse; /** - * Creates a plain object from a MutateRowResponse message. Also converts values to other types if specified. - * @param message MutateRowResponse + * Creates a plain object from a ReadModifyWriteRowResponse message. Also converts values to other types if specified. + * @param message ReadModifyWriteRowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.MutateRowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ReadModifyWriteRowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateRowResponse to JSON. + * Converts this ReadModifyWriteRowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MutateRowResponse + * Gets the default type url for ReadModifyWriteRowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateRowsRequest. */ - interface IMutateRowsRequest { + /** Properties of a GenerateInitialChangeStreamPartitionsRequest. */ + interface IGenerateInitialChangeStreamPartitionsRequest { - /** MutateRowsRequest tableName */ + /** GenerateInitialChangeStreamPartitionsRequest tableName */ tableName?: (string|null); - /** MutateRowsRequest authorizedViewName */ - authorizedViewName?: (string|null); - - /** MutateRowsRequest appProfileId */ + /** GenerateInitialChangeStreamPartitionsRequest appProfileId */ appProfileId?: (string|null); - - /** MutateRowsRequest entries */ - entries?: (google.bigtable.v2.MutateRowsRequest.IEntry[]|null); } - /** Represents a MutateRowsRequest. */ - class MutateRowsRequest implements IMutateRowsRequest { + /** Represents a GenerateInitialChangeStreamPartitionsRequest. */ + class GenerateInitialChangeStreamPartitionsRequest implements IGenerateInitialChangeStreamPartitionsRequest { /** - * Constructs a new MutateRowsRequest. + * Constructs a new GenerateInitialChangeStreamPartitionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IMutateRowsRequest); + constructor(properties?: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest); - /** MutateRowsRequest tableName. */ + /** GenerateInitialChangeStreamPartitionsRequest tableName. */ public tableName: string; - /** MutateRowsRequest authorizedViewName. */ - public authorizedViewName: string; - - /** MutateRowsRequest appProfileId. */ + /** GenerateInitialChangeStreamPartitionsRequest appProfileId. */ public appProfileId: string; - /** MutateRowsRequest entries. */ - public entries: google.bigtable.v2.MutateRowsRequest.IEntry[]; - /** - * Creates a new MutateRowsRequest instance using the specified properties. + * Creates a new GenerateInitialChangeStreamPartitionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MutateRowsRequest instance + * @returns GenerateInitialChangeStreamPartitionsRequest instance */ - public static create(properties?: google.bigtable.v2.IMutateRowsRequest): google.bigtable.v2.MutateRowsRequest; + public static create(properties?: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest): google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest; /** - * Encodes the specified MutateRowsRequest message. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.verify|verify} messages. - * @param message MutateRowsRequest message or plain object to encode + * Encodes the specified GenerateInitialChangeStreamPartitionsRequest message. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest.verify|verify} messages. + * @param message GenerateInitialChangeStreamPartitionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IMutateRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateRowsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.verify|verify} messages. - * @param message MutateRowsRequest message or plain object to encode + * Encodes the specified GenerateInitialChangeStreamPartitionsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest.verify|verify} messages. + * @param message GenerateInitialChangeStreamPartitionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IMutateRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateRowsRequest message from the specified reader or buffer. + * Decodes a GenerateInitialChangeStreamPartitionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateRowsRequest + * @returns GenerateInitialChangeStreamPartitionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.MutateRowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest; /** - * Decodes a MutateRowsRequest message from the specified reader or buffer, length delimited. + * Decodes a GenerateInitialChangeStreamPartitionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateRowsRequest + * @returns GenerateInitialChangeStreamPartitionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.MutateRowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest; /** - * Verifies a MutateRowsRequest message. + * Verifies a GenerateInitialChangeStreamPartitionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MutateRowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GenerateInitialChangeStreamPartitionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateRowsRequest + * @returns GenerateInitialChangeStreamPartitionsRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.MutateRowsRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest; /** - * Creates a plain object from a MutateRowsRequest message. Also converts values to other types if specified. - * @param message MutateRowsRequest + * Creates a plain object from a GenerateInitialChangeStreamPartitionsRequest message. Also converts values to other types if specified. + * @param message GenerateInitialChangeStreamPartitionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.MutateRowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateRowsRequest to JSON. + * Converts this GenerateInitialChangeStreamPartitionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MutateRowsRequest + * Gets the default type url for GenerateInitialChangeStreamPartitionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MutateRowsRequest { - - /** Properties of an Entry. */ - interface IEntry { - - /** Entry rowKey */ - rowKey?: (Uint8Array|Buffer|string|null); - - /** Entry mutations */ - mutations?: (google.bigtable.v2.IMutation[]|null); - } - - /** Represents an Entry. */ - class Entry implements IEntry { - - /** - * Constructs a new Entry. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.MutateRowsRequest.IEntry); - - /** Entry rowKey. */ - public rowKey: (Uint8Array|Buffer|string); - - /** Entry mutations. */ - public mutations: google.bigtable.v2.IMutation[]; - - /** - * Creates a new Entry instance using the specified properties. - * @param [properties] Properties to set - * @returns Entry instance - */ - public static create(properties?: google.bigtable.v2.MutateRowsRequest.IEntry): google.bigtable.v2.MutateRowsRequest.Entry; - - /** - * Encodes the specified Entry message. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.IEntry, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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.bigtable.v2.MutateRowsRequest.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 MutateRowsResponse. */ - interface IMutateRowsResponse { - - /** MutateRowsResponse entries */ - entries?: (google.bigtable.v2.MutateRowsResponse.IEntry[]|null); + /** Properties of a GenerateInitialChangeStreamPartitionsResponse. */ + interface IGenerateInitialChangeStreamPartitionsResponse { - /** MutateRowsResponse rateLimitInfo */ - rateLimitInfo?: (google.bigtable.v2.IRateLimitInfo|null); + /** GenerateInitialChangeStreamPartitionsResponse partition */ + partition?: (google.bigtable.v2.IStreamPartition|null); } - /** Represents a MutateRowsResponse. */ - class MutateRowsResponse implements IMutateRowsResponse { + /** Represents a GenerateInitialChangeStreamPartitionsResponse. */ + class GenerateInitialChangeStreamPartitionsResponse implements IGenerateInitialChangeStreamPartitionsResponse { /** - * Constructs a new MutateRowsResponse. + * Constructs a new GenerateInitialChangeStreamPartitionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IMutateRowsResponse); - - /** MutateRowsResponse entries. */ - public entries: google.bigtable.v2.MutateRowsResponse.IEntry[]; + constructor(properties?: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse); - /** MutateRowsResponse rateLimitInfo. */ - public rateLimitInfo?: (google.bigtable.v2.IRateLimitInfo|null); + /** GenerateInitialChangeStreamPartitionsResponse partition. */ + public partition?: (google.bigtable.v2.IStreamPartition|null); /** - * Creates a new MutateRowsResponse instance using the specified properties. + * Creates a new GenerateInitialChangeStreamPartitionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MutateRowsResponse instance + * @returns GenerateInitialChangeStreamPartitionsResponse instance */ - public static create(properties?: google.bigtable.v2.IMutateRowsResponse): google.bigtable.v2.MutateRowsResponse; + public static create(properties?: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse): google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse; /** - * Encodes the specified MutateRowsResponse message. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.verify|verify} messages. - * @param message MutateRowsResponse message or plain object to encode + * Encodes the specified GenerateInitialChangeStreamPartitionsResponse message. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.verify|verify} messages. + * @param message GenerateInitialChangeStreamPartitionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IMutateRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateRowsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.verify|verify} messages. - * @param message MutateRowsResponse message or plain object to encode + * Encodes the specified GenerateInitialChangeStreamPartitionsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.verify|verify} messages. + * @param message GenerateInitialChangeStreamPartitionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IMutateRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateRowsResponse message from the specified reader or buffer. + * Decodes a GenerateInitialChangeStreamPartitionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateRowsResponse + * @returns GenerateInitialChangeStreamPartitionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.MutateRowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse; /** - * Decodes a MutateRowsResponse message from the specified reader or buffer, length delimited. + * Decodes a GenerateInitialChangeStreamPartitionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateRowsResponse + * @returns GenerateInitialChangeStreamPartitionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.MutateRowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse; /** - * Verifies a MutateRowsResponse message. + * Verifies a GenerateInitialChangeStreamPartitionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MutateRowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GenerateInitialChangeStreamPartitionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateRowsResponse + * @returns GenerateInitialChangeStreamPartitionsResponse */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.MutateRowsResponse; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse; /** - * Creates a plain object from a MutateRowsResponse message. Also converts values to other types if specified. - * @param message MutateRowsResponse + * Creates a plain object from a GenerateInitialChangeStreamPartitionsResponse message. Also converts values to other types if specified. + * @param message GenerateInitialChangeStreamPartitionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.MutateRowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateRowsResponse to JSON. + * Converts this GenerateInitialChangeStreamPartitionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MutateRowsResponse + * Gets the default type url for GenerateInitialChangeStreamPartitionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MutateRowsResponse { - - /** Properties of an Entry. */ - interface IEntry { - - /** Entry index */ - index?: (number|Long|string|null); - - /** Entry status */ - status?: (google.rpc.IStatus|null); - } - - /** Represents an Entry. */ - class Entry implements IEntry { - - /** - * Constructs a new Entry. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.MutateRowsResponse.IEntry); - - /** Entry index. */ - public index: (number|Long|string); - - /** Entry status. */ - public status?: (google.rpc.IStatus|null); + /** Properties of a ReadChangeStreamRequest. */ + interface IReadChangeStreamRequest { - /** - * Creates a new Entry instance using the specified properties. - * @param [properties] Properties to set - * @returns Entry instance - */ - public static create(properties?: google.bigtable.v2.MutateRowsResponse.IEntry): google.bigtable.v2.MutateRowsResponse.Entry; + /** ReadChangeStreamRequest tableName */ + tableName?: (string|null); - /** - * Encodes the specified Entry message. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.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.bigtable.v2.MutateRowsResponse.IEntry, writer?: $protobuf.Writer): $protobuf.Writer; + /** ReadChangeStreamRequest appProfileId */ + appProfileId?: (string|null); - /** - * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.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.bigtable.v2.MutateRowsResponse.IEntry, writer?: $protobuf.Writer): $protobuf.Writer; + /** ReadChangeStreamRequest partition */ + partition?: (google.bigtable.v2.IStreamPartition|null); - /** - * 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.bigtable.v2.MutateRowsResponse.Entry; + /** ReadChangeStreamRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * 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.bigtable.v2.MutateRowsResponse.Entry; + /** ReadChangeStreamRequest continuationTokens */ + continuationTokens?: (google.bigtable.v2.IStreamContinuationTokens|null); - /** - * 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); + /** ReadChangeStreamRequest endTime */ + endTime?: (google.protobuf.ITimestamp|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.bigtable.v2.MutateRowsResponse.Entry; + /** ReadChangeStreamRequest heartbeatDuration */ + heartbeatDuration?: (google.protobuf.IDuration|null); + } - /** - * 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.bigtable.v2.MutateRowsResponse.Entry, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a ReadChangeStreamRequest. */ + class ReadChangeStreamRequest implements IReadChangeStreamRequest { - /** - * Converts this Entry to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new ReadChangeStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IReadChangeStreamRequest); - /** - * 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; - } - } + /** ReadChangeStreamRequest tableName. */ + public tableName: string; - /** Properties of a RateLimitInfo. */ - interface IRateLimitInfo { + /** ReadChangeStreamRequest appProfileId. */ + public appProfileId: string; - /** RateLimitInfo period */ - period?: (google.protobuf.IDuration|null); + /** ReadChangeStreamRequest partition. */ + public partition?: (google.bigtable.v2.IStreamPartition|null); - /** RateLimitInfo factor */ - factor?: (number|null); - } + /** ReadChangeStreamRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** Represents a RateLimitInfo. */ - class RateLimitInfo implements IRateLimitInfo { + /** ReadChangeStreamRequest continuationTokens. */ + public continuationTokens?: (google.bigtable.v2.IStreamContinuationTokens|null); - /** - * Constructs a new RateLimitInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IRateLimitInfo); + /** ReadChangeStreamRequest endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** RateLimitInfo period. */ - public period?: (google.protobuf.IDuration|null); + /** ReadChangeStreamRequest heartbeatDuration. */ + public heartbeatDuration?: (google.protobuf.IDuration|null); - /** RateLimitInfo factor. */ - public factor: number; + /** ReadChangeStreamRequest startFrom. */ + public startFrom?: ("startTime"|"continuationTokens"); /** - * Creates a new RateLimitInfo instance using the specified properties. + * Creates a new ReadChangeStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RateLimitInfo instance + * @returns ReadChangeStreamRequest instance */ - public static create(properties?: google.bigtable.v2.IRateLimitInfo): google.bigtable.v2.RateLimitInfo; + public static create(properties?: google.bigtable.v2.IReadChangeStreamRequest): google.bigtable.v2.ReadChangeStreamRequest; /** - * Encodes the specified RateLimitInfo message. Does not implicitly {@link google.bigtable.v2.RateLimitInfo.verify|verify} messages. - * @param message RateLimitInfo message or plain object to encode + * Encodes the specified ReadChangeStreamRequest message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamRequest.verify|verify} messages. + * @param message ReadChangeStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IRateLimitInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IReadChangeStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RateLimitInfo message, length delimited. Does not implicitly {@link google.bigtable.v2.RateLimitInfo.verify|verify} messages. - * @param message RateLimitInfo message or plain object to encode + * Encodes the specified ReadChangeStreamRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamRequest.verify|verify} messages. + * @param message ReadChangeStreamRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IRateLimitInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IReadChangeStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RateLimitInfo message from the specified reader or buffer. + * Decodes a ReadChangeStreamRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RateLimitInfo + * @returns ReadChangeStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RateLimitInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamRequest; /** - * Decodes a RateLimitInfo message from the specified reader or buffer, length delimited. + * Decodes a ReadChangeStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RateLimitInfo + * @returns ReadChangeStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RateLimitInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamRequest; /** - * Verifies a RateLimitInfo message. + * Verifies a ReadChangeStreamRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RateLimitInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ReadChangeStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RateLimitInfo + * @returns ReadChangeStreamRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RateLimitInfo; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamRequest; /** - * Creates a plain object from a RateLimitInfo message. Also converts values to other types if specified. - * @param message RateLimitInfo + * Creates a plain object from a ReadChangeStreamRequest message. Also converts values to other types if specified. + * @param message ReadChangeStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.RateLimitInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ReadChangeStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RateLimitInfo to JSON. + * Converts this ReadChangeStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for RateLimitInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CheckAndMutateRowRequest. */ - interface ICheckAndMutateRowRequest { - - /** CheckAndMutateRowRequest tableName */ - tableName?: (string|null); - - /** CheckAndMutateRowRequest authorizedViewName */ - authorizedViewName?: (string|null); - - /** CheckAndMutateRowRequest appProfileId */ - appProfileId?: (string|null); - - /** CheckAndMutateRowRequest rowKey */ - rowKey?: (Uint8Array|Buffer|string|null); + /** + * Gets the default type url for ReadChangeStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CheckAndMutateRowRequest predicateFilter */ - predicateFilter?: (google.bigtable.v2.IRowFilter|null); + /** Properties of a ReadChangeStreamResponse. */ + interface IReadChangeStreamResponse { - /** CheckAndMutateRowRequest trueMutations */ - trueMutations?: (google.bigtable.v2.IMutation[]|null); + /** ReadChangeStreamResponse dataChange */ + dataChange?: (google.bigtable.v2.ReadChangeStreamResponse.IDataChange|null); - /** CheckAndMutateRowRequest falseMutations */ - falseMutations?: (google.bigtable.v2.IMutation[]|null); + /** ReadChangeStreamResponse heartbeat */ + heartbeat?: (google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat|null); + + /** ReadChangeStreamResponse closeStream */ + closeStream?: (google.bigtable.v2.ReadChangeStreamResponse.ICloseStream|null); } - /** Represents a CheckAndMutateRowRequest. */ - class CheckAndMutateRowRequest implements ICheckAndMutateRowRequest { + /** Represents a ReadChangeStreamResponse. */ + class ReadChangeStreamResponse implements IReadChangeStreamResponse { /** - * Constructs a new CheckAndMutateRowRequest. + * Constructs a new ReadChangeStreamResponse. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.ICheckAndMutateRowRequest); - - /** CheckAndMutateRowRequest tableName. */ - public tableName: string; - - /** CheckAndMutateRowRequest authorizedViewName. */ - public authorizedViewName: string; - - /** CheckAndMutateRowRequest appProfileId. */ - public appProfileId: string; + constructor(properties?: google.bigtable.v2.IReadChangeStreamResponse); - /** CheckAndMutateRowRequest rowKey. */ - public rowKey: (Uint8Array|Buffer|string); + /** ReadChangeStreamResponse dataChange. */ + public dataChange?: (google.bigtable.v2.ReadChangeStreamResponse.IDataChange|null); - /** CheckAndMutateRowRequest predicateFilter. */ - public predicateFilter?: (google.bigtable.v2.IRowFilter|null); + /** ReadChangeStreamResponse heartbeat. */ + public heartbeat?: (google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat|null); - /** CheckAndMutateRowRequest trueMutations. */ - public trueMutations: google.bigtable.v2.IMutation[]; + /** ReadChangeStreamResponse closeStream. */ + public closeStream?: (google.bigtable.v2.ReadChangeStreamResponse.ICloseStream|null); - /** CheckAndMutateRowRequest falseMutations. */ - public falseMutations: google.bigtable.v2.IMutation[]; + /** ReadChangeStreamResponse streamRecord. */ + public streamRecord?: ("dataChange"|"heartbeat"|"closeStream"); /** - * Creates a new CheckAndMutateRowRequest instance using the specified properties. + * Creates a new ReadChangeStreamResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CheckAndMutateRowRequest instance + * @returns ReadChangeStreamResponse instance */ - public static create(properties?: google.bigtable.v2.ICheckAndMutateRowRequest): google.bigtable.v2.CheckAndMutateRowRequest; + public static create(properties?: google.bigtable.v2.IReadChangeStreamResponse): google.bigtable.v2.ReadChangeStreamResponse; /** - * Encodes the specified CheckAndMutateRowRequest message. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowRequest.verify|verify} messages. - * @param message CheckAndMutateRowRequest message or plain object to encode + * Encodes the specified ReadChangeStreamResponse message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.verify|verify} messages. + * @param message ReadChangeStreamResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.ICheckAndMutateRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IReadChangeStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckAndMutateRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowRequest.verify|verify} messages. - * @param message CheckAndMutateRowRequest message or plain object to encode + * Encodes the specified ReadChangeStreamResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.verify|verify} messages. + * @param message ReadChangeStreamResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.ICheckAndMutateRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IReadChangeStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckAndMutateRowRequest message from the specified reader or buffer. + * Decodes a ReadChangeStreamResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckAndMutateRowRequest + * @returns ReadChangeStreamResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.CheckAndMutateRowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse; /** - * Decodes a CheckAndMutateRowRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadChangeStreamResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckAndMutateRowRequest + * @returns ReadChangeStreamResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.CheckAndMutateRowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse; /** - * Verifies a CheckAndMutateRowRequest message. + * Verifies a ReadChangeStreamResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CheckAndMutateRowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadChangeStreamResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckAndMutateRowRequest + * @returns ReadChangeStreamResponse */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.CheckAndMutateRowRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse; /** - * Creates a plain object from a CheckAndMutateRowRequest message. Also converts values to other types if specified. - * @param message CheckAndMutateRowRequest + * Creates a plain object from a ReadChangeStreamResponse message. Also converts values to other types if specified. + * @param message ReadChangeStreamResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.CheckAndMutateRowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckAndMutateRowRequest to JSON. + * Converts this ReadChangeStreamResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckAndMutateRowRequest + * Gets the default type url for ReadChangeStreamResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CheckAndMutateRowResponse. */ - interface ICheckAndMutateRowResponse { + namespace ReadChangeStreamResponse { - /** CheckAndMutateRowResponse predicateMatched */ - predicateMatched?: (boolean|null); - } + /** Properties of a MutationChunk. */ + interface IMutationChunk { - /** Represents a CheckAndMutateRowResponse. */ - class CheckAndMutateRowResponse implements ICheckAndMutateRowResponse { + /** MutationChunk chunkInfo */ + chunkInfo?: (google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo|null); - /** - * Constructs a new CheckAndMutateRowResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ICheckAndMutateRowResponse); + /** MutationChunk mutation */ + mutation?: (google.bigtable.v2.IMutation|null); + } - /** CheckAndMutateRowResponse predicateMatched. */ - public predicateMatched: boolean; + /** Represents a MutationChunk. */ + class MutationChunk implements IMutationChunk { - /** - * Creates a new CheckAndMutateRowResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CheckAndMutateRowResponse instance - */ - public static create(properties?: google.bigtable.v2.ICheckAndMutateRowResponse): google.bigtable.v2.CheckAndMutateRowResponse; + /** + * Constructs a new MutationChunk. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk); + + /** MutationChunk chunkInfo. */ + public chunkInfo?: (google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo|null); + + /** MutationChunk mutation. */ + public mutation?: (google.bigtable.v2.IMutation|null); + + /** + * Creates a new MutationChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns MutationChunk instance + */ + public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk; + + /** + * Encodes the specified MutationChunk message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify|verify} messages. + * @param message MutationChunk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MutationChunk message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify|verify} messages. + * @param message MutationChunk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MutationChunk message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutationChunk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk; + + /** + * Decodes a MutationChunk message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutationChunk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk; + + /** + * Verifies a MutationChunk message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MutationChunk message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutationChunk + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk; + + /** + * Creates a plain object from a MutationChunk message. Also converts values to other types if specified. + * @param message MutationChunk + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MutationChunk to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MutationChunk + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MutationChunk { + + /** Properties of a ChunkInfo. */ + interface IChunkInfo { + + /** ChunkInfo chunkedValueSize */ + chunkedValueSize?: (number|null); + + /** ChunkInfo chunkedValueOffset */ + chunkedValueOffset?: (number|null); + + /** ChunkInfo lastChunk */ + lastChunk?: (boolean|null); + } + + /** Represents a ChunkInfo. */ + class ChunkInfo implements IChunkInfo { + + /** + * Constructs a new ChunkInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo); + + /** ChunkInfo chunkedValueSize. */ + public chunkedValueSize: number; + + /** ChunkInfo chunkedValueOffset. */ + public chunkedValueOffset: number; + + /** ChunkInfo lastChunk. */ + public lastChunk: boolean; - /** - * Encodes the specified CheckAndMutateRowResponse message. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowResponse.verify|verify} messages. - * @param message CheckAndMutateRowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ICheckAndMutateRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ChunkInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ChunkInfo instance + */ + public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo; - /** - * Encodes the specified CheckAndMutateRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowResponse.verify|verify} messages. - * @param message CheckAndMutateRowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ICheckAndMutateRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ChunkInfo message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify|verify} messages. + * @param message ChunkInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CheckAndMutateRowResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CheckAndMutateRowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.CheckAndMutateRowResponse; + /** + * Encodes the specified ChunkInfo message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify|verify} messages. + * @param message ChunkInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CheckAndMutateRowResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CheckAndMutateRowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.CheckAndMutateRowResponse; + /** + * Decodes a ChunkInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChunkInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo; - /** - * Verifies a CheckAndMutateRowResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ChunkInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChunkInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo; - /** - * Creates a CheckAndMutateRowResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CheckAndMutateRowResponse - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.CheckAndMutateRowResponse; + /** + * Verifies a ChunkInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a CheckAndMutateRowResponse message. Also converts values to other types if specified. - * @param message CheckAndMutateRowResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.CheckAndMutateRowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a ChunkInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChunkInfo + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo; - /** - * Converts this CheckAndMutateRowResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a ChunkInfo message. Also converts values to other types if specified. + * @param message ChunkInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for CheckAndMutateRowResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this ChunkInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a PingAndWarmRequest. */ - interface IPingAndWarmRequest { + /** + * Gets the default type url for ChunkInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** PingAndWarmRequest name */ - name?: (string|null); + /** Properties of a DataChange. */ + interface IDataChange { - /** PingAndWarmRequest appProfileId */ - appProfileId?: (string|null); - } + /** DataChange type */ + type?: (google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type|keyof typeof google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type|null); - /** Represents a PingAndWarmRequest. */ - class PingAndWarmRequest implements IPingAndWarmRequest { + /** DataChange sourceClusterId */ + sourceClusterId?: (string|null); - /** - * Constructs a new PingAndWarmRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IPingAndWarmRequest); + /** DataChange rowKey */ + rowKey?: (Uint8Array|Buffer|string|null); - /** PingAndWarmRequest name. */ - public name: string; + /** DataChange commitTimestamp */ + commitTimestamp?: (google.protobuf.ITimestamp|null); - /** PingAndWarmRequest appProfileId. */ - public appProfileId: string; + /** DataChange tiebreaker */ + tiebreaker?: (number|null); - /** - * Creates a new PingAndWarmRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PingAndWarmRequest instance - */ - public static create(properties?: google.bigtable.v2.IPingAndWarmRequest): google.bigtable.v2.PingAndWarmRequest; + /** DataChange chunks */ + chunks?: (google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk[]|null); - /** - * Encodes the specified PingAndWarmRequest message. Does not implicitly {@link google.bigtable.v2.PingAndWarmRequest.verify|verify} messages. - * @param message PingAndWarmRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IPingAndWarmRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** DataChange done */ + done?: (boolean|null); - /** - * Encodes the specified PingAndWarmRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.PingAndWarmRequest.verify|verify} messages. - * @param message PingAndWarmRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IPingAndWarmRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** DataChange token */ + token?: (string|null); - /** - * Decodes a PingAndWarmRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PingAndWarmRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PingAndWarmRequest; + /** DataChange estimatedLowWatermark */ + estimatedLowWatermark?: (google.protobuf.ITimestamp|null); + } - /** - * Decodes a PingAndWarmRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PingAndWarmRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PingAndWarmRequest; + /** Represents a DataChange. */ + class DataChange implements IDataChange { - /** - * Verifies a PingAndWarmRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Constructs a new DataChange. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.IDataChange); - /** - * Creates a PingAndWarmRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PingAndWarmRequest - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PingAndWarmRequest; + /** DataChange type. */ + public type: (google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type|keyof typeof google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type); - /** - * Creates a plain object from a PingAndWarmRequest message. Also converts values to other types if specified. - * @param message PingAndWarmRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.PingAndWarmRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DataChange sourceClusterId. */ + public sourceClusterId: string; - /** - * Converts this PingAndWarmRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DataChange rowKey. */ + public rowKey: (Uint8Array|Buffer|string); - /** - * Gets the default type url for PingAndWarmRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DataChange commitTimestamp. */ + public commitTimestamp?: (google.protobuf.ITimestamp|null); + + /** DataChange tiebreaker. */ + public tiebreaker: number; - /** Properties of a PingAndWarmResponse. */ - interface IPingAndWarmResponse { - } + /** DataChange chunks. */ + public chunks: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk[]; - /** Represents a PingAndWarmResponse. */ - class PingAndWarmResponse implements IPingAndWarmResponse { + /** DataChange done. */ + public done: boolean; - /** - * Constructs a new PingAndWarmResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IPingAndWarmResponse); + /** DataChange token. */ + public token: string; - /** - * Creates a new PingAndWarmResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PingAndWarmResponse instance - */ - public static create(properties?: google.bigtable.v2.IPingAndWarmResponse): google.bigtable.v2.PingAndWarmResponse; + /** DataChange estimatedLowWatermark. */ + public estimatedLowWatermark?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified PingAndWarmResponse message. Does not implicitly {@link google.bigtable.v2.PingAndWarmResponse.verify|verify} messages. - * @param message PingAndWarmResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IPingAndWarmResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new DataChange instance using the specified properties. + * @param [properties] Properties to set + * @returns DataChange instance + */ + public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.IDataChange): google.bigtable.v2.ReadChangeStreamResponse.DataChange; - /** - * Encodes the specified PingAndWarmResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.PingAndWarmResponse.verify|verify} messages. - * @param message PingAndWarmResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IPingAndWarmResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DataChange message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify|verify} messages. + * @param message DataChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.IDataChange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PingAndWarmResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PingAndWarmResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PingAndWarmResponse; + /** + * Encodes the specified DataChange message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify|verify} messages. + * @param message DataChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.IDataChange, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PingAndWarmResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PingAndWarmResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PingAndWarmResponse; + /** + * Decodes a DataChange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.DataChange; - /** - * Verifies a PingAndWarmResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a DataChange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.DataChange; - /** - * Creates a PingAndWarmResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PingAndWarmResponse - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PingAndWarmResponse; + /** + * Verifies a DataChange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a PingAndWarmResponse message. Also converts values to other types if specified. - * @param message PingAndWarmResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.PingAndWarmResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a DataChange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataChange + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.DataChange; - /** - * Converts this PingAndWarmResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a DataChange message. Also converts values to other types if specified. + * @param message DataChange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.DataChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for PingAndWarmResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this DataChange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a ReadModifyWriteRowRequest. */ - interface IReadModifyWriteRowRequest { + /** + * Gets the default type url for DataChange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ReadModifyWriteRowRequest tableName */ - tableName?: (string|null); + namespace DataChange { - /** ReadModifyWriteRowRequest authorizedViewName */ - authorizedViewName?: (string|null); + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + USER = 1, + GARBAGE_COLLECTION = 2, + CONTINUATION = 3 + } + } - /** ReadModifyWriteRowRequest appProfileId */ - appProfileId?: (string|null); + /** Properties of a Heartbeat. */ + interface IHeartbeat { - /** ReadModifyWriteRowRequest rowKey */ - rowKey?: (Uint8Array|Buffer|string|null); + /** Heartbeat continuationToken */ + continuationToken?: (google.bigtable.v2.IStreamContinuationToken|null); - /** ReadModifyWriteRowRequest rules */ - rules?: (google.bigtable.v2.IReadModifyWriteRule[]|null); - } + /** Heartbeat estimatedLowWatermark */ + estimatedLowWatermark?: (google.protobuf.ITimestamp|null); + } - /** Represents a ReadModifyWriteRowRequest. */ - class ReadModifyWriteRowRequest implements IReadModifyWriteRowRequest { + /** Represents a Heartbeat. */ + class Heartbeat implements IHeartbeat { - /** - * Constructs a new ReadModifyWriteRowRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IReadModifyWriteRowRequest); + /** + * Constructs a new Heartbeat. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat); - /** ReadModifyWriteRowRequest tableName. */ - public tableName: string; + /** Heartbeat continuationToken. */ + public continuationToken?: (google.bigtable.v2.IStreamContinuationToken|null); - /** ReadModifyWriteRowRequest authorizedViewName. */ - public authorizedViewName: string; + /** Heartbeat estimatedLowWatermark. */ + public estimatedLowWatermark?: (google.protobuf.ITimestamp|null); - /** ReadModifyWriteRowRequest appProfileId. */ - public appProfileId: string; + /** + * Creates a new Heartbeat instance using the specified properties. + * @param [properties] Properties to set + * @returns Heartbeat instance + */ + public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat): google.bigtable.v2.ReadChangeStreamResponse.Heartbeat; - /** ReadModifyWriteRowRequest rowKey. */ - public rowKey: (Uint8Array|Buffer|string); + /** + * Encodes the specified Heartbeat message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify|verify} messages. + * @param message Heartbeat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReadModifyWriteRowRequest rules. */ - public rules: google.bigtable.v2.IReadModifyWriteRule[]; + /** + * Encodes the specified Heartbeat message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify|verify} messages. + * @param message Heartbeat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ReadModifyWriteRowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadModifyWriteRowRequest instance - */ - public static create(properties?: google.bigtable.v2.IReadModifyWriteRowRequest): google.bigtable.v2.ReadModifyWriteRowRequest; + /** + * Decodes a Heartbeat message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Heartbeat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.Heartbeat; - /** - * Encodes the specified ReadModifyWriteRowRequest message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowRequest.verify|verify} messages. - * @param message ReadModifyWriteRowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IReadModifyWriteRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Heartbeat message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Heartbeat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.Heartbeat; - /** - * Encodes the specified ReadModifyWriteRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowRequest.verify|verify} messages. - * @param message ReadModifyWriteRowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IReadModifyWriteRowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Heartbeat message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a ReadModifyWriteRowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadModifyWriteRowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadModifyWriteRowRequest; + /** + * Creates a Heartbeat message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Heartbeat + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.Heartbeat; - /** - * Decodes a ReadModifyWriteRowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadModifyWriteRowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadModifyWriteRowRequest; + /** + * Creates a plain object from a Heartbeat message. Also converts values to other types if specified. + * @param message Heartbeat + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.Heartbeat, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a ReadModifyWriteRowRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this Heartbeat to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a ReadModifyWriteRowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadModifyWriteRowRequest - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadModifyWriteRowRequest; + /** + * Gets the default type url for Heartbeat + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a ReadModifyWriteRowRequest message. Also converts values to other types if specified. - * @param message ReadModifyWriteRowRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadModifyWriteRowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a CloseStream. */ + interface ICloseStream { - /** - * Converts this ReadModifyWriteRowRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CloseStream status */ + status?: (google.rpc.IStatus|null); - /** - * Gets the default type url for ReadModifyWriteRowRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CloseStream continuationTokens */ + continuationTokens?: (google.bigtable.v2.IStreamContinuationToken[]|null); - /** Properties of a ReadModifyWriteRowResponse. */ - interface IReadModifyWriteRowResponse { + /** CloseStream newPartitions */ + newPartitions?: (google.bigtable.v2.IStreamPartition[]|null); + } - /** ReadModifyWriteRowResponse row */ - row?: (google.bigtable.v2.IRow|null); - } + /** Represents a CloseStream. */ + class CloseStream implements ICloseStream { - /** Represents a ReadModifyWriteRowResponse. */ - class ReadModifyWriteRowResponse implements IReadModifyWriteRowResponse { + /** + * Constructs a new CloseStream. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.ICloseStream); - /** - * Constructs a new ReadModifyWriteRowResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IReadModifyWriteRowResponse); + /** CloseStream status. */ + public status?: (google.rpc.IStatus|null); - /** ReadModifyWriteRowResponse row. */ - public row?: (google.bigtable.v2.IRow|null); + /** CloseStream continuationTokens. */ + public continuationTokens: google.bigtable.v2.IStreamContinuationToken[]; - /** - * Creates a new ReadModifyWriteRowResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadModifyWriteRowResponse instance - */ - public static create(properties?: google.bigtable.v2.IReadModifyWriteRowResponse): google.bigtable.v2.ReadModifyWriteRowResponse; + /** CloseStream newPartitions. */ + public newPartitions: google.bigtable.v2.IStreamPartition[]; - /** - * Encodes the specified ReadModifyWriteRowResponse message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowResponse.verify|verify} messages. - * @param message ReadModifyWriteRowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IReadModifyWriteRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CloseStream instance using the specified properties. + * @param [properties] Properties to set + * @returns CloseStream instance + */ + public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.ICloseStream): google.bigtable.v2.ReadChangeStreamResponse.CloseStream; - /** - * Encodes the specified ReadModifyWriteRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowResponse.verify|verify} messages. - * @param message ReadModifyWriteRowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IReadModifyWriteRowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CloseStream message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify|verify} messages. + * @param message CloseStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.ICloseStream, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ReadModifyWriteRowResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadModifyWriteRowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadModifyWriteRowResponse; + /** + * Encodes the specified CloseStream message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify|verify} messages. + * @param message CloseStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.ICloseStream, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ReadModifyWriteRowResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadModifyWriteRowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadModifyWriteRowResponse; + /** + * Decodes a CloseStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloseStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.CloseStream; - /** - * Verifies a ReadModifyWriteRowResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a CloseStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CloseStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.CloseStream; - /** - * Creates a ReadModifyWriteRowResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadModifyWriteRowResponse - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadModifyWriteRowResponse; + /** + * Verifies a CloseStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a ReadModifyWriteRowResponse message. Also converts values to other types if specified. - * @param message ReadModifyWriteRowResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadModifyWriteRowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a CloseStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CloseStream + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.CloseStream; - /** - * Converts this ReadModifyWriteRowResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a CloseStream message. Also converts values to other types if specified. + * @param message CloseStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.CloseStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ReadModifyWriteRowResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this CloseStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CloseStream + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a GenerateInitialChangeStreamPartitionsRequest. */ - interface IGenerateInitialChangeStreamPartitionsRequest { + /** Properties of an ExecuteQueryRequest. */ + interface IExecuteQueryRequest { - /** GenerateInitialChangeStreamPartitionsRequest tableName */ - tableName?: (string|null); + /** ExecuteQueryRequest instanceName */ + instanceName?: (string|null); - /** GenerateInitialChangeStreamPartitionsRequest appProfileId */ + /** ExecuteQueryRequest appProfileId */ appProfileId?: (string|null); + + /** ExecuteQueryRequest query */ + query?: (string|null); + + /** ExecuteQueryRequest preparedQuery */ + preparedQuery?: (Uint8Array|Buffer|string|null); + + /** ExecuteQueryRequest protoFormat */ + protoFormat?: (google.bigtable.v2.IProtoFormat|null); + + /** ExecuteQueryRequest resumeToken */ + resumeToken?: (Uint8Array|Buffer|string|null); + + /** ExecuteQueryRequest params */ + params?: ({ [k: string]: google.bigtable.v2.IValue }|null); } - /** Represents a GenerateInitialChangeStreamPartitionsRequest. */ - class GenerateInitialChangeStreamPartitionsRequest implements IGenerateInitialChangeStreamPartitionsRequest { + /** Represents an ExecuteQueryRequest. */ + class ExecuteQueryRequest implements IExecuteQueryRequest { /** - * Constructs a new GenerateInitialChangeStreamPartitionsRequest. + * Constructs a new ExecuteQueryRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest); + constructor(properties?: google.bigtable.v2.IExecuteQueryRequest); - /** GenerateInitialChangeStreamPartitionsRequest tableName. */ - public tableName: string; + /** ExecuteQueryRequest instanceName. */ + public instanceName: string; - /** GenerateInitialChangeStreamPartitionsRequest appProfileId. */ + /** ExecuteQueryRequest appProfileId. */ public appProfileId: string; + /** ExecuteQueryRequest query. */ + public query: string; + + /** ExecuteQueryRequest preparedQuery. */ + public preparedQuery: (Uint8Array|Buffer|string); + + /** ExecuteQueryRequest protoFormat. */ + public protoFormat?: (google.bigtable.v2.IProtoFormat|null); + + /** ExecuteQueryRequest resumeToken. */ + public resumeToken: (Uint8Array|Buffer|string); + + /** ExecuteQueryRequest params. */ + public params: { [k: string]: google.bigtable.v2.IValue }; + + /** ExecuteQueryRequest dataFormat. */ + public dataFormat?: "protoFormat"; + /** - * Creates a new GenerateInitialChangeStreamPartitionsRequest instance using the specified properties. + * Creates a new ExecuteQueryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GenerateInitialChangeStreamPartitionsRequest instance + * @returns ExecuteQueryRequest instance */ - public static create(properties?: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest): google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest; + public static create(properties?: google.bigtable.v2.IExecuteQueryRequest): google.bigtable.v2.ExecuteQueryRequest; /** - * Encodes the specified GenerateInitialChangeStreamPartitionsRequest message. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest.verify|verify} messages. - * @param message GenerateInitialChangeStreamPartitionsRequest message or plain object to encode + * Encodes the specified ExecuteQueryRequest message. Does not implicitly {@link google.bigtable.v2.ExecuteQueryRequest.verify|verify} messages. + * @param message ExecuteQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IExecuteQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenerateInitialChangeStreamPartitionsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest.verify|verify} messages. - * @param message GenerateInitialChangeStreamPartitionsRequest message or plain object to encode + * Encodes the specified ExecuteQueryRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ExecuteQueryRequest.verify|verify} messages. + * @param message ExecuteQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IExecuteQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenerateInitialChangeStreamPartitionsRequest message from the specified reader or buffer. + * Decodes an ExecuteQueryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenerateInitialChangeStreamPartitionsRequest + * @returns ExecuteQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ExecuteQueryRequest; /** - * Decodes a GenerateInitialChangeStreamPartitionsRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteQueryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenerateInitialChangeStreamPartitionsRequest + * @returns ExecuteQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ExecuteQueryRequest; /** - * Verifies a GenerateInitialChangeStreamPartitionsRequest message. + * Verifies an ExecuteQueryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenerateInitialChangeStreamPartitionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteQueryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenerateInitialChangeStreamPartitionsRequest + * @returns ExecuteQueryRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ExecuteQueryRequest; /** - * Creates a plain object from a GenerateInitialChangeStreamPartitionsRequest message. Also converts values to other types if specified. - * @param message GenerateInitialChangeStreamPartitionsRequest + * Creates a plain object from an ExecuteQueryRequest message. Also converts values to other types if specified. + * @param message ExecuteQueryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ExecuteQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenerateInitialChangeStreamPartitionsRequest to JSON. + * Converts this ExecuteQueryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GenerateInitialChangeStreamPartitionsRequest + * Gets the default type url for ExecuteQueryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GenerateInitialChangeStreamPartitionsResponse. */ - interface IGenerateInitialChangeStreamPartitionsResponse { + /** Properties of an ExecuteQueryResponse. */ + interface IExecuteQueryResponse { - /** GenerateInitialChangeStreamPartitionsResponse partition */ - partition?: (google.bigtable.v2.IStreamPartition|null); + /** ExecuteQueryResponse metadata */ + metadata?: (google.bigtable.v2.IResultSetMetadata|null); + + /** ExecuteQueryResponse results */ + results?: (google.bigtable.v2.IPartialResultSet|null); } - /** Represents a GenerateInitialChangeStreamPartitionsResponse. */ - class GenerateInitialChangeStreamPartitionsResponse implements IGenerateInitialChangeStreamPartitionsResponse { + /** Represents an ExecuteQueryResponse. */ + class ExecuteQueryResponse implements IExecuteQueryResponse { /** - * Constructs a new GenerateInitialChangeStreamPartitionsResponse. + * Constructs a new ExecuteQueryResponse. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse); + constructor(properties?: google.bigtable.v2.IExecuteQueryResponse); - /** GenerateInitialChangeStreamPartitionsResponse partition. */ - public partition?: (google.bigtable.v2.IStreamPartition|null); + /** ExecuteQueryResponse metadata. */ + public metadata?: (google.bigtable.v2.IResultSetMetadata|null); + + /** ExecuteQueryResponse results. */ + public results?: (google.bigtable.v2.IPartialResultSet|null); + + /** ExecuteQueryResponse response. */ + public response?: ("metadata"|"results"); /** - * Creates a new GenerateInitialChangeStreamPartitionsResponse instance using the specified properties. + * Creates a new ExecuteQueryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GenerateInitialChangeStreamPartitionsResponse instance + * @returns ExecuteQueryResponse instance */ - public static create(properties?: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse): google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse; + public static create(properties?: google.bigtable.v2.IExecuteQueryResponse): google.bigtable.v2.ExecuteQueryResponse; /** - * Encodes the specified GenerateInitialChangeStreamPartitionsResponse message. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.verify|verify} messages. - * @param message GenerateInitialChangeStreamPartitionsResponse message or plain object to encode + * Encodes the specified ExecuteQueryResponse message. Does not implicitly {@link google.bigtable.v2.ExecuteQueryResponse.verify|verify} messages. + * @param message ExecuteQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IExecuteQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenerateInitialChangeStreamPartitionsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.verify|verify} messages. - * @param message GenerateInitialChangeStreamPartitionsResponse message or plain object to encode + * Encodes the specified ExecuteQueryResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ExecuteQueryResponse.verify|verify} messages. + * @param message ExecuteQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IExecuteQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenerateInitialChangeStreamPartitionsResponse message from the specified reader or buffer. + * Decodes an ExecuteQueryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenerateInitialChangeStreamPartitionsResponse + * @returns ExecuteQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ExecuteQueryResponse; /** - * Decodes a GenerateInitialChangeStreamPartitionsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteQueryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenerateInitialChangeStreamPartitionsResponse + * @returns ExecuteQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ExecuteQueryResponse; /** - * Verifies a GenerateInitialChangeStreamPartitionsResponse message. + * Verifies an ExecuteQueryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenerateInitialChangeStreamPartitionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteQueryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenerateInitialChangeStreamPartitionsResponse + * @returns ExecuteQueryResponse */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ExecuteQueryResponse; /** - * Creates a plain object from a GenerateInitialChangeStreamPartitionsResponse message. Also converts values to other types if specified. - * @param message GenerateInitialChangeStreamPartitionsResponse + * Creates a plain object from an ExecuteQueryResponse message. Also converts values to other types if specified. + * @param message ExecuteQueryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ExecuteQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenerateInitialChangeStreamPartitionsResponse to JSON. + * Converts this ExecuteQueryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GenerateInitialChangeStreamPartitionsResponse + * Gets the default type url for ExecuteQueryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadChangeStreamRequest. */ - interface IReadChangeStreamRequest { + /** Properties of a PrepareQueryRequest. */ + interface IPrepareQueryRequest { - /** ReadChangeStreamRequest tableName */ - tableName?: (string|null); + /** PrepareQueryRequest instanceName */ + instanceName?: (string|null); - /** ReadChangeStreamRequest appProfileId */ + /** PrepareQueryRequest appProfileId */ appProfileId?: (string|null); - /** ReadChangeStreamRequest partition */ - partition?: (google.bigtable.v2.IStreamPartition|null); - - /** ReadChangeStreamRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** ReadChangeStreamRequest continuationTokens */ - continuationTokens?: (google.bigtable.v2.IStreamContinuationTokens|null); + /** PrepareQueryRequest query */ + query?: (string|null); - /** ReadChangeStreamRequest endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** PrepareQueryRequest protoFormat */ + protoFormat?: (google.bigtable.v2.IProtoFormat|null); - /** ReadChangeStreamRequest heartbeatDuration */ - heartbeatDuration?: (google.protobuf.IDuration|null); + /** PrepareQueryRequest paramTypes */ + paramTypes?: ({ [k: string]: google.bigtable.v2.IType }|null); } - /** Represents a ReadChangeStreamRequest. */ - class ReadChangeStreamRequest implements IReadChangeStreamRequest { + /** Represents a PrepareQueryRequest. */ + class PrepareQueryRequest implements IPrepareQueryRequest { /** - * Constructs a new ReadChangeStreamRequest. + * Constructs a new PrepareQueryRequest. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IReadChangeStreamRequest); + constructor(properties?: google.bigtable.v2.IPrepareQueryRequest); - /** ReadChangeStreamRequest tableName. */ - public tableName: string; + /** PrepareQueryRequest instanceName. */ + public instanceName: string; - /** ReadChangeStreamRequest appProfileId. */ + /** PrepareQueryRequest appProfileId. */ public appProfileId: string; - /** ReadChangeStreamRequest partition. */ - public partition?: (google.bigtable.v2.IStreamPartition|null); - - /** ReadChangeStreamRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** ReadChangeStreamRequest continuationTokens. */ - public continuationTokens?: (google.bigtable.v2.IStreamContinuationTokens|null); + /** PrepareQueryRequest query. */ + public query: string; - /** ReadChangeStreamRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** PrepareQueryRequest protoFormat. */ + public protoFormat?: (google.bigtable.v2.IProtoFormat|null); - /** ReadChangeStreamRequest heartbeatDuration. */ - public heartbeatDuration?: (google.protobuf.IDuration|null); + /** PrepareQueryRequest paramTypes. */ + public paramTypes: { [k: string]: google.bigtable.v2.IType }; - /** ReadChangeStreamRequest startFrom. */ - public startFrom?: ("startTime"|"continuationTokens"); + /** PrepareQueryRequest dataFormat. */ + public dataFormat?: "protoFormat"; /** - * Creates a new ReadChangeStreamRequest instance using the specified properties. + * Creates a new PrepareQueryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadChangeStreamRequest instance + * @returns PrepareQueryRequest instance */ - public static create(properties?: google.bigtable.v2.IReadChangeStreamRequest): google.bigtable.v2.ReadChangeStreamRequest; + public static create(properties?: google.bigtable.v2.IPrepareQueryRequest): google.bigtable.v2.PrepareQueryRequest; /** - * Encodes the specified ReadChangeStreamRequest message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamRequest.verify|verify} messages. - * @param message ReadChangeStreamRequest message or plain object to encode + * Encodes the specified PrepareQueryRequest message. Does not implicitly {@link google.bigtable.v2.PrepareQueryRequest.verify|verify} messages. + * @param message PrepareQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IReadChangeStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IPrepareQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadChangeStreamRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamRequest.verify|verify} messages. - * @param message ReadChangeStreamRequest message or plain object to encode + * Encodes the specified PrepareQueryRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.PrepareQueryRequest.verify|verify} messages. + * @param message PrepareQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IReadChangeStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IPrepareQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadChangeStreamRequest message from the specified reader or buffer. + * Decodes a PrepareQueryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadChangeStreamRequest + * @returns PrepareQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PrepareQueryRequest; /** - * Decodes a ReadChangeStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a PrepareQueryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadChangeStreamRequest + * @returns PrepareQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PrepareQueryRequest; /** - * Verifies a ReadChangeStreamRequest message. + * Verifies a PrepareQueryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadChangeStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PrepareQueryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadChangeStreamRequest + * @returns PrepareQueryRequest */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PrepareQueryRequest; /** - * Creates a plain object from a ReadChangeStreamRequest message. Also converts values to other types if specified. - * @param message ReadChangeStreamRequest + * Creates a plain object from a PrepareQueryRequest message. Also converts values to other types if specified. + * @param message PrepareQueryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ReadChangeStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.PrepareQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadChangeStreamRequest to JSON. + * Converts this PrepareQueryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadChangeStreamRequest + * Gets the default type url for PrepareQueryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadChangeStreamResponse. */ - interface IReadChangeStreamResponse { + /** Properties of a PrepareQueryResponse. */ + interface IPrepareQueryResponse { - /** ReadChangeStreamResponse dataChange */ - dataChange?: (google.bigtable.v2.ReadChangeStreamResponse.IDataChange|null); + /** PrepareQueryResponse metadata */ + metadata?: (google.bigtable.v2.IResultSetMetadata|null); - /** ReadChangeStreamResponse heartbeat */ - heartbeat?: (google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat|null); + /** PrepareQueryResponse preparedQuery */ + preparedQuery?: (Uint8Array|Buffer|string|null); - /** ReadChangeStreamResponse closeStream */ - closeStream?: (google.bigtable.v2.ReadChangeStreamResponse.ICloseStream|null); + /** PrepareQueryResponse validUntil */ + validUntil?: (google.protobuf.ITimestamp|null); } - /** Represents a ReadChangeStreamResponse. */ - class ReadChangeStreamResponse implements IReadChangeStreamResponse { + /** Represents a PrepareQueryResponse. */ + class PrepareQueryResponse implements IPrepareQueryResponse { /** - * Constructs a new ReadChangeStreamResponse. + * Constructs a new PrepareQueryResponse. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IReadChangeStreamResponse); - - /** ReadChangeStreamResponse dataChange. */ - public dataChange?: (google.bigtable.v2.ReadChangeStreamResponse.IDataChange|null); + constructor(properties?: google.bigtable.v2.IPrepareQueryResponse); - /** ReadChangeStreamResponse heartbeat. */ - public heartbeat?: (google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat|null); + /** PrepareQueryResponse metadata. */ + public metadata?: (google.bigtable.v2.IResultSetMetadata|null); - /** ReadChangeStreamResponse closeStream. */ - public closeStream?: (google.bigtable.v2.ReadChangeStreamResponse.ICloseStream|null); + /** PrepareQueryResponse preparedQuery. */ + public preparedQuery: (Uint8Array|Buffer|string); - /** ReadChangeStreamResponse streamRecord. */ - public streamRecord?: ("dataChange"|"heartbeat"|"closeStream"); + /** PrepareQueryResponse validUntil. */ + public validUntil?: (google.protobuf.ITimestamp|null); /** - * Creates a new ReadChangeStreamResponse instance using the specified properties. + * Creates a new PrepareQueryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadChangeStreamResponse instance + * @returns PrepareQueryResponse instance */ - public static create(properties?: google.bigtable.v2.IReadChangeStreamResponse): google.bigtable.v2.ReadChangeStreamResponse; + public static create(properties?: google.bigtable.v2.IPrepareQueryResponse): google.bigtable.v2.PrepareQueryResponse; /** - * Encodes the specified ReadChangeStreamResponse message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.verify|verify} messages. - * @param message ReadChangeStreamResponse message or plain object to encode + * Encodes the specified PrepareQueryResponse message. Does not implicitly {@link google.bigtable.v2.PrepareQueryResponse.verify|verify} messages. + * @param message PrepareQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IReadChangeStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IPrepareQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadChangeStreamResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.verify|verify} messages. - * @param message ReadChangeStreamResponse message or plain object to encode + * Encodes the specified PrepareQueryResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.PrepareQueryResponse.verify|verify} messages. + * @param message PrepareQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IReadChangeStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IPrepareQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadChangeStreamResponse message from the specified reader or buffer. + * Decodes a PrepareQueryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadChangeStreamResponse + * @returns PrepareQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PrepareQueryResponse; /** - * Decodes a ReadChangeStreamResponse message from the specified reader or buffer, length delimited. + * Decodes a PrepareQueryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadChangeStreamResponse + * @returns PrepareQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PrepareQueryResponse; /** - * Verifies a ReadChangeStreamResponse message. + * Verifies a PrepareQueryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadChangeStreamResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrepareQueryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadChangeStreamResponse + * @returns PrepareQueryResponse */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PrepareQueryResponse; /** - * Creates a plain object from a ReadChangeStreamResponse message. Also converts values to other types if specified. - * @param message ReadChangeStreamResponse + * Creates a plain object from a PrepareQueryResponse message. Also converts values to other types if specified. + * @param message PrepareQueryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.PrepareQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadChangeStreamResponse to JSON. + * Converts this PrepareQueryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadChangeStreamResponse + * Gets the default type url for PrepareQueryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ReadChangeStreamResponse { - - /** Properties of a MutationChunk. */ - interface IMutationChunk { - - /** MutationChunk chunkInfo */ - chunkInfo?: (google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo|null); - - /** MutationChunk mutation */ - mutation?: (google.bigtable.v2.IMutation|null); - } - - /** Represents a MutationChunk. */ - class MutationChunk implements IMutationChunk { - - /** - * Constructs a new MutationChunk. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk); - - /** MutationChunk chunkInfo. */ - public chunkInfo?: (google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo|null); - - /** MutationChunk mutation. */ - public mutation?: (google.bigtable.v2.IMutation|null); - - /** - * Creates a new MutationChunk instance using the specified properties. - * @param [properties] Properties to set - * @returns MutationChunk instance - */ - public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk; - - /** - * Encodes the specified MutationChunk message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify|verify} messages. - * @param message MutationChunk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MutationChunk message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify|verify} messages. - * @param message MutationChunk message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MutationChunk message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MutationChunk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk; - - /** - * Decodes a MutationChunk message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MutationChunk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk; - - /** - * Verifies a MutationChunk message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MutationChunk message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MutationChunk - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk; - - /** - * Creates a plain object from a MutationChunk message. Also converts values to other types if specified. - * @param message MutationChunk - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a Row. */ + interface IRow { - /** - * Converts this MutationChunk to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Row key */ + key?: (Uint8Array|Buffer|string|null); - /** - * Gets the default type url for MutationChunk - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Row families */ + families?: (google.bigtable.v2.IFamily[]|null); + } - namespace MutationChunk { + /** Represents a Row. */ + class Row implements IRow { - /** Properties of a ChunkInfo. */ - interface IChunkInfo { + /** + * Constructs a new Row. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IRow); - /** ChunkInfo chunkedValueSize */ - chunkedValueSize?: (number|null); + /** Row key. */ + public key: (Uint8Array|Buffer|string); - /** ChunkInfo chunkedValueOffset */ - chunkedValueOffset?: (number|null); + /** Row families. */ + public families: google.bigtable.v2.IFamily[]; - /** ChunkInfo lastChunk */ - lastChunk?: (boolean|null); - } + /** + * Creates a new Row instance using the specified properties. + * @param [properties] Properties to set + * @returns Row instance + */ + public static create(properties?: google.bigtable.v2.IRow): google.bigtable.v2.Row; - /** Represents a ChunkInfo. */ - class ChunkInfo implements IChunkInfo { + /** + * Encodes the specified Row message. Does not implicitly {@link google.bigtable.v2.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.bigtable.v2.IRow, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ChunkInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo); + /** + * Encodes the specified Row message, length delimited. Does not implicitly {@link google.bigtable.v2.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.bigtable.v2.IRow, writer?: $protobuf.Writer): $protobuf.Writer; - /** ChunkInfo chunkedValueSize. */ - public chunkedValueSize: number; + /** + * 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.bigtable.v2.Row; - /** ChunkInfo chunkedValueOffset. */ - public chunkedValueOffset: number; + /** + * 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.bigtable.v2.Row; - /** ChunkInfo lastChunk. */ - public lastChunk: boolean; + /** + * 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 new ChunkInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ChunkInfo instance - */ - public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo; + /** + * 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.bigtable.v2.Row; - /** - * Encodes the specified ChunkInfo message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify|verify} messages. - * @param message ChunkInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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.bigtable.v2.Row, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ChunkInfo message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify|verify} messages. - * @param message ChunkInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this Row to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ChunkInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChunkInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo; + /** + * 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; + } - /** - * Decodes a ChunkInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChunkInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo; + /** Properties of a Family. */ + interface IFamily { - /** - * Verifies a ChunkInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Family name */ + name?: (string|null); - /** - * Creates a ChunkInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChunkInfo - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo; + /** Family columns */ + columns?: (google.bigtable.v2.IColumn[]|null); + } - /** - * Creates a plain object from a ChunkInfo message. Also converts values to other types if specified. - * @param message ChunkInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a Family. */ + class Family implements IFamily { - /** - * Converts this ChunkInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new Family. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IFamily); - /** - * Gets the default type url for ChunkInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Family name. */ + public name: string; - /** Properties of a DataChange. */ - interface IDataChange { + /** Family columns. */ + public columns: google.bigtable.v2.IColumn[]; - /** DataChange type */ - type?: (google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type|keyof typeof google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type|null); + /** + * Creates a new Family instance using the specified properties. + * @param [properties] Properties to set + * @returns Family instance + */ + public static create(properties?: google.bigtable.v2.IFamily): google.bigtable.v2.Family; - /** DataChange sourceClusterId */ - sourceClusterId?: (string|null); + /** + * Encodes the specified Family message. Does not implicitly {@link google.bigtable.v2.Family.verify|verify} messages. + * @param message Family message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IFamily, writer?: $protobuf.Writer): $protobuf.Writer; - /** DataChange rowKey */ - rowKey?: (Uint8Array|Buffer|string|null); + /** + * Encodes the specified Family message, length delimited. Does not implicitly {@link google.bigtable.v2.Family.verify|verify} messages. + * @param message Family message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IFamily, writer?: $protobuf.Writer): $protobuf.Writer; - /** DataChange commitTimestamp */ - commitTimestamp?: (google.protobuf.ITimestamp|null); + /** + * Decodes a Family message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Family + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Family; - /** DataChange tiebreaker */ - tiebreaker?: (number|null); + /** + * Decodes a Family message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Family + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Family; - /** DataChange chunks */ - chunks?: (google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk[]|null); + /** + * Verifies a Family message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** DataChange done */ - done?: (boolean|null); + /** + * Creates a Family message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Family + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Family; - /** DataChange token */ - token?: (string|null); + /** + * Creates a plain object from a Family message. Also converts values to other types if specified. + * @param message Family + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Family, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** DataChange estimatedLowWatermark */ - estimatedLowWatermark?: (google.protobuf.ITimestamp|null); - } + /** + * Converts this Family to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a DataChange. */ - class DataChange implements IDataChange { + /** + * Gets the default type url for Family + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new DataChange. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.IDataChange); + /** Properties of a Column. */ + interface IColumn { - /** DataChange type. */ - public type: (google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type|keyof typeof google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type); + /** Column qualifier */ + qualifier?: (Uint8Array|Buffer|string|null); - /** DataChange sourceClusterId. */ - public sourceClusterId: string; + /** Column cells */ + cells?: (google.bigtable.v2.ICell[]|null); + } - /** DataChange rowKey. */ - public rowKey: (Uint8Array|Buffer|string); + /** Represents a Column. */ + class Column implements IColumn { - /** DataChange commitTimestamp. */ - public commitTimestamp?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new Column. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IColumn); - /** DataChange tiebreaker. */ - public tiebreaker: number; + /** Column qualifier. */ + public qualifier: (Uint8Array|Buffer|string); - /** DataChange chunks. */ - public chunks: google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk[]; + /** Column cells. */ + public cells: google.bigtable.v2.ICell[]; - /** DataChange done. */ - public done: boolean; + /** + * Creates a new Column instance using the specified properties. + * @param [properties] Properties to set + * @returns Column instance + */ + public static create(properties?: google.bigtable.v2.IColumn): google.bigtable.v2.Column; - /** DataChange token. */ - public token: string; + /** + * Encodes the specified Column message. Does not implicitly {@link google.bigtable.v2.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; - /** DataChange estimatedLowWatermark. */ - public estimatedLowWatermark?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified Column message, length delimited. Does not implicitly {@link google.bigtable.v2.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new DataChange instance using the specified properties. - * @param [properties] Properties to set - * @returns DataChange instance - */ - public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.IDataChange): google.bigtable.v2.ReadChangeStreamResponse.DataChange; + /** + * Decodes a Column message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Column; - /** - * Encodes the specified DataChange message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify|verify} messages. - * @param message DataChange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.IDataChange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Column message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Column; - /** - * Encodes the specified DataChange message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify|verify} messages. - * @param message DataChange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.IDataChange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Column message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a DataChange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.DataChange; + /** + * Creates a Column message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Column + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Column; - /** - * Decodes a DataChange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DataChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.DataChange; + /** + * Creates a plain object from a Column message. Also converts values to other types if specified. + * @param message Column + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a DataChange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this Column to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a DataChange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DataChange - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.DataChange; + /** + * Gets the default type url for Column + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a DataChange message. Also converts values to other types if specified. - * @param message DataChange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.DataChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a Cell. */ + interface ICell { - /** - * Converts this DataChange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Cell timestampMicros */ + timestampMicros?: (number|Long|string|null); - /** - * Gets the default type url for DataChange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Cell value */ + value?: (Uint8Array|Buffer|string|null); - namespace DataChange { + /** Cell labels */ + labels?: (string[]|null); + } - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - USER = 1, - GARBAGE_COLLECTION = 2, - CONTINUATION = 3 - } - } + /** Represents a Cell. */ + class Cell implements ICell { - /** Properties of a Heartbeat. */ - interface IHeartbeat { + /** + * Constructs a new Cell. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.ICell); - /** Heartbeat continuationToken */ - continuationToken?: (google.bigtable.v2.IStreamContinuationToken|null); + /** Cell timestampMicros. */ + public timestampMicros: (number|Long|string); - /** Heartbeat estimatedLowWatermark */ - estimatedLowWatermark?: (google.protobuf.ITimestamp|null); - } + /** Cell value. */ + public value: (Uint8Array|Buffer|string); - /** Represents a Heartbeat. */ - class Heartbeat implements IHeartbeat { + /** Cell labels. */ + public labels: string[]; - /** - * Constructs a new Heartbeat. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat); + /** + * Creates a new Cell instance using the specified properties. + * @param [properties] Properties to set + * @returns Cell instance + */ + public static create(properties?: google.bigtable.v2.ICell): google.bigtable.v2.Cell; - /** Heartbeat continuationToken. */ - public continuationToken?: (google.bigtable.v2.IStreamContinuationToken|null); + /** + * Encodes the specified Cell message. Does not implicitly {@link google.bigtable.v2.Cell.verify|verify} messages. + * @param message Cell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.ICell, writer?: $protobuf.Writer): $protobuf.Writer; - /** Heartbeat estimatedLowWatermark. */ - public estimatedLowWatermark?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified Cell message, length delimited. Does not implicitly {@link google.bigtable.v2.Cell.verify|verify} messages. + * @param message Cell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.ICell, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Heartbeat instance using the specified properties. - * @param [properties] Properties to set - * @returns Heartbeat instance - */ - public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat): google.bigtable.v2.ReadChangeStreamResponse.Heartbeat; + /** + * Decodes a Cell message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Cell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Cell; - /** - * Encodes the specified Heartbeat message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify|verify} messages. - * @param message Heartbeat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Cell message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Cell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Cell; - /** - * Encodes the specified Heartbeat message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify|verify} messages. - * @param message Heartbeat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Cell message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a Heartbeat message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Heartbeat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.Heartbeat; + /** + * Creates a Cell message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Cell + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Cell; - /** - * Decodes a Heartbeat message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Heartbeat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.Heartbeat; + /** + * Creates a plain object from a Cell message. Also converts values to other types if specified. + * @param message Cell + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Cell, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a Heartbeat message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this Cell to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a Heartbeat message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Heartbeat - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.Heartbeat; + /** + * Gets the default type url for Cell + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a Heartbeat message. Also converts values to other types if specified. - * @param message Heartbeat - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.Heartbeat, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a Value. */ + interface IValue { - /** - * Converts this Heartbeat to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Value type */ + type?: (google.bigtable.v2.IType|null); - /** - * Gets the default type url for Heartbeat - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Value rawValue */ + rawValue?: (Uint8Array|Buffer|string|null); - /** Properties of a CloseStream. */ - interface ICloseStream { + /** Value rawTimestampMicros */ + rawTimestampMicros?: (number|Long|string|null); - /** CloseStream status */ - status?: (google.rpc.IStatus|null); + /** Value bytesValue */ + bytesValue?: (Uint8Array|Buffer|string|null); - /** CloseStream continuationTokens */ - continuationTokens?: (google.bigtable.v2.IStreamContinuationToken[]|null); + /** Value stringValue */ + stringValue?: (string|null); - /** CloseStream newPartitions */ - newPartitions?: (google.bigtable.v2.IStreamPartition[]|null); - } + /** Value intValue */ + intValue?: (number|Long|string|null); - /** Represents a CloseStream. */ - class CloseStream implements ICloseStream { + /** Value boolValue */ + boolValue?: (boolean|null); - /** - * Constructs a new CloseStream. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ReadChangeStreamResponse.ICloseStream); + /** Value floatValue */ + floatValue?: (number|null); - /** CloseStream status. */ - public status?: (google.rpc.IStatus|null); + /** Value timestampValue */ + timestampValue?: (google.protobuf.ITimestamp|null); - /** CloseStream continuationTokens. */ - public continuationTokens: google.bigtable.v2.IStreamContinuationToken[]; + /** Value dateValue */ + dateValue?: (google.type.IDate|null); - /** CloseStream newPartitions. */ - public newPartitions: google.bigtable.v2.IStreamPartition[]; + /** Value arrayValue */ + arrayValue?: (google.bigtable.v2.IArrayValue|null); + } - /** - * Creates a new CloseStream instance using the specified properties. - * @param [properties] Properties to set - * @returns CloseStream instance - */ - public static create(properties?: google.bigtable.v2.ReadChangeStreamResponse.ICloseStream): google.bigtable.v2.ReadChangeStreamResponse.CloseStream; + /** Represents a Value. */ + class Value implements IValue { - /** - * Encodes the specified CloseStream message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify|verify} messages. - * @param message CloseStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ReadChangeStreamResponse.ICloseStream, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IValue); - /** - * Encodes the specified CloseStream message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify|verify} messages. - * @param message CloseStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ReadChangeStreamResponse.ICloseStream, writer?: $protobuf.Writer): $protobuf.Writer; + /** Value type. */ + public type?: (google.bigtable.v2.IType|null); - /** - * Decodes a CloseStream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloseStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadChangeStreamResponse.CloseStream; + /** Value rawValue. */ + public rawValue?: (Uint8Array|Buffer|string|null); - /** - * Decodes a CloseStream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CloseStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadChangeStreamResponse.CloseStream; + /** Value rawTimestampMicros. */ + public rawTimestampMicros?: (number|Long|string|null); - /** - * Verifies a CloseStream message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Value bytesValue. */ + public bytesValue?: (Uint8Array|Buffer|string|null); - /** - * Creates a CloseStream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CloseStream - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadChangeStreamResponse.CloseStream; + /** Value stringValue. */ + public stringValue?: (string|null); - /** - * Creates a plain object from a CloseStream message. Also converts values to other types if specified. - * @param message CloseStream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadChangeStreamResponse.CloseStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Value intValue. */ + public intValue?: (number|Long|string|null); - /** - * Converts this CloseStream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Value boolValue. */ + public boolValue?: (boolean|null); - /** - * Gets the default type url for CloseStream - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Value floatValue. */ + public floatValue?: (number|null); + + /** Value timestampValue. */ + public timestampValue?: (google.protobuf.ITimestamp|null); - /** Properties of an ExecuteQueryRequest. */ - interface IExecuteQueryRequest { + /** Value dateValue. */ + public dateValue?: (google.type.IDate|null); - /** ExecuteQueryRequest instanceName */ - instanceName?: (string|null); + /** Value arrayValue. */ + public arrayValue?: (google.bigtable.v2.IArrayValue|null); - /** ExecuteQueryRequest appProfileId */ - appProfileId?: (string|null); + /** Value kind. */ + public kind?: ("rawValue"|"rawTimestampMicros"|"bytesValue"|"stringValue"|"intValue"|"boolValue"|"floatValue"|"timestampValue"|"dateValue"|"arrayValue"); - /** ExecuteQueryRequest query */ - query?: (string|null); + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.bigtable.v2.IValue): google.bigtable.v2.Value; - /** ExecuteQueryRequest preparedQuery */ - preparedQuery?: (Uint8Array|Buffer|string|null); + /** + * Encodes the specified Value message. Does not implicitly {@link google.bigtable.v2.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.bigtable.v2.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** ExecuteQueryRequest protoFormat */ - protoFormat?: (google.bigtable.v2.IProtoFormat|null); + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.bigtable.v2.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.bigtable.v2.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** ExecuteQueryRequest resumeToken */ - resumeToken?: (Uint8Array|Buffer|string|null); + /** + * 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.bigtable.v2.Value; - /** ExecuteQueryRequest params */ - params?: ({ [k: string]: google.bigtable.v2.IValue }|null); - } + /** + * 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.bigtable.v2.Value; - /** Represents an ExecuteQueryRequest. */ - class ExecuteQueryRequest implements IExecuteQueryRequest { + /** + * 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); /** - * Constructs a new ExecuteQueryRequest. - * @param [properties] Properties to set + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value */ - constructor(properties?: google.bigtable.v2.IExecuteQueryRequest); + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Value; - /** ExecuteQueryRequest instanceName. */ - public instanceName: string; + /** + * 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.bigtable.v2.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ExecuteQueryRequest appProfileId. */ - public appProfileId: string; + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ExecuteQueryRequest query. */ - public query: string; + /** + * 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; + } - /** ExecuteQueryRequest preparedQuery. */ - public preparedQuery: (Uint8Array|Buffer|string); + /** Properties of an ArrayValue. */ + interface IArrayValue { - /** ExecuteQueryRequest protoFormat. */ - public protoFormat?: (google.bigtable.v2.IProtoFormat|null); + /** ArrayValue values */ + values?: (google.bigtable.v2.IValue[]|null); + } - /** ExecuteQueryRequest resumeToken. */ - public resumeToken: (Uint8Array|Buffer|string); + /** Represents an ArrayValue. */ + class ArrayValue implements IArrayValue { - /** ExecuteQueryRequest params. */ - public params: { [k: string]: google.bigtable.v2.IValue }; + /** + * Constructs a new ArrayValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IArrayValue); - /** ExecuteQueryRequest dataFormat. */ - public dataFormat?: "protoFormat"; + /** ArrayValue values. */ + public values: google.bigtable.v2.IValue[]; /** - * Creates a new ExecuteQueryRequest instance using the specified properties. + * Creates a new ArrayValue instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteQueryRequest instance + * @returns ArrayValue instance */ - public static create(properties?: google.bigtable.v2.IExecuteQueryRequest): google.bigtable.v2.ExecuteQueryRequest; + public static create(properties?: google.bigtable.v2.IArrayValue): google.bigtable.v2.ArrayValue; /** - * Encodes the specified ExecuteQueryRequest message. Does not implicitly {@link google.bigtable.v2.ExecuteQueryRequest.verify|verify} messages. - * @param message ExecuteQueryRequest message or plain object to encode + * Encodes the specified ArrayValue message. Does not implicitly {@link google.bigtable.v2.ArrayValue.verify|verify} messages. + * @param message ArrayValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IExecuteQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteQueryRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ExecuteQueryRequest.verify|verify} messages. - * @param message ExecuteQueryRequest message or plain object to encode + * Encodes the specified ArrayValue message, length delimited. Does not implicitly {@link google.bigtable.v2.ArrayValue.verify|verify} messages. + * @param message ArrayValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IExecuteQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteQueryRequest message from the specified reader or buffer. + * Decodes an ArrayValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteQueryRequest + * @returns ArrayValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ExecuteQueryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ArrayValue; /** - * Decodes an ExecuteQueryRequest message from the specified reader or buffer, length delimited. + * Decodes an ArrayValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteQueryRequest + * @returns ArrayValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ExecuteQueryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ArrayValue; /** - * Verifies an ExecuteQueryRequest message. + * Verifies an ArrayValue message. * @param message Plain 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 ExecuteQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ArrayValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteQueryRequest + * @returns ArrayValue */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ExecuteQueryRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ArrayValue; /** - * Creates a plain object from an ExecuteQueryRequest message. Also converts values to other types if specified. - * @param message ExecuteQueryRequest + * Creates a plain object from an ArrayValue message. Also converts values to other types if specified. + * @param message ArrayValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ExecuteQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ArrayValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteQueryRequest to JSON. + * Converts this ArrayValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteQueryRequest + * Gets the default type url for ArrayValue * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExecuteQueryResponse. */ - interface IExecuteQueryResponse { + /** Properties of a RowRange. */ + interface IRowRange { - /** ExecuteQueryResponse metadata */ - metadata?: (google.bigtable.v2.IResultSetMetadata|null); + /** RowRange startKeyClosed */ + startKeyClosed?: (Uint8Array|Buffer|string|null); - /** ExecuteQueryResponse results */ - results?: (google.bigtable.v2.IPartialResultSet|null); + /** RowRange startKeyOpen */ + startKeyOpen?: (Uint8Array|Buffer|string|null); + + /** RowRange endKeyOpen */ + endKeyOpen?: (Uint8Array|Buffer|string|null); + + /** RowRange endKeyClosed */ + endKeyClosed?: (Uint8Array|Buffer|string|null); } - /** Represents an ExecuteQueryResponse. */ - class ExecuteQueryResponse implements IExecuteQueryResponse { + /** Represents a RowRange. */ + class RowRange implements IRowRange { /** - * Constructs a new ExecuteQueryResponse. + * Constructs a new RowRange. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IExecuteQueryResponse); + constructor(properties?: google.bigtable.v2.IRowRange); - /** ExecuteQueryResponse metadata. */ - public metadata?: (google.bigtable.v2.IResultSetMetadata|null); + /** RowRange startKeyClosed. */ + public startKeyClosed?: (Uint8Array|Buffer|string|null); - /** ExecuteQueryResponse results. */ - public results?: (google.bigtable.v2.IPartialResultSet|null); + /** RowRange startKeyOpen. */ + public startKeyOpen?: (Uint8Array|Buffer|string|null); - /** ExecuteQueryResponse response. */ - public response?: ("metadata"|"results"); + /** RowRange endKeyOpen. */ + public endKeyOpen?: (Uint8Array|Buffer|string|null); + + /** RowRange endKeyClosed. */ + public endKeyClosed?: (Uint8Array|Buffer|string|null); + + /** RowRange startKey. */ + public startKey?: ("startKeyClosed"|"startKeyOpen"); + + /** RowRange endKey. */ + public endKey?: ("endKeyOpen"|"endKeyClosed"); /** - * Creates a new ExecuteQueryResponse instance using the specified properties. + * Creates a new RowRange instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteQueryResponse instance + * @returns RowRange instance */ - public static create(properties?: google.bigtable.v2.IExecuteQueryResponse): google.bigtable.v2.ExecuteQueryResponse; + public static create(properties?: google.bigtable.v2.IRowRange): google.bigtable.v2.RowRange; /** - * Encodes the specified ExecuteQueryResponse message. Does not implicitly {@link google.bigtable.v2.ExecuteQueryResponse.verify|verify} messages. - * @param message ExecuteQueryResponse message or plain object to encode + * Encodes the specified RowRange message. Does not implicitly {@link google.bigtable.v2.RowRange.verify|verify} messages. + * @param message RowRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IExecuteQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IRowRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteQueryResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ExecuteQueryResponse.verify|verify} messages. - * @param message ExecuteQueryResponse message or plain object to encode + * Encodes the specified RowRange message, length delimited. Does not implicitly {@link google.bigtable.v2.RowRange.verify|verify} messages. + * @param message RowRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IExecuteQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IRowRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteQueryResponse message from the specified reader or buffer. + * Decodes a RowRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteQueryResponse + * @returns RowRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ExecuteQueryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowRange; /** - * Decodes an ExecuteQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a RowRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteQueryResponse + * @returns RowRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ExecuteQueryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowRange; /** - * Verifies an ExecuteQueryResponse message. + * Verifies a RowRange message. * @param message Plain 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 ExecuteQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RowRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteQueryResponse + * @returns RowRange */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ExecuteQueryResponse; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowRange; /** - * Creates a plain object from an ExecuteQueryResponse message. Also converts values to other types if specified. - * @param message ExecuteQueryResponse + * Creates a plain object from a RowRange message. Also converts values to other types if specified. + * @param message RowRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ExecuteQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.RowRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteQueryResponse to JSON. + * Converts this RowRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExecuteQueryResponse + * Gets the default type url for RowRange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrepareQueryRequest. */ - interface IPrepareQueryRequest { - - /** PrepareQueryRequest instanceName */ - instanceName?: (string|null); - - /** PrepareQueryRequest appProfileId */ - appProfileId?: (string|null); - - /** PrepareQueryRequest query */ - query?: (string|null); + /** Properties of a RowSet. */ + interface IRowSet { - /** PrepareQueryRequest protoFormat */ - protoFormat?: (google.bigtable.v2.IProtoFormat|null); + /** RowSet rowKeys */ + rowKeys?: (Uint8Array[]|null); - /** PrepareQueryRequest paramTypes */ - paramTypes?: ({ [k: string]: google.bigtable.v2.IType }|null); + /** RowSet rowRanges */ + rowRanges?: (google.bigtable.v2.IRowRange[]|null); } - /** Represents a PrepareQueryRequest. */ - class PrepareQueryRequest implements IPrepareQueryRequest { + /** Represents a RowSet. */ + class RowSet implements IRowSet { /** - * Constructs a new PrepareQueryRequest. + * Constructs a new RowSet. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IPrepareQueryRequest); - - /** PrepareQueryRequest instanceName. */ - public instanceName: string; - - /** PrepareQueryRequest appProfileId. */ - public appProfileId: string; - - /** PrepareQueryRequest query. */ - public query: string; - - /** PrepareQueryRequest protoFormat. */ - public protoFormat?: (google.bigtable.v2.IProtoFormat|null); + constructor(properties?: google.bigtable.v2.IRowSet); - /** PrepareQueryRequest paramTypes. */ - public paramTypes: { [k: string]: google.bigtable.v2.IType }; + /** RowSet rowKeys. */ + public rowKeys: Uint8Array[]; - /** PrepareQueryRequest dataFormat. */ - public dataFormat?: "protoFormat"; + /** RowSet rowRanges. */ + public rowRanges: google.bigtable.v2.IRowRange[]; /** - * Creates a new PrepareQueryRequest instance using the specified properties. + * Creates a new RowSet instance using the specified properties. * @param [properties] Properties to set - * @returns PrepareQueryRequest instance + * @returns RowSet instance */ - public static create(properties?: google.bigtable.v2.IPrepareQueryRequest): google.bigtable.v2.PrepareQueryRequest; + public static create(properties?: google.bigtable.v2.IRowSet): google.bigtable.v2.RowSet; /** - * Encodes the specified PrepareQueryRequest message. Does not implicitly {@link google.bigtable.v2.PrepareQueryRequest.verify|verify} messages. - * @param message PrepareQueryRequest message or plain object to encode + * Encodes the specified RowSet message. Does not implicitly {@link google.bigtable.v2.RowSet.verify|verify} messages. + * @param message RowSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IPrepareQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IRowSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrepareQueryRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.PrepareQueryRequest.verify|verify} messages. - * @param message PrepareQueryRequest message or plain object to encode + * Encodes the specified RowSet message, length delimited. Does not implicitly {@link google.bigtable.v2.RowSet.verify|verify} messages. + * @param message RowSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IPrepareQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IRowSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrepareQueryRequest message from the specified reader or buffer. + * Decodes a RowSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrepareQueryRequest + * @returns RowSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PrepareQueryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowSet; /** - * Decodes a PrepareQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a RowSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrepareQueryRequest + * @returns RowSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PrepareQueryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowSet; /** - * Verifies a PrepareQueryRequest message. + * Verifies a RowSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrepareQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RowSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrepareQueryRequest + * @returns RowSet */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PrepareQueryRequest; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowSet; /** - * Creates a plain object from a PrepareQueryRequest message. Also converts values to other types if specified. - * @param message PrepareQueryRequest + * Creates a plain object from a RowSet message. Also converts values to other types if specified. + * @param message RowSet * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.PrepareQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.RowSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrepareQueryRequest to JSON. + * Converts this RowSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrepareQueryRequest + * Gets the default type url for RowSet * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrepareQueryResponse. */ - interface IPrepareQueryResponse { + /** Properties of a ColumnRange. */ + interface IColumnRange { - /** PrepareQueryResponse metadata */ - metadata?: (google.bigtable.v2.IResultSetMetadata|null); + /** ColumnRange familyName */ + familyName?: (string|null); - /** PrepareQueryResponse preparedQuery */ - preparedQuery?: (Uint8Array|Buffer|string|null); + /** ColumnRange startQualifierClosed */ + startQualifierClosed?: (Uint8Array|Buffer|string|null); - /** PrepareQueryResponse validUntil */ - validUntil?: (google.protobuf.ITimestamp|null); + /** ColumnRange startQualifierOpen */ + startQualifierOpen?: (Uint8Array|Buffer|string|null); + + /** ColumnRange endQualifierClosed */ + endQualifierClosed?: (Uint8Array|Buffer|string|null); + + /** ColumnRange endQualifierOpen */ + endQualifierOpen?: (Uint8Array|Buffer|string|null); } - /** Represents a PrepareQueryResponse. */ - class PrepareQueryResponse implements IPrepareQueryResponse { + /** Represents a ColumnRange. */ + class ColumnRange implements IColumnRange { /** - * Constructs a new PrepareQueryResponse. + * Constructs a new ColumnRange. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IPrepareQueryResponse); + constructor(properties?: google.bigtable.v2.IColumnRange); - /** PrepareQueryResponse metadata. */ - public metadata?: (google.bigtable.v2.IResultSetMetadata|null); + /** ColumnRange familyName. */ + public familyName: string; - /** PrepareQueryResponse preparedQuery. */ - public preparedQuery: (Uint8Array|Buffer|string); + /** ColumnRange startQualifierClosed. */ + public startQualifierClosed?: (Uint8Array|Buffer|string|null); - /** PrepareQueryResponse validUntil. */ - public validUntil?: (google.protobuf.ITimestamp|null); + /** ColumnRange startQualifierOpen. */ + public startQualifierOpen?: (Uint8Array|Buffer|string|null); + + /** ColumnRange endQualifierClosed. */ + public endQualifierClosed?: (Uint8Array|Buffer|string|null); + + /** ColumnRange endQualifierOpen. */ + public endQualifierOpen?: (Uint8Array|Buffer|string|null); + + /** ColumnRange startQualifier. */ + public startQualifier?: ("startQualifierClosed"|"startQualifierOpen"); + + /** ColumnRange endQualifier. */ + public endQualifier?: ("endQualifierClosed"|"endQualifierOpen"); /** - * Creates a new PrepareQueryResponse instance using the specified properties. + * Creates a new ColumnRange instance using the specified properties. * @param [properties] Properties to set - * @returns PrepareQueryResponse instance + * @returns ColumnRange instance */ - public static create(properties?: google.bigtable.v2.IPrepareQueryResponse): google.bigtable.v2.PrepareQueryResponse; + public static create(properties?: google.bigtable.v2.IColumnRange): google.bigtable.v2.ColumnRange; /** - * Encodes the specified PrepareQueryResponse message. Does not implicitly {@link google.bigtable.v2.PrepareQueryResponse.verify|verify} messages. - * @param message PrepareQueryResponse message or plain object to encode + * Encodes the specified ColumnRange message. Does not implicitly {@link google.bigtable.v2.ColumnRange.verify|verify} messages. + * @param message ColumnRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IPrepareQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IColumnRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrepareQueryResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.PrepareQueryResponse.verify|verify} messages. - * @param message PrepareQueryResponse message or plain object to encode + * Encodes the specified ColumnRange message, length delimited. Does not implicitly {@link google.bigtable.v2.ColumnRange.verify|verify} messages. + * @param message ColumnRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IPrepareQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IColumnRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrepareQueryResponse message from the specified reader or buffer. + * Decodes a ColumnRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrepareQueryResponse + * @returns ColumnRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PrepareQueryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ColumnRange; /** - * Decodes a PrepareQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a ColumnRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrepareQueryResponse + * @returns ColumnRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PrepareQueryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ColumnRange; /** - * Verifies a PrepareQueryResponse message. + * Verifies a ColumnRange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrepareQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ColumnRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrepareQueryResponse + * @returns ColumnRange */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PrepareQueryResponse; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ColumnRange; /** - * Creates a plain object from a PrepareQueryResponse message. Also converts values to other types if specified. - * @param message PrepareQueryResponse + * Creates a plain object from a ColumnRange message. Also converts values to other types if specified. + * @param message ColumnRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.PrepareQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ColumnRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrepareQueryResponse to JSON. + * Converts this ColumnRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrepareQueryResponse + * Gets the default type url for ColumnRange * @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 { + /** Properties of a TimestampRange. */ + interface ITimestampRange { - /** Row key */ - key?: (Uint8Array|Buffer|string|null); + /** TimestampRange startTimestampMicros */ + startTimestampMicros?: (number|Long|string|null); - /** Row families */ - families?: (google.bigtable.v2.IFamily[]|null); + /** TimestampRange endTimestampMicros */ + endTimestampMicros?: (number|Long|string|null); } - /** Represents a Row. */ - class Row implements IRow { + /** Represents a TimestampRange. */ + class TimestampRange implements ITimestampRange { /** - * Constructs a new Row. + * Constructs a new TimestampRange. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IRow); + constructor(properties?: google.bigtable.v2.ITimestampRange); - /** Row key. */ - public key: (Uint8Array|Buffer|string); + /** TimestampRange startTimestampMicros. */ + public startTimestampMicros: (number|Long|string); - /** Row families. */ - public families: google.bigtable.v2.IFamily[]; + /** TimestampRange endTimestampMicros. */ + public endTimestampMicros: (number|Long|string); /** - * Creates a new Row instance using the specified properties. + * Creates a new TimestampRange instance using the specified properties. * @param [properties] Properties to set - * @returns Row instance + * @returns TimestampRange instance */ - public static create(properties?: google.bigtable.v2.IRow): google.bigtable.v2.Row; + public static create(properties?: google.bigtable.v2.ITimestampRange): google.bigtable.v2.TimestampRange; /** - * Encodes the specified Row message. Does not implicitly {@link google.bigtable.v2.Row.verify|verify} messages. - * @param message Row message or plain object to encode + * Encodes the specified TimestampRange message. Does not implicitly {@link google.bigtable.v2.TimestampRange.verify|verify} messages. + * @param message TimestampRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IRow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.ITimestampRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Row message, length delimited. Does not implicitly {@link google.bigtable.v2.Row.verify|verify} messages. - * @param message Row message or plain object to encode + * Encodes the specified TimestampRange message, length delimited. Does not implicitly {@link google.bigtable.v2.TimestampRange.verify|verify} messages. + * @param message TimestampRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IRow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.ITimestampRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Row message from the specified reader or buffer. + * Decodes a TimestampRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Row + * @returns TimestampRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Row; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.TimestampRange; /** - * Decodes a Row message from the specified reader or buffer, length delimited. + * Decodes a TimestampRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Row + * @returns TimestampRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Row; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.TimestampRange; /** - * Verifies a Row message. + * Verifies a TimestampRange message. * @param message Plain object 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. + * Creates a TimestampRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Row + * @returns TimestampRange */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Row; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.TimestampRange; /** - * Creates a plain object from a Row message. Also converts values to other types if specified. - * @param message Row + * Creates a plain object from a TimestampRange message. Also converts values to other types if specified. + * @param message TimestampRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Row, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.TimestampRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Row to JSON. + * Converts this TimestampRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Row + * Gets the default type url for TimestampRange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Family. */ - interface IFamily { + /** Properties of a ValueRange. */ + interface IValueRange { - /** Family name */ - name?: (string|null); + /** ValueRange startValueClosed */ + startValueClosed?: (Uint8Array|Buffer|string|null); - /** Family columns */ - columns?: (google.bigtable.v2.IColumn[]|null); + /** ValueRange startValueOpen */ + startValueOpen?: (Uint8Array|Buffer|string|null); + + /** ValueRange endValueClosed */ + endValueClosed?: (Uint8Array|Buffer|string|null); + + /** ValueRange endValueOpen */ + endValueOpen?: (Uint8Array|Buffer|string|null); } - /** Represents a Family. */ - class Family implements IFamily { + /** Represents a ValueRange. */ + class ValueRange implements IValueRange { /** - * Constructs a new Family. + * Constructs a new ValueRange. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IFamily); + constructor(properties?: google.bigtable.v2.IValueRange); - /** Family name. */ - public name: string; + /** ValueRange startValueClosed. */ + public startValueClosed?: (Uint8Array|Buffer|string|null); - /** Family columns. */ - public columns: google.bigtable.v2.IColumn[]; + /** ValueRange startValueOpen. */ + public startValueOpen?: (Uint8Array|Buffer|string|null); + + /** ValueRange endValueClosed. */ + public endValueClosed?: (Uint8Array|Buffer|string|null); + + /** ValueRange endValueOpen. */ + public endValueOpen?: (Uint8Array|Buffer|string|null); + + /** ValueRange startValue. */ + public startValue?: ("startValueClosed"|"startValueOpen"); + + /** ValueRange endValue. */ + public endValue?: ("endValueClosed"|"endValueOpen"); /** - * Creates a new Family instance using the specified properties. + * Creates a new ValueRange instance using the specified properties. * @param [properties] Properties to set - * @returns Family instance + * @returns ValueRange instance */ - public static create(properties?: google.bigtable.v2.IFamily): google.bigtable.v2.Family; + public static create(properties?: google.bigtable.v2.IValueRange): google.bigtable.v2.ValueRange; /** - * Encodes the specified Family message. Does not implicitly {@link google.bigtable.v2.Family.verify|verify} messages. - * @param message Family message or plain object to encode + * Encodes the specified ValueRange message. Does not implicitly {@link google.bigtable.v2.ValueRange.verify|verify} messages. + * @param message ValueRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IFamily, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IValueRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Family message, length delimited. Does not implicitly {@link google.bigtable.v2.Family.verify|verify} messages. - * @param message Family message or plain object to encode + * Encodes the specified ValueRange message, length delimited. Does not implicitly {@link google.bigtable.v2.ValueRange.verify|verify} messages. + * @param message ValueRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IFamily, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IValueRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Family message from the specified reader or buffer. + * Decodes a ValueRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Family + * @returns ValueRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Family; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ValueRange; /** - * Decodes a Family message from the specified reader or buffer, length delimited. + * Decodes a ValueRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Family + * @returns ValueRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Family; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ValueRange; /** - * Verifies a Family message. + * Verifies a ValueRange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Family message from a plain object. Also converts values to their respective internal types. + * Creates a ValueRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Family + * @returns ValueRange */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Family; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ValueRange; /** - * Creates a plain object from a Family message. Also converts values to other types if specified. - * @param message Family + * Creates a plain object from a ValueRange message. Also converts values to other types if specified. + * @param message ValueRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Family, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ValueRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Family to JSON. + * Converts this ValueRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Family + * Gets the default type url for ValueRange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Column. */ - interface IColumn { + /** Properties of a RowFilter. */ + interface IRowFilter { - /** Column qualifier */ - qualifier?: (Uint8Array|Buffer|string|null); + /** RowFilter chain */ + chain?: (google.bigtable.v2.RowFilter.IChain|null); - /** Column cells */ - cells?: (google.bigtable.v2.ICell[]|null); + /** RowFilter interleave */ + interleave?: (google.bigtable.v2.RowFilter.IInterleave|null); + + /** RowFilter condition */ + condition?: (google.bigtable.v2.RowFilter.ICondition|null); + + /** RowFilter sink */ + sink?: (boolean|null); + + /** RowFilter passAllFilter */ + passAllFilter?: (boolean|null); + + /** RowFilter blockAllFilter */ + blockAllFilter?: (boolean|null); + + /** RowFilter rowKeyRegexFilter */ + rowKeyRegexFilter?: (Uint8Array|Buffer|string|null); + + /** RowFilter rowSampleFilter */ + rowSampleFilter?: (number|null); + + /** RowFilter familyNameRegexFilter */ + familyNameRegexFilter?: (string|null); + + /** RowFilter columnQualifierRegexFilter */ + columnQualifierRegexFilter?: (Uint8Array|Buffer|string|null); + + /** RowFilter columnRangeFilter */ + columnRangeFilter?: (google.bigtable.v2.IColumnRange|null); + + /** RowFilter timestampRangeFilter */ + timestampRangeFilter?: (google.bigtable.v2.ITimestampRange|null); + + /** RowFilter valueRegexFilter */ + valueRegexFilter?: (Uint8Array|Buffer|string|null); + + /** RowFilter valueRangeFilter */ + valueRangeFilter?: (google.bigtable.v2.IValueRange|null); + + /** RowFilter cellsPerRowOffsetFilter */ + cellsPerRowOffsetFilter?: (number|null); + + /** RowFilter cellsPerRowLimitFilter */ + cellsPerRowLimitFilter?: (number|null); + + /** RowFilter cellsPerColumnLimitFilter */ + cellsPerColumnLimitFilter?: (number|null); + + /** RowFilter stripValueTransformer */ + stripValueTransformer?: (boolean|null); + + /** RowFilter applyLabelTransformer */ + applyLabelTransformer?: (string|null); } - /** Represents a Column. */ - class Column implements IColumn { + /** Represents a RowFilter. */ + class RowFilter implements IRowFilter { /** - * Constructs a new Column. + * Constructs a new RowFilter. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IColumn); + constructor(properties?: google.bigtable.v2.IRowFilter); - /** Column qualifier. */ - public qualifier: (Uint8Array|Buffer|string); + /** RowFilter chain. */ + public chain?: (google.bigtable.v2.RowFilter.IChain|null); - /** Column cells. */ - public cells: google.bigtable.v2.ICell[]; + /** RowFilter interleave. */ + public interleave?: (google.bigtable.v2.RowFilter.IInterleave|null); + + /** RowFilter condition. */ + public condition?: (google.bigtable.v2.RowFilter.ICondition|null); + + /** RowFilter sink. */ + public sink?: (boolean|null); + + /** RowFilter passAllFilter. */ + public passAllFilter?: (boolean|null); + + /** RowFilter blockAllFilter. */ + public blockAllFilter?: (boolean|null); + + /** RowFilter rowKeyRegexFilter. */ + public rowKeyRegexFilter?: (Uint8Array|Buffer|string|null); + + /** RowFilter rowSampleFilter. */ + public rowSampleFilter?: (number|null); + + /** RowFilter familyNameRegexFilter. */ + public familyNameRegexFilter?: (string|null); + + /** RowFilter columnQualifierRegexFilter. */ + public columnQualifierRegexFilter?: (Uint8Array|Buffer|string|null); + + /** RowFilter columnRangeFilter. */ + public columnRangeFilter?: (google.bigtable.v2.IColumnRange|null); + + /** RowFilter timestampRangeFilter. */ + public timestampRangeFilter?: (google.bigtable.v2.ITimestampRange|null); + + /** RowFilter valueRegexFilter. */ + public valueRegexFilter?: (Uint8Array|Buffer|string|null); + + /** RowFilter valueRangeFilter. */ + public valueRangeFilter?: (google.bigtable.v2.IValueRange|null); + + /** RowFilter cellsPerRowOffsetFilter. */ + public cellsPerRowOffsetFilter?: (number|null); + + /** RowFilter cellsPerRowLimitFilter. */ + public cellsPerRowLimitFilter?: (number|null); + + /** RowFilter cellsPerColumnLimitFilter. */ + public cellsPerColumnLimitFilter?: (number|null); + + /** RowFilter stripValueTransformer. */ + public stripValueTransformer?: (boolean|null); + + /** RowFilter applyLabelTransformer. */ + public applyLabelTransformer?: (string|null); + + /** RowFilter filter. */ + public filter?: ("chain"|"interleave"|"condition"|"sink"|"passAllFilter"|"blockAllFilter"|"rowKeyRegexFilter"|"rowSampleFilter"|"familyNameRegexFilter"|"columnQualifierRegexFilter"|"columnRangeFilter"|"timestampRangeFilter"|"valueRegexFilter"|"valueRangeFilter"|"cellsPerRowOffsetFilter"|"cellsPerRowLimitFilter"|"cellsPerColumnLimitFilter"|"stripValueTransformer"|"applyLabelTransformer"); /** - * Creates a new Column instance using the specified properties. + * Creates a new RowFilter instance using the specified properties. * @param [properties] Properties to set - * @returns Column instance + * @returns RowFilter instance */ - public static create(properties?: google.bigtable.v2.IColumn): google.bigtable.v2.Column; + public static create(properties?: google.bigtable.v2.IRowFilter): google.bigtable.v2.RowFilter; /** - * Encodes the specified Column message. Does not implicitly {@link google.bigtable.v2.Column.verify|verify} messages. - * @param message Column message or plain object to encode + * Encodes the specified RowFilter message. Does not implicitly {@link google.bigtable.v2.RowFilter.verify|verify} messages. + * @param message RowFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IRowFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Column message, length delimited. Does not implicitly {@link google.bigtable.v2.Column.verify|verify} messages. - * @param message Column message or plain object to encode + * Encodes the specified RowFilter message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.verify|verify} messages. + * @param message RowFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IRowFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Column message from the specified reader or buffer. + * Decodes a RowFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Column + * @returns RowFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Column; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowFilter; /** - * Decodes a Column message from the specified reader or buffer, length delimited. + * Decodes a RowFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Column + * @returns RowFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Column; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowFilter; /** - * Verifies a Column message. + * Verifies a RowFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Column message from a plain object. Also converts values to their respective internal types. + * Creates a RowFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Column + * @returns RowFilter */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Column; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowFilter; /** - * Creates a plain object from a Column message. Also converts values to other types if specified. - * @param message Column + * Creates a plain object from a RowFilter message. Also converts values to other types if specified. + * @param message RowFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.RowFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Column to JSON. + * Converts this RowFilter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Column + * Gets the default type url for RowFilter * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Cell. */ - interface ICell { - - /** Cell timestampMicros */ - timestampMicros?: (number|Long|string|null); + namespace RowFilter { - /** Cell value */ - value?: (Uint8Array|Buffer|string|null); + /** Properties of a Chain. */ + interface IChain { - /** Cell labels */ - labels?: (string[]|null); - } + /** Chain filters */ + filters?: (google.bigtable.v2.IRowFilter[]|null); + } - /** Represents a Cell. */ - class Cell implements ICell { + /** Represents a Chain. */ + class Chain implements IChain { - /** - * Constructs a new Cell. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ICell); + /** + * Constructs a new Chain. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.RowFilter.IChain); - /** Cell timestampMicros. */ - public timestampMicros: (number|Long|string); + /** Chain filters. */ + public filters: google.bigtable.v2.IRowFilter[]; - /** Cell value. */ - public value: (Uint8Array|Buffer|string); + /** + * Creates a new Chain instance using the specified properties. + * @param [properties] Properties to set + * @returns Chain instance + */ + public static create(properties?: google.bigtable.v2.RowFilter.IChain): google.bigtable.v2.RowFilter.Chain; - /** Cell labels. */ - public labels: string[]; + /** + * Encodes the specified Chain message. Does not implicitly {@link google.bigtable.v2.RowFilter.Chain.verify|verify} messages. + * @param message Chain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.RowFilter.IChain, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Cell instance using the specified properties. - * @param [properties] Properties to set - * @returns Cell instance - */ - public static create(properties?: google.bigtable.v2.ICell): google.bigtable.v2.Cell; + /** + * Encodes the specified Chain message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Chain.verify|verify} messages. + * @param message Chain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.RowFilter.IChain, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Cell message. Does not implicitly {@link google.bigtable.v2.Cell.verify|verify} messages. - * @param message Cell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ICell, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Chain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Chain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowFilter.Chain; - /** - * Encodes the specified Cell message, length delimited. Does not implicitly {@link google.bigtable.v2.Cell.verify|verify} messages. - * @param message Cell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ICell, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Chain message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Chain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowFilter.Chain; - /** - * Decodes a Cell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Cell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Cell; + /** + * Verifies a Chain message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a Cell message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Cell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Cell; + /** + * Creates a Chain message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Chain + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowFilter.Chain; - /** - * Verifies a Cell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a Chain message. Also converts values to other types if specified. + * @param message Chain + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.RowFilter.Chain, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a Cell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Cell - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Cell; + /** + * Converts this Chain to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a Cell message. Also converts values to other types if specified. - * @param message Cell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Cell, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for Chain + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this Cell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of an Interleave. */ + interface IInterleave { - /** - * Gets the default type url for Cell - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Interleave filters */ + filters?: (google.bigtable.v2.IRowFilter[]|null); + } - /** Properties of a Value. */ - interface IValue { + /** Represents an Interleave. */ + class Interleave implements IInterleave { - /** Value type */ - type?: (google.bigtable.v2.IType|null); + /** + * Constructs a new Interleave. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.RowFilter.IInterleave); - /** Value rawValue */ - rawValue?: (Uint8Array|Buffer|string|null); + /** Interleave filters. */ + public filters: google.bigtable.v2.IRowFilter[]; - /** Value rawTimestampMicros */ - rawTimestampMicros?: (number|Long|string|null); + /** + * Creates a new Interleave instance using the specified properties. + * @param [properties] Properties to set + * @returns Interleave instance + */ + public static create(properties?: google.bigtable.v2.RowFilter.IInterleave): google.bigtable.v2.RowFilter.Interleave; - /** Value bytesValue */ - bytesValue?: (Uint8Array|Buffer|string|null); + /** + * Encodes the specified Interleave message. Does not implicitly {@link google.bigtable.v2.RowFilter.Interleave.verify|verify} messages. + * @param message Interleave message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.RowFilter.IInterleave, writer?: $protobuf.Writer): $protobuf.Writer; - /** Value stringValue */ - stringValue?: (string|null); + /** + * Encodes the specified Interleave message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Interleave.verify|verify} messages. + * @param message Interleave message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.RowFilter.IInterleave, writer?: $protobuf.Writer): $protobuf.Writer; - /** Value intValue */ - intValue?: (number|Long|string|null); + /** + * Decodes an Interleave message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Interleave + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowFilter.Interleave; - /** Value boolValue */ - boolValue?: (boolean|null); + /** + * Decodes an Interleave message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Interleave + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowFilter.Interleave; - /** Value floatValue */ - floatValue?: (number|null); + /** + * Verifies an Interleave message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Value timestampValue */ - timestampValue?: (google.protobuf.ITimestamp|null); + /** + * Creates an Interleave message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Interleave + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowFilter.Interleave; - /** Value dateValue */ - dateValue?: (google.type.IDate|null); + /** + * Creates a plain object from an Interleave message. Also converts values to other types if specified. + * @param message Interleave + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.RowFilter.Interleave, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Value arrayValue */ - arrayValue?: (google.bigtable.v2.IArrayValue|null); - } + /** + * Converts this Interleave to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a Value. */ - class Value implements IValue { + /** + * Gets the default type url for Interleave + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IValue); + /** Properties of a Condition. */ + interface ICondition { - /** Value type. */ - public type?: (google.bigtable.v2.IType|null); + /** Condition predicateFilter */ + predicateFilter?: (google.bigtable.v2.IRowFilter|null); - /** Value rawValue. */ - public rawValue?: (Uint8Array|Buffer|string|null); + /** Condition trueFilter */ + trueFilter?: (google.bigtable.v2.IRowFilter|null); - /** Value rawTimestampMicros. */ - public rawTimestampMicros?: (number|Long|string|null); + /** Condition falseFilter */ + falseFilter?: (google.bigtable.v2.IRowFilter|null); + } - /** Value bytesValue. */ - public bytesValue?: (Uint8Array|Buffer|string|null); + /** Represents a Condition. */ + class Condition implements ICondition { - /** Value stringValue. */ - public stringValue?: (string|null); + /** + * Constructs a new Condition. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.RowFilter.ICondition); - /** Value intValue. */ - public intValue?: (number|Long|string|null); + /** Condition predicateFilter. */ + public predicateFilter?: (google.bigtable.v2.IRowFilter|null); - /** Value boolValue. */ - public boolValue?: (boolean|null); + /** Condition trueFilter. */ + public trueFilter?: (google.bigtable.v2.IRowFilter|null); - /** Value floatValue. */ - public floatValue?: (number|null); + /** Condition falseFilter. */ + public falseFilter?: (google.bigtable.v2.IRowFilter|null); - /** Value timestampValue. */ - public timestampValue?: (google.protobuf.ITimestamp|null); + /** + * Creates a new Condition instance using the specified properties. + * @param [properties] Properties to set + * @returns Condition instance + */ + public static create(properties?: google.bigtable.v2.RowFilter.ICondition): google.bigtable.v2.RowFilter.Condition; - /** Value dateValue. */ - public dateValue?: (google.type.IDate|null); + /** + * Encodes the specified Condition message. Does not implicitly {@link google.bigtable.v2.RowFilter.Condition.verify|verify} messages. + * @param message Condition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.RowFilter.ICondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** Value arrayValue. */ - public arrayValue?: (google.bigtable.v2.IArrayValue|null); + /** + * Encodes the specified Condition message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Condition.verify|verify} messages. + * @param message Condition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.RowFilter.ICondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** Value kind. */ - public kind?: ("rawValue"|"rawTimestampMicros"|"bytesValue"|"stringValue"|"intValue"|"boolValue"|"floatValue"|"timestampValue"|"dateValue"|"arrayValue"); + /** + * Decodes a Condition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Condition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowFilter.Condition; - /** - * Creates a new Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Value instance - */ - public static create(properties?: google.bigtable.v2.IValue): google.bigtable.v2.Value; + /** + * Decodes a Condition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Condition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowFilter.Condition; - /** - * Encodes the specified Value message. Does not implicitly {@link google.bigtable.v2.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.bigtable.v2.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a Condition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.bigtable.v2.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.bigtable.v2.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Condition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Condition + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowFilter.Condition; - /** - * 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.bigtable.v2.Value; + /** + * Creates a plain object from a Condition message. Also converts values to other types if specified. + * @param message Condition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.RowFilter.Condition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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.bigtable.v2.Value; + /** + * Converts this Condition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * 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); + /** + * Gets the default type url for Condition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * 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.bigtable.v2.Value; + /** Properties of a Mutation. */ + interface IMutation { - /** - * 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.bigtable.v2.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Mutation setCell */ + setCell?: (google.bigtable.v2.Mutation.ISetCell|null); - /** - * Converts this Value to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Mutation addToCell */ + addToCell?: (google.bigtable.v2.Mutation.IAddToCell|null); - /** - * 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; - } + /** Mutation mergeToCell */ + mergeToCell?: (google.bigtable.v2.Mutation.IMergeToCell|null); - /** Properties of an ArrayValue. */ - interface IArrayValue { + /** Mutation deleteFromColumn */ + deleteFromColumn?: (google.bigtable.v2.Mutation.IDeleteFromColumn|null); - /** ArrayValue values */ - values?: (google.bigtable.v2.IValue[]|null); + /** Mutation deleteFromFamily */ + deleteFromFamily?: (google.bigtable.v2.Mutation.IDeleteFromFamily|null); + + /** Mutation deleteFromRow */ + deleteFromRow?: (google.bigtable.v2.Mutation.IDeleteFromRow|null); } - /** Represents an ArrayValue. */ - class ArrayValue implements IArrayValue { + /** Represents a Mutation. */ + class Mutation implements IMutation { /** - * Constructs a new ArrayValue. + * Constructs a new Mutation. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IArrayValue); + constructor(properties?: google.bigtable.v2.IMutation); - /** ArrayValue values. */ - public values: google.bigtable.v2.IValue[]; + /** Mutation setCell. */ + public setCell?: (google.bigtable.v2.Mutation.ISetCell|null); + + /** Mutation addToCell. */ + public addToCell?: (google.bigtable.v2.Mutation.IAddToCell|null); + + /** Mutation mergeToCell. */ + public mergeToCell?: (google.bigtable.v2.Mutation.IMergeToCell|null); + + /** Mutation deleteFromColumn. */ + public deleteFromColumn?: (google.bigtable.v2.Mutation.IDeleteFromColumn|null); + + /** Mutation deleteFromFamily. */ + public deleteFromFamily?: (google.bigtable.v2.Mutation.IDeleteFromFamily|null); + + /** Mutation deleteFromRow. */ + public deleteFromRow?: (google.bigtable.v2.Mutation.IDeleteFromRow|null); + + /** Mutation mutation. */ + public mutation?: ("setCell"|"addToCell"|"mergeToCell"|"deleteFromColumn"|"deleteFromFamily"|"deleteFromRow"); /** - * Creates a new ArrayValue instance using the specified properties. + * Creates a new Mutation instance using the specified properties. * @param [properties] Properties to set - * @returns ArrayValue instance + * @returns Mutation instance */ - public static create(properties?: google.bigtable.v2.IArrayValue): google.bigtable.v2.ArrayValue; + public static create(properties?: google.bigtable.v2.IMutation): google.bigtable.v2.Mutation; /** - * Encodes the specified ArrayValue message. Does not implicitly {@link google.bigtable.v2.ArrayValue.verify|verify} messages. - * @param message ArrayValue message or plain object to encode + * Encodes the specified Mutation message. Does not implicitly {@link google.bigtable.v2.Mutation.verify|verify} messages. + * @param message Mutation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IMutation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ArrayValue message, length delimited. Does not implicitly {@link google.bigtable.v2.ArrayValue.verify|verify} messages. - * @param message ArrayValue message or plain object to encode + * Encodes the specified Mutation message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.verify|verify} messages. + * @param message Mutation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IMutation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ArrayValue message from the specified reader or buffer. + * Decodes a Mutation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ArrayValue + * @returns Mutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ArrayValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation; /** - * Decodes an ArrayValue message from the specified reader or buffer, length delimited. + * Decodes a Mutation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ArrayValue + * @returns Mutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ArrayValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation; /** - * Verifies an ArrayValue message. + * Verifies a Mutation message. * @param message Plain 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 ArrayValue message from a plain object. Also converts values to their respective internal types. + * Creates a Mutation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ArrayValue + * @returns Mutation */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ArrayValue; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation; /** - * Creates a plain object from an ArrayValue message. Also converts values to other types if specified. - * @param message ArrayValue + * Creates a plain object from a Mutation message. Also converts values to other types if specified. + * @param message Mutation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ArrayValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Mutation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ArrayValue to JSON. + * Converts this Mutation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ArrayValue + * Gets the default type url for Mutation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RowRange. */ - interface IRowRange { + namespace Mutation { - /** RowRange startKeyClosed */ - startKeyClosed?: (Uint8Array|Buffer|string|null); + /** Properties of a SetCell. */ + interface ISetCell { + + /** SetCell familyName */ + familyName?: (string|null); + + /** SetCell columnQualifier */ + columnQualifier?: (Uint8Array|Buffer|string|null); + + /** SetCell timestampMicros */ + timestampMicros?: (number|Long|string|null); + + /** SetCell value */ + value?: (Uint8Array|Buffer|string|null); + } + + /** Represents a SetCell. */ + class SetCell implements ISetCell { + + /** + * Constructs a new SetCell. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Mutation.ISetCell); + + /** SetCell familyName. */ + public familyName: string; + + /** SetCell columnQualifier. */ + public columnQualifier: (Uint8Array|Buffer|string); + + /** SetCell timestampMicros. */ + public timestampMicros: (number|Long|string); + + /** SetCell value. */ + public value: (Uint8Array|Buffer|string); + + /** + * Creates a new SetCell instance using the specified properties. + * @param [properties] Properties to set + * @returns SetCell instance + */ + public static create(properties?: google.bigtable.v2.Mutation.ISetCell): google.bigtable.v2.Mutation.SetCell; + + /** + * Encodes the specified SetCell message. Does not implicitly {@link google.bigtable.v2.Mutation.SetCell.verify|verify} messages. + * @param message SetCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Mutation.ISetCell, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.SetCell.verify|verify} messages. + * @param message SetCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Mutation.ISetCell, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetCell message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.SetCell; + + /** + * Decodes a SetCell message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.SetCell; + + /** + * Verifies a SetCell message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetCell message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetCell + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.SetCell; + + /** + * Creates a plain object from a SetCell message. Also converts values to other types if specified. + * @param message SetCell + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Mutation.SetCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetCell to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetCell + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddToCell. */ + interface IAddToCell { + + /** AddToCell familyName */ + familyName?: (string|null); + + /** AddToCell columnQualifier */ + columnQualifier?: (google.bigtable.v2.IValue|null); + + /** AddToCell timestamp */ + timestamp?: (google.bigtable.v2.IValue|null); + + /** AddToCell input */ + input?: (google.bigtable.v2.IValue|null); + } + + /** Represents an AddToCell. */ + class AddToCell implements IAddToCell { + + /** + * Constructs a new AddToCell. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Mutation.IAddToCell); + + /** AddToCell familyName. */ + public familyName: string; + + /** AddToCell columnQualifier. */ + public columnQualifier?: (google.bigtable.v2.IValue|null); - /** RowRange startKeyOpen */ - startKeyOpen?: (Uint8Array|Buffer|string|null); + /** AddToCell timestamp. */ + public timestamp?: (google.bigtable.v2.IValue|null); - /** RowRange endKeyOpen */ - endKeyOpen?: (Uint8Array|Buffer|string|null); + /** AddToCell input. */ + public input?: (google.bigtable.v2.IValue|null); - /** RowRange endKeyClosed */ - endKeyClosed?: (Uint8Array|Buffer|string|null); - } + /** + * Creates a new AddToCell instance using the specified properties. + * @param [properties] Properties to set + * @returns AddToCell instance + */ + public static create(properties?: google.bigtable.v2.Mutation.IAddToCell): google.bigtable.v2.Mutation.AddToCell; - /** Represents a RowRange. */ - class RowRange implements IRowRange { + /** + * Encodes the specified AddToCell message. Does not implicitly {@link google.bigtable.v2.Mutation.AddToCell.verify|verify} messages. + * @param message AddToCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Mutation.IAddToCell, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new RowRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IRowRange); + /** + * Encodes the specified AddToCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.AddToCell.verify|verify} messages. + * @param message AddToCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Mutation.IAddToCell, writer?: $protobuf.Writer): $protobuf.Writer; - /** RowRange startKeyClosed. */ - public startKeyClosed?: (Uint8Array|Buffer|string|null); + /** + * Decodes an AddToCell message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddToCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.AddToCell; - /** RowRange startKeyOpen. */ - public startKeyOpen?: (Uint8Array|Buffer|string|null); + /** + * Decodes an AddToCell message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddToCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.AddToCell; - /** RowRange endKeyOpen. */ - public endKeyOpen?: (Uint8Array|Buffer|string|null); + /** + * Verifies an AddToCell message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** RowRange endKeyClosed. */ - public endKeyClosed?: (Uint8Array|Buffer|string|null); + /** + * Creates an AddToCell message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddToCell + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.AddToCell; - /** RowRange startKey. */ - public startKey?: ("startKeyClosed"|"startKeyOpen"); + /** + * Creates a plain object from an AddToCell message. Also converts values to other types if specified. + * @param message AddToCell + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Mutation.AddToCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RowRange endKey. */ - public endKey?: ("endKeyOpen"|"endKeyClosed"); + /** + * Converts this AddToCell to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new RowRange instance using the specified properties. - * @param [properties] Properties to set - * @returns RowRange instance - */ - public static create(properties?: google.bigtable.v2.IRowRange): google.bigtable.v2.RowRange; + /** + * Gets the default type url for AddToCell + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified RowRange message. Does not implicitly {@link google.bigtable.v2.RowRange.verify|verify} messages. - * @param message RowRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IRowRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a MergeToCell. */ + interface IMergeToCell { - /** - * Encodes the specified RowRange message, length delimited. Does not implicitly {@link google.bigtable.v2.RowRange.verify|verify} messages. - * @param message RowRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IRowRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** MergeToCell familyName */ + familyName?: (string|null); - /** - * Decodes a RowRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RowRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowRange; + /** MergeToCell columnQualifier */ + columnQualifier?: (google.bigtable.v2.IValue|null); - /** - * Decodes a RowRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RowRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowRange; + /** MergeToCell timestamp */ + timestamp?: (google.bigtable.v2.IValue|null); - /** - * Verifies a RowRange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** MergeToCell input */ + input?: (google.bigtable.v2.IValue|null); + } - /** - * Creates a RowRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RowRange - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowRange; + /** Represents a MergeToCell. */ + class MergeToCell implements IMergeToCell { - /** - * Creates a plain object from a RowRange message. Also converts values to other types if specified. - * @param message RowRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.RowRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new MergeToCell. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Mutation.IMergeToCell); - /** - * Converts this RowRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** MergeToCell familyName. */ + public familyName: string; - /** - * Gets the default type url for RowRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** MergeToCell columnQualifier. */ + public columnQualifier?: (google.bigtable.v2.IValue|null); - /** Properties of a RowSet. */ - interface IRowSet { + /** MergeToCell timestamp. */ + public timestamp?: (google.bigtable.v2.IValue|null); - /** RowSet rowKeys */ - rowKeys?: (Uint8Array[]|null); + /** MergeToCell input. */ + public input?: (google.bigtable.v2.IValue|null); - /** RowSet rowRanges */ - rowRanges?: (google.bigtable.v2.IRowRange[]|null); - } + /** + * Creates a new MergeToCell instance using the specified properties. + * @param [properties] Properties to set + * @returns MergeToCell instance + */ + public static create(properties?: google.bigtable.v2.Mutation.IMergeToCell): google.bigtable.v2.Mutation.MergeToCell; - /** Represents a RowSet. */ - class RowSet implements IRowSet { + /** + * Encodes the specified MergeToCell message. Does not implicitly {@link google.bigtable.v2.Mutation.MergeToCell.verify|verify} messages. + * @param message MergeToCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Mutation.IMergeToCell, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new RowSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IRowSet); + /** + * Encodes the specified MergeToCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.MergeToCell.verify|verify} messages. + * @param message MergeToCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Mutation.IMergeToCell, writer?: $protobuf.Writer): $protobuf.Writer; - /** RowSet rowKeys. */ - public rowKeys: Uint8Array[]; + /** + * Decodes a MergeToCell message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MergeToCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.MergeToCell; - /** RowSet rowRanges. */ - public rowRanges: google.bigtable.v2.IRowRange[]; + /** + * Decodes a MergeToCell message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MergeToCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.MergeToCell; - /** - * Creates a new RowSet instance using the specified properties. - * @param [properties] Properties to set - * @returns RowSet instance - */ - public static create(properties?: google.bigtable.v2.IRowSet): google.bigtable.v2.RowSet; + /** + * Verifies a MergeToCell message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified RowSet message. Does not implicitly {@link google.bigtable.v2.RowSet.verify|verify} messages. - * @param message RowSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IRowSet, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a MergeToCell message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MergeToCell + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.MergeToCell; - /** - * Encodes the specified RowSet message, length delimited. Does not implicitly {@link google.bigtable.v2.RowSet.verify|verify} messages. - * @param message RowSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IRowSet, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a MergeToCell message. Also converts values to other types if specified. + * @param message MergeToCell + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Mutation.MergeToCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a RowSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RowSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowSet; + /** + * Converts this MergeToCell to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a RowSet message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RowSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowSet; + /** + * Gets the default type url for MergeToCell + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a RowSet message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of a DeleteFromColumn. */ + interface IDeleteFromColumn { - /** - * Creates a RowSet message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RowSet - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowSet; + /** DeleteFromColumn familyName */ + familyName?: (string|null); - /** - * Creates a plain object from a RowSet message. Also converts values to other types if specified. - * @param message RowSet - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.RowSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DeleteFromColumn columnQualifier */ + columnQualifier?: (Uint8Array|Buffer|string|null); - /** - * Converts this RowSet to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DeleteFromColumn timeRange */ + timeRange?: (google.bigtable.v2.ITimestampRange|null); + } - /** - * Gets the default type url for RowSet - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a DeleteFromColumn. */ + class DeleteFromColumn implements IDeleteFromColumn { - /** Properties of a ColumnRange. */ - interface IColumnRange { + /** + * Constructs a new DeleteFromColumn. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Mutation.IDeleteFromColumn); - /** ColumnRange familyName */ - familyName?: (string|null); + /** DeleteFromColumn familyName. */ + public familyName: string; - /** ColumnRange startQualifierClosed */ - startQualifierClosed?: (Uint8Array|Buffer|string|null); + /** DeleteFromColumn columnQualifier. */ + public columnQualifier: (Uint8Array|Buffer|string); - /** ColumnRange startQualifierOpen */ - startQualifierOpen?: (Uint8Array|Buffer|string|null); + /** DeleteFromColumn timeRange. */ + public timeRange?: (google.bigtable.v2.ITimestampRange|null); - /** ColumnRange endQualifierClosed */ - endQualifierClosed?: (Uint8Array|Buffer|string|null); + /** + * Creates a new DeleteFromColumn instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFromColumn instance + */ + public static create(properties?: google.bigtable.v2.Mutation.IDeleteFromColumn): google.bigtable.v2.Mutation.DeleteFromColumn; - /** ColumnRange endQualifierOpen */ - endQualifierOpen?: (Uint8Array|Buffer|string|null); - } + /** + * Encodes the specified DeleteFromColumn message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromColumn.verify|verify} messages. + * @param message DeleteFromColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Mutation.IDeleteFromColumn, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ColumnRange. */ - class ColumnRange implements IColumnRange { + /** + * Encodes the specified DeleteFromColumn message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromColumn.verify|verify} messages. + * @param message DeleteFromColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Mutation.IDeleteFromColumn, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ColumnRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IColumnRange); + /** + * Decodes a DeleteFromColumn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFromColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.DeleteFromColumn; - /** ColumnRange familyName. */ - public familyName: string; + /** + * Decodes a DeleteFromColumn message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFromColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.DeleteFromColumn; - /** ColumnRange startQualifierClosed. */ - public startQualifierClosed?: (Uint8Array|Buffer|string|null); + /** + * Verifies a DeleteFromColumn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ColumnRange startQualifierOpen. */ - public startQualifierOpen?: (Uint8Array|Buffer|string|null); + /** + * Creates a DeleteFromColumn message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFromColumn + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.DeleteFromColumn; - /** ColumnRange endQualifierClosed. */ - public endQualifierClosed?: (Uint8Array|Buffer|string|null); + /** + * Creates a plain object from a DeleteFromColumn message. Also converts values to other types if specified. + * @param message DeleteFromColumn + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Mutation.DeleteFromColumn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ColumnRange endQualifierOpen. */ - public endQualifierOpen?: (Uint8Array|Buffer|string|null); + /** + * Converts this DeleteFromColumn to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ColumnRange startQualifier. */ - public startQualifier?: ("startQualifierClosed"|"startQualifierOpen"); + /** + * Gets the default type url for DeleteFromColumn + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ColumnRange endQualifier. */ - public endQualifier?: ("endQualifierClosed"|"endQualifierOpen"); + /** Properties of a DeleteFromFamily. */ + interface IDeleteFromFamily { - /** - * Creates a new ColumnRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ColumnRange instance - */ - public static create(properties?: google.bigtable.v2.IColumnRange): google.bigtable.v2.ColumnRange; + /** DeleteFromFamily familyName */ + familyName?: (string|null); + } - /** - * Encodes the specified ColumnRange message. Does not implicitly {@link google.bigtable.v2.ColumnRange.verify|verify} messages. - * @param message ColumnRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IColumnRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a DeleteFromFamily. */ + class DeleteFromFamily implements IDeleteFromFamily { - /** - * Encodes the specified ColumnRange message, length delimited. Does not implicitly {@link google.bigtable.v2.ColumnRange.verify|verify} messages. - * @param message ColumnRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IColumnRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new DeleteFromFamily. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Mutation.IDeleteFromFamily); - /** - * Decodes a ColumnRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ColumnRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ColumnRange; + /** DeleteFromFamily familyName. */ + public familyName: string; - /** - * Decodes a ColumnRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ColumnRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ColumnRange; + /** + * Creates a new DeleteFromFamily instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFromFamily instance + */ + public static create(properties?: google.bigtable.v2.Mutation.IDeleteFromFamily): google.bigtable.v2.Mutation.DeleteFromFamily; - /** - * Verifies a ColumnRange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified DeleteFromFamily message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromFamily.verify|verify} messages. + * @param message DeleteFromFamily message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Mutation.IDeleteFromFamily, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ColumnRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ColumnRange - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ColumnRange; + /** + * Encodes the specified DeleteFromFamily message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromFamily.verify|verify} messages. + * @param message DeleteFromFamily message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Mutation.IDeleteFromFamily, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ColumnRange message. Also converts values to other types if specified. - * @param message ColumnRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ColumnRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a DeleteFromFamily message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFromFamily + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.DeleteFromFamily; - /** - * Converts this ColumnRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a DeleteFromFamily message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFromFamily + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.DeleteFromFamily; - /** - * Gets the default type url for ColumnRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a DeleteFromFamily message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a TimestampRange. */ - interface ITimestampRange { + /** + * Creates a DeleteFromFamily message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFromFamily + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.DeleteFromFamily; - /** TimestampRange startTimestampMicros */ - startTimestampMicros?: (number|Long|string|null); + /** + * Creates a plain object from a DeleteFromFamily message. Also converts values to other types if specified. + * @param message DeleteFromFamily + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Mutation.DeleteFromFamily, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TimestampRange endTimestampMicros */ - endTimestampMicros?: (number|Long|string|null); - } + /** + * Converts this DeleteFromFamily to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a TimestampRange. */ - class TimestampRange implements ITimestampRange { + /** + * Gets the default type url for DeleteFromFamily + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new TimestampRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.ITimestampRange); + /** Properties of a DeleteFromRow. */ + interface IDeleteFromRow { + } - /** TimestampRange startTimestampMicros. */ - public startTimestampMicros: (number|Long|string); + /** Represents a DeleteFromRow. */ + class DeleteFromRow implements IDeleteFromRow { - /** TimestampRange endTimestampMicros. */ - public endTimestampMicros: (number|Long|string); + /** + * Constructs a new DeleteFromRow. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Mutation.IDeleteFromRow); - /** - * Creates a new TimestampRange instance using the specified properties. - * @param [properties] Properties to set - * @returns TimestampRange instance - */ - public static create(properties?: google.bigtable.v2.ITimestampRange): google.bigtable.v2.TimestampRange; + /** + * Creates a new DeleteFromRow instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFromRow instance + */ + public static create(properties?: google.bigtable.v2.Mutation.IDeleteFromRow): google.bigtable.v2.Mutation.DeleteFromRow; - /** - * Encodes the specified TimestampRange message. Does not implicitly {@link google.bigtable.v2.TimestampRange.verify|verify} messages. - * @param message TimestampRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.ITimestampRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteFromRow message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromRow.verify|verify} messages. + * @param message DeleteFromRow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Mutation.IDeleteFromRow, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimestampRange message, length delimited. Does not implicitly {@link google.bigtable.v2.TimestampRange.verify|verify} messages. - * @param message TimestampRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.ITimestampRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteFromRow message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromRow.verify|verify} messages. + * @param message DeleteFromRow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Mutation.IDeleteFromRow, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TimestampRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimestampRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.TimestampRange; + /** + * Decodes a DeleteFromRow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFromRow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.DeleteFromRow; - /** - * Decodes a TimestampRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimestampRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.TimestampRange; + /** + * Decodes a DeleteFromRow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFromRow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.DeleteFromRow; - /** - * Verifies a TimestampRange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a DeleteFromRow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a TimestampRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimestampRange - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.TimestampRange; + /** + * Creates a DeleteFromRow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFromRow + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.DeleteFromRow; - /** - * Creates a plain object from a TimestampRange message. Also converts values to other types if specified. - * @param message TimestampRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.TimestampRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a DeleteFromRow message. Also converts values to other types if specified. + * @param message DeleteFromRow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Mutation.DeleteFromRow, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TimestampRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this DeleteFromRow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TimestampRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for DeleteFromRow + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a ValueRange. */ - interface IValueRange { + /** Properties of a ReadModifyWriteRule. */ + interface IReadModifyWriteRule { - /** ValueRange startValueClosed */ - startValueClosed?: (Uint8Array|Buffer|string|null); + /** ReadModifyWriteRule familyName */ + familyName?: (string|null); - /** ValueRange startValueOpen */ - startValueOpen?: (Uint8Array|Buffer|string|null); + /** ReadModifyWriteRule columnQualifier */ + columnQualifier?: (Uint8Array|Buffer|string|null); - /** ValueRange endValueClosed */ - endValueClosed?: (Uint8Array|Buffer|string|null); + /** ReadModifyWriteRule appendValue */ + appendValue?: (Uint8Array|Buffer|string|null); - /** ValueRange endValueOpen */ - endValueOpen?: (Uint8Array|Buffer|string|null); + /** ReadModifyWriteRule incrementAmount */ + incrementAmount?: (number|Long|string|null); } - /** Represents a ValueRange. */ - class ValueRange implements IValueRange { + /** Represents a ReadModifyWriteRule. */ + class ReadModifyWriteRule implements IReadModifyWriteRule { /** - * Constructs a new ValueRange. + * Constructs a new ReadModifyWriteRule. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IValueRange); - - /** ValueRange startValueClosed. */ - public startValueClosed?: (Uint8Array|Buffer|string|null); + constructor(properties?: google.bigtable.v2.IReadModifyWriteRule); - /** ValueRange startValueOpen. */ - public startValueOpen?: (Uint8Array|Buffer|string|null); + /** ReadModifyWriteRule familyName. */ + public familyName: string; - /** ValueRange endValueClosed. */ - public endValueClosed?: (Uint8Array|Buffer|string|null); + /** ReadModifyWriteRule columnQualifier. */ + public columnQualifier: (Uint8Array|Buffer|string); - /** ValueRange endValueOpen. */ - public endValueOpen?: (Uint8Array|Buffer|string|null); + /** ReadModifyWriteRule appendValue. */ + public appendValue?: (Uint8Array|Buffer|string|null); - /** ValueRange startValue. */ - public startValue?: ("startValueClosed"|"startValueOpen"); + /** ReadModifyWriteRule incrementAmount. */ + public incrementAmount?: (number|Long|string|null); - /** ValueRange endValue. */ - public endValue?: ("endValueClosed"|"endValueOpen"); + /** ReadModifyWriteRule rule. */ + public rule?: ("appendValue"|"incrementAmount"); /** - * Creates a new ValueRange instance using the specified properties. + * Creates a new ReadModifyWriteRule instance using the specified properties. * @param [properties] Properties to set - * @returns ValueRange instance + * @returns ReadModifyWriteRule instance */ - public static create(properties?: google.bigtable.v2.IValueRange): google.bigtable.v2.ValueRange; + public static create(properties?: google.bigtable.v2.IReadModifyWriteRule): google.bigtable.v2.ReadModifyWriteRule; /** - * Encodes the specified ValueRange message. Does not implicitly {@link google.bigtable.v2.ValueRange.verify|verify} messages. - * @param message ValueRange message or plain object to encode + * Encodes the specified ReadModifyWriteRule message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRule.verify|verify} messages. + * @param message ReadModifyWriteRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IValueRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IReadModifyWriteRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValueRange message, length delimited. Does not implicitly {@link google.bigtable.v2.ValueRange.verify|verify} messages. - * @param message ValueRange message or plain object to encode + * Encodes the specified ReadModifyWriteRule message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRule.verify|verify} messages. + * @param message ReadModifyWriteRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IValueRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IReadModifyWriteRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValueRange message from the specified reader or buffer. + * Decodes a ReadModifyWriteRule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValueRange + * @returns ReadModifyWriteRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ValueRange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadModifyWriteRule; /** - * Decodes a ValueRange message from the specified reader or buffer, length delimited. + * Decodes a ReadModifyWriteRule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValueRange + * @returns ReadModifyWriteRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ValueRange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadModifyWriteRule; /** - * Verifies a ValueRange message. + * Verifies a ReadModifyWriteRule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValueRange message from a plain object. Also converts values to their respective internal types. + * Creates a ReadModifyWriteRule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValueRange + * @returns ReadModifyWriteRule */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ValueRange; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadModifyWriteRule; /** - * Creates a plain object from a ValueRange message. Also converts values to other types if specified. - * @param message ValueRange + * Creates a plain object from a ReadModifyWriteRule message. Also converts values to other types if specified. + * @param message ReadModifyWriteRule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ValueRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ReadModifyWriteRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValueRange to JSON. + * Converts this ReadModifyWriteRule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValueRange + * Gets the default type url for ReadModifyWriteRule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RowFilter. */ - interface IRowFilter { - - /** RowFilter chain */ - chain?: (google.bigtable.v2.RowFilter.IChain|null); - - /** RowFilter interleave */ - interleave?: (google.bigtable.v2.RowFilter.IInterleave|null); - - /** RowFilter condition */ - condition?: (google.bigtable.v2.RowFilter.ICondition|null); - - /** RowFilter sink */ - sink?: (boolean|null); - - /** RowFilter passAllFilter */ - passAllFilter?: (boolean|null); - - /** RowFilter blockAllFilter */ - blockAllFilter?: (boolean|null); - - /** RowFilter rowKeyRegexFilter */ - rowKeyRegexFilter?: (Uint8Array|Buffer|string|null); - - /** RowFilter rowSampleFilter */ - rowSampleFilter?: (number|null); - - /** RowFilter familyNameRegexFilter */ - familyNameRegexFilter?: (string|null); - - /** RowFilter columnQualifierRegexFilter */ - columnQualifierRegexFilter?: (Uint8Array|Buffer|string|null); - - /** RowFilter columnRangeFilter */ - columnRangeFilter?: (google.bigtable.v2.IColumnRange|null); - - /** RowFilter timestampRangeFilter */ - timestampRangeFilter?: (google.bigtable.v2.ITimestampRange|null); - - /** RowFilter valueRegexFilter */ - valueRegexFilter?: (Uint8Array|Buffer|string|null); - - /** RowFilter valueRangeFilter */ - valueRangeFilter?: (google.bigtable.v2.IValueRange|null); - - /** RowFilter cellsPerRowOffsetFilter */ - cellsPerRowOffsetFilter?: (number|null); - - /** RowFilter cellsPerRowLimitFilter */ - cellsPerRowLimitFilter?: (number|null); - - /** RowFilter cellsPerColumnLimitFilter */ - cellsPerColumnLimitFilter?: (number|null); - - /** RowFilter stripValueTransformer */ - stripValueTransformer?: (boolean|null); + /** Properties of a StreamPartition. */ + interface IStreamPartition { - /** RowFilter applyLabelTransformer */ - applyLabelTransformer?: (string|null); + /** StreamPartition rowRange */ + rowRange?: (google.bigtable.v2.IRowRange|null); } - /** Represents a RowFilter. */ - class RowFilter implements IRowFilter { + /** Represents a StreamPartition. */ + class StreamPartition implements IStreamPartition { /** - * Constructs a new RowFilter. + * Constructs a new StreamPartition. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IRowFilter); - - /** RowFilter chain. */ - public chain?: (google.bigtable.v2.RowFilter.IChain|null); - - /** RowFilter interleave. */ - public interleave?: (google.bigtable.v2.RowFilter.IInterleave|null); - - /** RowFilter condition. */ - public condition?: (google.bigtable.v2.RowFilter.ICondition|null); - - /** RowFilter sink. */ - public sink?: (boolean|null); - - /** RowFilter passAllFilter. */ - public passAllFilter?: (boolean|null); - - /** RowFilter blockAllFilter. */ - public blockAllFilter?: (boolean|null); - - /** RowFilter rowKeyRegexFilter. */ - public rowKeyRegexFilter?: (Uint8Array|Buffer|string|null); - - /** RowFilter rowSampleFilter. */ - public rowSampleFilter?: (number|null); - - /** RowFilter familyNameRegexFilter. */ - public familyNameRegexFilter?: (string|null); - - /** RowFilter columnQualifierRegexFilter. */ - public columnQualifierRegexFilter?: (Uint8Array|Buffer|string|null); - - /** RowFilter columnRangeFilter. */ - public columnRangeFilter?: (google.bigtable.v2.IColumnRange|null); - - /** RowFilter timestampRangeFilter. */ - public timestampRangeFilter?: (google.bigtable.v2.ITimestampRange|null); - - /** RowFilter valueRegexFilter. */ - public valueRegexFilter?: (Uint8Array|Buffer|string|null); - - /** RowFilter valueRangeFilter. */ - public valueRangeFilter?: (google.bigtable.v2.IValueRange|null); - - /** RowFilter cellsPerRowOffsetFilter. */ - public cellsPerRowOffsetFilter?: (number|null); - - /** RowFilter cellsPerRowLimitFilter. */ - public cellsPerRowLimitFilter?: (number|null); - - /** RowFilter cellsPerColumnLimitFilter. */ - public cellsPerColumnLimitFilter?: (number|null); - - /** RowFilter stripValueTransformer. */ - public stripValueTransformer?: (boolean|null); - - /** RowFilter applyLabelTransformer. */ - public applyLabelTransformer?: (string|null); + constructor(properties?: google.bigtable.v2.IStreamPartition); - /** RowFilter filter. */ - public filter?: ("chain"|"interleave"|"condition"|"sink"|"passAllFilter"|"blockAllFilter"|"rowKeyRegexFilter"|"rowSampleFilter"|"familyNameRegexFilter"|"columnQualifierRegexFilter"|"columnRangeFilter"|"timestampRangeFilter"|"valueRegexFilter"|"valueRangeFilter"|"cellsPerRowOffsetFilter"|"cellsPerRowLimitFilter"|"cellsPerColumnLimitFilter"|"stripValueTransformer"|"applyLabelTransformer"); + /** StreamPartition rowRange. */ + public rowRange?: (google.bigtable.v2.IRowRange|null); /** - * Creates a new RowFilter instance using the specified properties. + * Creates a new StreamPartition instance using the specified properties. * @param [properties] Properties to set - * @returns RowFilter instance + * @returns StreamPartition instance */ - public static create(properties?: google.bigtable.v2.IRowFilter): google.bigtable.v2.RowFilter; + public static create(properties?: google.bigtable.v2.IStreamPartition): google.bigtable.v2.StreamPartition; /** - * Encodes the specified RowFilter message. Does not implicitly {@link google.bigtable.v2.RowFilter.verify|verify} messages. - * @param message RowFilter message or plain object to encode + * Encodes the specified StreamPartition message. Does not implicitly {@link google.bigtable.v2.StreamPartition.verify|verify} messages. + * @param message StreamPartition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IRowFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IStreamPartition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RowFilter message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.verify|verify} messages. - * @param message RowFilter message or plain object to encode + * Encodes the specified StreamPartition message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamPartition.verify|verify} messages. + * @param message StreamPartition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IRowFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IStreamPartition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RowFilter message from the specified reader or buffer. + * Decodes a StreamPartition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RowFilter + * @returns StreamPartition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.StreamPartition; /** - * Decodes a RowFilter message from the specified reader or buffer, length delimited. + * Decodes a StreamPartition message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RowFilter + * @returns StreamPartition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.StreamPartition; /** - * Verifies a RowFilter message. + * Verifies a StreamPartition message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RowFilter message from a plain object. Also converts values to their respective internal types. + * Creates a StreamPartition message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RowFilter + * @returns StreamPartition */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowFilter; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.StreamPartition; /** - * Creates a plain object from a RowFilter message. Also converts values to other types if specified. - * @param message RowFilter + * Creates a plain object from a StreamPartition message. Also converts values to other types if specified. + * @param message StreamPartition * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.RowFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.StreamPartition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RowFilter to JSON. + * Converts this StreamPartition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RowFilter + * Gets the default type url for StreamPartition * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace RowFilter { - - /** Properties of a Chain. */ - interface IChain { - - /** Chain filters */ - filters?: (google.bigtable.v2.IRowFilter[]|null); - } - - /** Represents a Chain. */ - class Chain implements IChain { - - /** - * Constructs a new Chain. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.RowFilter.IChain); - - /** Chain filters. */ - public filters: google.bigtable.v2.IRowFilter[]; - - /** - * Creates a new Chain instance using the specified properties. - * @param [properties] Properties to set - * @returns Chain instance - */ - public static create(properties?: google.bigtable.v2.RowFilter.IChain): google.bigtable.v2.RowFilter.Chain; - - /** - * Encodes the specified Chain message. Does not implicitly {@link google.bigtable.v2.RowFilter.Chain.verify|verify} messages. - * @param message Chain message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.RowFilter.IChain, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Chain message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Chain.verify|verify} messages. - * @param message Chain message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.RowFilter.IChain, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Chain message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Chain - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowFilter.Chain; - - /** - * Decodes a Chain message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Chain - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowFilter.Chain; - - /** - * Verifies a Chain message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Chain message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Chain - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowFilter.Chain; - - /** - * Creates a plain object from a Chain message. Also converts values to other types if specified. - * @param message Chain - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.RowFilter.Chain, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Chain to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Chain - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an Interleave. */ - interface IInterleave { - - /** Interleave filters */ - filters?: (google.bigtable.v2.IRowFilter[]|null); - } - - /** Represents an Interleave. */ - class Interleave implements IInterleave { - - /** - * Constructs a new Interleave. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.RowFilter.IInterleave); - - /** Interleave filters. */ - public filters: google.bigtable.v2.IRowFilter[]; - - /** - * Creates a new Interleave instance using the specified properties. - * @param [properties] Properties to set - * @returns Interleave instance - */ - public static create(properties?: google.bigtable.v2.RowFilter.IInterleave): google.bigtable.v2.RowFilter.Interleave; - - /** - * Encodes the specified Interleave message. Does not implicitly {@link google.bigtable.v2.RowFilter.Interleave.verify|verify} messages. - * @param message Interleave message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.RowFilter.IInterleave, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Interleave message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Interleave.verify|verify} messages. - * @param message Interleave message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.RowFilter.IInterleave, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Interleave message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Interleave - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowFilter.Interleave; - - /** - * Decodes an Interleave message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Interleave - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowFilter.Interleave; - - /** - * Verifies an Interleave message. - * @param message Plain 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 Interleave message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Interleave - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowFilter.Interleave; - - /** - * Creates a plain object from an Interleave message. Also converts values to other types if specified. - * @param message Interleave - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.RowFilter.Interleave, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Interleave to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Interleave - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Condition. */ - interface ICondition { - - /** Condition predicateFilter */ - predicateFilter?: (google.bigtable.v2.IRowFilter|null); + /** Properties of a StreamContinuationTokens. */ + interface IStreamContinuationTokens { - /** Condition trueFilter */ - trueFilter?: (google.bigtable.v2.IRowFilter|null); + /** StreamContinuationTokens tokens */ + tokens?: (google.bigtable.v2.IStreamContinuationToken[]|null); + } - /** Condition falseFilter */ - falseFilter?: (google.bigtable.v2.IRowFilter|null); - } + /** Represents a StreamContinuationTokens. */ + class StreamContinuationTokens implements IStreamContinuationTokens { - /** Represents a Condition. */ - class Condition implements ICondition { + /** + * Constructs a new StreamContinuationTokens. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IStreamContinuationTokens); - /** - * Constructs a new Condition. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.RowFilter.ICondition); + /** StreamContinuationTokens tokens. */ + public tokens: google.bigtable.v2.IStreamContinuationToken[]; - /** Condition predicateFilter. */ - public predicateFilter?: (google.bigtable.v2.IRowFilter|null); + /** + * Creates a new StreamContinuationTokens instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamContinuationTokens instance + */ + public static create(properties?: google.bigtable.v2.IStreamContinuationTokens): google.bigtable.v2.StreamContinuationTokens; - /** Condition trueFilter. */ - public trueFilter?: (google.bigtable.v2.IRowFilter|null); + /** + * Encodes the specified StreamContinuationTokens message. Does not implicitly {@link google.bigtable.v2.StreamContinuationTokens.verify|verify} messages. + * @param message StreamContinuationTokens message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IStreamContinuationTokens, writer?: $protobuf.Writer): $protobuf.Writer; - /** Condition falseFilter. */ - public falseFilter?: (google.bigtable.v2.IRowFilter|null); + /** + * Encodes the specified StreamContinuationTokens message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamContinuationTokens.verify|verify} messages. + * @param message StreamContinuationTokens message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IStreamContinuationTokens, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Condition instance using the specified properties. - * @param [properties] Properties to set - * @returns Condition instance - */ - public static create(properties?: google.bigtable.v2.RowFilter.ICondition): google.bigtable.v2.RowFilter.Condition; + /** + * Decodes a StreamContinuationTokens message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamContinuationTokens + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.StreamContinuationTokens; - /** - * Encodes the specified Condition message. Does not implicitly {@link google.bigtable.v2.RowFilter.Condition.verify|verify} messages. - * @param message Condition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.RowFilter.ICondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a StreamContinuationTokens message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamContinuationTokens + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.StreamContinuationTokens; - /** - * Encodes the specified Condition message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Condition.verify|verify} messages. - * @param message Condition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.RowFilter.ICondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a StreamContinuationTokens message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a Condition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Condition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.RowFilter.Condition; + /** + * Creates a StreamContinuationTokens message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamContinuationTokens + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.StreamContinuationTokens; - /** - * Decodes a Condition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Condition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.RowFilter.Condition; + /** + * Creates a plain object from a StreamContinuationTokens message. Also converts values to other types if specified. + * @param message StreamContinuationTokens + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.StreamContinuationTokens, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a Condition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this StreamContinuationTokens to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a Condition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Condition - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.RowFilter.Condition; + /** + * Gets the default type url for StreamContinuationTokens + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a Condition message. Also converts values to other types if specified. - * @param message Condition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.RowFilter.Condition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a StreamContinuationToken. */ + interface IStreamContinuationToken { - /** - * Converts this Condition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** StreamContinuationToken partition */ + partition?: (google.bigtable.v2.IStreamPartition|null); - /** - * Gets the default type url for Condition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** StreamContinuationToken token */ + token?: (string|null); } - /** Properties of a Mutation. */ - interface IMutation { + /** Represents a StreamContinuationToken. */ + class StreamContinuationToken implements IStreamContinuationToken { - /** Mutation setCell */ - setCell?: (google.bigtable.v2.Mutation.ISetCell|null); + /** + * Constructs a new StreamContinuationToken. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IStreamContinuationToken); - /** Mutation addToCell */ - addToCell?: (google.bigtable.v2.Mutation.IAddToCell|null); + /** StreamContinuationToken partition. */ + public partition?: (google.bigtable.v2.IStreamPartition|null); - /** Mutation mergeToCell */ - mergeToCell?: (google.bigtable.v2.Mutation.IMergeToCell|null); + /** StreamContinuationToken token. */ + public token: string; - /** Mutation deleteFromColumn */ - deleteFromColumn?: (google.bigtable.v2.Mutation.IDeleteFromColumn|null); + /** + * Creates a new StreamContinuationToken instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamContinuationToken instance + */ + public static create(properties?: google.bigtable.v2.IStreamContinuationToken): google.bigtable.v2.StreamContinuationToken; - /** Mutation deleteFromFamily */ - deleteFromFamily?: (google.bigtable.v2.Mutation.IDeleteFromFamily|null); + /** + * Encodes the specified StreamContinuationToken message. Does not implicitly {@link google.bigtable.v2.StreamContinuationToken.verify|verify} messages. + * @param message StreamContinuationToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IStreamContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** Mutation deleteFromRow */ - deleteFromRow?: (google.bigtable.v2.Mutation.IDeleteFromRow|null); - } + /** + * Encodes the specified StreamContinuationToken message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamContinuationToken.verify|verify} messages. + * @param message StreamContinuationToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IStreamContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Mutation. */ - class Mutation implements IMutation { + /** + * Decodes a StreamContinuationToken message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamContinuationToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.StreamContinuationToken; /** - * Constructs a new Mutation. - * @param [properties] Properties to set + * Decodes a StreamContinuationToken message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamContinuationToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.bigtable.v2.IMutation); + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.StreamContinuationToken; - /** Mutation setCell. */ - public setCell?: (google.bigtable.v2.Mutation.ISetCell|null); + /** + * Verifies a StreamContinuationToken message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Mutation addToCell. */ - public addToCell?: (google.bigtable.v2.Mutation.IAddToCell|null); + /** + * Creates a StreamContinuationToken message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamContinuationToken + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.StreamContinuationToken; - /** Mutation mergeToCell. */ - public mergeToCell?: (google.bigtable.v2.Mutation.IMergeToCell|null); + /** + * Creates a plain object from a StreamContinuationToken message. Also converts values to other types if specified. + * @param message StreamContinuationToken + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.StreamContinuationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Mutation deleteFromColumn. */ - public deleteFromColumn?: (google.bigtable.v2.Mutation.IDeleteFromColumn|null); + /** + * Converts this StreamContinuationToken to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamContinuationToken + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Mutation deleteFromFamily. */ - public deleteFromFamily?: (google.bigtable.v2.Mutation.IDeleteFromFamily|null); + /** Properties of a ProtoFormat. */ + interface IProtoFormat { + } - /** Mutation deleteFromRow. */ - public deleteFromRow?: (google.bigtable.v2.Mutation.IDeleteFromRow|null); + /** Represents a ProtoFormat. */ + class ProtoFormat implements IProtoFormat { - /** Mutation mutation. */ - public mutation?: ("setCell"|"addToCell"|"mergeToCell"|"deleteFromColumn"|"deleteFromFamily"|"deleteFromRow"); + /** + * Constructs a new ProtoFormat. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IProtoFormat); /** - * Creates a new Mutation instance using the specified properties. + * Creates a new ProtoFormat instance using the specified properties. * @param [properties] Properties to set - * @returns Mutation instance + * @returns ProtoFormat instance */ - public static create(properties?: google.bigtable.v2.IMutation): google.bigtable.v2.Mutation; + public static create(properties?: google.bigtable.v2.IProtoFormat): google.bigtable.v2.ProtoFormat; /** - * Encodes the specified Mutation message. Does not implicitly {@link google.bigtable.v2.Mutation.verify|verify} messages. - * @param message Mutation message or plain object to encode + * Encodes the specified ProtoFormat message. Does not implicitly {@link google.bigtable.v2.ProtoFormat.verify|verify} messages. + * @param message ProtoFormat message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IMutation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IProtoFormat, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Mutation message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.verify|verify} messages. - * @param message Mutation message or plain object to encode + * Encodes the specified ProtoFormat message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoFormat.verify|verify} messages. + * @param message ProtoFormat message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IMutation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IProtoFormat, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Mutation message from the specified reader or buffer. + * Decodes a ProtoFormat message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Mutation + * @returns ProtoFormat * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ProtoFormat; /** - * Decodes a Mutation message from the specified reader or buffer, length delimited. + * Decodes a ProtoFormat message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Mutation + * @returns ProtoFormat * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ProtoFormat; /** - * Verifies a Mutation message. + * Verifies a ProtoFormat message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Mutation message from a plain object. Also converts values to their respective internal types. + * Creates a ProtoFormat message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Mutation + * @returns ProtoFormat */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ProtoFormat; /** - * Creates a plain object from a Mutation message. Also converts values to other types if specified. - * @param message Mutation + * Creates a plain object from a ProtoFormat message. Also converts values to other types if specified. + * @param message ProtoFormat * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Mutation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ProtoFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Mutation to JSON. + * Converts this ProtoFormat to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Mutation + * Gets the default type url for ProtoFormat * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Mutation { - - /** Properties of a SetCell. */ - interface ISetCell { - - /** SetCell familyName */ - familyName?: (string|null); - - /** SetCell columnQualifier */ - columnQualifier?: (Uint8Array|Buffer|string|null); - - /** SetCell timestampMicros */ - timestampMicros?: (number|Long|string|null); - - /** SetCell value */ - value?: (Uint8Array|Buffer|string|null); - } - - /** Represents a SetCell. */ - class SetCell implements ISetCell { - - /** - * Constructs a new SetCell. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Mutation.ISetCell); - - /** SetCell familyName. */ - public familyName: string; - - /** SetCell columnQualifier. */ - public columnQualifier: (Uint8Array|Buffer|string); - - /** SetCell timestampMicros. */ - public timestampMicros: (number|Long|string); - - /** SetCell value. */ - public value: (Uint8Array|Buffer|string); - - /** - * Creates a new SetCell instance using the specified properties. - * @param [properties] Properties to set - * @returns SetCell instance - */ - public static create(properties?: google.bigtable.v2.Mutation.ISetCell): google.bigtable.v2.Mutation.SetCell; - - /** - * Encodes the specified SetCell message. Does not implicitly {@link google.bigtable.v2.Mutation.SetCell.verify|verify} messages. - * @param message SetCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Mutation.ISetCell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.SetCell.verify|verify} messages. - * @param message SetCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Mutation.ISetCell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetCell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.SetCell; - - /** - * Decodes a SetCell message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.SetCell; - - /** - * Verifies a SetCell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetCell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetCell - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.SetCell; + /** Properties of a ColumnMetadata. */ + interface IColumnMetadata { - /** - * Creates a plain object from a SetCell message. Also converts values to other types if specified. - * @param message SetCell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Mutation.SetCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ColumnMetadata name */ + name?: (string|null); - /** - * Converts this SetCell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ColumnMetadata type */ + type?: (google.bigtable.v2.IType|null); + } - /** - * Gets the default type url for SetCell - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a ColumnMetadata. */ + class ColumnMetadata implements IColumnMetadata { - /** Properties of an AddToCell. */ - interface IAddToCell { + /** + * Constructs a new ColumnMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IColumnMetadata); - /** AddToCell familyName */ - familyName?: (string|null); + /** ColumnMetadata name. */ + public name: string; - /** AddToCell columnQualifier */ - columnQualifier?: (google.bigtable.v2.IValue|null); + /** ColumnMetadata type. */ + public type?: (google.bigtable.v2.IType|null); - /** AddToCell timestamp */ - timestamp?: (google.bigtable.v2.IValue|null); + /** + * Creates a new ColumnMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ColumnMetadata instance + */ + public static create(properties?: google.bigtable.v2.IColumnMetadata): google.bigtable.v2.ColumnMetadata; - /** AddToCell input */ - input?: (google.bigtable.v2.IValue|null); - } + /** + * Encodes the specified ColumnMetadata message. Does not implicitly {@link google.bigtable.v2.ColumnMetadata.verify|verify} messages. + * @param message ColumnMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IColumnMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an AddToCell. */ - class AddToCell implements IAddToCell { + /** + * Encodes the specified ColumnMetadata message, length delimited. Does not implicitly {@link google.bigtable.v2.ColumnMetadata.verify|verify} messages. + * @param message ColumnMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IColumnMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new AddToCell. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Mutation.IAddToCell); + /** + * Decodes a ColumnMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ColumnMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ColumnMetadata; - /** AddToCell familyName. */ - public familyName: string; + /** + * Decodes a ColumnMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ColumnMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ColumnMetadata; - /** AddToCell columnQualifier. */ - public columnQualifier?: (google.bigtable.v2.IValue|null); + /** + * Verifies a ColumnMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** AddToCell timestamp. */ - public timestamp?: (google.bigtable.v2.IValue|null); + /** + * Creates a ColumnMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ColumnMetadata + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ColumnMetadata; - /** AddToCell input. */ - public input?: (google.bigtable.v2.IValue|null); + /** + * Creates a plain object from a ColumnMetadata message. Also converts values to other types if specified. + * @param message ColumnMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ColumnMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new AddToCell instance using the specified properties. - * @param [properties] Properties to set - * @returns AddToCell instance - */ - public static create(properties?: google.bigtable.v2.Mutation.IAddToCell): google.bigtable.v2.Mutation.AddToCell; + /** + * Converts this ColumnMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified AddToCell message. Does not implicitly {@link google.bigtable.v2.Mutation.AddToCell.verify|verify} messages. - * @param message AddToCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Mutation.IAddToCell, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ColumnMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified AddToCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.AddToCell.verify|verify} messages. - * @param message AddToCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Mutation.IAddToCell, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a ProtoSchema. */ + interface IProtoSchema { - /** - * Decodes an AddToCell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddToCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.AddToCell; + /** ProtoSchema columns */ + columns?: (google.bigtable.v2.IColumnMetadata[]|null); + } - /** - * Decodes an AddToCell message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddToCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.AddToCell; + /** Represents a ProtoSchema. */ + class ProtoSchema implements IProtoSchema { - /** - * Verifies an AddToCell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Constructs a new ProtoSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IProtoSchema); - /** - * Creates an AddToCell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddToCell - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.AddToCell; + /** ProtoSchema columns. */ + public columns: google.bigtable.v2.IColumnMetadata[]; - /** - * Creates a plain object from an AddToCell message. Also converts values to other types if specified. - * @param message AddToCell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Mutation.AddToCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new ProtoSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns ProtoSchema instance + */ + public static create(properties?: google.bigtable.v2.IProtoSchema): google.bigtable.v2.ProtoSchema; - /** - * Converts this AddToCell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ProtoSchema message. Does not implicitly {@link google.bigtable.v2.ProtoSchema.verify|verify} messages. + * @param message ProtoSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IProtoSchema, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for AddToCell - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified ProtoSchema message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoSchema.verify|verify} messages. + * @param message ProtoSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IProtoSchema, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a MergeToCell. */ - interface IMergeToCell { + /** + * Decodes a ProtoSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProtoSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ProtoSchema; - /** MergeToCell familyName */ - familyName?: (string|null); + /** + * Decodes a ProtoSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProtoSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ProtoSchema; - /** MergeToCell columnQualifier */ - columnQualifier?: (google.bigtable.v2.IValue|null); + /** + * Verifies a ProtoSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** MergeToCell timestamp */ - timestamp?: (google.bigtable.v2.IValue|null); + /** + * Creates a ProtoSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProtoSchema + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ProtoSchema; - /** MergeToCell input */ - input?: (google.bigtable.v2.IValue|null); - } + /** + * Creates a plain object from a ProtoSchema message. Also converts values to other types if specified. + * @param message ProtoSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ProtoSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a MergeToCell. */ - class MergeToCell implements IMergeToCell { + /** + * Converts this ProtoSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new MergeToCell. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Mutation.IMergeToCell); + /** + * Gets the default type url for ProtoSchema + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** MergeToCell familyName. */ - public familyName: string; + /** Properties of a ResultSetMetadata. */ + interface IResultSetMetadata { - /** MergeToCell columnQualifier. */ - public columnQualifier?: (google.bigtable.v2.IValue|null); + /** ResultSetMetadata protoSchema */ + protoSchema?: (google.bigtable.v2.IProtoSchema|null); + } - /** MergeToCell timestamp. */ - public timestamp?: (google.bigtable.v2.IValue|null); + /** Represents a ResultSetMetadata. */ + class ResultSetMetadata implements IResultSetMetadata { - /** MergeToCell input. */ - public input?: (google.bigtable.v2.IValue|null); + /** + * Constructs a new ResultSetMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IResultSetMetadata); - /** - * Creates a new MergeToCell instance using the specified properties. - * @param [properties] Properties to set - * @returns MergeToCell instance - */ - public static create(properties?: google.bigtable.v2.Mutation.IMergeToCell): google.bigtable.v2.Mutation.MergeToCell; + /** ResultSetMetadata protoSchema. */ + public protoSchema?: (google.bigtable.v2.IProtoSchema|null); - /** - * Encodes the specified MergeToCell message. Does not implicitly {@link google.bigtable.v2.Mutation.MergeToCell.verify|verify} messages. - * @param message MergeToCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Mutation.IMergeToCell, writer?: $protobuf.Writer): $protobuf.Writer; + /** ResultSetMetadata schema. */ + public schema?: "protoSchema"; - /** - * Encodes the specified MergeToCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.MergeToCell.verify|verify} messages. - * @param message MergeToCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Mutation.IMergeToCell, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ResultSetMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ResultSetMetadata instance + */ + public static create(properties?: google.bigtable.v2.IResultSetMetadata): google.bigtable.v2.ResultSetMetadata; - /** - * Decodes a MergeToCell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MergeToCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.MergeToCell; + /** + * Encodes the specified ResultSetMetadata message. Does not implicitly {@link google.bigtable.v2.ResultSetMetadata.verify|verify} messages. + * @param message ResultSetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IResultSetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MergeToCell message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MergeToCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.MergeToCell; + /** + * Encodes the specified ResultSetMetadata message, length delimited. Does not implicitly {@link google.bigtable.v2.ResultSetMetadata.verify|verify} messages. + * @param message ResultSetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IResultSetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a MergeToCell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ResultSetMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResultSetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ResultSetMetadata; - /** - * Creates a MergeToCell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MergeToCell - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.MergeToCell; + /** + * Decodes a ResultSetMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResultSetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ResultSetMetadata; - /** - * Creates a plain object from a MergeToCell message. Also converts values to other types if specified. - * @param message MergeToCell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Mutation.MergeToCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a ResultSetMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this MergeToCell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a ResultSetMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResultSetMetadata + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ResultSetMetadata; - /** - * Gets the default type url for MergeToCell - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a ResultSetMetadata message. Also converts values to other types if specified. + * @param message ResultSetMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ResultSetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a DeleteFromColumn. */ - interface IDeleteFromColumn { + /** + * Converts this ResultSetMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DeleteFromColumn familyName */ - familyName?: (string|null); + /** + * Gets the default type url for ResultSetMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteFromColumn columnQualifier */ - columnQualifier?: (Uint8Array|Buffer|string|null); + /** Properties of a ProtoRows. */ + interface IProtoRows { - /** DeleteFromColumn timeRange */ - timeRange?: (google.bigtable.v2.ITimestampRange|null); - } + /** ProtoRows values */ + values?: (google.bigtable.v2.IValue[]|null); + } - /** Represents a DeleteFromColumn. */ - class DeleteFromColumn implements IDeleteFromColumn { + /** Represents a ProtoRows. */ + class ProtoRows implements IProtoRows { - /** - * Constructs a new DeleteFromColumn. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Mutation.IDeleteFromColumn); + /** + * Constructs a new ProtoRows. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IProtoRows); - /** DeleteFromColumn familyName. */ - public familyName: string; + /** ProtoRows values. */ + public values: google.bigtable.v2.IValue[]; - /** DeleteFromColumn columnQualifier. */ - public columnQualifier: (Uint8Array|Buffer|string); + /** + * Creates a new ProtoRows instance using the specified properties. + * @param [properties] Properties to set + * @returns ProtoRows instance + */ + public static create(properties?: google.bigtable.v2.IProtoRows): google.bigtable.v2.ProtoRows; - /** DeleteFromColumn timeRange. */ - public timeRange?: (google.bigtable.v2.ITimestampRange|null); + /** + * Encodes the specified ProtoRows message. Does not implicitly {@link google.bigtable.v2.ProtoRows.verify|verify} messages. + * @param message ProtoRows message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IProtoRows, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new DeleteFromColumn instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFromColumn instance - */ - public static create(properties?: google.bigtable.v2.Mutation.IDeleteFromColumn): google.bigtable.v2.Mutation.DeleteFromColumn; + /** + * Encodes the specified ProtoRows message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoRows.verify|verify} messages. + * @param message ProtoRows message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IProtoRows, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteFromColumn message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromColumn.verify|verify} messages. - * @param message DeleteFromColumn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Mutation.IDeleteFromColumn, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ProtoRows message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProtoRows + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ProtoRows; - /** - * Encodes the specified DeleteFromColumn message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromColumn.verify|verify} messages. - * @param message DeleteFromColumn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Mutation.IDeleteFromColumn, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ProtoRows message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProtoRows + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ProtoRows; - /** - * Decodes a DeleteFromColumn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteFromColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.DeleteFromColumn; + /** + * Verifies a ProtoRows message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a DeleteFromColumn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteFromColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.DeleteFromColumn; + /** + * Creates a ProtoRows message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProtoRows + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ProtoRows; - /** - * Verifies a DeleteFromColumn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a ProtoRows message. Also converts values to other types if specified. + * @param message ProtoRows + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ProtoRows, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a DeleteFromColumn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteFromColumn - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.DeleteFromColumn; + /** + * Converts this ProtoRows to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a DeleteFromColumn message. Also converts values to other types if specified. - * @param message DeleteFromColumn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Mutation.DeleteFromColumn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ProtoRows + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this DeleteFromColumn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a ProtoRowsBatch. */ + interface IProtoRowsBatch { - /** - * Gets the default type url for DeleteFromColumn - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ProtoRowsBatch batchData */ + batchData?: (Uint8Array|Buffer|string|null); + } - /** Properties of a DeleteFromFamily. */ - interface IDeleteFromFamily { + /** Represents a ProtoRowsBatch. */ + class ProtoRowsBatch implements IProtoRowsBatch { - /** DeleteFromFamily familyName */ - familyName?: (string|null); - } + /** + * Constructs a new ProtoRowsBatch. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IProtoRowsBatch); - /** Represents a DeleteFromFamily. */ - class DeleteFromFamily implements IDeleteFromFamily { + /** ProtoRowsBatch batchData. */ + public batchData: (Uint8Array|Buffer|string); - /** - * Constructs a new DeleteFromFamily. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Mutation.IDeleteFromFamily); + /** + * Creates a new ProtoRowsBatch instance using the specified properties. + * @param [properties] Properties to set + * @returns ProtoRowsBatch instance + */ + public static create(properties?: google.bigtable.v2.IProtoRowsBatch): google.bigtable.v2.ProtoRowsBatch; - /** DeleteFromFamily familyName. */ - public familyName: string; + /** + * Encodes the specified ProtoRowsBatch message. Does not implicitly {@link google.bigtable.v2.ProtoRowsBatch.verify|verify} messages. + * @param message ProtoRowsBatch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IProtoRowsBatch, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new DeleteFromFamily instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFromFamily instance - */ - public static create(properties?: google.bigtable.v2.Mutation.IDeleteFromFamily): google.bigtable.v2.Mutation.DeleteFromFamily; + /** + * Encodes the specified ProtoRowsBatch message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoRowsBatch.verify|verify} messages. + * @param message ProtoRowsBatch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IProtoRowsBatch, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteFromFamily message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromFamily.verify|verify} messages. - * @param message DeleteFromFamily message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Mutation.IDeleteFromFamily, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ProtoRowsBatch message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProtoRowsBatch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ProtoRowsBatch; - /** - * Encodes the specified DeleteFromFamily message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromFamily.verify|verify} messages. - * @param message DeleteFromFamily message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Mutation.IDeleteFromFamily, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ProtoRowsBatch message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProtoRowsBatch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ProtoRowsBatch; - /** - * Decodes a DeleteFromFamily message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteFromFamily - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.DeleteFromFamily; + /** + * Verifies a ProtoRowsBatch message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a DeleteFromFamily message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteFromFamily - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.DeleteFromFamily; + /** + * Creates a ProtoRowsBatch message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProtoRowsBatch + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ProtoRowsBatch; - /** - * Verifies a DeleteFromFamily message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a ProtoRowsBatch message. Also converts values to other types if specified. + * @param message ProtoRowsBatch + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.ProtoRowsBatch, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a DeleteFromFamily message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteFromFamily - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.DeleteFromFamily; + /** + * Converts this ProtoRowsBatch to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a DeleteFromFamily message. Also converts values to other types if specified. - * @param message DeleteFromFamily - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Mutation.DeleteFromFamily, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ProtoRowsBatch + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this DeleteFromFamily to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a PartialResultSet. */ + interface IPartialResultSet { - /** - * Gets the default type url for DeleteFromFamily - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PartialResultSet protoRowsBatch */ + protoRowsBatch?: (google.bigtable.v2.IProtoRowsBatch|null); - /** Properties of a DeleteFromRow. */ - interface IDeleteFromRow { - } + /** PartialResultSet batchChecksum */ + batchChecksum?: (number|null); - /** Represents a DeleteFromRow. */ - class DeleteFromRow implements IDeleteFromRow { + /** PartialResultSet resumeToken */ + resumeToken?: (Uint8Array|Buffer|string|null); - /** - * Constructs a new DeleteFromRow. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Mutation.IDeleteFromRow); + /** PartialResultSet reset */ + reset?: (boolean|null); - /** - * Creates a new DeleteFromRow instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFromRow instance - */ - public static create(properties?: google.bigtable.v2.Mutation.IDeleteFromRow): google.bigtable.v2.Mutation.DeleteFromRow; + /** PartialResultSet estimatedBatchSize */ + estimatedBatchSize?: (number|null); + } - /** - * Encodes the specified DeleteFromRow message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromRow.verify|verify} messages. - * @param message DeleteFromRow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Mutation.IDeleteFromRow, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a PartialResultSet. */ + class PartialResultSet implements IPartialResultSet { - /** - * Encodes the specified DeleteFromRow message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromRow.verify|verify} messages. - * @param message DeleteFromRow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Mutation.IDeleteFromRow, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new PartialResultSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IPartialResultSet); - /** - * Decodes a DeleteFromRow message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteFromRow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Mutation.DeleteFromRow; + /** PartialResultSet protoRowsBatch. */ + public protoRowsBatch?: (google.bigtable.v2.IProtoRowsBatch|null); + + /** PartialResultSet batchChecksum. */ + public batchChecksum?: (number|null); - /** - * Decodes a DeleteFromRow message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteFromRow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Mutation.DeleteFromRow; + /** PartialResultSet resumeToken. */ + public resumeToken: (Uint8Array|Buffer|string); - /** - * Verifies a DeleteFromRow message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** PartialResultSet reset. */ + public reset: boolean; - /** - * Creates a DeleteFromRow message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteFromRow - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Mutation.DeleteFromRow; + /** PartialResultSet estimatedBatchSize. */ + public estimatedBatchSize: number; - /** - * Creates a plain object from a DeleteFromRow message. Also converts values to other types if specified. - * @param message DeleteFromRow - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Mutation.DeleteFromRow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PartialResultSet partialRows. */ + public partialRows?: "protoRowsBatch"; - /** - * Converts this DeleteFromRow to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new PartialResultSet instance using the specified properties. + * @param [properties] Properties to set + * @returns PartialResultSet instance + */ + public static create(properties?: google.bigtable.v2.IPartialResultSet): google.bigtable.v2.PartialResultSet; - /** - * Gets the default type url for DeleteFromRow - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Encodes the specified PartialResultSet message. Does not implicitly {@link google.bigtable.v2.PartialResultSet.verify|verify} messages. + * @param message PartialResultSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.IPartialResultSet, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ReadModifyWriteRule. */ - interface IReadModifyWriteRule { + /** + * Encodes the specified PartialResultSet message, length delimited. Does not implicitly {@link google.bigtable.v2.PartialResultSet.verify|verify} messages. + * @param message PartialResultSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.IPartialResultSet, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReadModifyWriteRule familyName */ - familyName?: (string|null); + /** + * Decodes a PartialResultSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PartialResultSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PartialResultSet; - /** ReadModifyWriteRule columnQualifier */ - columnQualifier?: (Uint8Array|Buffer|string|null); + /** + * Decodes a PartialResultSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PartialResultSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PartialResultSet; - /** ReadModifyWriteRule appendValue */ - appendValue?: (Uint8Array|Buffer|string|null); + /** + * Verifies a PartialResultSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ReadModifyWriteRule incrementAmount */ - incrementAmount?: (number|Long|string|null); - } + /** + * Creates a PartialResultSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PartialResultSet + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PartialResultSet; - /** Represents a ReadModifyWriteRule. */ - class ReadModifyWriteRule implements IReadModifyWriteRule { + /** + * Creates a plain object from a PartialResultSet message. Also converts values to other types if specified. + * @param message PartialResultSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.PartialResultSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Constructs a new ReadModifyWriteRule. - * @param [properties] Properties to set + * Converts this PartialResultSet to JSON. + * @returns JSON object */ - constructor(properties?: google.bigtable.v2.IReadModifyWriteRule); + public toJSON(): { [k: string]: any }; - /** ReadModifyWriteRule familyName. */ - public familyName: string; + /** + * Gets the default type url for PartialResultSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ReadModifyWriteRule columnQualifier. */ - public columnQualifier: (Uint8Array|Buffer|string); + /** Properties of an Idempotency. */ + interface IIdempotency { - /** ReadModifyWriteRule appendValue. */ - public appendValue?: (Uint8Array|Buffer|string|null); + /** Idempotency token */ + token?: (Uint8Array|Buffer|string|null); - /** ReadModifyWriteRule incrementAmount. */ - public incrementAmount?: (number|Long|string|null); + /** Idempotency startTime */ + startTime?: (google.protobuf.ITimestamp|null); + } - /** ReadModifyWriteRule rule. */ - public rule?: ("appendValue"|"incrementAmount"); + /** Represents an Idempotency. */ + class Idempotency implements IIdempotency { /** - * Creates a new ReadModifyWriteRule instance using the specified properties. + * Constructs a new Idempotency. * @param [properties] Properties to set - * @returns ReadModifyWriteRule instance */ - public static create(properties?: google.bigtable.v2.IReadModifyWriteRule): google.bigtable.v2.ReadModifyWriteRule; + constructor(properties?: google.bigtable.v2.IIdempotency); + + /** Idempotency token. */ + public token: (Uint8Array|Buffer|string); + + /** Idempotency startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); /** - * Encodes the specified ReadModifyWriteRule message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRule.verify|verify} messages. - * @param message ReadModifyWriteRule message or plain object to encode + * Creates a new Idempotency instance using the specified properties. + * @param [properties] Properties to set + * @returns Idempotency instance + */ + public static create(properties?: google.bigtable.v2.IIdempotency): google.bigtable.v2.Idempotency; + + /** + * Encodes the specified Idempotency message. Does not implicitly {@link google.bigtable.v2.Idempotency.verify|verify} messages. + * @param message Idempotency message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IReadModifyWriteRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IIdempotency, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadModifyWriteRule message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRule.verify|verify} messages. - * @param message ReadModifyWriteRule message or plain object to encode + * Encodes the specified Idempotency message, length delimited. Does not implicitly {@link google.bigtable.v2.Idempotency.verify|verify} messages. + * @param message Idempotency message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IReadModifyWriteRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IIdempotency, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadModifyWriteRule message from the specified reader or buffer. + * Decodes an Idempotency message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadModifyWriteRule + * @returns Idempotency * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadModifyWriteRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Idempotency; /** - * Decodes a ReadModifyWriteRule message from the specified reader or buffer, length delimited. + * Decodes an Idempotency message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadModifyWriteRule + * @returns Idempotency * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadModifyWriteRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Idempotency; /** - * Verifies a ReadModifyWriteRule message. + * Verifies an Idempotency message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadModifyWriteRule message from a plain object. Also converts values to their respective internal types. + * Creates an Idempotency message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadModifyWriteRule + * @returns Idempotency */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadModifyWriteRule; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Idempotency; + + /** + * Creates a plain object from an Idempotency message. Also converts values to other types if specified. + * @param message Idempotency + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Idempotency, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Idempotency to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Idempotency + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Type. */ + interface IType { + + /** Type bytesType */ + bytesType?: (google.bigtable.v2.Type.IBytes|null); + + /** Type stringType */ + stringType?: (google.bigtable.v2.Type.IString|null); + + /** Type int64Type */ + int64Type?: (google.bigtable.v2.Type.IInt64|null); + + /** Type float32Type */ + float32Type?: (google.bigtable.v2.Type.IFloat32|null); + + /** Type float64Type */ + float64Type?: (google.bigtable.v2.Type.IFloat64|null); + + /** Type boolType */ + boolType?: (google.bigtable.v2.Type.IBool|null); + + /** Type timestampType */ + timestampType?: (google.bigtable.v2.Type.ITimestamp|null); + + /** Type dateType */ + dateType?: (google.bigtable.v2.Type.IDate|null); + + /** Type aggregateType */ + aggregateType?: (google.bigtable.v2.Type.IAggregate|null); + + /** Type structType */ + structType?: (google.bigtable.v2.Type.IStruct|null); + + /** Type arrayType */ + arrayType?: (google.bigtable.v2.Type.IArray|null); + + /** Type mapType */ + mapType?: (google.bigtable.v2.Type.IMap|null); + + /** Type protoType */ + protoType?: (google.bigtable.v2.Type.IProto|null); + + /** Type enumType */ + enumType?: (google.bigtable.v2.Type.IEnum|null); + } + + /** Represents a Type. */ + class Type implements IType { + + /** + * Constructs a new Type. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.IType); + + /** Type bytesType. */ + public bytesType?: (google.bigtable.v2.Type.IBytes|null); + + /** Type stringType. */ + public stringType?: (google.bigtable.v2.Type.IString|null); + + /** Type int64Type. */ + public int64Type?: (google.bigtable.v2.Type.IInt64|null); + + /** Type float32Type. */ + public float32Type?: (google.bigtable.v2.Type.IFloat32|null); + + /** Type float64Type. */ + public float64Type?: (google.bigtable.v2.Type.IFloat64|null); + + /** Type boolType. */ + public boolType?: (google.bigtable.v2.Type.IBool|null); + + /** Type timestampType. */ + public timestampType?: (google.bigtable.v2.Type.ITimestamp|null); - /** - * Creates a plain object from a ReadModifyWriteRule message. Also converts values to other types if specified. - * @param message ReadModifyWriteRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ReadModifyWriteRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Type dateType. */ + public dateType?: (google.bigtable.v2.Type.IDate|null); - /** - * Converts this ReadModifyWriteRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Type aggregateType. */ + public aggregateType?: (google.bigtable.v2.Type.IAggregate|null); - /** - * Gets the default type url for ReadModifyWriteRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Type structType. */ + public structType?: (google.bigtable.v2.Type.IStruct|null); - /** Properties of a StreamPartition. */ - interface IStreamPartition { + /** Type arrayType. */ + public arrayType?: (google.bigtable.v2.Type.IArray|null); - /** StreamPartition rowRange */ - rowRange?: (google.bigtable.v2.IRowRange|null); - } + /** Type mapType. */ + public mapType?: (google.bigtable.v2.Type.IMap|null); - /** Represents a StreamPartition. */ - class StreamPartition implements IStreamPartition { + /** Type protoType. */ + public protoType?: (google.bigtable.v2.Type.IProto|null); - /** - * Constructs a new StreamPartition. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IStreamPartition); + /** Type enumType. */ + public enumType?: (google.bigtable.v2.Type.IEnum|null); - /** StreamPartition rowRange. */ - public rowRange?: (google.bigtable.v2.IRowRange|null); + /** Type kind. */ + public kind?: ("bytesType"|"stringType"|"int64Type"|"float32Type"|"float64Type"|"boolType"|"timestampType"|"dateType"|"aggregateType"|"structType"|"arrayType"|"mapType"|"protoType"|"enumType"); /** - * Creates a new StreamPartition instance using the specified properties. + * Creates a new Type instance using the specified properties. * @param [properties] Properties to set - * @returns StreamPartition instance + * @returns Type instance */ - public static create(properties?: google.bigtable.v2.IStreamPartition): google.bigtable.v2.StreamPartition; + public static create(properties?: google.bigtable.v2.IType): google.bigtable.v2.Type; /** - * Encodes the specified StreamPartition message. Does not implicitly {@link google.bigtable.v2.StreamPartition.verify|verify} messages. - * @param message StreamPartition message or plain object to encode + * Encodes the specified Type message. Does not implicitly {@link google.bigtable.v2.Type.verify|verify} messages. + * @param message Type message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IStreamPartition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamPartition message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamPartition.verify|verify} messages. - * @param message StreamPartition message or plain object to encode + * Encodes the specified Type message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.verify|verify} messages. + * @param message Type message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IStreamPartition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamPartition message from the specified reader or buffer. + * Decodes a Type message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamPartition + * @returns Type * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.StreamPartition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type; /** - * Decodes a StreamPartition message from the specified reader or buffer, length delimited. + * Decodes a Type message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamPartition + * @returns Type * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.StreamPartition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type; /** - * Verifies a StreamPartition message. + * Verifies a Type message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamPartition message from a plain object. Also converts values to their respective internal types. + * Creates a Type message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamPartition + * @returns Type */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.StreamPartition; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type; /** - * Creates a plain object from a StreamPartition message. Also converts values to other types if specified. - * @param message StreamPartition + * Creates a plain object from a Type message. Also converts values to other types if specified. + * @param message Type * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.StreamPartition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Type, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamPartition to JSON. + * Converts this Type to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamPartition + * Gets the default type url for Type * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StreamContinuationTokens. */ - interface IStreamContinuationTokens { + namespace Type { - /** StreamContinuationTokens tokens */ - tokens?: (google.bigtable.v2.IStreamContinuationToken[]|null); - } + /** Properties of a Bytes. */ + interface IBytes { - /** Represents a StreamContinuationTokens. */ - class StreamContinuationTokens implements IStreamContinuationTokens { + /** Bytes encoding */ + encoding?: (google.bigtable.v2.Type.Bytes.IEncoding|null); + } - /** - * Constructs a new StreamContinuationTokens. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IStreamContinuationTokens); + /** Represents a Bytes. */ + class Bytes implements IBytes { - /** StreamContinuationTokens tokens. */ - public tokens: google.bigtable.v2.IStreamContinuationToken[]; + /** + * Constructs a new Bytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.IBytes); - /** - * Creates a new StreamContinuationTokens instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamContinuationTokens instance - */ - public static create(properties?: google.bigtable.v2.IStreamContinuationTokens): google.bigtable.v2.StreamContinuationTokens; + /** Bytes encoding. */ + public encoding?: (google.bigtable.v2.Type.Bytes.IEncoding|null); - /** - * Encodes the specified StreamContinuationTokens message. Does not implicitly {@link google.bigtable.v2.StreamContinuationTokens.verify|verify} messages. - * @param message StreamContinuationTokens message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IStreamContinuationTokens, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Bytes instance using the specified properties. + * @param [properties] Properties to set + * @returns Bytes instance + */ + public static create(properties?: google.bigtable.v2.Type.IBytes): google.bigtable.v2.Type.Bytes; - /** - * Encodes the specified StreamContinuationTokens message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamContinuationTokens.verify|verify} messages. - * @param message StreamContinuationTokens message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IStreamContinuationTokens, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Bytes message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.verify|verify} messages. + * @param message Bytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.IBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a StreamContinuationTokens message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamContinuationTokens - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.StreamContinuationTokens; + /** + * Encodes the specified Bytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.verify|verify} messages. + * @param message Bytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.IBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a StreamContinuationTokens message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamContinuationTokens - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.StreamContinuationTokens; + /** + * Decodes a Bytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Bytes; + + /** + * Decodes a Bytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Bytes; + + /** + * Verifies a Bytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Bytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Bytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Bytes; + + /** + * Creates a plain object from a Bytes message. Also converts values to other types if specified. + * @param message Bytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Bytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Bytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Bytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Bytes { + + /** Properties of an Encoding. */ + interface IEncoding { + + /** Encoding raw */ + raw?: (google.bigtable.v2.Type.Bytes.Encoding.IRaw|null); + } + + /** Represents an Encoding. */ + class Encoding implements IEncoding { + + /** + * Constructs a new Encoding. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.Bytes.IEncoding); + + /** Encoding raw. */ + public raw?: (google.bigtable.v2.Type.Bytes.Encoding.IRaw|null); + + /** Encoding encoding. */ + public encoding?: "raw"; - /** - * Verifies a StreamContinuationTokens message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new Encoding instance using the specified properties. + * @param [properties] Properties to set + * @returns Encoding instance + */ + public static create(properties?: google.bigtable.v2.Type.Bytes.IEncoding): google.bigtable.v2.Type.Bytes.Encoding; - /** - * Creates a StreamContinuationTokens message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamContinuationTokens - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.StreamContinuationTokens; + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.Bytes.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a StreamContinuationTokens message. Also converts values to other types if specified. - * @param message StreamContinuationTokens - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.StreamContinuationTokens, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Bytes.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this StreamContinuationTokens to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an Encoding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Bytes.Encoding; - /** - * Gets the default type url for StreamContinuationTokens - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Bytes.Encoding; - /** Properties of a StreamContinuationToken. */ - interface IStreamContinuationToken { + /** + * Verifies an Encoding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** StreamContinuationToken partition */ - partition?: (google.bigtable.v2.IStreamPartition|null); + /** + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Encoding + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Bytes.Encoding; - /** StreamContinuationToken token */ - token?: (string|null); - } + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @param message Encoding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Bytes.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a StreamContinuationToken. */ - class StreamContinuationToken implements IStreamContinuationToken { + /** + * Converts this Encoding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new StreamContinuationToken. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IStreamContinuationToken); + /** + * Gets the default type url for Encoding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** StreamContinuationToken partition. */ - public partition?: (google.bigtable.v2.IStreamPartition|null); + namespace Encoding { - /** StreamContinuationToken token. */ - public token: string; + /** Properties of a Raw. */ + interface IRaw { - /** - * Creates a new StreamContinuationToken instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamContinuationToken instance - */ - public static create(properties?: google.bigtable.v2.IStreamContinuationToken): google.bigtable.v2.StreamContinuationToken; + /** Raw escapeNulls */ + escapeNulls?: (boolean|null); + } - /** - * Encodes the specified StreamContinuationToken message. Does not implicitly {@link google.bigtable.v2.StreamContinuationToken.verify|verify} messages. - * @param message StreamContinuationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IStreamContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a Raw. */ + class Raw implements IRaw { - /** - * Encodes the specified StreamContinuationToken message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamContinuationToken.verify|verify} messages. - * @param message StreamContinuationToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IStreamContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Raw. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.Bytes.Encoding.IRaw); - /** - * Decodes a StreamContinuationToken message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamContinuationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.StreamContinuationToken; + /** Raw escapeNulls. */ + public escapeNulls: boolean; - /** - * Decodes a StreamContinuationToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamContinuationToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.StreamContinuationToken; + /** + * Creates a new Raw instance using the specified properties. + * @param [properties] Properties to set + * @returns Raw instance + */ + public static create(properties?: google.bigtable.v2.Type.Bytes.Encoding.IRaw): google.bigtable.v2.Type.Bytes.Encoding.Raw; - /** - * Verifies a StreamContinuationToken message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified Raw message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. + * @param message Raw message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.Bytes.Encoding.IRaw, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a StreamContinuationToken message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamContinuationToken - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.StreamContinuationToken; + /** + * Encodes the specified Raw message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. + * @param message Raw message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Bytes.Encoding.IRaw, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a StreamContinuationToken message. Also converts values to other types if specified. - * @param message StreamContinuationToken - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.StreamContinuationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Raw message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Bytes.Encoding.Raw; - /** - * Converts this StreamContinuationToken to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a Raw message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Bytes.Encoding.Raw; - /** - * Gets the default type url for StreamContinuationToken - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a Raw message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a ProtoFormat. */ - interface IProtoFormat { - } + /** + * Creates a Raw message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Raw + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Bytes.Encoding.Raw; - /** Represents a ProtoFormat. */ - class ProtoFormat implements IProtoFormat { + /** + * Creates a plain object from a Raw message. Also converts values to other types if specified. + * @param message Raw + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Bytes.Encoding.Raw, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ProtoFormat. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IProtoFormat); + /** + * Converts this Raw to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new ProtoFormat instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoFormat instance - */ - public static create(properties?: google.bigtable.v2.IProtoFormat): google.bigtable.v2.ProtoFormat; + /** + * Gets the default type url for Raw + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } - /** - * Encodes the specified ProtoFormat message. Does not implicitly {@link google.bigtable.v2.ProtoFormat.verify|verify} messages. - * @param message ProtoFormat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IProtoFormat, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a String. */ + interface IString { - /** - * Encodes the specified ProtoFormat message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoFormat.verify|verify} messages. - * @param message ProtoFormat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IProtoFormat, writer?: $protobuf.Writer): $protobuf.Writer; + /** String encoding */ + encoding?: (google.bigtable.v2.Type.String.IEncoding|null); + } - /** - * Decodes a ProtoFormat message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoFormat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ProtoFormat; + /** Represents a String. */ + class String implements IString { - /** - * Decodes a ProtoFormat message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoFormat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ProtoFormat; + /** + * Constructs a new String. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.IString); - /** - * Verifies a ProtoFormat message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** String encoding. */ + public encoding?: (google.bigtable.v2.Type.String.IEncoding|null); - /** - * Creates a ProtoFormat message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoFormat - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ProtoFormat; + /** + * Creates a new String instance using the specified properties. + * @param [properties] Properties to set + * @returns String instance + */ + public static create(properties?: google.bigtable.v2.Type.IString): google.bigtable.v2.Type.String; - /** - * Creates a plain object from a ProtoFormat message. Also converts values to other types if specified. - * @param message ProtoFormat - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ProtoFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified String message. Does not implicitly {@link google.bigtable.v2.Type.String.verify|verify} messages. + * @param message String message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.IString, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ProtoFormat to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified String message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.verify|verify} messages. + * @param message String message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.IString, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ProtoFormat - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a String message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns String + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.String; - /** Properties of a ColumnMetadata. */ - interface IColumnMetadata { + /** + * Decodes a String message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns String + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.String; - /** ColumnMetadata name */ - name?: (string|null); + /** + * Verifies a String message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ColumnMetadata type */ - type?: (google.bigtable.v2.IType|null); - } + /** + * Creates a String message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns String + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.String; - /** Represents a ColumnMetadata. */ - class ColumnMetadata implements IColumnMetadata { + /** + * Creates a plain object from a String message. Also converts values to other types if specified. + * @param message String + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.String, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ColumnMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IColumnMetadata); + /** + * Converts this String to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ColumnMetadata name. */ - public name: string; + /** + * Gets the default type url for String + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ColumnMetadata type. */ - public type?: (google.bigtable.v2.IType|null); + namespace String { - /** - * Creates a new ColumnMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ColumnMetadata instance - */ - public static create(properties?: google.bigtable.v2.IColumnMetadata): google.bigtable.v2.ColumnMetadata; + /** Properties of an Encoding. */ + interface IEncoding { - /** - * Encodes the specified ColumnMetadata message. Does not implicitly {@link google.bigtable.v2.ColumnMetadata.verify|verify} messages. - * @param message ColumnMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IColumnMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Encoding utf8Raw */ + utf8Raw?: (google.bigtable.v2.Type.String.Encoding.IUtf8Raw|null); - /** - * Encodes the specified ColumnMetadata message, length delimited. Does not implicitly {@link google.bigtable.v2.ColumnMetadata.verify|verify} messages. - * @param message ColumnMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IColumnMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Encoding utf8Bytes */ + utf8Bytes?: (google.bigtable.v2.Type.String.Encoding.IUtf8Bytes|null); + } - /** - * Decodes a ColumnMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ColumnMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ColumnMetadata; + /** Represents an Encoding. */ + class Encoding implements IEncoding { - /** - * Decodes a ColumnMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ColumnMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ColumnMetadata; + /** + * Constructs a new Encoding. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.String.IEncoding); - /** - * Verifies a ColumnMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Encoding utf8Raw. */ + public utf8Raw?: (google.bigtable.v2.Type.String.Encoding.IUtf8Raw|null); - /** - * Creates a ColumnMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ColumnMetadata - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ColumnMetadata; + /** Encoding utf8Bytes. */ + public utf8Bytes?: (google.bigtable.v2.Type.String.Encoding.IUtf8Bytes|null); - /** - * Creates a plain object from a ColumnMetadata message. Also converts values to other types if specified. - * @param message ColumnMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ColumnMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Encoding encoding. */ + public encoding?: ("utf8Raw"|"utf8Bytes"); - /** - * Converts this ColumnMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new Encoding instance using the specified properties. + * @param [properties] Properties to set + * @returns Encoding instance + */ + public static create(properties?: google.bigtable.v2.Type.String.IEncoding): google.bigtable.v2.Type.String.Encoding; - /** - * Gets the default type url for ColumnMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.String.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ProtoSchema. */ - interface IProtoSchema { + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.String.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; - /** ProtoSchema columns */ - columns?: (google.bigtable.v2.IColumnMetadata[]|null); - } + /** + * Decodes an Encoding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.String.Encoding; - /** Represents a ProtoSchema. */ - class ProtoSchema implements IProtoSchema { + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.String.Encoding; - /** - * Constructs a new ProtoSchema. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IProtoSchema); + /** + * Verifies an Encoding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ProtoSchema columns. */ - public columns: google.bigtable.v2.IColumnMetadata[]; + /** + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Encoding + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.String.Encoding; - /** - * Creates a new ProtoSchema instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoSchema instance - */ - public static create(properties?: google.bigtable.v2.IProtoSchema): google.bigtable.v2.ProtoSchema; + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @param message Encoding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.String.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ProtoSchema message. Does not implicitly {@link google.bigtable.v2.ProtoSchema.verify|verify} messages. - * @param message ProtoSchema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IProtoSchema, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this Encoding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified ProtoSchema message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoSchema.verify|verify} messages. - * @param message ProtoSchema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IProtoSchema, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for Encoding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ProtoSchema message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoSchema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ProtoSchema; + namespace Encoding { - /** - * Decodes a ProtoSchema message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoSchema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ProtoSchema; + /** Properties of an Utf8Raw. */ + interface IUtf8Raw { + } - /** - * Verifies a ProtoSchema message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents an Utf8Raw. */ + class Utf8Raw implements IUtf8Raw { - /** - * Creates a ProtoSchema message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoSchema - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ProtoSchema; + /** + * Constructs a new Utf8Raw. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.String.Encoding.IUtf8Raw); - /** - * Creates a plain object from a ProtoSchema message. Also converts values to other types if specified. - * @param message ProtoSchema - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ProtoSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new Utf8Raw instance using the specified properties. + * @param [properties] Properties to set + * @returns Utf8Raw instance + */ + public static create(properties?: google.bigtable.v2.Type.String.Encoding.IUtf8Raw): google.bigtable.v2.Type.String.Encoding.Utf8Raw; - /** - * Converts this ProtoSchema to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Utf8Raw message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. + * @param message Utf8Raw message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.String.Encoding.IUtf8Raw, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ProtoSchema - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified Utf8Raw message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. + * @param message Utf8Raw message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.String.Encoding.IUtf8Raw, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ResultSetMetadata. */ - interface IResultSetMetadata { + /** + * Decodes an Utf8Raw message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Utf8Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.String.Encoding.Utf8Raw; - /** ResultSetMetadata protoSchema */ - protoSchema?: (google.bigtable.v2.IProtoSchema|null); - } + /** + * Decodes an Utf8Raw message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Utf8Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.String.Encoding.Utf8Raw; - /** Represents a ResultSetMetadata. */ - class ResultSetMetadata implements IResultSetMetadata { + /** + * Verifies an Utf8Raw message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new ResultSetMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IResultSetMetadata); + /** + * Creates an Utf8Raw message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Utf8Raw + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.String.Encoding.Utf8Raw; - /** ResultSetMetadata protoSchema. */ - public protoSchema?: (google.bigtable.v2.IProtoSchema|null); + /** + * Creates a plain object from an Utf8Raw message. Also converts values to other types if specified. + * @param message Utf8Raw + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.String.Encoding.Utf8Raw, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ResultSetMetadata schema. */ - public schema?: "protoSchema"; + /** + * Converts this Utf8Raw to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new ResultSetMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ResultSetMetadata instance - */ - public static create(properties?: google.bigtable.v2.IResultSetMetadata): google.bigtable.v2.ResultSetMetadata; + /** + * Gets the default type url for Utf8Raw + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ResultSetMetadata message. Does not implicitly {@link google.bigtable.v2.ResultSetMetadata.verify|verify} messages. - * @param message ResultSetMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IResultSetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an Utf8Bytes. */ + interface IUtf8Bytes { - /** - * Encodes the specified ResultSetMetadata message, length delimited. Does not implicitly {@link google.bigtable.v2.ResultSetMetadata.verify|verify} messages. - * @param message ResultSetMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IResultSetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Utf8Bytes nullEscapeChar */ + nullEscapeChar?: (string|null); + } - /** - * Decodes a ResultSetMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResultSetMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ResultSetMetadata; + /** Represents an Utf8Bytes. */ + class Utf8Bytes implements IUtf8Bytes { - /** - * Decodes a ResultSetMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResultSetMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ResultSetMetadata; + /** + * Constructs a new Utf8Bytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.String.Encoding.IUtf8Bytes); - /** - * Verifies a ResultSetMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Utf8Bytes nullEscapeChar. */ + public nullEscapeChar: string; - /** - * Creates a ResultSetMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResultSetMetadata - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ResultSetMetadata; + /** + * Creates a new Utf8Bytes instance using the specified properties. + * @param [properties] Properties to set + * @returns Utf8Bytes instance + */ + public static create(properties?: google.bigtable.v2.Type.String.Encoding.IUtf8Bytes): google.bigtable.v2.Type.String.Encoding.Utf8Bytes; - /** - * Creates a plain object from a ResultSetMetadata message. Also converts values to other types if specified. - * @param message ResultSetMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ResultSetMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Utf8Bytes message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. + * @param message Utf8Bytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.String.Encoding.IUtf8Bytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ResultSetMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Utf8Bytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. + * @param message Utf8Bytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.String.Encoding.IUtf8Bytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ResultSetMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an Utf8Bytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Utf8Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.String.Encoding.Utf8Bytes; - /** Properties of a ProtoRows. */ - interface IProtoRows { + /** + * Decodes an Utf8Bytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Utf8Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.String.Encoding.Utf8Bytes; - /** ProtoRows values */ - values?: (google.bigtable.v2.IValue[]|null); - } + /** + * Verifies an Utf8Bytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a ProtoRows. */ - class ProtoRows implements IProtoRows { + /** + * Creates an Utf8Bytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Utf8Bytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.String.Encoding.Utf8Bytes; - /** - * Constructs a new ProtoRows. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IProtoRows); + /** + * Creates a plain object from an Utf8Bytes message. Also converts values to other types if specified. + * @param message Utf8Bytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.String.Encoding.Utf8Bytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ProtoRows values. */ - public values: google.bigtable.v2.IValue[]; + /** + * Converts this Utf8Bytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new ProtoRows instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoRows instance - */ - public static create(properties?: google.bigtable.v2.IProtoRows): google.bigtable.v2.ProtoRows; + /** + * Gets the default type url for Utf8Bytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } - /** - * Encodes the specified ProtoRows message. Does not implicitly {@link google.bigtable.v2.ProtoRows.verify|verify} messages. - * @param message ProtoRows message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IProtoRows, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an Int64. */ + interface IInt64 { - /** - * Encodes the specified ProtoRows message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoRows.verify|verify} messages. - * @param message ProtoRows message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IProtoRows, writer?: $protobuf.Writer): $protobuf.Writer; + /** Int64 encoding */ + encoding?: (google.bigtable.v2.Type.Int64.IEncoding|null); + } - /** - * Decodes a ProtoRows message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoRows - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ProtoRows; + /** Represents an Int64. */ + class Int64 implements IInt64 { - /** - * Decodes a ProtoRows message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoRows - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ProtoRows; + /** + * Constructs a new Int64. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.IInt64); - /** - * Verifies a ProtoRows message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Int64 encoding. */ + public encoding?: (google.bigtable.v2.Type.Int64.IEncoding|null); - /** - * Creates a ProtoRows message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoRows - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ProtoRows; + /** + * Creates a new Int64 instance using the specified properties. + * @param [properties] Properties to set + * @returns Int64 instance + */ + public static create(properties?: google.bigtable.v2.Type.IInt64): google.bigtable.v2.Type.Int64; - /** - * Creates a plain object from a ProtoRows message. Also converts values to other types if specified. - * @param message ProtoRows - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ProtoRows, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Int64 message. Does not implicitly {@link google.bigtable.v2.Type.Int64.verify|verify} messages. + * @param message Int64 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.IInt64, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ProtoRows to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Int64 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.verify|verify} messages. + * @param message Int64 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.IInt64, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ProtoRows - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an Int64 message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Int64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Int64; - /** Properties of a ProtoRowsBatch. */ - interface IProtoRowsBatch { + /** + * Decodes an Int64 message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Int64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Int64; - /** ProtoRowsBatch batchData */ - batchData?: (Uint8Array|Buffer|string|null); - } + /** + * Verifies an Int64 message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a ProtoRowsBatch. */ - class ProtoRowsBatch implements IProtoRowsBatch { + /** + * Creates an Int64 message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Int64 + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Int64; - /** - * Constructs a new ProtoRowsBatch. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IProtoRowsBatch); + /** + * Creates a plain object from an Int64 message. Also converts values to other types if specified. + * @param message Int64 + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Int64, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ProtoRowsBatch batchData. */ - public batchData: (Uint8Array|Buffer|string); + /** + * Converts this Int64 to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new ProtoRowsBatch instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoRowsBatch instance - */ - public static create(properties?: google.bigtable.v2.IProtoRowsBatch): google.bigtable.v2.ProtoRowsBatch; + /** + * Gets the default type url for Int64 + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ProtoRowsBatch message. Does not implicitly {@link google.bigtable.v2.ProtoRowsBatch.verify|verify} messages. - * @param message ProtoRowsBatch message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IProtoRowsBatch, writer?: $protobuf.Writer): $protobuf.Writer; + namespace Int64 { - /** - * Encodes the specified ProtoRowsBatch message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoRowsBatch.verify|verify} messages. - * @param message ProtoRowsBatch message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IProtoRowsBatch, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an Encoding. */ + interface IEncoding { - /** - * Decodes a ProtoRowsBatch message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoRowsBatch - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ProtoRowsBatch; + /** Encoding bigEndianBytes */ + bigEndianBytes?: (google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes|null); - /** - * Decodes a ProtoRowsBatch message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoRowsBatch - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ProtoRowsBatch; + /** Encoding orderedCodeBytes */ + orderedCodeBytes?: (google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes|null); + } - /** - * Verifies a ProtoRowsBatch message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents an Encoding. */ + class Encoding implements IEncoding { - /** - * Creates a ProtoRowsBatch message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoRowsBatch - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ProtoRowsBatch; + /** + * Constructs a new Encoding. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.Int64.IEncoding); - /** - * Creates a plain object from a ProtoRowsBatch message. Also converts values to other types if specified. - * @param message ProtoRowsBatch - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.ProtoRowsBatch, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Encoding bigEndianBytes. */ + public bigEndianBytes?: (google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes|null); - /** - * Converts this ProtoRowsBatch to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Encoding orderedCodeBytes. */ + public orderedCodeBytes?: (google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes|null); - /** - * Gets the default type url for ProtoRowsBatch - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Encoding encoding. */ + public encoding?: ("bigEndianBytes"|"orderedCodeBytes"); - /** Properties of a PartialResultSet. */ - interface IPartialResultSet { + /** + * Creates a new Encoding instance using the specified properties. + * @param [properties] Properties to set + * @returns Encoding instance + */ + public static create(properties?: google.bigtable.v2.Type.Int64.IEncoding): google.bigtable.v2.Type.Int64.Encoding; - /** PartialResultSet protoRowsBatch */ - protoRowsBatch?: (google.bigtable.v2.IProtoRowsBatch|null); + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.Int64.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; - /** PartialResultSet batchChecksum */ - batchChecksum?: (number|null); + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.verify|verify} messages. + * @param message Encoding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Int64.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; - /** PartialResultSet resumeToken */ - resumeToken?: (Uint8Array|Buffer|string|null); + /** + * Decodes an Encoding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Int64.Encoding; - /** PartialResultSet reset */ - reset?: (boolean|null); + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Int64.Encoding; - /** PartialResultSet estimatedBatchSize */ - estimatedBatchSize?: (number|null); - } + /** + * Verifies an Encoding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a PartialResultSet. */ - class PartialResultSet implements IPartialResultSet { + /** + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Encoding + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Int64.Encoding; - /** - * Constructs a new PartialResultSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IPartialResultSet); + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @param message Encoding + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Int64.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PartialResultSet protoRowsBatch. */ - public protoRowsBatch?: (google.bigtable.v2.IProtoRowsBatch|null); + /** + * Converts this Encoding to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Encoding + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PartialResultSet batchChecksum. */ - public batchChecksum?: (number|null); + namespace Encoding { - /** PartialResultSet resumeToken. */ - public resumeToken: (Uint8Array|Buffer|string); + /** Properties of a BigEndianBytes. */ + interface IBigEndianBytes { - /** PartialResultSet reset. */ - public reset: boolean; + /** BigEndianBytes bytesType */ + bytesType?: (google.bigtable.v2.Type.IBytes|null); + } - /** PartialResultSet estimatedBatchSize. */ - public estimatedBatchSize: number; + /** Represents a BigEndianBytes. */ + class BigEndianBytes implements IBigEndianBytes { - /** PartialResultSet partialRows. */ - public partialRows?: "protoRowsBatch"; + /** + * Constructs a new BigEndianBytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes); - /** - * Creates a new PartialResultSet instance using the specified properties. - * @param [properties] Properties to set - * @returns PartialResultSet instance - */ - public static create(properties?: google.bigtable.v2.IPartialResultSet): google.bigtable.v2.PartialResultSet; + /** BigEndianBytes bytesType. */ + public bytesType?: (google.bigtable.v2.Type.IBytes|null); - /** - * Encodes the specified PartialResultSet message. Does not implicitly {@link google.bigtable.v2.PartialResultSet.verify|verify} messages. - * @param message PartialResultSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IPartialResultSet, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new BigEndianBytes instance using the specified properties. + * @param [properties] Properties to set + * @returns BigEndianBytes instance + */ + public static create(properties?: google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes): google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes; - /** - * Encodes the specified PartialResultSet message, length delimited. Does not implicitly {@link google.bigtable.v2.PartialResultSet.verify|verify} messages. - * @param message PartialResultSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IPartialResultSet, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified BigEndianBytes message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * @param message BigEndianBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PartialResultSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PartialResultSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.PartialResultSet; + /** + * Encodes the specified BigEndianBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * @param message BigEndianBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PartialResultSet message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PartialResultSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.PartialResultSet; + /** + * Decodes a BigEndianBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BigEndianBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes; - /** - * Verifies a PartialResultSet message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a BigEndianBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BigEndianBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes; - /** - * Creates a PartialResultSet message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PartialResultSet - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.PartialResultSet; + /** + * Verifies a BigEndianBytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a PartialResultSet message. Also converts values to other types if specified. - * @param message PartialResultSet - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.PartialResultSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a BigEndianBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BigEndianBytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes; - /** - * Converts this PartialResultSet to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a BigEndianBytes message. Also converts values to other types if specified. + * @param message BigEndianBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for PartialResultSet - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this BigEndianBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a Type. */ - interface IType { + /** + * Gets the default type url for BigEndianBytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Type bytesType */ - bytesType?: (google.bigtable.v2.Type.IBytes|null); + /** Properties of an OrderedCodeBytes. */ + interface IOrderedCodeBytes { + } - /** Type stringType */ - stringType?: (google.bigtable.v2.Type.IString|null); + /** Represents an OrderedCodeBytes. */ + class OrderedCodeBytes implements IOrderedCodeBytes { - /** Type int64Type */ - int64Type?: (google.bigtable.v2.Type.IInt64|null); + /** + * Constructs a new OrderedCodeBytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes); - /** Type float32Type */ - float32Type?: (google.bigtable.v2.Type.IFloat32|null); + /** + * Creates a new OrderedCodeBytes instance using the specified properties. + * @param [properties] Properties to set + * @returns OrderedCodeBytes instance + */ + public static create(properties?: google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes): google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes; - /** Type float64Type */ - float64Type?: (google.bigtable.v2.Type.IFloat64|null); + /** + * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. + * @param message OrderedCodeBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** Type boolType */ - boolType?: (google.bigtable.v2.Type.IBool|null); + /** + * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. + * @param message OrderedCodeBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** Type timestampType */ - timestampType?: (google.bigtable.v2.Type.ITimestamp|null); + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes; - /** Type dateType */ - dateType?: (google.bigtable.v2.Type.IDate|null); + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes; - /** Type aggregateType */ - aggregateType?: (google.bigtable.v2.Type.IAggregate|null); + /** + * Verifies an OrderedCodeBytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Type structType */ - structType?: (google.bigtable.v2.Type.IStruct|null); + /** + * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OrderedCodeBytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes; - /** Type arrayType */ - arrayType?: (google.bigtable.v2.Type.IArray|null); + /** + * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * @param message OrderedCodeBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Type mapType */ - mapType?: (google.bigtable.v2.Type.IMap|null); - } + /** + * Converts this OrderedCodeBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a Type. */ - class Type implements IType { + /** + * Gets the default type url for OrderedCodeBytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } - /** - * Constructs a new Type. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IType); + /** Properties of a Bool. */ + interface IBool { + } - /** Type bytesType. */ - public bytesType?: (google.bigtable.v2.Type.IBytes|null); + /** Represents a Bool. */ + class Bool implements IBool { - /** Type stringType. */ - public stringType?: (google.bigtable.v2.Type.IString|null); + /** + * Constructs a new Bool. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.IBool); - /** Type int64Type. */ - public int64Type?: (google.bigtable.v2.Type.IInt64|null); + /** + * Creates a new Bool instance using the specified properties. + * @param [properties] Properties to set + * @returns Bool instance + */ + public static create(properties?: google.bigtable.v2.Type.IBool): google.bigtable.v2.Type.Bool; - /** Type float32Type. */ - public float32Type?: (google.bigtable.v2.Type.IFloat32|null); + /** + * Encodes the specified Bool message. Does not implicitly {@link google.bigtable.v2.Type.Bool.verify|verify} messages. + * @param message Bool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.IBool, writer?: $protobuf.Writer): $protobuf.Writer; - /** Type float64Type. */ - public float64Type?: (google.bigtable.v2.Type.IFloat64|null); + /** + * Encodes the specified Bool message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bool.verify|verify} messages. + * @param message Bool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.IBool, writer?: $protobuf.Writer): $protobuf.Writer; - /** Type boolType. */ - public boolType?: (google.bigtable.v2.Type.IBool|null); + /** + * Decodes a Bool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Bool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Bool; - /** Type timestampType. */ - public timestampType?: (google.bigtable.v2.Type.ITimestamp|null); + /** + * Decodes a Bool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Bool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Bool; - /** Type dateType. */ - public dateType?: (google.bigtable.v2.Type.IDate|null); + /** + * Verifies a Bool message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Type aggregateType. */ - public aggregateType?: (google.bigtable.v2.Type.IAggregate|null); + /** + * Creates a Bool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Bool + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Bool; - /** Type structType. */ - public structType?: (google.bigtable.v2.Type.IStruct|null); + /** + * Creates a plain object from a Bool message. Also converts values to other types if specified. + * @param message Bool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Bool, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Type arrayType. */ - public arrayType?: (google.bigtable.v2.Type.IArray|null); + /** + * Converts this Bool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Type mapType. */ - public mapType?: (google.bigtable.v2.Type.IMap|null); + /** + * Gets the default type url for Bool + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Type kind. */ - public kind?: ("bytesType"|"stringType"|"int64Type"|"float32Type"|"float64Type"|"boolType"|"timestampType"|"dateType"|"aggregateType"|"structType"|"arrayType"|"mapType"); + /** Properties of a Float32. */ + interface IFloat32 { + } - /** - * Creates a new Type instance using the specified properties. - * @param [properties] Properties to set - * @returns Type instance - */ - public static create(properties?: google.bigtable.v2.IType): google.bigtable.v2.Type; + /** Represents a Float32. */ + class Float32 implements IFloat32 { - /** - * Encodes the specified Type message. Does not implicitly {@link google.bigtable.v2.Type.verify|verify} messages. - * @param message Type message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IType, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Float32. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.IFloat32); - /** - * Encodes the specified Type message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.verify|verify} messages. - * @param message Type message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IType, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Float32 instance using the specified properties. + * @param [properties] Properties to set + * @returns Float32 instance + */ + public static create(properties?: google.bigtable.v2.Type.IFloat32): google.bigtable.v2.Type.Float32; - /** - * Decodes a Type message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Type - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type; + /** + * Encodes the specified Float32 message. Does not implicitly {@link google.bigtable.v2.Type.Float32.verify|verify} messages. + * @param message Float32 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.IFloat32, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Type message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Type - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type; + /** + * Encodes the specified Float32 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Float32.verify|verify} messages. + * @param message Float32 message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.IFloat32, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Type message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a Float32 message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Float32 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Float32; - /** - * Creates a Type message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Type - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type; + /** + * Decodes a Float32 message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Float32 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Float32; - /** - * Creates a plain object from a Type message. Also converts values to other types if specified. - * @param message Type - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a Float32 message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this Type to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a Float32 message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Float32 + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Float32; - /** - * Gets the default type url for Type - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a Float32 message. Also converts values to other types if specified. + * @param message Float32 + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Float32, options?: $protobuf.IConversionOptions): { [k: string]: any }; - namespace Type { + /** + * Converts this Float32 to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a Bytes. */ - interface IBytes { + /** + * Gets the default type url for Float32 + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Bytes encoding */ - encoding?: (google.bigtable.v2.Type.Bytes.IEncoding|null); + /** Properties of a Float64. */ + interface IFloat64 { } - /** Represents a Bytes. */ - class Bytes implements IBytes { + /** Represents a Float64. */ + class Float64 implements IFloat64 { /** - * Constructs a new Bytes. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.IBytes); - - /** Bytes encoding. */ - public encoding?: (google.bigtable.v2.Type.Bytes.IEncoding|null); + * Constructs a new Float64. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.IFloat64); /** - * Creates a new Bytes instance using the specified properties. + * Creates a new Float64 instance using the specified properties. * @param [properties] Properties to set - * @returns Bytes instance + * @returns Float64 instance */ - public static create(properties?: google.bigtable.v2.Type.IBytes): google.bigtable.v2.Type.Bytes; + public static create(properties?: google.bigtable.v2.Type.IFloat64): google.bigtable.v2.Type.Float64; /** - * Encodes the specified Bytes message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.verify|verify} messages. - * @param message Bytes message or plain object to encode + * Encodes the specified Float64 message. Does not implicitly {@link google.bigtable.v2.Type.Float64.verify|verify} messages. + * @param message Float64 message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.Type.IBytes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.Type.IFloat64, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Bytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.verify|verify} messages. - * @param message Bytes message or plain object to encode + * Encodes the specified Float64 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Float64.verify|verify} messages. + * @param message Float64 message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.Type.IBytes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.Type.IFloat64, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Bytes message from the specified reader or buffer. + * Decodes a Float64 message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Bytes + * @returns Float64 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Bytes; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Float64; /** - * Decodes a Bytes message from the specified reader or buffer, length delimited. + * Decodes a Float64 message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Bytes + * @returns Float64 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Bytes; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Float64; /** - * Verifies a Bytes message. + * Verifies a Float64 message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Bytes message from a plain object. Also converts values to their respective internal types. + * Creates a Float64 message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Bytes + * @returns Float64 */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Bytes; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Float64; /** - * Creates a plain object from a Bytes message. Also converts values to other types if specified. - * @param message Bytes + * Creates a plain object from a Float64 message. Also converts values to other types if specified. + * @param message Float64 * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Type.Bytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Bytes to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Type.Float64, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Gets the default type url for Bytes - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Bytes { - - /** Properties of an Encoding. */ - interface IEncoding { - - /** Encoding raw */ - raw?: (google.bigtable.v2.Type.Bytes.Encoding.IRaw|null); - } - - /** Represents an Encoding. */ - class Encoding implements IEncoding { - - /** - * Constructs a new Encoding. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.Bytes.IEncoding); - - /** Encoding raw. */ - public raw?: (google.bigtable.v2.Type.Bytes.Encoding.IRaw|null); - - /** Encoding encoding. */ - public encoding?: "raw"; - - /** - * Creates a new Encoding instance using the specified properties. - * @param [properties] Properties to set - * @returns Encoding instance - */ - public static create(properties?: google.bigtable.v2.Type.Bytes.IEncoding): google.bigtable.v2.Type.Bytes.Encoding; - - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Type.Bytes.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.verify|verify} messages. - * @param message Encoding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.Bytes.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Encoding message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Bytes.Encoding; - - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Bytes.Encoding; - - /** - * Verifies an Encoding message. - * @param message Plain 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 Encoding message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Encoding - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Bytes.Encoding; - - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @param message Encoding - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.Bytes.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Encoding to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Encoding - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Encoding { - - /** Properties of a Raw. */ - interface IRaw { - } - - /** Represents a Raw. */ - class Raw implements IRaw { - - /** - * Constructs a new Raw. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.Bytes.Encoding.IRaw); - - /** - * Creates a new Raw instance using the specified properties. - * @param [properties] Properties to set - * @returns Raw instance - */ - public static create(properties?: google.bigtable.v2.Type.Bytes.Encoding.IRaw): google.bigtable.v2.Type.Bytes.Encoding.Raw; - - /** - * Encodes the specified Raw message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. - * @param message Raw message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Type.Bytes.Encoding.IRaw, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Raw message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. - * @param message Raw message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.Bytes.Encoding.IRaw, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Raw message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Bytes.Encoding.Raw; - - /** - * Decodes a Raw message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Bytes.Encoding.Raw; - - /** - * Verifies a Raw message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Raw message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Raw - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Bytes.Encoding.Raw; - - /** - * Creates a plain object from a Raw message. Also converts values to other types if specified. - * @param message Raw - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.Bytes.Encoding.Raw, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Raw to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Raw - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + * Converts this Float64 to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Float64 + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a String. */ - interface IString { + /** Properties of a Timestamp. */ + interface ITimestamp { - /** String encoding */ - encoding?: (google.bigtable.v2.Type.String.IEncoding|null); + /** Timestamp encoding */ + encoding?: (google.bigtable.v2.Type.Timestamp.IEncoding|null); } - /** Represents a String. */ - class String implements IString { + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { /** - * Constructs a new String. + * Constructs a new Timestamp. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.Type.IString); + constructor(properties?: google.bigtable.v2.Type.ITimestamp); - /** String encoding. */ - public encoding?: (google.bigtable.v2.Type.String.IEncoding|null); + /** Timestamp encoding. */ + public encoding?: (google.bigtable.v2.Type.Timestamp.IEncoding|null); /** - * Creates a new String instance using the specified properties. + * Creates a new Timestamp instance using the specified properties. * @param [properties] Properties to set - * @returns String instance + * @returns Timestamp instance */ - public static create(properties?: google.bigtable.v2.Type.IString): google.bigtable.v2.Type.String; + public static create(properties?: google.bigtable.v2.Type.ITimestamp): google.bigtable.v2.Type.Timestamp; /** - * Encodes the specified String message. Does not implicitly {@link google.bigtable.v2.Type.String.verify|verify} messages. - * @param message String message or plain object to encode + * Encodes the specified Timestamp message. Does not implicitly {@link google.bigtable.v2.Type.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.bigtable.v2.Type.IString, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.Type.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified String message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.verify|verify} messages. - * @param message String message or plain object to encode + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.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.bigtable.v2.Type.IString, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.Type.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a String message from the specified reader or buffer. + * 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 String + * @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.bigtable.v2.Type.String; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Timestamp; /** - * Decodes a String message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns String + * @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.bigtable.v2.Type.String; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Timestamp; /** - * Verifies a String message. + * 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 String message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns String + * @returns Timestamp */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.String; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Timestamp; /** - * Creates a plain object from a String message. Also converts values to other types if specified. - * @param message String + * 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.bigtable.v2.Type.String, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Type.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this String to JSON. + * Converts this Timestamp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for String + * 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; } - namespace String { + namespace Timestamp { /** Properties of an Encoding. */ interface IEncoding { - /** Encoding utf8Raw */ - utf8Raw?: (google.bigtable.v2.Type.String.Encoding.IUtf8Raw|null); - - /** Encoding utf8Bytes */ - utf8Bytes?: (google.bigtable.v2.Type.String.Encoding.IUtf8Bytes|null); + /** Encoding unixMicrosInt64 */ + unixMicrosInt64?: (google.bigtable.v2.Type.Int64.IEncoding|null); } /** Represents an Encoding. */ @@ -25936,39 +28525,36 @@ export namespace google { * Constructs a new Encoding. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.Type.String.IEncoding); - - /** Encoding utf8Raw. */ - public utf8Raw?: (google.bigtable.v2.Type.String.Encoding.IUtf8Raw|null); + constructor(properties?: google.bigtable.v2.Type.Timestamp.IEncoding); - /** Encoding utf8Bytes. */ - public utf8Bytes?: (google.bigtable.v2.Type.String.Encoding.IUtf8Bytes|null); + /** Encoding unixMicrosInt64. */ + public unixMicrosInt64?: (google.bigtable.v2.Type.Int64.IEncoding|null); /** Encoding encoding. */ - public encoding?: ("utf8Raw"|"utf8Bytes"); + public encoding?: "unixMicrosInt64"; /** * Creates a new Encoding instance using the specified properties. * @param [properties] Properties to set * @returns Encoding instance */ - public static create(properties?: google.bigtable.v2.Type.String.IEncoding): google.bigtable.v2.Type.String.Encoding; + public static create(properties?: google.bigtable.v2.Type.Timestamp.IEncoding): google.bigtable.v2.Type.Timestamp.Encoding; /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.verify|verify} messages. + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Timestamp.Encoding.verify|verify} messages. * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.Type.String.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.Type.Timestamp.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.verify|verify} messages. + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Timestamp.Encoding.verify|verify} messages. * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.Type.String.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.Type.Timestamp.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Encoding message from the specified reader or buffer. @@ -25978,7 +28564,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.String.Encoding; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Timestamp.Encoding; /** * Decodes an Encoding message from the specified reader or buffer, length delimited. @@ -25987,7 +28573,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.String.Encoding; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Timestamp.Encoding; /** * Verifies an Encoding message. @@ -26001,7 +28587,7 @@ export namespace google { * @param object Plain object * @returns Encoding */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.String.Encoding; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Timestamp.Encoding; /** * Creates a plain object from an Encoding message. Also converts values to other types if specified. @@ -26009,7 +28595,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Type.String.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Type.Timestamp.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Encoding to JSON. @@ -26024,297 +28610,318 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace Encoding { - - /** Properties of an Utf8Raw. */ - interface IUtf8Raw { - } - - /** Represents an Utf8Raw. */ - class Utf8Raw implements IUtf8Raw { - - /** - * Constructs a new Utf8Raw. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.String.Encoding.IUtf8Raw); - - /** - * Creates a new Utf8Raw instance using the specified properties. - * @param [properties] Properties to set - * @returns Utf8Raw instance - */ - public static create(properties?: google.bigtable.v2.Type.String.Encoding.IUtf8Raw): google.bigtable.v2.Type.String.Encoding.Utf8Raw; - - /** - * Encodes the specified Utf8Raw message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. - * @param message Utf8Raw message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Type.String.Encoding.IUtf8Raw, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Utf8Raw message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. - * @param message Utf8Raw message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.String.Encoding.IUtf8Raw, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Utf8Raw message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Utf8Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.String.Encoding.Utf8Raw; - - /** - * Decodes an Utf8Raw message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Utf8Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.String.Encoding.Utf8Raw; - - /** - * Verifies an Utf8Raw message. - * @param message Plain 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 Utf8Raw message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Utf8Raw - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.String.Encoding.Utf8Raw; - - /** - * Creates a plain object from an Utf8Raw message. Also converts values to other types if specified. - * @param message Utf8Raw - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.String.Encoding.Utf8Raw, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Utf8Raw to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Utf8Raw - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an Utf8Bytes. */ - interface IUtf8Bytes { - } - - /** Represents an Utf8Bytes. */ - class Utf8Bytes implements IUtf8Bytes { + /** Properties of a Date. */ + interface IDate { + } - /** - * Constructs a new Utf8Bytes. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.String.Encoding.IUtf8Bytes); + /** Represents a Date. */ + class Date implements IDate { - /** - * Creates a new Utf8Bytes instance using the specified properties. - * @param [properties] Properties to set - * @returns Utf8Bytes instance - */ - public static create(properties?: google.bigtable.v2.Type.String.Encoding.IUtf8Bytes): google.bigtable.v2.Type.String.Encoding.Utf8Bytes; + /** + * Constructs a new Date. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.IDate); - /** - * Encodes the specified Utf8Bytes message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. - * @param message Utf8Bytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Type.String.Encoding.IUtf8Bytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Date instance using the specified properties. + * @param [properties] Properties to set + * @returns Date instance + */ + public static create(properties?: google.bigtable.v2.Type.IDate): google.bigtable.v2.Type.Date; - /** - * Encodes the specified Utf8Bytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. - * @param message Utf8Bytes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.String.Encoding.IUtf8Bytes, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Date message. Does not implicitly {@link google.bigtable.v2.Type.Date.verify|verify} messages. + * @param message Date message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.IDate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an Utf8Bytes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Utf8Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.String.Encoding.Utf8Bytes; + /** + * Encodes the specified Date message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Date.verify|verify} messages. + * @param message Date message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.IDate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an Utf8Bytes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Utf8Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.String.Encoding.Utf8Bytes; + /** + * Decodes a Date message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Date + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Date; - /** - * Verifies an Utf8Bytes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a Date message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Date + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Date; - /** - * Creates an Utf8Bytes message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Utf8Bytes - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.String.Encoding.Utf8Bytes; + /** + * Verifies a Date message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from an Utf8Bytes message. Also converts values to other types if specified. - * @param message Utf8Bytes - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.String.Encoding.Utf8Bytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a Date message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Date + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Date; - /** - * Converts this Utf8Bytes to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a Date message. Also converts values to other types if specified. + * @param message Date + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Date, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for Utf8Bytes - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Converts this Date to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Date + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Int64. */ - interface IInt64 { + /** Properties of a Struct. */ + interface IStruct { - /** Int64 encoding */ - encoding?: (google.bigtable.v2.Type.Int64.IEncoding|null); + /** Struct fields */ + fields?: (google.bigtable.v2.Type.Struct.IField[]|null); + + /** Struct encoding */ + encoding?: (google.bigtable.v2.Type.Struct.IEncoding|null); } - /** Represents an Int64. */ - class Int64 implements IInt64 { + /** Represents a Struct. */ + class Struct implements IStruct { /** - * Constructs a new Int64. + * Constructs a new Struct. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.Type.IInt64); + constructor(properties?: google.bigtable.v2.Type.IStruct); - /** Int64 encoding. */ - public encoding?: (google.bigtable.v2.Type.Int64.IEncoding|null); + /** Struct fields. */ + public fields: google.bigtable.v2.Type.Struct.IField[]; + + /** Struct encoding. */ + public encoding?: (google.bigtable.v2.Type.Struct.IEncoding|null); /** - * Creates a new Int64 instance using the specified properties. + * Creates a new Struct instance using the specified properties. * @param [properties] Properties to set - * @returns Int64 instance + * @returns Struct instance */ - public static create(properties?: google.bigtable.v2.Type.IInt64): google.bigtable.v2.Type.Int64; + public static create(properties?: google.bigtable.v2.Type.IStruct): google.bigtable.v2.Type.Struct; /** - * Encodes the specified Int64 message. Does not implicitly {@link google.bigtable.v2.Type.Int64.verify|verify} messages. - * @param message Int64 message or plain object to encode + * Encodes the specified Struct message. Does not implicitly {@link google.bigtable.v2.Type.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.bigtable.v2.Type.IInt64, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.Type.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Int64 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.verify|verify} messages. - * @param message Int64 message or plain object to encode + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.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.bigtable.v2.Type.IInt64, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.Type.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Int64 message from the specified reader or buffer. + * 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 Int64 + * @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.bigtable.v2.Type.Int64; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Struct; /** - * Decodes an Int64 message from the specified reader or buffer, length delimited. + * Decodes a Struct message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Int64 + * @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.bigtable.v2.Type.Int64; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Struct; /** - * Verifies an Int64 message. + * 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 an Int64 message from a plain object. Also converts values to their respective internal types. + * Creates a Struct message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Int64 + * @returns Struct */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Int64; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Struct; /** - * Creates a plain object from an Int64 message. Also converts values to other types if specified. - * @param message Int64 + * 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.bigtable.v2.Type.Int64, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Type.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; + } + + namespace Struct { + + /** Properties of a Field. */ + interface IField { + + /** Field fieldName */ + fieldName?: (string|null); + + /** Field type */ + type?: (google.bigtable.v2.IType|null); + } + + /** Represents a Field. */ + class Field implements IField { + + /** + * Constructs a new Field. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.Struct.IField); + + /** Field fieldName. */ + public fieldName: string; + + /** Field type. */ + public type?: (google.bigtable.v2.IType|null); + + /** + * Creates a new Field instance using the specified properties. + * @param [properties] Properties to set + * @returns Field instance + */ + public static create(properties?: google.bigtable.v2.Type.Struct.IField): google.bigtable.v2.Type.Struct.Field; + + /** + * Encodes the specified Field message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.Struct.IField, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Field message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Struct.IField, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Field message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Struct.Field; + + /** + * Decodes a Field message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Struct.Field; + + /** + * Verifies a Field message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Field message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Field + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Struct.Field; - /** - * Converts this Int64 to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @param message Field + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Struct.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for Int64 - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this Field to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace Int64 { + /** + * Gets the default type url for Field + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } /** Properties of an Encoding. */ interface IEncoding { - /** Encoding bigEndianBytes */ - bigEndianBytes?: (google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes|null); + /** Encoding singleton */ + singleton?: (google.bigtable.v2.Type.Struct.Encoding.ISingleton|null); + + /** Encoding delimitedBytes */ + delimitedBytes?: (google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes|null); + + /** Encoding orderedCodeBytes */ + orderedCodeBytes?: (google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes|null); } /** Represents an Encoding. */ @@ -26324,36 +28931,42 @@ export namespace google { * Constructs a new Encoding. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.Type.Int64.IEncoding); + constructor(properties?: google.bigtable.v2.Type.Struct.IEncoding); - /** Encoding bigEndianBytes. */ - public bigEndianBytes?: (google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes|null); + /** Encoding singleton. */ + public singleton?: (google.bigtable.v2.Type.Struct.Encoding.ISingleton|null); + + /** Encoding delimitedBytes. */ + public delimitedBytes?: (google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes|null); + + /** Encoding orderedCodeBytes. */ + public orderedCodeBytes?: (google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes|null); /** Encoding encoding. */ - public encoding?: "bigEndianBytes"; + public encoding?: ("singleton"|"delimitedBytes"|"orderedCodeBytes"); /** * Creates a new Encoding instance using the specified properties. * @param [properties] Properties to set * @returns Encoding instance */ - public static create(properties?: google.bigtable.v2.Type.Int64.IEncoding): google.bigtable.v2.Type.Int64.Encoding; + public static create(properties?: google.bigtable.v2.Type.Struct.IEncoding): google.bigtable.v2.Type.Struct.Encoding; /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.verify|verify} messages. + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.verify|verify} messages. * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.Type.Int64.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.Type.Struct.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.verify|verify} messages. + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.verify|verify} messages. * @param message Encoding message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.Type.Int64.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.Type.Struct.IEncoding, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Encoding message from the specified reader or buffer. @@ -26363,7 +28976,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Int64.Encoding; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Struct.Encoding; /** * Decodes an Encoding message from the specified reader or buffer, length delimited. @@ -26372,7 +28985,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Int64.Encoding; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Struct.Encoding; /** * Verifies an Encoding message. @@ -26386,7 +28999,7 @@ export namespace google { * @param object Plain object * @returns Encoding */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Int64.Encoding; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Struct.Encoding; /** * Creates a plain object from an Encoding message. Also converts values to other types if specified. @@ -26394,7 +29007,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Type.Int64.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Type.Struct.Encoding, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Encoding to JSON. @@ -26412,763 +29025,493 @@ export namespace google { namespace Encoding { - /** Properties of a BigEndianBytes. */ - interface IBigEndianBytes { - - /** BigEndianBytes bytesType */ - bytesType?: (google.bigtable.v2.Type.IBytes|null); + /** Properties of a Singleton. */ + interface ISingleton { } - /** Represents a BigEndianBytes. */ - class BigEndianBytes implements IBigEndianBytes { + /** Represents a Singleton. */ + class Singleton implements ISingleton { /** - * Constructs a new BigEndianBytes. + * Constructs a new Singleton. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes); - - /** BigEndianBytes bytesType. */ - public bytesType?: (google.bigtable.v2.Type.IBytes|null); + constructor(properties?: google.bigtable.v2.Type.Struct.Encoding.ISingleton); /** - * Creates a new BigEndianBytes instance using the specified properties. + * Creates a new Singleton instance using the specified properties. * @param [properties] Properties to set - * @returns BigEndianBytes instance + * @returns Singleton instance */ - public static create(properties?: google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes): google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes; + public static create(properties?: google.bigtable.v2.Type.Struct.Encoding.ISingleton): google.bigtable.v2.Type.Struct.Encoding.Singleton; /** - * Encodes the specified BigEndianBytes message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. - * @param message BigEndianBytes message or plain object to encode + * Encodes the specified Singleton message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. + * @param message Singleton message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.Type.Struct.Encoding.ISingleton, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BigEndianBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. - * @param message BigEndianBytes message or plain object to encode + * Encodes the specified Singleton message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. + * @param message Singleton message or plain object to encode * @param [writer] Writer to encode to * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BigEndianBytes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BigEndianBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes; - - /** - * Decodes a BigEndianBytes message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BigEndianBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes; - - /** - * Verifies a BigEndianBytes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BigEndianBytes message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BigEndianBytes - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes; - - /** - * Creates a plain object from a BigEndianBytes message. Also converts values to other types if specified. - * @param message BigEndianBytes - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BigEndianBytes to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BigEndianBytes - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } - - /** Properties of a Bool. */ - interface IBool { - } - - /** Represents a Bool. */ - class Bool implements IBool { - - /** - * Constructs a new Bool. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.IBool); - - /** - * Creates a new Bool instance using the specified properties. - * @param [properties] Properties to set - * @returns Bool instance - */ - public static create(properties?: google.bigtable.v2.Type.IBool): google.bigtable.v2.Type.Bool; - - /** - * Encodes the specified Bool message. Does not implicitly {@link google.bigtable.v2.Type.Bool.verify|verify} messages. - * @param message Bool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Type.IBool, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Bool message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bool.verify|verify} messages. - * @param message Bool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.IBool, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Bool message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Bool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Bool; - - /** - * Decodes a Bool message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Bool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Bool; - - /** - * Verifies a Bool message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Bool message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Bool - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Bool; - - /** - * Creates a plain object from a Bool message. Also converts values to other types if specified. - * @param message Bool - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.Bool, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Bool to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Bool - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Float32. */ - interface IFloat32 { - } - - /** Represents a Float32. */ - class Float32 implements IFloat32 { - - /** - * Constructs a new Float32. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.IFloat32); - - /** - * Creates a new Float32 instance using the specified properties. - * @param [properties] Properties to set - * @returns Float32 instance - */ - public static create(properties?: google.bigtable.v2.Type.IFloat32): google.bigtable.v2.Type.Float32; - - /** - * Encodes the specified Float32 message. Does not implicitly {@link google.bigtable.v2.Type.Float32.verify|verify} messages. - * @param message Float32 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Type.IFloat32, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Float32 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Float32.verify|verify} messages. - * @param message Float32 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.IFloat32, writer?: $protobuf.Writer): $protobuf.Writer; + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Struct.Encoding.ISingleton, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Float32 message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Float32 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Float32; + /** + * Decodes a Singleton message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Singleton + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Struct.Encoding.Singleton; - /** - * Decodes a Float32 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Float32 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Float32; + /** + * Decodes a Singleton message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Singleton + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Struct.Encoding.Singleton; - /** - * Verifies a Float32 message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a Singleton message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a Float32 message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Float32 - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Float32; + /** + * Creates a Singleton message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Singleton + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Struct.Encoding.Singleton; - /** - * Creates a plain object from a Float32 message. Also converts values to other types if specified. - * @param message Float32 - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.Float32, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a Singleton message. Also converts values to other types if specified. + * @param message Singleton + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Struct.Encoding.Singleton, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Float32 to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this Singleton to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Float32 - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for Singleton + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a Float64. */ - interface IFloat64 { - } + /** Properties of a DelimitedBytes. */ + interface IDelimitedBytes { - /** Represents a Float64. */ - class Float64 implements IFloat64 { + /** DelimitedBytes delimiter */ + delimiter?: (Uint8Array|Buffer|string|null); + } - /** - * Constructs a new Float64. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.IFloat64); + /** Represents a DelimitedBytes. */ + class DelimitedBytes implements IDelimitedBytes { - /** - * Creates a new Float64 instance using the specified properties. - * @param [properties] Properties to set - * @returns Float64 instance - */ - public static create(properties?: google.bigtable.v2.Type.IFloat64): google.bigtable.v2.Type.Float64; + /** + * Constructs a new DelimitedBytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes); - /** - * Encodes the specified Float64 message. Does not implicitly {@link google.bigtable.v2.Type.Float64.verify|verify} messages. - * @param message Float64 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Type.IFloat64, writer?: $protobuf.Writer): $protobuf.Writer; + /** DelimitedBytes delimiter. */ + public delimiter: (Uint8Array|Buffer|string); - /** - * Encodes the specified Float64 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Float64.verify|verify} messages. - * @param message Float64 message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.IFloat64, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new DelimitedBytes instance using the specified properties. + * @param [properties] Properties to set + * @returns DelimitedBytes instance + */ + public static create(properties?: google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes): google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes; - /** - * Decodes a Float64 message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Float64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Float64; + /** + * Encodes the specified DelimitedBytes message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * @param message DelimitedBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Float64 message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Float64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Float64; + /** + * Encodes the specified DelimitedBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * @param message DelimitedBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Float64 message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a DelimitedBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DelimitedBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes; - /** - * Creates a Float64 message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Float64 - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Float64; + /** + * Decodes a DelimitedBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DelimitedBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes; - /** - * Creates a plain object from a Float64 message. Also converts values to other types if specified. - * @param message Float64 - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.Float64, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a DelimitedBytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this Float64 to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a DelimitedBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DelimitedBytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes; - /** - * Gets the default type url for Float64 - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a DelimitedBytes message. Also converts values to other types if specified. + * @param message DelimitedBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a Timestamp. */ - interface ITimestamp { - } + /** + * Converts this DelimitedBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** + * Gets the default type url for DelimitedBytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new Timestamp. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.ITimestamp); + /** Properties of an OrderedCodeBytes. */ + interface IOrderedCodeBytes { + } - /** - * Creates a new Timestamp instance using the specified properties. - * @param [properties] Properties to set - * @returns Timestamp instance - */ - public static create(properties?: google.bigtable.v2.Type.ITimestamp): google.bigtable.v2.Type.Timestamp; + /** Represents an OrderedCodeBytes. */ + class OrderedCodeBytes implements IOrderedCodeBytes { - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.bigtable.v2.Type.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.bigtable.v2.Type.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new OrderedCodeBytes. + * @param [properties] Properties to set + */ + constructor(properties?: google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes); - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.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.bigtable.v2.Type.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new OrderedCodeBytes instance using the specified properties. + * @param [properties] Properties to set + * @returns OrderedCodeBytes instance + */ + public static create(properties?: google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes): google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes; - /** - * 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.bigtable.v2.Type.Timestamp; + /** + * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. + * @param message OrderedCodeBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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.bigtable.v2.Type.Timestamp; + /** + * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. + * @param message OrderedCodeBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes; - /** - * 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.bigtable.v2.Type.Timestamp; + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes; - /** - * 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.bigtable.v2.Type.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies an OrderedCodeBytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this Timestamp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OrderedCodeBytes + */ + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes; - /** - * 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; + /** + * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * @param message OrderedCodeBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OrderedCodeBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OrderedCodeBytes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } - /** Properties of a Date. */ - interface IDate { + /** Properties of a Proto. */ + interface IProto { + + /** Proto schemaBundleId */ + schemaBundleId?: (string|null); + + /** Proto messageName */ + messageName?: (string|null); } - /** Represents a Date. */ - class Date implements IDate { + /** Represents a Proto. */ + class Proto implements IProto { /** - * Constructs a new Date. + * Constructs a new Proto. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.Type.IDate); + constructor(properties?: google.bigtable.v2.Type.IProto); + + /** Proto schemaBundleId. */ + public schemaBundleId: string; + + /** Proto messageName. */ + public messageName: string; /** - * Creates a new Date instance using the specified properties. + * Creates a new Proto instance using the specified properties. * @param [properties] Properties to set - * @returns Date instance + * @returns Proto instance */ - public static create(properties?: google.bigtable.v2.Type.IDate): google.bigtable.v2.Type.Date; + public static create(properties?: google.bigtable.v2.Type.IProto): google.bigtable.v2.Type.Proto; /** - * Encodes the specified Date message. Does not implicitly {@link google.bigtable.v2.Type.Date.verify|verify} messages. - * @param message Date message or plain object to encode + * Encodes the specified Proto message. Does not implicitly {@link google.bigtable.v2.Type.Proto.verify|verify} messages. + * @param message Proto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.Type.IDate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.Type.IProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Date message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Date.verify|verify} messages. - * @param message Date message or plain object to encode + * Encodes the specified Proto message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Proto.verify|verify} messages. + * @param message Proto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.Type.IDate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.Type.IProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Date message from the specified reader or buffer. + * Decodes a Proto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Date + * @returns Proto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Date; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Proto; /** - * Decodes a Date message from the specified reader or buffer, length delimited. + * Decodes a Proto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Date + * @returns Proto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Date; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Proto; /** - * Verifies a Date message. + * Verifies a Proto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Date message from a plain object. Also converts values to their respective internal types. + * Creates a Proto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Date + * @returns Proto */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Date; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Proto; /** - * Creates a plain object from a Date message. Also converts values to other types if specified. - * @param message Date + * Creates a plain object from a Proto message. Also converts values to other types if specified. + * @param message Proto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Type.Date, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Type.Proto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Date to JSON. + * Converts this Proto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Date + * Gets the default type url for Proto * @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 { + /** Properties of an Enum. */ + interface IEnum { - /** Struct fields */ - fields?: (google.bigtable.v2.Type.Struct.IField[]|null); + /** Enum schemaBundleId */ + schemaBundleId?: (string|null); + + /** Enum enumName */ + enumName?: (string|null); } - /** Represents a Struct. */ - class Struct implements IStruct { + /** Represents an Enum. */ + class Enum implements IEnum { /** - * Constructs a new Struct. + * Constructs a new Enum. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.Type.IStruct); + constructor(properties?: google.bigtable.v2.Type.IEnum); - /** Struct fields. */ - public fields: google.bigtable.v2.Type.Struct.IField[]; + /** Enum schemaBundleId. */ + public schemaBundleId: string; + + /** Enum enumName. */ + public enumName: string; /** - * Creates a new Struct instance using the specified properties. + * Creates a new Enum instance using the specified properties. * @param [properties] Properties to set - * @returns Struct instance + * @returns Enum instance */ - public static create(properties?: google.bigtable.v2.Type.IStruct): google.bigtable.v2.Type.Struct; + public static create(properties?: google.bigtable.v2.Type.IEnum): google.bigtable.v2.Type.Enum; /** - * Encodes the specified Struct message. Does not implicitly {@link google.bigtable.v2.Type.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode + * Encodes the specified Enum message. Does not implicitly {@link google.bigtable.v2.Type.Enum.verify|verify} messages. + * @param message Enum message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.Type.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.Type.IEnum, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode + * Encodes the specified Enum message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Enum.verify|verify} messages. + * @param message Enum message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.Type.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.Type.IEnum, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Struct message from the specified reader or buffer. + * Decodes an Enum message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Struct + * @returns Enum * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Struct; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Enum; /** - * Decodes a Struct message from the specified reader or buffer, length delimited. + * Decodes an Enum message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Struct + * @returns Enum * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Struct; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Enum; /** - * Verifies a Struct message. + * Verifies an Enum message. * @param message Plain object 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. + * Creates an Enum message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Struct + * @returns Enum */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Struct; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Enum; /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. - * @param message Struct + * Creates a plain object from an Enum message. Also converts values to other types if specified. + * @param message Enum * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.Type.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.Type.Enum, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Struct to JSON. + * Converts this Enum to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Struct + * Gets the default type url for Enum * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Struct { - - /** Properties of a Field. */ - interface IField { - - /** Field fieldName */ - fieldName?: (string|null); - - /** Field type */ - type?: (google.bigtable.v2.IType|null); - } - - /** Represents a Field. */ - class Field implements IField { - - /** - * Constructs a new Field. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.Type.Struct.IField); - - /** Field fieldName. */ - public fieldName: string; - - /** Field type. */ - public type?: (google.bigtable.v2.IType|null); - - /** - * Creates a new Field instance using the specified properties. - * @param [properties] Properties to set - * @returns Field instance - */ - public static create(properties?: google.bigtable.v2.Type.Struct.IField): google.bigtable.v2.Type.Struct.Field; - - /** - * Encodes the specified Field message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.Type.Struct.IField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.Type.Struct.IField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Field message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.Type.Struct.Field; - - /** - * Decodes a Field message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.Type.Struct.Field; - - /** - * Verifies a Field message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Field - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.Type.Struct.Field; - - /** - * Creates a plain object from a Field message. Also converts values to other types if specified. - * @param message Field - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.Type.Struct.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Field to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Field - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - /** Properties of an Array. */ interface IArray { diff --git a/protos/protos.js b/protos/protos.js index f74b69963..96a130688 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -11974,6 +11974,7 @@ * @property {google.protobuf.ITimestamp|null} [createTime] Instance createTime * @property {boolean|null} [satisfiesPzs] Instance satisfiesPzs * @property {boolean|null} [satisfiesPzi] Instance satisfiesPzi + * @property {Object.|null} [tags] Instance tags */ /** @@ -11986,6 +11987,7 @@ */ function Instance(properties) { this.labels = {}; + this.tags = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12056,6 +12058,14 @@ */ Instance.prototype.satisfiesPzi = null; + /** + * Instance tags. + * @member {Object.} tags + * @memberof google.bigtable.admin.v2.Instance + * @instance + */ + Instance.prototype.tags = $util.emptyObject; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -12112,6 +12122,9 @@ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.satisfiesPzs); if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) writer.uint32(/* id 11, wireType 0 =*/88).bool(message.satisfiesPzi); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); return writer; }; @@ -12199,6 +12212,29 @@ message.satisfiesPzi = reader.bool(); break; } + case 12: { + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -12282,6 +12318,14 @@ if (typeof message.satisfiesPzi !== "boolean") return "satisfiesPzi: boolean expected"; } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } return null; }; @@ -12357,6 +12401,13 @@ message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.satisfiesPzi != null) message.satisfiesPzi = Boolean(object.satisfiesPzi); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".google.bigtable.admin.v2.Instance.tags: object expected"); + message.tags = {}; + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); + } return message; }; @@ -12373,8 +12424,10 @@ if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) + if (options.objects || options.defaults) { object.labels = {}; + object.tags = {}; + } if (options.defaults) { object.name = ""; object.displayName = ""; @@ -12408,6 +12461,11 @@ if (options.oneofs) object._satisfiesPzi = "satisfiesPzi"; } + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (var j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } return object; }; @@ -16112,6 +16170,7 @@ * @property {string|null} [name] LogicalView name * @property {string|null} [query] LogicalView query * @property {string|null} [etag] LogicalView etag + * @property {boolean|null} [deletionProtection] LogicalView deletionProtection */ /** @@ -16153,6 +16212,14 @@ */ LogicalView.prototype.etag = ""; + /** + * LogicalView deletionProtection. + * @member {boolean} deletionProtection + * @memberof google.bigtable.admin.v2.LogicalView + * @instance + */ + LogicalView.prototype.deletionProtection = false; + /** * Creates a new LogicalView instance using the specified properties. * @function create @@ -16183,6 +16250,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.query); if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.deletionProtection != null && Object.hasOwnProperty.call(message, "deletionProtection")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deletionProtection); return writer; }; @@ -16231,6 +16300,10 @@ message.etag = reader.string(); break; } + case 6: { + message.deletionProtection = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -16275,6 +16348,9 @@ if (message.etag != null && message.hasOwnProperty("etag")) if (!$util.isString(message.etag)) return "etag: string expected"; + if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) + if (typeof message.deletionProtection !== "boolean") + return "deletionProtection: boolean expected"; return null; }; @@ -16296,6 +16372,8 @@ message.query = String(object.query); if (object.etag != null) message.etag = String(object.etag); + if (object.deletionProtection != null) + message.deletionProtection = Boolean(object.deletionProtection); return message; }; @@ -16316,6 +16394,7 @@ object.name = ""; object.query = ""; object.etag = ""; + object.deletionProtection = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -16323,6 +16402,8 @@ object.query = message.query; if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; + if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) + object.deletionProtection = message.deletionProtection; return object; }; @@ -17930,6 +18011,171 @@ * @variation 2 */ + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createSchemaBundle}. + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @typedef CreateSchemaBundleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateSchemaBundle. + * @function createSchemaBundle + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.ICreateSchemaBundleRequest} request CreateSchemaBundleRequest message or plain object + * @param {google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundleCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BigtableTableAdmin.prototype.createSchemaBundle = function createSchemaBundle(request, callback) { + return this.rpcCall(createSchemaBundle, $root.google.bigtable.admin.v2.CreateSchemaBundleRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateSchemaBundle" }); + + /** + * Calls CreateSchemaBundle. + * @function createSchemaBundle + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.ICreateSchemaBundleRequest} request CreateSchemaBundleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateSchemaBundle}. + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @typedef UpdateSchemaBundleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateSchemaBundle. + * @function updateSchemaBundle + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleRequest} request UpdateSchemaBundleRequest message or plain object + * @param {google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundleCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BigtableTableAdmin.prototype.updateSchemaBundle = function updateSchemaBundle(request, callback) { + return this.rpcCall(updateSchemaBundle, $root.google.bigtable.admin.v2.UpdateSchemaBundleRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateSchemaBundle" }); + + /** + * Calls UpdateSchemaBundle. + * @function updateSchemaBundle + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleRequest} request UpdateSchemaBundleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSchemaBundle}. + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @typedef GetSchemaBundleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.admin.v2.SchemaBundle} [response] SchemaBundle + */ + + /** + * Calls GetSchemaBundle. + * @function getSchemaBundle + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.IGetSchemaBundleRequest} request GetSchemaBundleRequest message or plain object + * @param {google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundleCallback} callback Node-style callback called with the error, if any, and SchemaBundle + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BigtableTableAdmin.prototype.getSchemaBundle = function getSchemaBundle(request, callback) { + return this.rpcCall(getSchemaBundle, $root.google.bigtable.admin.v2.GetSchemaBundleRequest, $root.google.bigtable.admin.v2.SchemaBundle, request, callback); + }, "name", { value: "GetSchemaBundle" }); + + /** + * Calls GetSchemaBundle. + * @function getSchemaBundle + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.IGetSchemaBundleRequest} request GetSchemaBundleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSchemaBundles}. + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @typedef ListSchemaBundlesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.admin.v2.ListSchemaBundlesResponse} [response] ListSchemaBundlesResponse + */ + + /** + * Calls ListSchemaBundles. + * @function listSchemaBundles + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.IListSchemaBundlesRequest} request ListSchemaBundlesRequest message or plain object + * @param {google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundlesCallback} callback Node-style callback called with the error, if any, and ListSchemaBundlesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BigtableTableAdmin.prototype.listSchemaBundles = function listSchemaBundles(request, callback) { + return this.rpcCall(listSchemaBundles, $root.google.bigtable.admin.v2.ListSchemaBundlesRequest, $root.google.bigtable.admin.v2.ListSchemaBundlesResponse, request, callback); + }, "name", { value: "ListSchemaBundles" }); + + /** + * Calls ListSchemaBundles. + * @function listSchemaBundles + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.IListSchemaBundlesRequest} request ListSchemaBundlesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSchemaBundle}. + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @typedef DeleteSchemaBundleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteSchemaBundle. + * @function deleteSchemaBundle + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.IDeleteSchemaBundleRequest} request DeleteSchemaBundleRequest message or plain object + * @param {google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundleCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BigtableTableAdmin.prototype.deleteSchemaBundle = function deleteSchemaBundle(request, callback) { + return this.rpcCall(deleteSchemaBundle, $root.google.bigtable.admin.v2.DeleteSchemaBundleRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSchemaBundle" }); + + /** + * Calls DeleteSchemaBundle. + * @function deleteSchemaBundle + * @memberof google.bigtable.admin.v2.BigtableTableAdmin + * @instance + * @param {google.bigtable.admin.v2.IDeleteSchemaBundleRequest} request DeleteSchemaBundleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return BigtableTableAdmin; })(); @@ -29885,25 +30131,26 @@ return DeleteAuthorizedViewRequest; })(); - v2.RestoreInfo = (function() { + v2.CreateSchemaBundleRequest = (function() { /** - * Properties of a RestoreInfo. + * Properties of a CreateSchemaBundleRequest. * @memberof google.bigtable.admin.v2 - * @interface IRestoreInfo - * @property {google.bigtable.admin.v2.RestoreSourceType|null} [sourceType] RestoreInfo sourceType - * @property {google.bigtable.admin.v2.IBackupInfo|null} [backupInfo] RestoreInfo backupInfo + * @interface ICreateSchemaBundleRequest + * @property {string|null} [parent] CreateSchemaBundleRequest parent + * @property {string|null} [schemaBundleId] CreateSchemaBundleRequest schemaBundleId + * @property {google.bigtable.admin.v2.ISchemaBundle|null} [schemaBundle] CreateSchemaBundleRequest schemaBundle */ /** - * Constructs a new RestoreInfo. + * Constructs a new CreateSchemaBundleRequest. * @memberof google.bigtable.admin.v2 - * @classdesc Represents a RestoreInfo. - * @implements IRestoreInfo + * @classdesc Represents a CreateSchemaBundleRequest. + * @implements ICreateSchemaBundleRequest * @constructor - * @param {google.bigtable.admin.v2.IRestoreInfo=} [properties] Properties to set + * @param {google.bigtable.admin.v2.ICreateSchemaBundleRequest=} [properties] Properties to set */ - function RestoreInfo(properties) { + function CreateSchemaBundleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29911,105 +30158,105 @@ } /** - * RestoreInfo sourceType. - * @member {google.bigtable.admin.v2.RestoreSourceType} sourceType - * @memberof google.bigtable.admin.v2.RestoreInfo + * CreateSchemaBundleRequest parent. + * @member {string} parent + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @instance */ - RestoreInfo.prototype.sourceType = 0; + CreateSchemaBundleRequest.prototype.parent = ""; /** - * RestoreInfo backupInfo. - * @member {google.bigtable.admin.v2.IBackupInfo|null|undefined} backupInfo - * @memberof google.bigtable.admin.v2.RestoreInfo + * CreateSchemaBundleRequest schemaBundleId. + * @member {string} schemaBundleId + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @instance */ - RestoreInfo.prototype.backupInfo = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + CreateSchemaBundleRequest.prototype.schemaBundleId = ""; /** - * RestoreInfo sourceInfo. - * @member {"backupInfo"|undefined} sourceInfo - * @memberof google.bigtable.admin.v2.RestoreInfo + * CreateSchemaBundleRequest schemaBundle. + * @member {google.bigtable.admin.v2.ISchemaBundle|null|undefined} schemaBundle + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @instance */ - Object.defineProperty(RestoreInfo.prototype, "sourceInfo", { - get: $util.oneOfGetter($oneOfFields = ["backupInfo"]), - set: $util.oneOfSetter($oneOfFields) - }); + CreateSchemaBundleRequest.prototype.schemaBundle = null; /** - * Creates a new RestoreInfo instance using the specified properties. + * Creates a new CreateSchemaBundleRequest instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static - * @param {google.bigtable.admin.v2.IRestoreInfo=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.RestoreInfo} RestoreInfo instance + * @param {google.bigtable.admin.v2.ICreateSchemaBundleRequest=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.CreateSchemaBundleRequest} CreateSchemaBundleRequest instance */ - RestoreInfo.create = function create(properties) { - return new RestoreInfo(properties); + CreateSchemaBundleRequest.create = function create(properties) { + return new CreateSchemaBundleRequest(properties); }; /** - * Encodes the specified RestoreInfo message. Does not implicitly {@link google.bigtable.admin.v2.RestoreInfo.verify|verify} messages. + * Encodes the specified CreateSchemaBundleRequest message. Does not implicitly {@link google.bigtable.admin.v2.CreateSchemaBundleRequest.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static - * @param {google.bigtable.admin.v2.IRestoreInfo} message RestoreInfo message or plain object to encode + * @param {google.bigtable.admin.v2.ICreateSchemaBundleRequest} message CreateSchemaBundleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreInfo.encode = function encode(message, writer) { + CreateSchemaBundleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sourceType != null && Object.hasOwnProperty.call(message, "sourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sourceType); - if (message.backupInfo != null && Object.hasOwnProperty.call(message, "backupInfo")) - $root.google.bigtable.admin.v2.BackupInfo.encode(message.backupInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.schemaBundleId != null && Object.hasOwnProperty.call(message, "schemaBundleId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaBundleId); + if (message.schemaBundle != null && Object.hasOwnProperty.call(message, "schemaBundle")) + $root.google.bigtable.admin.v2.SchemaBundle.encode(message.schemaBundle, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified RestoreInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.RestoreInfo.verify|verify} messages. + * Encodes the specified CreateSchemaBundleRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.CreateSchemaBundleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static - * @param {google.bigtable.admin.v2.IRestoreInfo} message RestoreInfo message or plain object to encode + * @param {google.bigtable.admin.v2.ICreateSchemaBundleRequest} message CreateSchemaBundleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreInfo.encodeDelimited = function encodeDelimited(message, writer) { + CreateSchemaBundleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RestoreInfo message from the specified reader or buffer. + * Decodes a CreateSchemaBundleRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.RestoreInfo} RestoreInfo + * @returns {google.bigtable.admin.v2.CreateSchemaBundleRequest} CreateSchemaBundleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreInfo.decode = function decode(reader, length, error) { + CreateSchemaBundleRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.RestoreInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.CreateSchemaBundleRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.sourceType = reader.int32(); + message.parent = reader.string(); break; } case 2: { - message.backupInfo = $root.google.bigtable.admin.v2.BackupInfo.decode(reader, reader.uint32()); + message.schemaBundleId = reader.string(); + break; + } + case 3: { + message.schemaBundle = $root.google.bigtable.admin.v2.SchemaBundle.decode(reader, reader.uint32()); break; } default: @@ -30021,160 +30268,146 @@ }; /** - * Decodes a RestoreInfo message from the specified reader or buffer, length delimited. + * Decodes a CreateSchemaBundleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.RestoreInfo} RestoreInfo + * @returns {google.bigtable.admin.v2.CreateSchemaBundleRequest} CreateSchemaBundleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreInfo.decodeDelimited = function decodeDelimited(reader) { + CreateSchemaBundleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RestoreInfo message. + * Verifies a CreateSchemaBundleRequest message. * @function verify - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreInfo.verify = function verify(message) { + CreateSchemaBundleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.sourceType != null && message.hasOwnProperty("sourceType")) - switch (message.sourceType) { - default: - return "sourceType: enum value expected"; - case 0: - case 1: - break; - } - if (message.backupInfo != null && message.hasOwnProperty("backupInfo")) { - properties.sourceInfo = 1; - { - var error = $root.google.bigtable.admin.v2.BackupInfo.verify(message.backupInfo); - if (error) - return "backupInfo." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + if (!$util.isString(message.schemaBundleId)) + return "schemaBundleId: string expected"; + if (message.schemaBundle != null && message.hasOwnProperty("schemaBundle")) { + var error = $root.google.bigtable.admin.v2.SchemaBundle.verify(message.schemaBundle); + if (error) + return "schemaBundle." + error; } return null; }; /** - * Creates a RestoreInfo message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSchemaBundleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.RestoreInfo} RestoreInfo + * @returns {google.bigtable.admin.v2.CreateSchemaBundleRequest} CreateSchemaBundleRequest */ - RestoreInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.RestoreInfo) + CreateSchemaBundleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.CreateSchemaBundleRequest) return object; - var message = new $root.google.bigtable.admin.v2.RestoreInfo(); - switch (object.sourceType) { - default: - if (typeof object.sourceType === "number") { - message.sourceType = object.sourceType; - break; - } - break; - case "RESTORE_SOURCE_TYPE_UNSPECIFIED": - case 0: - message.sourceType = 0; - break; - case "BACKUP": - case 1: - message.sourceType = 1; - break; - } - if (object.backupInfo != null) { - if (typeof object.backupInfo !== "object") - throw TypeError(".google.bigtable.admin.v2.RestoreInfo.backupInfo: object expected"); - message.backupInfo = $root.google.bigtable.admin.v2.BackupInfo.fromObject(object.backupInfo); + var message = new $root.google.bigtable.admin.v2.CreateSchemaBundleRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.schemaBundleId != null) + message.schemaBundleId = String(object.schemaBundleId); + if (object.schemaBundle != null) { + if (typeof object.schemaBundle !== "object") + throw TypeError(".google.bigtable.admin.v2.CreateSchemaBundleRequest.schemaBundle: object expected"); + message.schemaBundle = $root.google.bigtable.admin.v2.SchemaBundle.fromObject(object.schemaBundle); } return message; }; /** - * Creates a plain object from a RestoreInfo message. Also converts values to other types if specified. + * Creates a plain object from a CreateSchemaBundleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static - * @param {google.bigtable.admin.v2.RestoreInfo} message RestoreInfo + * @param {google.bigtable.admin.v2.CreateSchemaBundleRequest} message CreateSchemaBundleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreInfo.toObject = function toObject(message, options) { + CreateSchemaBundleRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.sourceType = options.enums === String ? "RESTORE_SOURCE_TYPE_UNSPECIFIED" : 0; - if (message.sourceType != null && message.hasOwnProperty("sourceType")) - object.sourceType = options.enums === String ? $root.google.bigtable.admin.v2.RestoreSourceType[message.sourceType] === undefined ? message.sourceType : $root.google.bigtable.admin.v2.RestoreSourceType[message.sourceType] : message.sourceType; - if (message.backupInfo != null && message.hasOwnProperty("backupInfo")) { - object.backupInfo = $root.google.bigtable.admin.v2.BackupInfo.toObject(message.backupInfo, options); - if (options.oneofs) - object.sourceInfo = "backupInfo"; + if (options.defaults) { + object.parent = ""; + object.schemaBundleId = ""; + object.schemaBundle = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + object.schemaBundleId = message.schemaBundleId; + if (message.schemaBundle != null && message.hasOwnProperty("schemaBundle")) + object.schemaBundle = $root.google.bigtable.admin.v2.SchemaBundle.toObject(message.schemaBundle, options); return object; }; /** - * Converts this RestoreInfo to JSON. + * Converts this CreateSchemaBundleRequest to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @instance * @returns {Object.} JSON object */ - RestoreInfo.prototype.toJSON = function toJSON() { + CreateSchemaBundleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RestoreInfo + * Gets the default type url for CreateSchemaBundleRequest * @function getTypeUrl - * @memberof google.bigtable.admin.v2.RestoreInfo + * @memberof google.bigtable.admin.v2.CreateSchemaBundleRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RestoreInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateSchemaBundleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.RestoreInfo"; + return typeUrlPrefix + "/google.bigtable.admin.v2.CreateSchemaBundleRequest"; }; - return RestoreInfo; + return CreateSchemaBundleRequest; })(); - v2.ChangeStreamConfig = (function() { + v2.CreateSchemaBundleMetadata = (function() { /** - * Properties of a ChangeStreamConfig. + * Properties of a CreateSchemaBundleMetadata. * @memberof google.bigtable.admin.v2 - * @interface IChangeStreamConfig - * @property {google.protobuf.IDuration|null} [retentionPeriod] ChangeStreamConfig retentionPeriod + * @interface ICreateSchemaBundleMetadata + * @property {string|null} [name] CreateSchemaBundleMetadata name + * @property {google.protobuf.ITimestamp|null} [startTime] CreateSchemaBundleMetadata startTime + * @property {google.protobuf.ITimestamp|null} [endTime] CreateSchemaBundleMetadata endTime */ /** - * Constructs a new ChangeStreamConfig. + * Constructs a new CreateSchemaBundleMetadata. * @memberof google.bigtable.admin.v2 - * @classdesc Represents a ChangeStreamConfig. - * @implements IChangeStreamConfig + * @classdesc Represents a CreateSchemaBundleMetadata. + * @implements ICreateSchemaBundleMetadata * @constructor - * @param {google.bigtable.admin.v2.IChangeStreamConfig=} [properties] Properties to set + * @param {google.bigtable.admin.v2.ICreateSchemaBundleMetadata=} [properties] Properties to set */ - function ChangeStreamConfig(properties) { + function CreateSchemaBundleMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30182,77 +30415,105 @@ } /** - * ChangeStreamConfig retentionPeriod. - * @member {google.protobuf.IDuration|null|undefined} retentionPeriod - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * CreateSchemaBundleMetadata name. + * @member {string} name + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @instance */ - ChangeStreamConfig.prototype.retentionPeriod = null; + CreateSchemaBundleMetadata.prototype.name = ""; /** - * Creates a new ChangeStreamConfig instance using the specified properties. + * CreateSchemaBundleMetadata startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata + * @instance + */ + CreateSchemaBundleMetadata.prototype.startTime = null; + + /** + * CreateSchemaBundleMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata + * @instance + */ + CreateSchemaBundleMetadata.prototype.endTime = null; + + /** + * Creates a new CreateSchemaBundleMetadata instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static - * @param {google.bigtable.admin.v2.IChangeStreamConfig=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.ChangeStreamConfig} ChangeStreamConfig instance + * @param {google.bigtable.admin.v2.ICreateSchemaBundleMetadata=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.CreateSchemaBundleMetadata} CreateSchemaBundleMetadata instance */ - ChangeStreamConfig.create = function create(properties) { - return new ChangeStreamConfig(properties); + CreateSchemaBundleMetadata.create = function create(properties) { + return new CreateSchemaBundleMetadata(properties); }; /** - * Encodes the specified ChangeStreamConfig message. Does not implicitly {@link google.bigtable.admin.v2.ChangeStreamConfig.verify|verify} messages. + * Encodes the specified CreateSchemaBundleMetadata message. Does not implicitly {@link google.bigtable.admin.v2.CreateSchemaBundleMetadata.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static - * @param {google.bigtable.admin.v2.IChangeStreamConfig} message ChangeStreamConfig message or plain object to encode + * @param {google.bigtable.admin.v2.ICreateSchemaBundleMetadata} message CreateSchemaBundleMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeStreamConfig.encode = function encode(message, writer) { + CreateSchemaBundleMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.retentionPeriod != null && Object.hasOwnProperty.call(message, "retentionPeriod")) - $root.google.protobuf.Duration.encode(message.retentionPeriod, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChangeStreamConfig message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ChangeStreamConfig.verify|verify} messages. + * Encodes the specified CreateSchemaBundleMetadata message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.CreateSchemaBundleMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static - * @param {google.bigtable.admin.v2.IChangeStreamConfig} message ChangeStreamConfig message or plain object to encode + * @param {google.bigtable.admin.v2.ICreateSchemaBundleMetadata} message CreateSchemaBundleMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeStreamConfig.encodeDelimited = function encodeDelimited(message, writer) { + CreateSchemaBundleMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeStreamConfig message from the specified reader or buffer. + * Decodes a CreateSchemaBundleMetadata message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.ChangeStreamConfig} ChangeStreamConfig + * @returns {google.bigtable.admin.v2.CreateSchemaBundleMetadata} CreateSchemaBundleMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeStreamConfig.decode = function decode(reader, length, error) { + CreateSchemaBundleMetadata.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.ChangeStreamConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.CreateSchemaBundleMetadata(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.retentionPeriod = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + } + case 2: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -30264,137 +30525,151 @@ }; /** - * Decodes a ChangeStreamConfig message from the specified reader or buffer, length delimited. + * Decodes a CreateSchemaBundleMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.ChangeStreamConfig} ChangeStreamConfig + * @returns {google.bigtable.admin.v2.CreateSchemaBundleMetadata} CreateSchemaBundleMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeStreamConfig.decodeDelimited = function decodeDelimited(reader) { + CreateSchemaBundleMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeStreamConfig message. + * Verifies a CreateSchemaBundleMetadata message. * @function verify - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeStreamConfig.verify = function verify(message) { + CreateSchemaBundleMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.retentionPeriod != null && message.hasOwnProperty("retentionPeriod")) { - var error = $root.google.protobuf.Duration.verify(message.retentionPeriod); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); if (error) - return "retentionPeriod." + error; + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } return null; }; /** - * Creates a ChangeStreamConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSchemaBundleMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.ChangeStreamConfig} ChangeStreamConfig + * @returns {google.bigtable.admin.v2.CreateSchemaBundleMetadata} CreateSchemaBundleMetadata */ - ChangeStreamConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.ChangeStreamConfig) + CreateSchemaBundleMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.CreateSchemaBundleMetadata) return object; - var message = new $root.google.bigtable.admin.v2.ChangeStreamConfig(); - if (object.retentionPeriod != null) { - if (typeof object.retentionPeriod !== "object") - throw TypeError(".google.bigtable.admin.v2.ChangeStreamConfig.retentionPeriod: object expected"); - message.retentionPeriod = $root.google.protobuf.Duration.fromObject(object.retentionPeriod); + var message = new $root.google.bigtable.admin.v2.CreateSchemaBundleMetadata(); + if (object.name != null) + message.name = String(object.name); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.bigtable.admin.v2.CreateSchemaBundleMetadata.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.bigtable.admin.v2.CreateSchemaBundleMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from a ChangeStreamConfig message. Also converts values to other types if specified. + * Creates a plain object from a CreateSchemaBundleMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static - * @param {google.bigtable.admin.v2.ChangeStreamConfig} message ChangeStreamConfig + * @param {google.bigtable.admin.v2.CreateSchemaBundleMetadata} message CreateSchemaBundleMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeStreamConfig.toObject = function toObject(message, options) { + CreateSchemaBundleMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.retentionPeriod = null; - if (message.retentionPeriod != null && message.hasOwnProperty("retentionPeriod")) - object.retentionPeriod = $root.google.protobuf.Duration.toObject(message.retentionPeriod, options); + if (options.defaults) { + object.name = ""; + object.startTime = null; + object.endTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this ChangeStreamConfig to JSON. + * Converts this CreateSchemaBundleMetadata to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @instance * @returns {Object.} JSON object */ - ChangeStreamConfig.prototype.toJSON = function toJSON() { + CreateSchemaBundleMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChangeStreamConfig + * Gets the default type url for CreateSchemaBundleMetadata * @function getTypeUrl - * @memberof google.bigtable.admin.v2.ChangeStreamConfig + * @memberof google.bigtable.admin.v2.CreateSchemaBundleMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChangeStreamConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateSchemaBundleMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.ChangeStreamConfig"; + return typeUrlPrefix + "/google.bigtable.admin.v2.CreateSchemaBundleMetadata"; }; - return ChangeStreamConfig; + return CreateSchemaBundleMetadata; })(); - v2.Table = (function() { + v2.UpdateSchemaBundleRequest = (function() { /** - * Properties of a Table. + * Properties of an UpdateSchemaBundleRequest. * @memberof google.bigtable.admin.v2 - * @interface ITable - * @property {string|null} [name] Table name - * @property {Object.|null} [clusterStates] Table clusterStates - * @property {Object.|null} [columnFamilies] Table columnFamilies - * @property {google.bigtable.admin.v2.Table.TimestampGranularity|null} [granularity] Table granularity - * @property {google.bigtable.admin.v2.IRestoreInfo|null} [restoreInfo] Table restoreInfo - * @property {google.bigtable.admin.v2.IChangeStreamConfig|null} [changeStreamConfig] Table changeStreamConfig - * @property {boolean|null} [deletionProtection] Table deletionProtection - * @property {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy|null} [automatedBackupPolicy] Table automatedBackupPolicy - * @property {google.bigtable.admin.v2.Type.IStruct|null} [rowKeySchema] Table rowKeySchema + * @interface IUpdateSchemaBundleRequest + * @property {google.bigtable.admin.v2.ISchemaBundle|null} [schemaBundle] UpdateSchemaBundleRequest schemaBundle + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSchemaBundleRequest updateMask + * @property {boolean|null} [ignoreWarnings] UpdateSchemaBundleRequest ignoreWarnings */ /** - * Constructs a new Table. + * Constructs a new UpdateSchemaBundleRequest. * @memberof google.bigtable.admin.v2 - * @classdesc Represents a Table. - * @implements ITable + * @classdesc Represents an UpdateSchemaBundleRequest. + * @implements IUpdateSchemaBundleRequest * @constructor - * @param {google.bigtable.admin.v2.ITable=} [properties] Properties to set + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleRequest=} [properties] Properties to set */ - function Table(properties) { - this.clusterStates = {}; - this.columnFamilies = {}; + function UpdateSchemaBundleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30402,170 +30677,352 @@ } /** - * Table name. - * @member {string} name - * @memberof google.bigtable.admin.v2.Table - * @instance - */ - Table.prototype.name = ""; - - /** - * Table clusterStates. - * @member {Object.} clusterStates - * @memberof google.bigtable.admin.v2.Table + * UpdateSchemaBundleRequest schemaBundle. + * @member {google.bigtable.admin.v2.ISchemaBundle|null|undefined} schemaBundle + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest * @instance */ - Table.prototype.clusterStates = $util.emptyObject; + UpdateSchemaBundleRequest.prototype.schemaBundle = null; /** - * Table columnFamilies. - * @member {Object.} columnFamilies - * @memberof google.bigtable.admin.v2.Table + * UpdateSchemaBundleRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest * @instance */ - Table.prototype.columnFamilies = $util.emptyObject; + UpdateSchemaBundleRequest.prototype.updateMask = null; /** - * Table granularity. - * @member {google.bigtable.admin.v2.Table.TimestampGranularity} granularity - * @memberof google.bigtable.admin.v2.Table + * UpdateSchemaBundleRequest ignoreWarnings. + * @member {boolean} ignoreWarnings + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest * @instance */ - Table.prototype.granularity = 0; + UpdateSchemaBundleRequest.prototype.ignoreWarnings = false; /** - * Table restoreInfo. - * @member {google.bigtable.admin.v2.IRestoreInfo|null|undefined} restoreInfo - * @memberof google.bigtable.admin.v2.Table - * @instance + * Creates a new UpdateSchemaBundleRequest instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleRequest=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.UpdateSchemaBundleRequest} UpdateSchemaBundleRequest instance */ - Table.prototype.restoreInfo = null; + UpdateSchemaBundleRequest.create = function create(properties) { + return new UpdateSchemaBundleRequest(properties); + }; /** - * Table changeStreamConfig. - * @member {google.bigtable.admin.v2.IChangeStreamConfig|null|undefined} changeStreamConfig - * @memberof google.bigtable.admin.v2.Table - * @instance + * Encodes the specified UpdateSchemaBundleRequest message. Does not implicitly {@link google.bigtable.admin.v2.UpdateSchemaBundleRequest.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleRequest} message UpdateSchemaBundleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Table.prototype.changeStreamConfig = null; + UpdateSchemaBundleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schemaBundle != null && Object.hasOwnProperty.call(message, "schemaBundle")) + $root.google.bigtable.admin.v2.SchemaBundle.encode(message.schemaBundle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.ignoreWarnings != null && Object.hasOwnProperty.call(message, "ignoreWarnings")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignoreWarnings); + return writer; + }; /** - * Table deletionProtection. - * @member {boolean} deletionProtection - * @memberof google.bigtable.admin.v2.Table - * @instance + * Encodes the specified UpdateSchemaBundleRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.UpdateSchemaBundleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleRequest} message UpdateSchemaBundleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Table.prototype.deletionProtection = false; + UpdateSchemaBundleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Table automatedBackupPolicy. - * @member {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy|null|undefined} automatedBackupPolicy - * @memberof google.bigtable.admin.v2.Table - * @instance + * Decodes an UpdateSchemaBundleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.UpdateSchemaBundleRequest} UpdateSchemaBundleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.prototype.automatedBackupPolicy = null; - - /** - * Table rowKeySchema. - * @member {google.bigtable.admin.v2.Type.IStruct|null|undefined} rowKeySchema - * @memberof google.bigtable.admin.v2.Table + UpdateSchemaBundleRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.UpdateSchemaBundleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.schemaBundle = $root.google.bigtable.admin.v2.SchemaBundle.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.ignoreWarnings = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateSchemaBundleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.UpdateSchemaBundleRequest} UpdateSchemaBundleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateSchemaBundleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateSchemaBundleRequest message. + * @function verify + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateSchemaBundleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schemaBundle != null && message.hasOwnProperty("schemaBundle")) { + var error = $root.google.bigtable.admin.v2.SchemaBundle.verify(message.schemaBundle); + if (error) + return "schemaBundle." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.ignoreWarnings != null && message.hasOwnProperty("ignoreWarnings")) + if (typeof message.ignoreWarnings !== "boolean") + return "ignoreWarnings: boolean expected"; + return null; + }; + + /** + * Creates an UpdateSchemaBundleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.UpdateSchemaBundleRequest} UpdateSchemaBundleRequest + */ + UpdateSchemaBundleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.UpdateSchemaBundleRequest) + return object; + var message = new $root.google.bigtable.admin.v2.UpdateSchemaBundleRequest(); + if (object.schemaBundle != null) { + if (typeof object.schemaBundle !== "object") + throw TypeError(".google.bigtable.admin.v2.UpdateSchemaBundleRequest.schemaBundle: object expected"); + message.schemaBundle = $root.google.bigtable.admin.v2.SchemaBundle.fromObject(object.schemaBundle); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.bigtable.admin.v2.UpdateSchemaBundleRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.ignoreWarnings != null) + message.ignoreWarnings = Boolean(object.ignoreWarnings); + return message; + }; + + /** + * Creates a plain object from an UpdateSchemaBundleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.UpdateSchemaBundleRequest} message UpdateSchemaBundleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateSchemaBundleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.schemaBundle = null; + object.updateMask = null; + object.ignoreWarnings = false; + } + if (message.schemaBundle != null && message.hasOwnProperty("schemaBundle")) + object.schemaBundle = $root.google.bigtable.admin.v2.SchemaBundle.toObject(message.schemaBundle, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.ignoreWarnings != null && message.hasOwnProperty("ignoreWarnings")) + object.ignoreWarnings = message.ignoreWarnings; + return object; + }; + + /** + * Converts this UpdateSchemaBundleRequest to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest * @instance + * @returns {Object.} JSON object */ - Table.prototype.rowKeySchema = null; + UpdateSchemaBundleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Gets the default type url for UpdateSchemaBundleRequest + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateSchemaBundleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.UpdateSchemaBundleRequest"; + }; + + return UpdateSchemaBundleRequest; + })(); + + v2.UpdateSchemaBundleMetadata = (function() { /** - * Table automatedBackupConfig. - * @member {"automatedBackupPolicy"|undefined} automatedBackupConfig - * @memberof google.bigtable.admin.v2.Table + * Properties of an UpdateSchemaBundleMetadata. + * @memberof google.bigtable.admin.v2 + * @interface IUpdateSchemaBundleMetadata + * @property {string|null} [name] UpdateSchemaBundleMetadata name + * @property {google.protobuf.ITimestamp|null} [startTime] UpdateSchemaBundleMetadata startTime + * @property {google.protobuf.ITimestamp|null} [endTime] UpdateSchemaBundleMetadata endTime + */ + + /** + * Constructs a new UpdateSchemaBundleMetadata. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents an UpdateSchemaBundleMetadata. + * @implements IUpdateSchemaBundleMetadata + * @constructor + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleMetadata=} [properties] Properties to set + */ + function UpdateSchemaBundleMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateSchemaBundleMetadata name. + * @member {string} name + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @instance */ - Object.defineProperty(Table.prototype, "automatedBackupConfig", { - get: $util.oneOfGetter($oneOfFields = ["automatedBackupPolicy"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateSchemaBundleMetadata.prototype.name = ""; /** - * Creates a new Table instance using the specified properties. + * UpdateSchemaBundleMetadata startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata + * @instance + */ + UpdateSchemaBundleMetadata.prototype.startTime = null; + + /** + * UpdateSchemaBundleMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata + * @instance + */ + UpdateSchemaBundleMetadata.prototype.endTime = null; + + /** + * Creates a new UpdateSchemaBundleMetadata instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static - * @param {google.bigtable.admin.v2.ITable=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Table} Table instance + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleMetadata=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.UpdateSchemaBundleMetadata} UpdateSchemaBundleMetadata instance */ - Table.create = function create(properties) { - return new Table(properties); + UpdateSchemaBundleMetadata.create = function create(properties) { + return new UpdateSchemaBundleMetadata(properties); }; /** - * Encodes the specified Table message. Does not implicitly {@link google.bigtable.admin.v2.Table.verify|verify} messages. + * Encodes the specified UpdateSchemaBundleMetadata message. Does not implicitly {@link google.bigtable.admin.v2.UpdateSchemaBundleMetadata.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static - * @param {google.bigtable.admin.v2.ITable} message Table message or plain object to encode + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleMetadata} message UpdateSchemaBundleMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encode = function encode(message, writer) { + UpdateSchemaBundleMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.clusterStates != null && Object.hasOwnProperty.call(message, "clusterStates")) - for (var keys = Object.keys(message.clusterStates), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.bigtable.admin.v2.Table.ClusterState.encode(message.clusterStates[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.columnFamilies != null && Object.hasOwnProperty.call(message, "columnFamilies")) - for (var keys = Object.keys(message.columnFamilies), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.bigtable.admin.v2.ColumnFamily.encode(message.columnFamilies[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.granularity != null && Object.hasOwnProperty.call(message, "granularity")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.granularity); - if (message.restoreInfo != null && Object.hasOwnProperty.call(message, "restoreInfo")) - $root.google.bigtable.admin.v2.RestoreInfo.encode(message.restoreInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.changeStreamConfig != null && Object.hasOwnProperty.call(message, "changeStreamConfig")) - $root.google.bigtable.admin.v2.ChangeStreamConfig.encode(message.changeStreamConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.deletionProtection != null && Object.hasOwnProperty.call(message, "deletionProtection")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.deletionProtection); - if (message.automatedBackupPolicy != null && Object.hasOwnProperty.call(message, "automatedBackupPolicy")) - $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.encode(message.automatedBackupPolicy, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.rowKeySchema != null && Object.hasOwnProperty.call(message, "rowKeySchema")) - $root.google.bigtable.admin.v2.Type.Struct.encode(message.rowKeySchema, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.verify|verify} messages. + * Encodes the specified UpdateSchemaBundleMetadata message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.UpdateSchemaBundleMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static - * @param {google.bigtable.admin.v2.ITable} message Table message or plain object to encode + * @param {google.bigtable.admin.v2.IUpdateSchemaBundleMetadata} message UpdateSchemaBundleMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSchemaBundleMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes an UpdateSchemaBundleMetadata message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Table} Table + * @returns {google.bigtable.admin.v2.UpdateSchemaBundleMetadata} UpdateSchemaBundleMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decode = function decode(reader, length, error) { + UpdateSchemaBundleMetadata.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Table(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.UpdateSchemaBundleMetadata(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -30576,73 +31033,11 @@ break; } case 2: { - if (message.clusterStates === $util.emptyObject) - message.clusterStates = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.bigtable.admin.v2.Table.ClusterState.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.clusterStates[key] = value; + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 3: { - if (message.columnFamilies === $util.emptyObject) - message.columnFamilies = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.bigtable.admin.v2.ColumnFamily.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.columnFamilies[key] = value; - break; - } - case 4: { - message.granularity = reader.int32(); - break; - } - case 6: { - message.restoreInfo = $root.google.bigtable.admin.v2.RestoreInfo.decode(reader, reader.uint32()); - break; - } - case 8: { - message.changeStreamConfig = $root.google.bigtable.admin.v2.ChangeStreamConfig.decode(reader, reader.uint32()); - break; - } - case 9: { - message.deletionProtection = reader.bool(); - break; - } - case 13: { - message.automatedBackupPolicy = $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.decode(reader, reader.uint32()); - break; - } - case 15: { - message.rowKeySchema = $root.google.bigtable.admin.v2.Type.Struct.decode(reader, reader.uint32()); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -30654,860 +31049,608 @@ }; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes an UpdateSchemaBundleMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Table} Table + * @returns {google.bigtable.admin.v2.UpdateSchemaBundleMetadata} UpdateSchemaBundleMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decodeDelimited = function decodeDelimited(reader) { + UpdateSchemaBundleMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Table message. + * Verifies an UpdateSchemaBundleMetadata message. * @function verify - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Table.verify = function verify(message) { + UpdateSchemaBundleMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.clusterStates != null && message.hasOwnProperty("clusterStates")) { - if (!$util.isObject(message.clusterStates)) - return "clusterStates: object expected"; - var key = Object.keys(message.clusterStates); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.bigtable.admin.v2.Table.ClusterState.verify(message.clusterStates[key[i]]); - if (error) - return "clusterStates." + error; - } - } - if (message.columnFamilies != null && message.hasOwnProperty("columnFamilies")) { - if (!$util.isObject(message.columnFamilies)) - return "columnFamilies: object expected"; - var key = Object.keys(message.columnFamilies); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.bigtable.admin.v2.ColumnFamily.verify(message.columnFamilies[key[i]]); - if (error) - return "columnFamilies." + error; - } - } - if (message.granularity != null && message.hasOwnProperty("granularity")) - switch (message.granularity) { - default: - return "granularity: enum value expected"; - case 0: - case 1: - break; - } - if (message.restoreInfo != null && message.hasOwnProperty("restoreInfo")) { - var error = $root.google.bigtable.admin.v2.RestoreInfo.verify(message.restoreInfo); - if (error) - return "restoreInfo." + error; - } - if (message.changeStreamConfig != null && message.hasOwnProperty("changeStreamConfig")) { - var error = $root.google.bigtable.admin.v2.ChangeStreamConfig.verify(message.changeStreamConfig); + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); if (error) - return "changeStreamConfig." + error; - } - if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) - if (typeof message.deletionProtection !== "boolean") - return "deletionProtection: boolean expected"; - if (message.automatedBackupPolicy != null && message.hasOwnProperty("automatedBackupPolicy")) { - properties.automatedBackupConfig = 1; - { - var error = $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify(message.automatedBackupPolicy); - if (error) - return "automatedBackupPolicy." + error; - } + return "startTime." + error; } - if (message.rowKeySchema != null && message.hasOwnProperty("rowKeySchema")) { - var error = $root.google.bigtable.admin.v2.Type.Struct.verify(message.rowKeySchema); + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); if (error) - return "rowKeySchema." + error; + return "endTime." + error; } return null; }; /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSchemaBundleMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Table} Table + * @returns {google.bigtable.admin.v2.UpdateSchemaBundleMetadata} UpdateSchemaBundleMetadata */ - Table.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Table) + UpdateSchemaBundleMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.UpdateSchemaBundleMetadata) return object; - var message = new $root.google.bigtable.admin.v2.Table(); + var message = new $root.google.bigtable.admin.v2.UpdateSchemaBundleMetadata(); if (object.name != null) message.name = String(object.name); - if (object.clusterStates) { - if (typeof object.clusterStates !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.clusterStates: object expected"); - message.clusterStates = {}; - for (var keys = Object.keys(object.clusterStates), i = 0; i < keys.length; ++i) { - if (typeof object.clusterStates[keys[i]] !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.clusterStates: object expected"); - message.clusterStates[keys[i]] = $root.google.bigtable.admin.v2.Table.ClusterState.fromObject(object.clusterStates[keys[i]]); - } - } - if (object.columnFamilies) { - if (typeof object.columnFamilies !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.columnFamilies: object expected"); - message.columnFamilies = {}; - for (var keys = Object.keys(object.columnFamilies), i = 0; i < keys.length; ++i) { - if (typeof object.columnFamilies[keys[i]] !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.columnFamilies: object expected"); - message.columnFamilies[keys[i]] = $root.google.bigtable.admin.v2.ColumnFamily.fromObject(object.columnFamilies[keys[i]]); - } - } - switch (object.granularity) { - default: - if (typeof object.granularity === "number") { - message.granularity = object.granularity; - break; - } - break; - case "TIMESTAMP_GRANULARITY_UNSPECIFIED": - case 0: - message.granularity = 0; - break; - case "MILLIS": - case 1: - message.granularity = 1; - break; - } - if (object.restoreInfo != null) { - if (typeof object.restoreInfo !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.restoreInfo: object expected"); - message.restoreInfo = $root.google.bigtable.admin.v2.RestoreInfo.fromObject(object.restoreInfo); - } - if (object.changeStreamConfig != null) { - if (typeof object.changeStreamConfig !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.changeStreamConfig: object expected"); - message.changeStreamConfig = $root.google.bigtable.admin.v2.ChangeStreamConfig.fromObject(object.changeStreamConfig); - } - if (object.deletionProtection != null) - message.deletionProtection = Boolean(object.deletionProtection); - if (object.automatedBackupPolicy != null) { - if (typeof object.automatedBackupPolicy !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.automatedBackupPolicy: object expected"); - message.automatedBackupPolicy = $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.fromObject(object.automatedBackupPolicy); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.bigtable.admin.v2.UpdateSchemaBundleMetadata.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } - if (object.rowKeySchema != null) { - if (typeof object.rowKeySchema !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.rowKeySchema: object expected"); - message.rowKeySchema = $root.google.bigtable.admin.v2.Type.Struct.fromObject(object.rowKeySchema); + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.bigtable.admin.v2.UpdateSchemaBundleMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from a Table message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSchemaBundleMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static - * @param {google.bigtable.admin.v2.Table} message Table + * @param {google.bigtable.admin.v2.UpdateSchemaBundleMetadata} message UpdateSchemaBundleMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Table.toObject = function toObject(message, options) { + UpdateSchemaBundleMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) { - object.clusterStates = {}; - object.columnFamilies = {}; - } if (options.defaults) { object.name = ""; - object.granularity = options.enums === String ? "TIMESTAMP_GRANULARITY_UNSPECIFIED" : 0; - object.restoreInfo = null; - object.changeStreamConfig = null; - object.deletionProtection = false; - object.rowKeySchema = null; + object.startTime = null; + object.endTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - var keys2; - if (message.clusterStates && (keys2 = Object.keys(message.clusterStates)).length) { - object.clusterStates = {}; - for (var j = 0; j < keys2.length; ++j) - object.clusterStates[keys2[j]] = $root.google.bigtable.admin.v2.Table.ClusterState.toObject(message.clusterStates[keys2[j]], options); - } - if (message.columnFamilies && (keys2 = Object.keys(message.columnFamilies)).length) { - object.columnFamilies = {}; - for (var j = 0; j < keys2.length; ++j) - object.columnFamilies[keys2[j]] = $root.google.bigtable.admin.v2.ColumnFamily.toObject(message.columnFamilies[keys2[j]], options); - } - if (message.granularity != null && message.hasOwnProperty("granularity")) - object.granularity = options.enums === String ? $root.google.bigtable.admin.v2.Table.TimestampGranularity[message.granularity] === undefined ? message.granularity : $root.google.bigtable.admin.v2.Table.TimestampGranularity[message.granularity] : message.granularity; - if (message.restoreInfo != null && message.hasOwnProperty("restoreInfo")) - object.restoreInfo = $root.google.bigtable.admin.v2.RestoreInfo.toObject(message.restoreInfo, options); - if (message.changeStreamConfig != null && message.hasOwnProperty("changeStreamConfig")) - object.changeStreamConfig = $root.google.bigtable.admin.v2.ChangeStreamConfig.toObject(message.changeStreamConfig, options); - if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) - object.deletionProtection = message.deletionProtection; - if (message.automatedBackupPolicy != null && message.hasOwnProperty("automatedBackupPolicy")) { - object.automatedBackupPolicy = $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.toObject(message.automatedBackupPolicy, options); - if (options.oneofs) - object.automatedBackupConfig = "automatedBackupPolicy"; - } - if (message.rowKeySchema != null && message.hasOwnProperty("rowKeySchema")) - object.rowKeySchema = $root.google.bigtable.admin.v2.Type.Struct.toObject(message.rowKeySchema, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this Table to JSON. + * Converts this UpdateSchemaBundleMetadata to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @instance * @returns {Object.} JSON object */ - Table.prototype.toJSON = function toJSON() { + UpdateSchemaBundleMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Table + * Gets the default type url for UpdateSchemaBundleMetadata * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Table + * @memberof google.bigtable.admin.v2.UpdateSchemaBundleMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Table.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateSchemaBundleMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Table"; + return typeUrlPrefix + "/google.bigtable.admin.v2.UpdateSchemaBundleMetadata"; }; - Table.ClusterState = (function() { - - /** - * Properties of a ClusterState. - * @memberof google.bigtable.admin.v2.Table - * @interface IClusterState - * @property {google.bigtable.admin.v2.Table.ClusterState.ReplicationState|null} [replicationState] ClusterState replicationState - * @property {Array.|null} [encryptionInfo] ClusterState encryptionInfo - */ + return UpdateSchemaBundleMetadata; + })(); - /** - * Constructs a new ClusterState. - * @memberof google.bigtable.admin.v2.Table - * @classdesc Represents a ClusterState. - * @implements IClusterState - * @constructor - * @param {google.bigtable.admin.v2.Table.IClusterState=} [properties] Properties to set - */ - function ClusterState(properties) { - this.encryptionInfo = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v2.GetSchemaBundleRequest = (function() { - /** - * ClusterState replicationState. - * @member {google.bigtable.admin.v2.Table.ClusterState.ReplicationState} replicationState - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @instance - */ - ClusterState.prototype.replicationState = 0; + /** + * Properties of a GetSchemaBundleRequest. + * @memberof google.bigtable.admin.v2 + * @interface IGetSchemaBundleRequest + * @property {string|null} [name] GetSchemaBundleRequest name + */ - /** - * ClusterState encryptionInfo. - * @member {Array.} encryptionInfo - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @instance - */ - ClusterState.prototype.encryptionInfo = $util.emptyArray; + /** + * Constructs a new GetSchemaBundleRequest. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a GetSchemaBundleRequest. + * @implements IGetSchemaBundleRequest + * @constructor + * @param {google.bigtable.admin.v2.IGetSchemaBundleRequest=} [properties] Properties to set + */ + function GetSchemaBundleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new ClusterState instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {google.bigtable.admin.v2.Table.IClusterState=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Table.ClusterState} ClusterState instance - */ - ClusterState.create = function create(properties) { - return new ClusterState(properties); - }; + /** + * GetSchemaBundleRequest name. + * @member {string} name + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @instance + */ + GetSchemaBundleRequest.prototype.name = ""; - /** - * Encodes the specified ClusterState message. Does not implicitly {@link google.bigtable.admin.v2.Table.ClusterState.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {google.bigtable.admin.v2.Table.IClusterState} message ClusterState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClusterState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.replicationState != null && Object.hasOwnProperty.call(message, "replicationState")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.replicationState); - if (message.encryptionInfo != null && message.encryptionInfo.length) - for (var i = 0; i < message.encryptionInfo.length; ++i) - $root.google.bigtable.admin.v2.EncryptionInfo.encode(message.encryptionInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ClusterState message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.ClusterState.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {google.bigtable.admin.v2.Table.IClusterState} message ClusterState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClusterState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new GetSchemaBundleRequest instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IGetSchemaBundleRequest=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.GetSchemaBundleRequest} GetSchemaBundleRequest instance + */ + GetSchemaBundleRequest.create = function create(properties) { + return new GetSchemaBundleRequest(properties); + }; - /** - * Decodes a ClusterState message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Table.ClusterState} ClusterState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClusterState.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Table.ClusterState(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.replicationState = reader.int32(); - break; - } - case 2: { - if (!(message.encryptionInfo && message.encryptionInfo.length)) - message.encryptionInfo = []; - message.encryptionInfo.push($root.google.bigtable.admin.v2.EncryptionInfo.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified GetSchemaBundleRequest message. Does not implicitly {@link google.bigtable.admin.v2.GetSchemaBundleRequest.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IGetSchemaBundleRequest} message GetSchemaBundleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSchemaBundleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Decodes a ClusterState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Table.ClusterState} ClusterState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClusterState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified GetSchemaBundleRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GetSchemaBundleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IGetSchemaBundleRequest} message GetSchemaBundleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSchemaBundleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a ClusterState message. - * @function verify - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ClusterState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.replicationState != null && message.hasOwnProperty("replicationState")) - switch (message.replicationState) { - default: - return "replicationState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: + /** + * Decodes a GetSchemaBundleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.GetSchemaBundleRequest} GetSchemaBundleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSchemaBundleRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.GetSchemaBundleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } - if (message.encryptionInfo != null && message.hasOwnProperty("encryptionInfo")) { - if (!Array.isArray(message.encryptionInfo)) - return "encryptionInfo: array expected"; - for (var i = 0; i < message.encryptionInfo.length; ++i) { - var error = $root.google.bigtable.admin.v2.EncryptionInfo.verify(message.encryptionInfo[i]); - if (error) - return "encryptionInfo." + error; - } - } - return null; - }; - - /** - * Creates a ClusterState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Table.ClusterState} ClusterState - */ - ClusterState.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Table.ClusterState) - return object; - var message = new $root.google.bigtable.admin.v2.Table.ClusterState(); - switch (object.replicationState) { default: - if (typeof object.replicationState === "number") { - message.replicationState = object.replicationState; - break; - } - break; - case "STATE_NOT_KNOWN": - case 0: - message.replicationState = 0; - break; - case "INITIALIZING": - case 1: - message.replicationState = 1; - break; - case "PLANNED_MAINTENANCE": - case 2: - message.replicationState = 2; - break; - case "UNPLANNED_MAINTENANCE": - case 3: - message.replicationState = 3; - break; - case "READY": - case 4: - message.replicationState = 4; - break; - case "READY_OPTIMIZING": - case 5: - message.replicationState = 5; + reader.skipType(tag & 7); break; } - if (object.encryptionInfo) { - if (!Array.isArray(object.encryptionInfo)) - throw TypeError(".google.bigtable.admin.v2.Table.ClusterState.encryptionInfo: array expected"); - message.encryptionInfo = []; - for (var i = 0; i < object.encryptionInfo.length; ++i) { - if (typeof object.encryptionInfo[i] !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.ClusterState.encryptionInfo: object expected"); - message.encryptionInfo[i] = $root.google.bigtable.admin.v2.EncryptionInfo.fromObject(object.encryptionInfo[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a ClusterState message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {google.bigtable.admin.v2.Table.ClusterState} message ClusterState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ClusterState.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.encryptionInfo = []; - if (options.defaults) - object.replicationState = options.enums === String ? "STATE_NOT_KNOWN" : 0; - if (message.replicationState != null && message.hasOwnProperty("replicationState")) - object.replicationState = options.enums === String ? $root.google.bigtable.admin.v2.Table.ClusterState.ReplicationState[message.replicationState] === undefined ? message.replicationState : $root.google.bigtable.admin.v2.Table.ClusterState.ReplicationState[message.replicationState] : message.replicationState; - if (message.encryptionInfo && message.encryptionInfo.length) { - object.encryptionInfo = []; - for (var j = 0; j < message.encryptionInfo.length; ++j) - object.encryptionInfo[j] = $root.google.bigtable.admin.v2.EncryptionInfo.toObject(message.encryptionInfo[j], options); - } - return object; - }; + } + return message; + }; - /** - * Converts this ClusterState to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @instance - * @returns {Object.} JSON object - */ - ClusterState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a GetSchemaBundleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.GetSchemaBundleRequest} GetSchemaBundleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSchemaBundleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for ClusterState - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Table.ClusterState - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ClusterState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Table.ClusterState"; - }; + /** + * Verifies a GetSchemaBundleRequest message. + * @function verify + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSchemaBundleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * ReplicationState enum. - * @name google.bigtable.admin.v2.Table.ClusterState.ReplicationState - * @enum {number} - * @property {number} STATE_NOT_KNOWN=0 STATE_NOT_KNOWN value - * @property {number} INITIALIZING=1 INITIALIZING value - * @property {number} PLANNED_MAINTENANCE=2 PLANNED_MAINTENANCE value - * @property {number} UNPLANNED_MAINTENANCE=3 UNPLANNED_MAINTENANCE value - * @property {number} READY=4 READY value - * @property {number} READY_OPTIMIZING=5 READY_OPTIMIZING value - */ - ClusterState.ReplicationState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_NOT_KNOWN"] = 0; - values[valuesById[1] = "INITIALIZING"] = 1; - values[valuesById[2] = "PLANNED_MAINTENANCE"] = 2; - values[valuesById[3] = "UNPLANNED_MAINTENANCE"] = 3; - values[valuesById[4] = "READY"] = 4; - values[valuesById[5] = "READY_OPTIMIZING"] = 5; - return values; - })(); + /** + * Creates a GetSchemaBundleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.GetSchemaBundleRequest} GetSchemaBundleRequest + */ + GetSchemaBundleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.GetSchemaBundleRequest) + return object; + var message = new $root.google.bigtable.admin.v2.GetSchemaBundleRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - return ClusterState; - })(); + /** + * Creates a plain object from a GetSchemaBundleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.GetSchemaBundleRequest} message GetSchemaBundleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSchemaBundleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * TimestampGranularity enum. - * @name google.bigtable.admin.v2.Table.TimestampGranularity - * @enum {number} - * @property {number} TIMESTAMP_GRANULARITY_UNSPECIFIED=0 TIMESTAMP_GRANULARITY_UNSPECIFIED value - * @property {number} MILLIS=1 MILLIS value + * Converts this GetSchemaBundleRequest to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @instance + * @returns {Object.} JSON object */ - Table.TimestampGranularity = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TIMESTAMP_GRANULARITY_UNSPECIFIED"] = 0; - values[valuesById[1] = "MILLIS"] = 1; - return values; - })(); + GetSchemaBundleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * View enum. - * @name google.bigtable.admin.v2.Table.View - * @enum {number} - * @property {number} VIEW_UNSPECIFIED=0 VIEW_UNSPECIFIED value - * @property {number} NAME_ONLY=1 NAME_ONLY value - * @property {number} SCHEMA_VIEW=2 SCHEMA_VIEW value - * @property {number} REPLICATION_VIEW=3 REPLICATION_VIEW value - * @property {number} ENCRYPTION_VIEW=5 ENCRYPTION_VIEW value - * @property {number} FULL=4 FULL value + * Gets the default type url for GetSchemaBundleRequest + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.GetSchemaBundleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Table.View = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "NAME_ONLY"] = 1; - values[valuesById[2] = "SCHEMA_VIEW"] = 2; - values[valuesById[3] = "REPLICATION_VIEW"] = 3; - values[valuesById[5] = "ENCRYPTION_VIEW"] = 5; - values[valuesById[4] = "FULL"] = 4; - return values; - })(); + GetSchemaBundleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.GetSchemaBundleRequest"; + }; - Table.AutomatedBackupPolicy = (function() { + return GetSchemaBundleRequest; + })(); - /** - * Properties of an AutomatedBackupPolicy. - * @memberof google.bigtable.admin.v2.Table - * @interface IAutomatedBackupPolicy - * @property {google.protobuf.IDuration|null} [retentionPeriod] AutomatedBackupPolicy retentionPeriod - * @property {google.protobuf.IDuration|null} [frequency] AutomatedBackupPolicy frequency - */ + v2.ListSchemaBundlesRequest = (function() { - /** - * Constructs a new AutomatedBackupPolicy. - * @memberof google.bigtable.admin.v2.Table - * @classdesc Represents an AutomatedBackupPolicy. - * @implements IAutomatedBackupPolicy - * @constructor - * @param {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy=} [properties] Properties to set - */ - function AutomatedBackupPolicy(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListSchemaBundlesRequest. + * @memberof google.bigtable.admin.v2 + * @interface IListSchemaBundlesRequest + * @property {string|null} [parent] ListSchemaBundlesRequest parent + * @property {number|null} [pageSize] ListSchemaBundlesRequest pageSize + * @property {string|null} [pageToken] ListSchemaBundlesRequest pageToken + */ - /** - * AutomatedBackupPolicy retentionPeriod. - * @member {google.protobuf.IDuration|null|undefined} retentionPeriod - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @instance - */ - AutomatedBackupPolicy.prototype.retentionPeriod = null; + /** + * Constructs a new ListSchemaBundlesRequest. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a ListSchemaBundlesRequest. + * @implements IListSchemaBundlesRequest + * @constructor + * @param {google.bigtable.admin.v2.IListSchemaBundlesRequest=} [properties] Properties to set + */ + function ListSchemaBundlesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * AutomatedBackupPolicy frequency. - * @member {google.protobuf.IDuration|null|undefined} frequency - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @instance - */ - AutomatedBackupPolicy.prototype.frequency = null; + /** + * ListSchemaBundlesRequest parent. + * @member {string} parent + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @instance + */ + ListSchemaBundlesRequest.prototype.parent = ""; - /** - * Creates a new AutomatedBackupPolicy instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} AutomatedBackupPolicy instance - */ - AutomatedBackupPolicy.create = function create(properties) { - return new AutomatedBackupPolicy(properties); - }; + /** + * ListSchemaBundlesRequest pageSize. + * @member {number} pageSize + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @instance + */ + ListSchemaBundlesRequest.prototype.pageSize = 0; - /** - * Encodes the specified AutomatedBackupPolicy message. Does not implicitly {@link google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy} message AutomatedBackupPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomatedBackupPolicy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.retentionPeriod != null && Object.hasOwnProperty.call(message, "retentionPeriod")) - $root.google.protobuf.Duration.encode(message.retentionPeriod, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.frequency != null && Object.hasOwnProperty.call(message, "frequency")) - $root.google.protobuf.Duration.encode(message.frequency, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ListSchemaBundlesRequest pageToken. + * @member {string} pageToken + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @instance + */ + ListSchemaBundlesRequest.prototype.pageToken = ""; - /** - * Encodes the specified AutomatedBackupPolicy message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy} message AutomatedBackupPolicy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomatedBackupPolicy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListSchemaBundlesRequest instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {google.bigtable.admin.v2.IListSchemaBundlesRequest=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.ListSchemaBundlesRequest} ListSchemaBundlesRequest instance + */ + ListSchemaBundlesRequest.create = function create(properties) { + return new ListSchemaBundlesRequest(properties); + }; - /** - * Decodes an AutomatedBackupPolicy message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} AutomatedBackupPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomatedBackupPolicy.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.retentionPeriod = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 2: { - message.frequency = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListSchemaBundlesRequest message. Does not implicitly {@link google.bigtable.admin.v2.ListSchemaBundlesRequest.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {google.bigtable.admin.v2.IListSchemaBundlesRequest} message ListSchemaBundlesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSchemaBundlesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListSchemaBundlesRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ListSchemaBundlesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {google.bigtable.admin.v2.IListSchemaBundlesRequest} message ListSchemaBundlesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSchemaBundlesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListSchemaBundlesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.ListSchemaBundlesRequest} ListSchemaBundlesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSchemaBundlesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.ListSchemaBundlesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes an AutomatedBackupPolicy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} AutomatedBackupPolicy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomatedBackupPolicy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an AutomatedBackupPolicy message. - * @function verify - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AutomatedBackupPolicy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.retentionPeriod != null && message.hasOwnProperty("retentionPeriod")) { - var error = $root.google.protobuf.Duration.verify(message.retentionPeriod); - if (error) - return "retentionPeriod." + error; - } - if (message.frequency != null && message.hasOwnProperty("frequency")) { - var error = $root.google.protobuf.Duration.verify(message.frequency); - if (error) - return "frequency." + error; - } - return null; - }; + /** + * Decodes a ListSchemaBundlesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.ListSchemaBundlesRequest} ListSchemaBundlesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSchemaBundlesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an AutomatedBackupPolicy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} AutomatedBackupPolicy - */ - AutomatedBackupPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy) - return object; - var message = new $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy(); - if (object.retentionPeriod != null) { - if (typeof object.retentionPeriod !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.AutomatedBackupPolicy.retentionPeriod: object expected"); - message.retentionPeriod = $root.google.protobuf.Duration.fromObject(object.retentionPeriod); - } - if (object.frequency != null) { - if (typeof object.frequency !== "object") - throw TypeError(".google.bigtable.admin.v2.Table.AutomatedBackupPolicy.frequency: object expected"); - message.frequency = $root.google.protobuf.Duration.fromObject(object.frequency); - } - return message; - }; + /** + * Verifies a ListSchemaBundlesRequest message. + * @function verify + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSchemaBundlesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; - /** - * Creates a plain object from an AutomatedBackupPolicy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} message AutomatedBackupPolicy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutomatedBackupPolicy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.retentionPeriod = null; - object.frequency = null; - } - if (message.retentionPeriod != null && message.hasOwnProperty("retentionPeriod")) - object.retentionPeriod = $root.google.protobuf.Duration.toObject(message.retentionPeriod, options); - if (message.frequency != null && message.hasOwnProperty("frequency")) - object.frequency = $root.google.protobuf.Duration.toObject(message.frequency, options); + /** + * Creates a ListSchemaBundlesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.ListSchemaBundlesRequest} ListSchemaBundlesRequest + */ + ListSchemaBundlesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.ListSchemaBundlesRequest) return object; - }; + var message = new $root.google.bigtable.admin.v2.ListSchemaBundlesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - /** - * Converts this AutomatedBackupPolicy to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @instance - * @returns {Object.} JSON object - */ - AutomatedBackupPolicy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListSchemaBundlesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {google.bigtable.admin.v2.ListSchemaBundlesRequest} message ListSchemaBundlesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSchemaBundlesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; - /** - * Gets the default type url for AutomatedBackupPolicy - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AutomatedBackupPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Table.AutomatedBackupPolicy"; - }; + /** + * Converts this ListSchemaBundlesRequest to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @instance + * @returns {Object.} JSON object + */ + ListSchemaBundlesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return AutomatedBackupPolicy; - })(); + /** + * Gets the default type url for ListSchemaBundlesRequest + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.ListSchemaBundlesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListSchemaBundlesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.ListSchemaBundlesRequest"; + }; - return Table; + return ListSchemaBundlesRequest; })(); - v2.AuthorizedView = (function() { + v2.ListSchemaBundlesResponse = (function() { /** - * Properties of an AuthorizedView. + * Properties of a ListSchemaBundlesResponse. * @memberof google.bigtable.admin.v2 - * @interface IAuthorizedView - * @property {string|null} [name] AuthorizedView name - * @property {google.bigtable.admin.v2.AuthorizedView.ISubsetView|null} [subsetView] AuthorizedView subsetView - * @property {string|null} [etag] AuthorizedView etag - * @property {boolean|null} [deletionProtection] AuthorizedView deletionProtection + * @interface IListSchemaBundlesResponse + * @property {Array.|null} [schemaBundles] ListSchemaBundlesResponse schemaBundles + * @property {string|null} [nextPageToken] ListSchemaBundlesResponse nextPageToken */ /** - * Constructs a new AuthorizedView. + * Constructs a new ListSchemaBundlesResponse. * @memberof google.bigtable.admin.v2 - * @classdesc Represents an AuthorizedView. - * @implements IAuthorizedView + * @classdesc Represents a ListSchemaBundlesResponse. + * @implements IListSchemaBundlesResponse * @constructor - * @param {google.bigtable.admin.v2.IAuthorizedView=} [properties] Properties to set + * @param {google.bigtable.admin.v2.IListSchemaBundlesResponse=} [properties] Properties to set */ - function AuthorizedView(properties) { + function ListSchemaBundlesResponse(properties) { + this.schemaBundles = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31515,133 +31658,94 @@ } /** - * AuthorizedView name. - * @member {string} name - * @memberof google.bigtable.admin.v2.AuthorizedView - * @instance - */ - AuthorizedView.prototype.name = ""; - - /** - * AuthorizedView subsetView. - * @member {google.bigtable.admin.v2.AuthorizedView.ISubsetView|null|undefined} subsetView - * @memberof google.bigtable.admin.v2.AuthorizedView - * @instance - */ - AuthorizedView.prototype.subsetView = null; - - /** - * AuthorizedView etag. - * @member {string} etag - * @memberof google.bigtable.admin.v2.AuthorizedView - * @instance - */ - AuthorizedView.prototype.etag = ""; - - /** - * AuthorizedView deletionProtection. - * @member {boolean} deletionProtection - * @memberof google.bigtable.admin.v2.AuthorizedView + * ListSchemaBundlesResponse schemaBundles. + * @member {Array.} schemaBundles + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @instance */ - AuthorizedView.prototype.deletionProtection = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListSchemaBundlesResponse.prototype.schemaBundles = $util.emptyArray; /** - * AuthorizedView authorizedView. - * @member {"subsetView"|undefined} authorizedView - * @memberof google.bigtable.admin.v2.AuthorizedView + * ListSchemaBundlesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @instance */ - Object.defineProperty(AuthorizedView.prototype, "authorizedView", { - get: $util.oneOfGetter($oneOfFields = ["subsetView"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListSchemaBundlesResponse.prototype.nextPageToken = ""; /** - * Creates a new AuthorizedView instance using the specified properties. + * Creates a new ListSchemaBundlesResponse instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static - * @param {google.bigtable.admin.v2.IAuthorizedView=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.AuthorizedView} AuthorizedView instance + * @param {google.bigtable.admin.v2.IListSchemaBundlesResponse=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.ListSchemaBundlesResponse} ListSchemaBundlesResponse instance */ - AuthorizedView.create = function create(properties) { - return new AuthorizedView(properties); + ListSchemaBundlesResponse.create = function create(properties) { + return new ListSchemaBundlesResponse(properties); }; /** - * Encodes the specified AuthorizedView message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.verify|verify} messages. + * Encodes the specified ListSchemaBundlesResponse message. Does not implicitly {@link google.bigtable.admin.v2.ListSchemaBundlesResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static - * @param {google.bigtable.admin.v2.IAuthorizedView} message AuthorizedView message or plain object to encode + * @param {google.bigtable.admin.v2.IListSchemaBundlesResponse} message ListSchemaBundlesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuthorizedView.encode = function encode(message, writer) { + ListSchemaBundlesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.subsetView != null && Object.hasOwnProperty.call(message, "subsetView")) - $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.encode(message.subsetView, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); - if (message.deletionProtection != null && Object.hasOwnProperty.call(message, "deletionProtection")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.deletionProtection); + if (message.schemaBundles != null && message.schemaBundles.length) + for (var i = 0; i < message.schemaBundles.length; ++i) + $root.google.bigtable.admin.v2.SchemaBundle.encode(message.schemaBundles[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified AuthorizedView message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.verify|verify} messages. + * Encodes the specified ListSchemaBundlesResponse message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ListSchemaBundlesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static - * @param {google.bigtable.admin.v2.IAuthorizedView} message AuthorizedView message or plain object to encode + * @param {google.bigtable.admin.v2.IListSchemaBundlesResponse} message ListSchemaBundlesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuthorizedView.encodeDelimited = function encodeDelimited(message, writer) { + ListSchemaBundlesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuthorizedView message from the specified reader or buffer. + * Decodes a ListSchemaBundlesResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.AuthorizedView} AuthorizedView + * @returns {google.bigtable.admin.v2.ListSchemaBundlesResponse} ListSchemaBundlesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuthorizedView.decode = function decode(reader, length, error) { + ListSchemaBundlesResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.AuthorizedView(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.ListSchemaBundlesResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.schemaBundles && message.schemaBundles.length)) + message.schemaBundles = []; + message.schemaBundles.push($root.google.bigtable.admin.v2.SchemaBundle.decode(reader, reader.uint32())); break; } case 2: { - message.subsetView = $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.decode(reader, reader.uint32()); - break; - } - case 3: { - message.etag = reader.string(); - break; - } - case 4: { - message.deletionProtection = reader.bool(); + message.nextPageToken = reader.string(); break; } default: @@ -31653,826 +31757,484 @@ }; /** - * Decodes an AuthorizedView message from the specified reader or buffer, length delimited. + * Decodes a ListSchemaBundlesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.AuthorizedView} AuthorizedView + * @returns {google.bigtable.admin.v2.ListSchemaBundlesResponse} ListSchemaBundlesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuthorizedView.decodeDelimited = function decodeDelimited(reader) { + ListSchemaBundlesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuthorizedView message. + * Verifies a ListSchemaBundlesResponse message. * @function verify - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuthorizedView.verify = function verify(message) { + ListSchemaBundlesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.subsetView != null && message.hasOwnProperty("subsetView")) { - properties.authorizedView = 1; - { - var error = $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.verify(message.subsetView); + if (message.schemaBundles != null && message.hasOwnProperty("schemaBundles")) { + if (!Array.isArray(message.schemaBundles)) + return "schemaBundles: array expected"; + for (var i = 0; i < message.schemaBundles.length; ++i) { + var error = $root.google.bigtable.admin.v2.SchemaBundle.verify(message.schemaBundles[i]); if (error) - return "subsetView." + error; + return "schemaBundles." + error; } } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) - if (typeof message.deletionProtection !== "boolean") - return "deletionProtection: boolean expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an AuthorizedView message from a plain object. Also converts values to their respective internal types. + * Creates a ListSchemaBundlesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.AuthorizedView} AuthorizedView + * @returns {google.bigtable.admin.v2.ListSchemaBundlesResponse} ListSchemaBundlesResponse */ - AuthorizedView.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.AuthorizedView) + ListSchemaBundlesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.ListSchemaBundlesResponse) return object; - var message = new $root.google.bigtable.admin.v2.AuthorizedView(); - if (object.name != null) - message.name = String(object.name); - if (object.subsetView != null) { - if (typeof object.subsetView !== "object") - throw TypeError(".google.bigtable.admin.v2.AuthorizedView.subsetView: object expected"); - message.subsetView = $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.fromObject(object.subsetView); + var message = new $root.google.bigtable.admin.v2.ListSchemaBundlesResponse(); + if (object.schemaBundles) { + if (!Array.isArray(object.schemaBundles)) + throw TypeError(".google.bigtable.admin.v2.ListSchemaBundlesResponse.schemaBundles: array expected"); + message.schemaBundles = []; + for (var i = 0; i < object.schemaBundles.length; ++i) { + if (typeof object.schemaBundles[i] !== "object") + throw TypeError(".google.bigtable.admin.v2.ListSchemaBundlesResponse.schemaBundles: object expected"); + message.schemaBundles[i] = $root.google.bigtable.admin.v2.SchemaBundle.fromObject(object.schemaBundles[i]); + } } - if (object.etag != null) - message.etag = String(object.etag); - if (object.deletionProtection != null) - message.deletionProtection = Boolean(object.deletionProtection); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an AuthorizedView message. Also converts values to other types if specified. + * Creates a plain object from a ListSchemaBundlesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static - * @param {google.bigtable.admin.v2.AuthorizedView} message AuthorizedView + * @param {google.bigtable.admin.v2.ListSchemaBundlesResponse} message ListSchemaBundlesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuthorizedView.toObject = function toObject(message, options) { + ListSchemaBundlesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.etag = ""; - object.deletionProtection = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.subsetView != null && message.hasOwnProperty("subsetView")) { - object.subsetView = $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.toObject(message.subsetView, options); - if (options.oneofs) - object.authorizedView = "subsetView"; + if (options.arrays || options.defaults) + object.schemaBundles = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.schemaBundles && message.schemaBundles.length) { + object.schemaBundles = []; + for (var j = 0; j < message.schemaBundles.length; ++j) + object.schemaBundles[j] = $root.google.bigtable.admin.v2.SchemaBundle.toObject(message.schemaBundles[j], options); } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) - object.deletionProtection = message.deletionProtection; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this AuthorizedView to JSON. + * Converts this ListSchemaBundlesResponse to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @instance * @returns {Object.} JSON object */ - AuthorizedView.prototype.toJSON = function toJSON() { + ListSchemaBundlesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AuthorizedView + * Gets the default type url for ListSchemaBundlesResponse * @function getTypeUrl - * @memberof google.bigtable.admin.v2.AuthorizedView + * @memberof google.bigtable.admin.v2.ListSchemaBundlesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AuthorizedView.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSchemaBundlesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.AuthorizedView"; + return typeUrlPrefix + "/google.bigtable.admin.v2.ListSchemaBundlesResponse"; }; - AuthorizedView.FamilySubsets = (function() { + return ListSchemaBundlesResponse; + })(); - /** - * Properties of a FamilySubsets. - * @memberof google.bigtable.admin.v2.AuthorizedView - * @interface IFamilySubsets - * @property {Array.|null} [qualifiers] FamilySubsets qualifiers - * @property {Array.|null} [qualifierPrefixes] FamilySubsets qualifierPrefixes - */ + v2.DeleteSchemaBundleRequest = (function() { - /** - * Constructs a new FamilySubsets. - * @memberof google.bigtable.admin.v2.AuthorizedView - * @classdesc Represents a FamilySubsets. - * @implements IFamilySubsets - * @constructor - * @param {google.bigtable.admin.v2.AuthorizedView.IFamilySubsets=} [properties] Properties to set - */ - function FamilySubsets(properties) { - this.qualifiers = []; - this.qualifierPrefixes = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a DeleteSchemaBundleRequest. + * @memberof google.bigtable.admin.v2 + * @interface IDeleteSchemaBundleRequest + * @property {string|null} [name] DeleteSchemaBundleRequest name + * @property {string|null} [etag] DeleteSchemaBundleRequest etag + */ - /** - * FamilySubsets qualifiers. - * @member {Array.} qualifiers - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @instance - */ - FamilySubsets.prototype.qualifiers = $util.emptyArray; + /** + * Constructs a new DeleteSchemaBundleRequest. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a DeleteSchemaBundleRequest. + * @implements IDeleteSchemaBundleRequest + * @constructor + * @param {google.bigtable.admin.v2.IDeleteSchemaBundleRequest=} [properties] Properties to set + */ + function DeleteSchemaBundleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * FamilySubsets qualifierPrefixes. - * @member {Array.} qualifierPrefixes - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @instance - */ - FamilySubsets.prototype.qualifierPrefixes = $util.emptyArray; + /** + * DeleteSchemaBundleRequest name. + * @member {string} name + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @instance + */ + DeleteSchemaBundleRequest.prototype.name = ""; - /** - * Creates a new FamilySubsets instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {google.bigtable.admin.v2.AuthorizedView.IFamilySubsets=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} FamilySubsets instance - */ - FamilySubsets.create = function create(properties) { - return new FamilySubsets(properties); - }; + /** + * DeleteSchemaBundleRequest etag. + * @member {string} etag + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @instance + */ + DeleteSchemaBundleRequest.prototype.etag = ""; - /** - * Encodes the specified FamilySubsets message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {google.bigtable.admin.v2.AuthorizedView.IFamilySubsets} message FamilySubsets message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FamilySubsets.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.qualifiers != null && message.qualifiers.length) - for (var i = 0; i < message.qualifiers.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.qualifiers[i]); - if (message.qualifierPrefixes != null && message.qualifierPrefixes.length) - for (var i = 0; i < message.qualifierPrefixes.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.qualifierPrefixes[i]); - return writer; - }; + /** + * Creates a new DeleteSchemaBundleRequest instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IDeleteSchemaBundleRequest=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.DeleteSchemaBundleRequest} DeleteSchemaBundleRequest instance + */ + DeleteSchemaBundleRequest.create = function create(properties) { + return new DeleteSchemaBundleRequest(properties); + }; - /** - * Encodes the specified FamilySubsets message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {google.bigtable.admin.v2.AuthorizedView.IFamilySubsets} message FamilySubsets message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FamilySubsets.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DeleteSchemaBundleRequest message. Does not implicitly {@link google.bigtable.admin.v2.DeleteSchemaBundleRequest.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IDeleteSchemaBundleRequest} message DeleteSchemaBundleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteSchemaBundleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); + return writer; + }; - /** - * Decodes a FamilySubsets message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} FamilySubsets - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FamilySubsets.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) + /** + * Encodes the specified DeleteSchemaBundleRequest message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.DeleteSchemaBundleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.IDeleteSchemaBundleRequest} message DeleteSchemaBundleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteSchemaBundleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteSchemaBundleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.DeleteSchemaBundleRequest} DeleteSchemaBundleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteSchemaBundleRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.DeleteSchemaBundleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; - switch (tag >>> 3) { - case 1: { - if (!(message.qualifiers && message.qualifiers.length)) - message.qualifiers = []; - message.qualifiers.push(reader.bytes()); - break; - } - case 2: { - if (!(message.qualifierPrefixes && message.qualifierPrefixes.length)) - message.qualifierPrefixes = []; - message.qualifierPrefixes.push(reader.bytes()); - break; - } - default: - reader.skipType(tag & 7); + } + case 2: { + message.etag = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a FamilySubsets message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} FamilySubsets - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FamilySubsets.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a FamilySubsets message. - * @function verify - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FamilySubsets.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.qualifiers != null && message.hasOwnProperty("qualifiers")) { - if (!Array.isArray(message.qualifiers)) - return "qualifiers: array expected"; - for (var i = 0; i < message.qualifiers.length; ++i) - if (!(message.qualifiers[i] && typeof message.qualifiers[i].length === "number" || $util.isString(message.qualifiers[i]))) - return "qualifiers: buffer[] expected"; - } - if (message.qualifierPrefixes != null && message.hasOwnProperty("qualifierPrefixes")) { - if (!Array.isArray(message.qualifierPrefixes)) - return "qualifierPrefixes: array expected"; - for (var i = 0; i < message.qualifierPrefixes.length; ++i) - if (!(message.qualifierPrefixes[i] && typeof message.qualifierPrefixes[i].length === "number" || $util.isString(message.qualifierPrefixes[i]))) - return "qualifierPrefixes: buffer[] expected"; - } - return null; - }; + /** + * Decodes a DeleteSchemaBundleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.DeleteSchemaBundleRequest} DeleteSchemaBundleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteSchemaBundleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a FamilySubsets message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} FamilySubsets - */ - FamilySubsets.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets) - return object; - var message = new $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets(); - if (object.qualifiers) { - if (!Array.isArray(object.qualifiers)) - throw TypeError(".google.bigtable.admin.v2.AuthorizedView.FamilySubsets.qualifiers: array expected"); - message.qualifiers = []; - for (var i = 0; i < object.qualifiers.length; ++i) - if (typeof object.qualifiers[i] === "string") - $util.base64.decode(object.qualifiers[i], message.qualifiers[i] = $util.newBuffer($util.base64.length(object.qualifiers[i])), 0); - else if (object.qualifiers[i].length >= 0) - message.qualifiers[i] = object.qualifiers[i]; - } - if (object.qualifierPrefixes) { - if (!Array.isArray(object.qualifierPrefixes)) - throw TypeError(".google.bigtable.admin.v2.AuthorizedView.FamilySubsets.qualifierPrefixes: array expected"); - message.qualifierPrefixes = []; - for (var i = 0; i < object.qualifierPrefixes.length; ++i) - if (typeof object.qualifierPrefixes[i] === "string") - $util.base64.decode(object.qualifierPrefixes[i], message.qualifierPrefixes[i] = $util.newBuffer($util.base64.length(object.qualifierPrefixes[i])), 0); - else if (object.qualifierPrefixes[i].length >= 0) - message.qualifierPrefixes[i] = object.qualifierPrefixes[i]; - } - return message; - }; + /** + * Verifies a DeleteSchemaBundleRequest message. + * @function verify + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteSchemaBundleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; - /** - * Creates a plain object from a FamilySubsets message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} message FamilySubsets - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FamilySubsets.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.qualifiers = []; - object.qualifierPrefixes = []; - } - if (message.qualifiers && message.qualifiers.length) { - object.qualifiers = []; - for (var j = 0; j < message.qualifiers.length; ++j) - object.qualifiers[j] = options.bytes === String ? $util.base64.encode(message.qualifiers[j], 0, message.qualifiers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.qualifiers[j]) : message.qualifiers[j]; - } - if (message.qualifierPrefixes && message.qualifierPrefixes.length) { - object.qualifierPrefixes = []; - for (var j = 0; j < message.qualifierPrefixes.length; ++j) - object.qualifierPrefixes[j] = options.bytes === String ? $util.base64.encode(message.qualifierPrefixes[j], 0, message.qualifierPrefixes[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.qualifierPrefixes[j]) : message.qualifierPrefixes[j]; - } + /** + * Creates a DeleteSchemaBundleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.DeleteSchemaBundleRequest} DeleteSchemaBundleRequest + */ + DeleteSchemaBundleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.DeleteSchemaBundleRequest) return object; - }; + var message = new $root.google.bigtable.admin.v2.DeleteSchemaBundleRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; - /** - * Converts this FamilySubsets to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @instance - * @returns {Object.} JSON object - */ - FamilySubsets.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteSchemaBundleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {google.bigtable.admin.v2.DeleteSchemaBundleRequest} message DeleteSchemaBundleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteSchemaBundleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; - /** - * Gets the default type url for FamilySubsets - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FamilySubsets.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.AuthorizedView.FamilySubsets"; - }; + /** + * Converts this DeleteSchemaBundleRequest to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteSchemaBundleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return FamilySubsets; - })(); + /** + * Gets the default type url for DeleteSchemaBundleRequest + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.DeleteSchemaBundleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteSchemaBundleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.DeleteSchemaBundleRequest"; + }; - AuthorizedView.SubsetView = (function() { + return DeleteSchemaBundleRequest; + })(); - /** - * Properties of a SubsetView. - * @memberof google.bigtable.admin.v2.AuthorizedView - * @interface ISubsetView - * @property {Array.|null} [rowPrefixes] SubsetView rowPrefixes - * @property {Object.|null} [familySubsets] SubsetView familySubsets - */ + v2.RestoreInfo = (function() { - /** - * Constructs a new SubsetView. - * @memberof google.bigtable.admin.v2.AuthorizedView - * @classdesc Represents a SubsetView. - * @implements ISubsetView - * @constructor - * @param {google.bigtable.admin.v2.AuthorizedView.ISubsetView=} [properties] Properties to set - */ - function SubsetView(properties) { - this.rowPrefixes = []; - this.familySubsets = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a RestoreInfo. + * @memberof google.bigtable.admin.v2 + * @interface IRestoreInfo + * @property {google.bigtable.admin.v2.RestoreSourceType|null} [sourceType] RestoreInfo sourceType + * @property {google.bigtable.admin.v2.IBackupInfo|null} [backupInfo] RestoreInfo backupInfo + */ - /** - * SubsetView rowPrefixes. - * @member {Array.} rowPrefixes - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @instance - */ - SubsetView.prototype.rowPrefixes = $util.emptyArray; + /** + * Constructs a new RestoreInfo. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a RestoreInfo. + * @implements IRestoreInfo + * @constructor + * @param {google.bigtable.admin.v2.IRestoreInfo=} [properties] Properties to set + */ + function RestoreInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SubsetView familySubsets. - * @member {Object.} familySubsets - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @instance - */ - SubsetView.prototype.familySubsets = $util.emptyObject; + /** + * RestoreInfo sourceType. + * @member {google.bigtable.admin.v2.RestoreSourceType} sourceType + * @memberof google.bigtable.admin.v2.RestoreInfo + * @instance + */ + RestoreInfo.prototype.sourceType = 0; - /** - * Creates a new SubsetView instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {google.bigtable.admin.v2.AuthorizedView.ISubsetView=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.AuthorizedView.SubsetView} SubsetView instance - */ - SubsetView.create = function create(properties) { - return new SubsetView(properties); - }; + /** + * RestoreInfo backupInfo. + * @member {google.bigtable.admin.v2.IBackupInfo|null|undefined} backupInfo + * @memberof google.bigtable.admin.v2.RestoreInfo + * @instance + */ + RestoreInfo.prototype.backupInfo = null; - /** - * Encodes the specified SubsetView message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.SubsetView.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {google.bigtable.admin.v2.AuthorizedView.ISubsetView} message SubsetView message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubsetView.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rowPrefixes != null && message.rowPrefixes.length) - for (var i = 0; i < message.rowPrefixes.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowPrefixes[i]); - if (message.familySubsets != null && Object.hasOwnProperty.call(message, "familySubsets")) - for (var keys = Object.keys(message.familySubsets), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.encode(message.familySubsets[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified SubsetView message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.SubsetView.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {google.bigtable.admin.v2.AuthorizedView.ISubsetView} message SubsetView message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SubsetView.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * RestoreInfo sourceInfo. + * @member {"backupInfo"|undefined} sourceInfo + * @memberof google.bigtable.admin.v2.RestoreInfo + * @instance + */ + Object.defineProperty(RestoreInfo.prototype, "sourceInfo", { + get: $util.oneOfGetter($oneOfFields = ["backupInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Decodes a SubsetView message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.AuthorizedView.SubsetView} SubsetView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubsetView.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.AuthorizedView.SubsetView(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - if (!(message.rowPrefixes && message.rowPrefixes.length)) - message.rowPrefixes = []; - message.rowPrefixes.push(reader.bytes()); - break; - } - case 2: { - if (message.familySubsets === $util.emptyObject) - message.familySubsets = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.familySubsets[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SubsetView message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.AuthorizedView.SubsetView} SubsetView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SubsetView.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SubsetView message. - * @function verify - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SubsetView.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rowPrefixes != null && message.hasOwnProperty("rowPrefixes")) { - if (!Array.isArray(message.rowPrefixes)) - return "rowPrefixes: array expected"; - for (var i = 0; i < message.rowPrefixes.length; ++i) - if (!(message.rowPrefixes[i] && typeof message.rowPrefixes[i].length === "number" || $util.isString(message.rowPrefixes[i]))) - return "rowPrefixes: buffer[] expected"; - } - if (message.familySubsets != null && message.hasOwnProperty("familySubsets")) { - if (!$util.isObject(message.familySubsets)) - return "familySubsets: object expected"; - var key = Object.keys(message.familySubsets); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify(message.familySubsets[key[i]]); - if (error) - return "familySubsets." + error; - } - } - return null; - }; - - /** - * Creates a SubsetView message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.AuthorizedView.SubsetView} SubsetView - */ - SubsetView.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.AuthorizedView.SubsetView) - return object; - var message = new $root.google.bigtable.admin.v2.AuthorizedView.SubsetView(); - if (object.rowPrefixes) { - if (!Array.isArray(object.rowPrefixes)) - throw TypeError(".google.bigtable.admin.v2.AuthorizedView.SubsetView.rowPrefixes: array expected"); - message.rowPrefixes = []; - for (var i = 0; i < object.rowPrefixes.length; ++i) - if (typeof object.rowPrefixes[i] === "string") - $util.base64.decode(object.rowPrefixes[i], message.rowPrefixes[i] = $util.newBuffer($util.base64.length(object.rowPrefixes[i])), 0); - else if (object.rowPrefixes[i].length >= 0) - message.rowPrefixes[i] = object.rowPrefixes[i]; - } - if (object.familySubsets) { - if (typeof object.familySubsets !== "object") - throw TypeError(".google.bigtable.admin.v2.AuthorizedView.SubsetView.familySubsets: object expected"); - message.familySubsets = {}; - for (var keys = Object.keys(object.familySubsets), i = 0; i < keys.length; ++i) { - if (typeof object.familySubsets[keys[i]] !== "object") - throw TypeError(".google.bigtable.admin.v2.AuthorizedView.SubsetView.familySubsets: object expected"); - message.familySubsets[keys[i]] = $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.fromObject(object.familySubsets[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a SubsetView message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {google.bigtable.admin.v2.AuthorizedView.SubsetView} message SubsetView - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SubsetView.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rowPrefixes = []; - if (options.objects || options.defaults) - object.familySubsets = {}; - if (message.rowPrefixes && message.rowPrefixes.length) { - object.rowPrefixes = []; - for (var j = 0; j < message.rowPrefixes.length; ++j) - object.rowPrefixes[j] = options.bytes === String ? $util.base64.encode(message.rowPrefixes[j], 0, message.rowPrefixes[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.rowPrefixes[j]) : message.rowPrefixes[j]; - } - var keys2; - if (message.familySubsets && (keys2 = Object.keys(message.familySubsets)).length) { - object.familySubsets = {}; - for (var j = 0; j < keys2.length; ++j) - object.familySubsets[keys2[j]] = $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.toObject(message.familySubsets[keys2[j]], options); - } - return object; - }; - - /** - * Converts this SubsetView to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @instance - * @returns {Object.} JSON object - */ - SubsetView.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SubsetView - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SubsetView.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.AuthorizedView.SubsetView"; - }; - - return SubsetView; - })(); - - /** - * ResponseView enum. - * @name google.bigtable.admin.v2.AuthorizedView.ResponseView - * @enum {number} - * @property {number} RESPONSE_VIEW_UNSPECIFIED=0 RESPONSE_VIEW_UNSPECIFIED value - * @property {number} NAME_ONLY=1 NAME_ONLY value - * @property {number} BASIC=2 BASIC value - * @property {number} FULL=3 FULL value - */ - AuthorizedView.ResponseView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESPONSE_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "NAME_ONLY"] = 1; - values[valuesById[2] = "BASIC"] = 2; - values[valuesById[3] = "FULL"] = 3; - return values; - })(); - - return AuthorizedView; - })(); - - v2.ColumnFamily = (function() { - - /** - * Properties of a ColumnFamily. - * @memberof google.bigtable.admin.v2 - * @interface IColumnFamily - * @property {google.bigtable.admin.v2.IGcRule|null} [gcRule] ColumnFamily gcRule - * @property {google.bigtable.admin.v2.IType|null} [valueType] ColumnFamily valueType - */ - - /** - * Constructs a new ColumnFamily. - * @memberof google.bigtable.admin.v2 - * @classdesc Represents a ColumnFamily. - * @implements IColumnFamily - * @constructor - * @param {google.bigtable.admin.v2.IColumnFamily=} [properties] Properties to set - */ - function ColumnFamily(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ColumnFamily gcRule. - * @member {google.bigtable.admin.v2.IGcRule|null|undefined} gcRule - * @memberof google.bigtable.admin.v2.ColumnFamily - * @instance - */ - ColumnFamily.prototype.gcRule = null; + /** + * Creates a new RestoreInfo instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.RestoreInfo + * @static + * @param {google.bigtable.admin.v2.IRestoreInfo=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.RestoreInfo} RestoreInfo instance + */ + RestoreInfo.create = function create(properties) { + return new RestoreInfo(properties); + }; /** - * ColumnFamily valueType. - * @member {google.bigtable.admin.v2.IType|null|undefined} valueType - * @memberof google.bigtable.admin.v2.ColumnFamily - * @instance - */ - ColumnFamily.prototype.valueType = null; - - /** - * Creates a new ColumnFamily instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.ColumnFamily - * @static - * @param {google.bigtable.admin.v2.IColumnFamily=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.ColumnFamily} ColumnFamily instance - */ - ColumnFamily.create = function create(properties) { - return new ColumnFamily(properties); - }; - - /** - * Encodes the specified ColumnFamily message. Does not implicitly {@link google.bigtable.admin.v2.ColumnFamily.verify|verify} messages. + * Encodes the specified RestoreInfo message. Does not implicitly {@link google.bigtable.admin.v2.RestoreInfo.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @static - * @param {google.bigtable.admin.v2.IColumnFamily} message ColumnFamily message or plain object to encode + * @param {google.bigtable.admin.v2.IRestoreInfo} message RestoreInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ColumnFamily.encode = function encode(message, writer) { + RestoreInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.gcRule != null && Object.hasOwnProperty.call(message, "gcRule")) - $root.google.bigtable.admin.v2.GcRule.encode(message.gcRule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) - $root.google.bigtable.admin.v2.Type.encode(message.valueType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sourceType != null && Object.hasOwnProperty.call(message, "sourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sourceType); + if (message.backupInfo != null && Object.hasOwnProperty.call(message, "backupInfo")) + $root.google.bigtable.admin.v2.BackupInfo.encode(message.backupInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ColumnFamily message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ColumnFamily.verify|verify} messages. + * Encodes the specified RestoreInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.RestoreInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @static - * @param {google.bigtable.admin.v2.IColumnFamily} message ColumnFamily message or plain object to encode + * @param {google.bigtable.admin.v2.IRestoreInfo} message RestoreInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ColumnFamily.encodeDelimited = function encodeDelimited(message, writer) { + RestoreInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ColumnFamily message from the specified reader or buffer. + * Decodes a RestoreInfo message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.ColumnFamily} ColumnFamily + * @returns {google.bigtable.admin.v2.RestoreInfo} RestoreInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnFamily.decode = function decode(reader, length, error) { + RestoreInfo.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.ColumnFamily(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.RestoreInfo(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.gcRule = $root.google.bigtable.admin.v2.GcRule.decode(reader, reader.uint32()); + message.sourceType = reader.int32(); break; } - case 3: { - message.valueType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + case 2: { + message.backupInfo = $root.google.bigtable.admin.v2.BackupInfo.decode(reader, reader.uint32()); break; } default: @@ -32484,144 +32246,160 @@ }; /** - * Decodes a ColumnFamily message from the specified reader or buffer, length delimited. + * Decodes a RestoreInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.ColumnFamily} ColumnFamily + * @returns {google.bigtable.admin.v2.RestoreInfo} RestoreInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnFamily.decodeDelimited = function decodeDelimited(reader) { + RestoreInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ColumnFamily message. + * Verifies a RestoreInfo message. * @function verify - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ColumnFamily.verify = function verify(message) { + RestoreInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.gcRule != null && message.hasOwnProperty("gcRule")) { - var error = $root.google.bigtable.admin.v2.GcRule.verify(message.gcRule); - if (error) - return "gcRule." + error; - } - if (message.valueType != null && message.hasOwnProperty("valueType")) { - var error = $root.google.bigtable.admin.v2.Type.verify(message.valueType); - if (error) - return "valueType." + error; + var properties = {}; + if (message.sourceType != null && message.hasOwnProperty("sourceType")) + switch (message.sourceType) { + default: + return "sourceType: enum value expected"; + case 0: + case 1: + break; + } + if (message.backupInfo != null && message.hasOwnProperty("backupInfo")) { + properties.sourceInfo = 1; + { + var error = $root.google.bigtable.admin.v2.BackupInfo.verify(message.backupInfo); + if (error) + return "backupInfo." + error; + } } return null; }; /** - * Creates a ColumnFamily message from a plain object. Also converts values to their respective internal types. + * Creates a RestoreInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.ColumnFamily} ColumnFamily + * @returns {google.bigtable.admin.v2.RestoreInfo} RestoreInfo */ - ColumnFamily.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.ColumnFamily) + RestoreInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.RestoreInfo) return object; - var message = new $root.google.bigtable.admin.v2.ColumnFamily(); - if (object.gcRule != null) { - if (typeof object.gcRule !== "object") - throw TypeError(".google.bigtable.admin.v2.ColumnFamily.gcRule: object expected"); - message.gcRule = $root.google.bigtable.admin.v2.GcRule.fromObject(object.gcRule); + var message = new $root.google.bigtable.admin.v2.RestoreInfo(); + switch (object.sourceType) { + default: + if (typeof object.sourceType === "number") { + message.sourceType = object.sourceType; + break; + } + break; + case "RESTORE_SOURCE_TYPE_UNSPECIFIED": + case 0: + message.sourceType = 0; + break; + case "BACKUP": + case 1: + message.sourceType = 1; + break; } - if (object.valueType != null) { - if (typeof object.valueType !== "object") - throw TypeError(".google.bigtable.admin.v2.ColumnFamily.valueType: object expected"); - message.valueType = $root.google.bigtable.admin.v2.Type.fromObject(object.valueType); + if (object.backupInfo != null) { + if (typeof object.backupInfo !== "object") + throw TypeError(".google.bigtable.admin.v2.RestoreInfo.backupInfo: object expected"); + message.backupInfo = $root.google.bigtable.admin.v2.BackupInfo.fromObject(object.backupInfo); } return message; }; /** - * Creates a plain object from a ColumnFamily message. Also converts values to other types if specified. + * Creates a plain object from a RestoreInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @static - * @param {google.bigtable.admin.v2.ColumnFamily} message ColumnFamily + * @param {google.bigtable.admin.v2.RestoreInfo} message RestoreInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ColumnFamily.toObject = function toObject(message, options) { + RestoreInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.gcRule = null; - object.valueType = null; + if (options.defaults) + object.sourceType = options.enums === String ? "RESTORE_SOURCE_TYPE_UNSPECIFIED" : 0; + if (message.sourceType != null && message.hasOwnProperty("sourceType")) + object.sourceType = options.enums === String ? $root.google.bigtable.admin.v2.RestoreSourceType[message.sourceType] === undefined ? message.sourceType : $root.google.bigtable.admin.v2.RestoreSourceType[message.sourceType] : message.sourceType; + if (message.backupInfo != null && message.hasOwnProperty("backupInfo")) { + object.backupInfo = $root.google.bigtable.admin.v2.BackupInfo.toObject(message.backupInfo, options); + if (options.oneofs) + object.sourceInfo = "backupInfo"; } - if (message.gcRule != null && message.hasOwnProperty("gcRule")) - object.gcRule = $root.google.bigtable.admin.v2.GcRule.toObject(message.gcRule, options); - if (message.valueType != null && message.hasOwnProperty("valueType")) - object.valueType = $root.google.bigtable.admin.v2.Type.toObject(message.valueType, options); return object; }; /** - * Converts this ColumnFamily to JSON. + * Converts this RestoreInfo to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @instance * @returns {Object.} JSON object */ - ColumnFamily.prototype.toJSON = function toJSON() { + RestoreInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ColumnFamily + * Gets the default type url for RestoreInfo * @function getTypeUrl - * @memberof google.bigtable.admin.v2.ColumnFamily + * @memberof google.bigtable.admin.v2.RestoreInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ColumnFamily.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RestoreInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.ColumnFamily"; + return typeUrlPrefix + "/google.bigtable.admin.v2.RestoreInfo"; }; - return ColumnFamily; + return RestoreInfo; })(); - v2.GcRule = (function() { + v2.ChangeStreamConfig = (function() { /** - * Properties of a GcRule. + * Properties of a ChangeStreamConfig. * @memberof google.bigtable.admin.v2 - * @interface IGcRule - * @property {number|null} [maxNumVersions] GcRule maxNumVersions - * @property {google.protobuf.IDuration|null} [maxAge] GcRule maxAge - * @property {google.bigtable.admin.v2.GcRule.IIntersection|null} [intersection] GcRule intersection - * @property {google.bigtable.admin.v2.GcRule.IUnion|null} [union] GcRule union + * @interface IChangeStreamConfig + * @property {google.protobuf.IDuration|null} [retentionPeriod] ChangeStreamConfig retentionPeriod */ /** - * Constructs a new GcRule. + * Constructs a new ChangeStreamConfig. * @memberof google.bigtable.admin.v2 - * @classdesc Represents a GcRule. - * @implements IGcRule + * @classdesc Represents a ChangeStreamConfig. + * @implements IChangeStreamConfig * @constructor - * @param {google.bigtable.admin.v2.IGcRule=} [properties] Properties to set + * @param {google.bigtable.admin.v2.IChangeStreamConfig=} [properties] Properties to set */ - function GcRule(properties) { + function ChangeStreamConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32629,133 +32407,77 @@ } /** - * GcRule maxNumVersions. - * @member {number|null|undefined} maxNumVersions - * @memberof google.bigtable.admin.v2.GcRule - * @instance - */ - GcRule.prototype.maxNumVersions = null; - - /** - * GcRule maxAge. - * @member {google.protobuf.IDuration|null|undefined} maxAge - * @memberof google.bigtable.admin.v2.GcRule - * @instance - */ - GcRule.prototype.maxAge = null; - - /** - * GcRule intersection. - * @member {google.bigtable.admin.v2.GcRule.IIntersection|null|undefined} intersection - * @memberof google.bigtable.admin.v2.GcRule - * @instance - */ - GcRule.prototype.intersection = null; - - /** - * GcRule union. - * @member {google.bigtable.admin.v2.GcRule.IUnion|null|undefined} union - * @memberof google.bigtable.admin.v2.GcRule - * @instance - */ - GcRule.prototype.union = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GcRule rule. - * @member {"maxNumVersions"|"maxAge"|"intersection"|"union"|undefined} rule - * @memberof google.bigtable.admin.v2.GcRule + * ChangeStreamConfig retentionPeriod. + * @member {google.protobuf.IDuration|null|undefined} retentionPeriod + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @instance */ - Object.defineProperty(GcRule.prototype, "rule", { - get: $util.oneOfGetter($oneOfFields = ["maxNumVersions", "maxAge", "intersection", "union"]), - set: $util.oneOfSetter($oneOfFields) - }); + ChangeStreamConfig.prototype.retentionPeriod = null; /** - * Creates a new GcRule instance using the specified properties. + * Creates a new ChangeStreamConfig instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static - * @param {google.bigtable.admin.v2.IGcRule=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.GcRule} GcRule instance + * @param {google.bigtable.admin.v2.IChangeStreamConfig=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.ChangeStreamConfig} ChangeStreamConfig instance */ - GcRule.create = function create(properties) { - return new GcRule(properties); + ChangeStreamConfig.create = function create(properties) { + return new ChangeStreamConfig(properties); }; /** - * Encodes the specified GcRule message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.verify|verify} messages. + * Encodes the specified ChangeStreamConfig message. Does not implicitly {@link google.bigtable.admin.v2.ChangeStreamConfig.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static - * @param {google.bigtable.admin.v2.IGcRule} message GcRule message or plain object to encode + * @param {google.bigtable.admin.v2.IChangeStreamConfig} message ChangeStreamConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GcRule.encode = function encode(message, writer) { + ChangeStreamConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxNumVersions != null && Object.hasOwnProperty.call(message, "maxNumVersions")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxNumVersions); - if (message.maxAge != null && Object.hasOwnProperty.call(message, "maxAge")) - $root.google.protobuf.Duration.encode(message.maxAge, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.intersection != null && Object.hasOwnProperty.call(message, "intersection")) - $root.google.bigtable.admin.v2.GcRule.Intersection.encode(message.intersection, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.union != null && Object.hasOwnProperty.call(message, "union")) - $root.google.bigtable.admin.v2.GcRule.Union.encode(message.union, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.retentionPeriod != null && Object.hasOwnProperty.call(message, "retentionPeriod")) + $root.google.protobuf.Duration.encode(message.retentionPeriod, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GcRule message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.verify|verify} messages. + * Encodes the specified ChangeStreamConfig message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ChangeStreamConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static - * @param {google.bigtable.admin.v2.IGcRule} message GcRule message or plain object to encode + * @param {google.bigtable.admin.v2.IChangeStreamConfig} message ChangeStreamConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GcRule.encodeDelimited = function encodeDelimited(message, writer) { + ChangeStreamConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GcRule message from the specified reader or buffer. + * Decodes a ChangeStreamConfig message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.GcRule} GcRule + * @returns {google.bigtable.admin.v2.ChangeStreamConfig} ChangeStreamConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GcRule.decode = function decode(reader, length, error) { + ChangeStreamConfig.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.GcRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.ChangeStreamConfig(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.maxNumVersions = reader.int32(); - break; - } - case 2: { - message.maxAge = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 3: { - message.intersection = $root.google.bigtable.admin.v2.GcRule.Intersection.decode(reader, reader.uint32()); - break; - } - case 4: { - message.union = $root.google.bigtable.admin.v2.GcRule.Union.decode(reader, reader.uint32()); + message.retentionPeriod = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -32767,491 +32489,755 @@ }; /** - * Decodes a GcRule message from the specified reader or buffer, length delimited. + * Decodes a ChangeStreamConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.GcRule} GcRule + * @returns {google.bigtable.admin.v2.ChangeStreamConfig} ChangeStreamConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GcRule.decodeDelimited = function decodeDelimited(reader) { + ChangeStreamConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GcRule message. + * Verifies a ChangeStreamConfig message. * @function verify - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GcRule.verify = function verify(message) { + ChangeStreamConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.maxNumVersions != null && message.hasOwnProperty("maxNumVersions")) { - properties.rule = 1; - if (!$util.isInteger(message.maxNumVersions)) - return "maxNumVersions: integer expected"; - } - if (message.maxAge != null && message.hasOwnProperty("maxAge")) { - if (properties.rule === 1) - return "rule: multiple values"; - properties.rule = 1; - { - var error = $root.google.protobuf.Duration.verify(message.maxAge); - if (error) - return "maxAge." + error; - } - } - if (message.intersection != null && message.hasOwnProperty("intersection")) { - if (properties.rule === 1) - return "rule: multiple values"; - properties.rule = 1; - { - var error = $root.google.bigtable.admin.v2.GcRule.Intersection.verify(message.intersection); - if (error) - return "intersection." + error; - } - } - if (message.union != null && message.hasOwnProperty("union")) { - if (properties.rule === 1) - return "rule: multiple values"; - properties.rule = 1; - { - var error = $root.google.bigtable.admin.v2.GcRule.Union.verify(message.union); - if (error) - return "union." + error; - } + if (message.retentionPeriod != null && message.hasOwnProperty("retentionPeriod")) { + var error = $root.google.protobuf.Duration.verify(message.retentionPeriod); + if (error) + return "retentionPeriod." + error; } return null; }; /** - * Creates a GcRule message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeStreamConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.GcRule} GcRule + * @returns {google.bigtable.admin.v2.ChangeStreamConfig} ChangeStreamConfig */ - GcRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.GcRule) + ChangeStreamConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.ChangeStreamConfig) return object; - var message = new $root.google.bigtable.admin.v2.GcRule(); - if (object.maxNumVersions != null) - message.maxNumVersions = object.maxNumVersions | 0; - if (object.maxAge != null) { - if (typeof object.maxAge !== "object") - throw TypeError(".google.bigtable.admin.v2.GcRule.maxAge: object expected"); - message.maxAge = $root.google.protobuf.Duration.fromObject(object.maxAge); - } - if (object.intersection != null) { - if (typeof object.intersection !== "object") - throw TypeError(".google.bigtable.admin.v2.GcRule.intersection: object expected"); - message.intersection = $root.google.bigtable.admin.v2.GcRule.Intersection.fromObject(object.intersection); - } - if (object.union != null) { - if (typeof object.union !== "object") - throw TypeError(".google.bigtable.admin.v2.GcRule.union: object expected"); - message.union = $root.google.bigtable.admin.v2.GcRule.Union.fromObject(object.union); + var message = new $root.google.bigtable.admin.v2.ChangeStreamConfig(); + if (object.retentionPeriod != null) { + if (typeof object.retentionPeriod !== "object") + throw TypeError(".google.bigtable.admin.v2.ChangeStreamConfig.retentionPeriod: object expected"); + message.retentionPeriod = $root.google.protobuf.Duration.fromObject(object.retentionPeriod); } return message; }; /** - * Creates a plain object from a GcRule message. Also converts values to other types if specified. + * Creates a plain object from a ChangeStreamConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static - * @param {google.bigtable.admin.v2.GcRule} message GcRule + * @param {google.bigtable.admin.v2.ChangeStreamConfig} message ChangeStreamConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GcRule.toObject = function toObject(message, options) { + ChangeStreamConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.maxNumVersions != null && message.hasOwnProperty("maxNumVersions")) { - object.maxNumVersions = message.maxNumVersions; - if (options.oneofs) - object.rule = "maxNumVersions"; - } - if (message.maxAge != null && message.hasOwnProperty("maxAge")) { - object.maxAge = $root.google.protobuf.Duration.toObject(message.maxAge, options); - if (options.oneofs) - object.rule = "maxAge"; - } - if (message.intersection != null && message.hasOwnProperty("intersection")) { - object.intersection = $root.google.bigtable.admin.v2.GcRule.Intersection.toObject(message.intersection, options); - if (options.oneofs) - object.rule = "intersection"; - } - if (message.union != null && message.hasOwnProperty("union")) { - object.union = $root.google.bigtable.admin.v2.GcRule.Union.toObject(message.union, options); - if (options.oneofs) - object.rule = "union"; - } + if (options.defaults) + object.retentionPeriod = null; + if (message.retentionPeriod != null && message.hasOwnProperty("retentionPeriod")) + object.retentionPeriod = $root.google.protobuf.Duration.toObject(message.retentionPeriod, options); return object; }; /** - * Converts this GcRule to JSON. + * Converts this ChangeStreamConfig to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @instance * @returns {Object.} JSON object */ - GcRule.prototype.toJSON = function toJSON() { + ChangeStreamConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GcRule + * Gets the default type url for ChangeStreamConfig * @function getTypeUrl - * @memberof google.bigtable.admin.v2.GcRule + * @memberof google.bigtable.admin.v2.ChangeStreamConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GcRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ChangeStreamConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.GcRule"; + return typeUrlPrefix + "/google.bigtable.admin.v2.ChangeStreamConfig"; }; - GcRule.Intersection = (function() { - - /** - * Properties of an Intersection. - * @memberof google.bigtable.admin.v2.GcRule - * @interface IIntersection - * @property {Array.|null} [rules] Intersection rules - */ + return ChangeStreamConfig; + })(); - /** - * Constructs a new Intersection. - * @memberof google.bigtable.admin.v2.GcRule - * @classdesc Represents an Intersection. - * @implements IIntersection - * @constructor - * @param {google.bigtable.admin.v2.GcRule.IIntersection=} [properties] Properties to set - */ - function Intersection(properties) { - this.rules = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v2.Table = (function() { - /** - * Intersection rules. - * @member {Array.} rules - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @instance - */ - Intersection.prototype.rules = $util.emptyArray; + /** + * Properties of a Table. + * @memberof google.bigtable.admin.v2 + * @interface ITable + * @property {string|null} [name] Table name + * @property {Object.|null} [clusterStates] Table clusterStates + * @property {Object.|null} [columnFamilies] Table columnFamilies + * @property {google.bigtable.admin.v2.Table.TimestampGranularity|null} [granularity] Table granularity + * @property {google.bigtable.admin.v2.IRestoreInfo|null} [restoreInfo] Table restoreInfo + * @property {google.bigtable.admin.v2.IChangeStreamConfig|null} [changeStreamConfig] Table changeStreamConfig + * @property {boolean|null} [deletionProtection] Table deletionProtection + * @property {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy|null} [automatedBackupPolicy] Table automatedBackupPolicy + * @property {google.bigtable.admin.v2.Type.IStruct|null} [rowKeySchema] Table rowKeySchema + */ - /** - * Creates a new Intersection instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {google.bigtable.admin.v2.GcRule.IIntersection=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.GcRule.Intersection} Intersection instance - */ - Intersection.create = function create(properties) { - return new Intersection(properties); - }; + /** + * Constructs a new Table. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a Table. + * @implements ITable + * @constructor + * @param {google.bigtable.admin.v2.ITable=} [properties] Properties to set + */ + function Table(properties) { + this.clusterStates = {}; + this.columnFamilies = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Intersection message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Intersection.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {google.bigtable.admin.v2.GcRule.IIntersection} message Intersection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intersection.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.bigtable.admin.v2.GcRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Table name. + * @member {string} name + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.name = ""; - /** - * Encodes the specified Intersection message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Intersection.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {google.bigtable.admin.v2.GcRule.IIntersection} message Intersection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intersection.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Table clusterStates. + * @member {Object.} clusterStates + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.clusterStates = $util.emptyObject; - /** - * Decodes an Intersection message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.GcRule.Intersection} Intersection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intersection.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.GcRule.Intersection(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.bigtable.admin.v2.GcRule.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Table columnFamilies. + * @member {Object.} columnFamilies + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.columnFamilies = $util.emptyObject; - /** - * Decodes an Intersection message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.GcRule.Intersection} Intersection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intersection.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Table granularity. + * @member {google.bigtable.admin.v2.Table.TimestampGranularity} granularity + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.granularity = 0; - /** - * Verifies an Intersection message. - * @function verify - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Intersection.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.bigtable.admin.v2.GcRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - return null; - }; + /** + * Table restoreInfo. + * @member {google.bigtable.admin.v2.IRestoreInfo|null|undefined} restoreInfo + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.restoreInfo = null; - /** - * Creates an Intersection message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.GcRule.Intersection} Intersection - */ - Intersection.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.GcRule.Intersection) - return object; - var message = new $root.google.bigtable.admin.v2.GcRule.Intersection(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.bigtable.admin.v2.GcRule.Intersection.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.bigtable.admin.v2.GcRule.Intersection.rules: object expected"); - message.rules[i] = $root.google.bigtable.admin.v2.GcRule.fromObject(object.rules[i]); - } - } - return message; - }; + /** + * Table changeStreamConfig. + * @member {google.bigtable.admin.v2.IChangeStreamConfig|null|undefined} changeStreamConfig + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.changeStreamConfig = null; - /** - * Creates a plain object from an Intersection message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {google.bigtable.admin.v2.GcRule.Intersection} message Intersection - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Intersection.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.bigtable.admin.v2.GcRule.toObject(message.rules[j], options); - } - return object; - }; + /** + * Table deletionProtection. + * @member {boolean} deletionProtection + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.deletionProtection = false; - /** - * Converts this Intersection to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @instance - * @returns {Object.} JSON object - */ - Intersection.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Table automatedBackupPolicy. + * @member {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy|null|undefined} automatedBackupPolicy + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.automatedBackupPolicy = null; - /** - * Gets the default type url for Intersection - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.GcRule.Intersection - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Intersection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.GcRule.Intersection"; - }; + /** + * Table rowKeySchema. + * @member {google.bigtable.admin.v2.Type.IStruct|null|undefined} rowKeySchema + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Table.prototype.rowKeySchema = null; - return Intersection; - })(); + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - GcRule.Union = (function() { + /** + * Table automatedBackupConfig. + * @member {"automatedBackupPolicy"|undefined} automatedBackupConfig + * @memberof google.bigtable.admin.v2.Table + * @instance + */ + Object.defineProperty(Table.prototype, "automatedBackupConfig", { + get: $util.oneOfGetter($oneOfFields = ["automatedBackupPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Properties of an Union. - * @memberof google.bigtable.admin.v2.GcRule - * @interface IUnion - * @property {Array.|null} [rules] Union rules - */ + /** + * Creates a new Table instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {google.bigtable.admin.v2.ITable=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Table} Table instance + */ + Table.create = function create(properties) { + return new Table(properties); + }; - /** - * Constructs a new Union. - * @memberof google.bigtable.admin.v2.GcRule - * @classdesc Represents an Union. - * @implements IUnion - * @constructor - * @param {google.bigtable.admin.v2.GcRule.IUnion=} [properties] Properties to set - */ - function Union(properties) { - this.rules = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified Table message. Does not implicitly {@link google.bigtable.admin.v2.Table.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {google.bigtable.admin.v2.ITable} message Table message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Table.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.clusterStates != null && Object.hasOwnProperty.call(message, "clusterStates")) + for (var keys = Object.keys(message.clusterStates), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.bigtable.admin.v2.Table.ClusterState.encode(message.clusterStates[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.columnFamilies != null && Object.hasOwnProperty.call(message, "columnFamilies")) + for (var keys = Object.keys(message.columnFamilies), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.bigtable.admin.v2.ColumnFamily.encode(message.columnFamilies[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.granularity != null && Object.hasOwnProperty.call(message, "granularity")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.granularity); + if (message.restoreInfo != null && Object.hasOwnProperty.call(message, "restoreInfo")) + $root.google.bigtable.admin.v2.RestoreInfo.encode(message.restoreInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.changeStreamConfig != null && Object.hasOwnProperty.call(message, "changeStreamConfig")) + $root.google.bigtable.admin.v2.ChangeStreamConfig.encode(message.changeStreamConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.deletionProtection != null && Object.hasOwnProperty.call(message, "deletionProtection")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.deletionProtection); + if (message.automatedBackupPolicy != null && Object.hasOwnProperty.call(message, "automatedBackupPolicy")) + $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.encode(message.automatedBackupPolicy, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.rowKeySchema != null && Object.hasOwnProperty.call(message, "rowKeySchema")) + $root.google.bigtable.admin.v2.Type.Struct.encode(message.rowKeySchema, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + return writer; + }; - /** - * Union rules. - * @member {Array.} rules - * @memberof google.bigtable.admin.v2.GcRule.Union + /** + * Encodes the specified Table message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {google.bigtable.admin.v2.ITable} message Table message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Table.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Table message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Table} Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Table.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Table(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (message.clusterStates === $util.emptyObject) + message.clusterStates = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.bigtable.admin.v2.Table.ClusterState.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.clusterStates[key] = value; + break; + } + case 3: { + if (message.columnFamilies === $util.emptyObject) + message.columnFamilies = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.bigtable.admin.v2.ColumnFamily.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.columnFamilies[key] = value; + break; + } + case 4: { + message.granularity = reader.int32(); + break; + } + case 6: { + message.restoreInfo = $root.google.bigtable.admin.v2.RestoreInfo.decode(reader, reader.uint32()); + break; + } + case 8: { + message.changeStreamConfig = $root.google.bigtable.admin.v2.ChangeStreamConfig.decode(reader, reader.uint32()); + break; + } + case 9: { + message.deletionProtection = reader.bool(); + break; + } + case 13: { + message.automatedBackupPolicy = $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.decode(reader, reader.uint32()); + break; + } + case 15: { + message.rowKeySchema = $root.google.bigtable.admin.v2.Type.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Table message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Table} Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Table.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Table message. + * @function verify + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Table.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.clusterStates != null && message.hasOwnProperty("clusterStates")) { + if (!$util.isObject(message.clusterStates)) + return "clusterStates: object expected"; + var key = Object.keys(message.clusterStates); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.bigtable.admin.v2.Table.ClusterState.verify(message.clusterStates[key[i]]); + if (error) + return "clusterStates." + error; + } + } + if (message.columnFamilies != null && message.hasOwnProperty("columnFamilies")) { + if (!$util.isObject(message.columnFamilies)) + return "columnFamilies: object expected"; + var key = Object.keys(message.columnFamilies); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.bigtable.admin.v2.ColumnFamily.verify(message.columnFamilies[key[i]]); + if (error) + return "columnFamilies." + error; + } + } + if (message.granularity != null && message.hasOwnProperty("granularity")) + switch (message.granularity) { + default: + return "granularity: enum value expected"; + case 0: + case 1: + break; + } + if (message.restoreInfo != null && message.hasOwnProperty("restoreInfo")) { + var error = $root.google.bigtable.admin.v2.RestoreInfo.verify(message.restoreInfo); + if (error) + return "restoreInfo." + error; + } + if (message.changeStreamConfig != null && message.hasOwnProperty("changeStreamConfig")) { + var error = $root.google.bigtable.admin.v2.ChangeStreamConfig.verify(message.changeStreamConfig); + if (error) + return "changeStreamConfig." + error; + } + if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) + if (typeof message.deletionProtection !== "boolean") + return "deletionProtection: boolean expected"; + if (message.automatedBackupPolicy != null && message.hasOwnProperty("automatedBackupPolicy")) { + properties.automatedBackupConfig = 1; + { + var error = $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify(message.automatedBackupPolicy); + if (error) + return "automatedBackupPolicy." + error; + } + } + if (message.rowKeySchema != null && message.hasOwnProperty("rowKeySchema")) { + var error = $root.google.bigtable.admin.v2.Type.Struct.verify(message.rowKeySchema); + if (error) + return "rowKeySchema." + error; + } + return null; + }; + + /** + * Creates a Table message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Table} Table + */ + Table.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Table) + return object; + var message = new $root.google.bigtable.admin.v2.Table(); + if (object.name != null) + message.name = String(object.name); + if (object.clusterStates) { + if (typeof object.clusterStates !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.clusterStates: object expected"); + message.clusterStates = {}; + for (var keys = Object.keys(object.clusterStates), i = 0; i < keys.length; ++i) { + if (typeof object.clusterStates[keys[i]] !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.clusterStates: object expected"); + message.clusterStates[keys[i]] = $root.google.bigtable.admin.v2.Table.ClusterState.fromObject(object.clusterStates[keys[i]]); + } + } + if (object.columnFamilies) { + if (typeof object.columnFamilies !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.columnFamilies: object expected"); + message.columnFamilies = {}; + for (var keys = Object.keys(object.columnFamilies), i = 0; i < keys.length; ++i) { + if (typeof object.columnFamilies[keys[i]] !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.columnFamilies: object expected"); + message.columnFamilies[keys[i]] = $root.google.bigtable.admin.v2.ColumnFamily.fromObject(object.columnFamilies[keys[i]]); + } + } + switch (object.granularity) { + default: + if (typeof object.granularity === "number") { + message.granularity = object.granularity; + break; + } + break; + case "TIMESTAMP_GRANULARITY_UNSPECIFIED": + case 0: + message.granularity = 0; + break; + case "MILLIS": + case 1: + message.granularity = 1; + break; + } + if (object.restoreInfo != null) { + if (typeof object.restoreInfo !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.restoreInfo: object expected"); + message.restoreInfo = $root.google.bigtable.admin.v2.RestoreInfo.fromObject(object.restoreInfo); + } + if (object.changeStreamConfig != null) { + if (typeof object.changeStreamConfig !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.changeStreamConfig: object expected"); + message.changeStreamConfig = $root.google.bigtable.admin.v2.ChangeStreamConfig.fromObject(object.changeStreamConfig); + } + if (object.deletionProtection != null) + message.deletionProtection = Boolean(object.deletionProtection); + if (object.automatedBackupPolicy != null) { + if (typeof object.automatedBackupPolicy !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.automatedBackupPolicy: object expected"); + message.automatedBackupPolicy = $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.fromObject(object.automatedBackupPolicy); + } + if (object.rowKeySchema != null) { + if (typeof object.rowKeySchema !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.rowKeySchema: object expected"); + message.rowKeySchema = $root.google.bigtable.admin.v2.Type.Struct.fromObject(object.rowKeySchema); + } + return message; + }; + + /** + * Creates a plain object from a Table message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {google.bigtable.admin.v2.Table} message Table + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Table.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.clusterStates = {}; + object.columnFamilies = {}; + } + if (options.defaults) { + object.name = ""; + object.granularity = options.enums === String ? "TIMESTAMP_GRANULARITY_UNSPECIFIED" : 0; + object.restoreInfo = null; + object.changeStreamConfig = null; + object.deletionProtection = false; + object.rowKeySchema = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + var keys2; + if (message.clusterStates && (keys2 = Object.keys(message.clusterStates)).length) { + object.clusterStates = {}; + for (var j = 0; j < keys2.length; ++j) + object.clusterStates[keys2[j]] = $root.google.bigtable.admin.v2.Table.ClusterState.toObject(message.clusterStates[keys2[j]], options); + } + if (message.columnFamilies && (keys2 = Object.keys(message.columnFamilies)).length) { + object.columnFamilies = {}; + for (var j = 0; j < keys2.length; ++j) + object.columnFamilies[keys2[j]] = $root.google.bigtable.admin.v2.ColumnFamily.toObject(message.columnFamilies[keys2[j]], options); + } + if (message.granularity != null && message.hasOwnProperty("granularity")) + object.granularity = options.enums === String ? $root.google.bigtable.admin.v2.Table.TimestampGranularity[message.granularity] === undefined ? message.granularity : $root.google.bigtable.admin.v2.Table.TimestampGranularity[message.granularity] : message.granularity; + if (message.restoreInfo != null && message.hasOwnProperty("restoreInfo")) + object.restoreInfo = $root.google.bigtable.admin.v2.RestoreInfo.toObject(message.restoreInfo, options); + if (message.changeStreamConfig != null && message.hasOwnProperty("changeStreamConfig")) + object.changeStreamConfig = $root.google.bigtable.admin.v2.ChangeStreamConfig.toObject(message.changeStreamConfig, options); + if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) + object.deletionProtection = message.deletionProtection; + if (message.automatedBackupPolicy != null && message.hasOwnProperty("automatedBackupPolicy")) { + object.automatedBackupPolicy = $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy.toObject(message.automatedBackupPolicy, options); + if (options.oneofs) + object.automatedBackupConfig = "automatedBackupPolicy"; + } + if (message.rowKeySchema != null && message.hasOwnProperty("rowKeySchema")) + object.rowKeySchema = $root.google.bigtable.admin.v2.Type.Struct.toObject(message.rowKeySchema, options); + return object; + }; + + /** + * Converts this Table to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Table + * @instance + * @returns {Object.} JSON object + */ + Table.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Table + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Table + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Table.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Table"; + }; + + Table.ClusterState = (function() { + + /** + * Properties of a ClusterState. + * @memberof google.bigtable.admin.v2.Table + * @interface IClusterState + * @property {google.bigtable.admin.v2.Table.ClusterState.ReplicationState|null} [replicationState] ClusterState replicationState + * @property {Array.|null} [encryptionInfo] ClusterState encryptionInfo + */ + + /** + * Constructs a new ClusterState. + * @memberof google.bigtable.admin.v2.Table + * @classdesc Represents a ClusterState. + * @implements IClusterState + * @constructor + * @param {google.bigtable.admin.v2.Table.IClusterState=} [properties] Properties to set + */ + function ClusterState(properties) { + this.encryptionInfo = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ClusterState replicationState. + * @member {google.bigtable.admin.v2.Table.ClusterState.ReplicationState} replicationState + * @memberof google.bigtable.admin.v2.Table.ClusterState * @instance */ - Union.prototype.rules = $util.emptyArray; + ClusterState.prototype.replicationState = 0; /** - * Creates a new Union instance using the specified properties. + * ClusterState encryptionInfo. + * @member {Array.} encryptionInfo + * @memberof google.bigtable.admin.v2.Table.ClusterState + * @instance + */ + ClusterState.prototype.encryptionInfo = $util.emptyArray; + + /** + * Creates a new ClusterState instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static - * @param {google.bigtable.admin.v2.GcRule.IUnion=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.GcRule.Union} Union instance + * @param {google.bigtable.admin.v2.Table.IClusterState=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Table.ClusterState} ClusterState instance */ - Union.create = function create(properties) { - return new Union(properties); + ClusterState.create = function create(properties) { + return new ClusterState(properties); }; /** - * Encodes the specified Union message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Union.verify|verify} messages. + * Encodes the specified ClusterState message. Does not implicitly {@link google.bigtable.admin.v2.Table.ClusterState.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static - * @param {google.bigtable.admin.v2.GcRule.IUnion} message Union message or plain object to encode + * @param {google.bigtable.admin.v2.Table.IClusterState} message ClusterState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Union.encode = function encode(message, writer) { + ClusterState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.bigtable.admin.v2.GcRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.replicationState != null && Object.hasOwnProperty.call(message, "replicationState")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.replicationState); + if (message.encryptionInfo != null && message.encryptionInfo.length) + for (var i = 0; i < message.encryptionInfo.length; ++i) + $root.google.bigtable.admin.v2.EncryptionInfo.encode(message.encryptionInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Union message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Union.verify|verify} messages. + * Encodes the specified ClusterState message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.ClusterState.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static - * @param {google.bigtable.admin.v2.GcRule.IUnion} message Union message or plain object to encode + * @param {google.bigtable.admin.v2.Table.IClusterState} message ClusterState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Union.encodeDelimited = function encodeDelimited(message, writer) { + ClusterState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Union message from the specified reader or buffer. + * Decodes a ClusterState message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.GcRule.Union} Union + * @returns {google.bigtable.admin.v2.Table.ClusterState} ClusterState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Union.decode = function decode(reader, length, error) { + ClusterState.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.GcRule.Union(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Table.ClusterState(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.bigtable.admin.v2.GcRule.decode(reader, reader.uint32())); + message.replicationState = reader.int32(); + break; + } + case 2: { + if (!(message.encryptionInfo && message.encryptionInfo.length)) + message.encryptionInfo = []; + message.encryptionInfo.push($root.google.bigtable.admin.v2.EncryptionInfo.decode(reader, reader.uint32())); break; } default: @@ -33263,144 +33249,490 @@ }; /** - * Decodes an Union message from the specified reader or buffer, length delimited. + * Decodes a ClusterState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.GcRule.Union} Union + * @returns {google.bigtable.admin.v2.Table.ClusterState} ClusterState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Union.decodeDelimited = function decodeDelimited(reader) { + ClusterState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Union message. + * Verifies a ClusterState message. * @function verify - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Union.verify = function verify(message) { + ClusterState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.bigtable.admin.v2.GcRule.verify(message.rules[i]); + if (message.replicationState != null && message.hasOwnProperty("replicationState")) + switch (message.replicationState) { + default: + return "replicationState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.encryptionInfo != null && message.hasOwnProperty("encryptionInfo")) { + if (!Array.isArray(message.encryptionInfo)) + return "encryptionInfo: array expected"; + for (var i = 0; i < message.encryptionInfo.length; ++i) { + var error = $root.google.bigtable.admin.v2.EncryptionInfo.verify(message.encryptionInfo[i]); if (error) - return "rules." + error; + return "encryptionInfo." + error; } } return null; }; /** - * Creates an Union message from a plain object. Also converts values to their respective internal types. + * Creates a ClusterState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.GcRule.Union} Union + * @returns {google.bigtable.admin.v2.Table.ClusterState} ClusterState */ - Union.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.GcRule.Union) + ClusterState.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Table.ClusterState) return object; - var message = new $root.google.bigtable.admin.v2.GcRule.Union(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.bigtable.admin.v2.GcRule.Union.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.bigtable.admin.v2.GcRule.Union.rules: object expected"); - message.rules[i] = $root.google.bigtable.admin.v2.GcRule.fromObject(object.rules[i]); + var message = new $root.google.bigtable.admin.v2.Table.ClusterState(); + switch (object.replicationState) { + default: + if (typeof object.replicationState === "number") { + message.replicationState = object.replicationState; + break; + } + break; + case "STATE_NOT_KNOWN": + case 0: + message.replicationState = 0; + break; + case "INITIALIZING": + case 1: + message.replicationState = 1; + break; + case "PLANNED_MAINTENANCE": + case 2: + message.replicationState = 2; + break; + case "UNPLANNED_MAINTENANCE": + case 3: + message.replicationState = 3; + break; + case "READY": + case 4: + message.replicationState = 4; + break; + case "READY_OPTIMIZING": + case 5: + message.replicationState = 5; + break; + } + if (object.encryptionInfo) { + if (!Array.isArray(object.encryptionInfo)) + throw TypeError(".google.bigtable.admin.v2.Table.ClusterState.encryptionInfo: array expected"); + message.encryptionInfo = []; + for (var i = 0; i < object.encryptionInfo.length; ++i) { + if (typeof object.encryptionInfo[i] !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.ClusterState.encryptionInfo: object expected"); + message.encryptionInfo[i] = $root.google.bigtable.admin.v2.EncryptionInfo.fromObject(object.encryptionInfo[i]); } } return message; }; /** - * Creates a plain object from an Union message. Also converts values to other types if specified. + * Creates a plain object from a ClusterState message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static - * @param {google.bigtable.admin.v2.GcRule.Union} message Union + * @param {google.bigtable.admin.v2.Table.ClusterState} message ClusterState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Union.toObject = function toObject(message, options) { + ClusterState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.bigtable.admin.v2.GcRule.toObject(message.rules[j], options); + object.encryptionInfo = []; + if (options.defaults) + object.replicationState = options.enums === String ? "STATE_NOT_KNOWN" : 0; + if (message.replicationState != null && message.hasOwnProperty("replicationState")) + object.replicationState = options.enums === String ? $root.google.bigtable.admin.v2.Table.ClusterState.ReplicationState[message.replicationState] === undefined ? message.replicationState : $root.google.bigtable.admin.v2.Table.ClusterState.ReplicationState[message.replicationState] : message.replicationState; + if (message.encryptionInfo && message.encryptionInfo.length) { + object.encryptionInfo = []; + for (var j = 0; j < message.encryptionInfo.length; ++j) + object.encryptionInfo[j] = $root.google.bigtable.admin.v2.EncryptionInfo.toObject(message.encryptionInfo[j], options); } return object; }; /** - * Converts this Union to JSON. + * Converts this ClusterState to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @instance * @returns {Object.} JSON object */ - Union.prototype.toJSON = function toJSON() { + ClusterState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Union + * Gets the default type url for ClusterState * @function getTypeUrl - * @memberof google.bigtable.admin.v2.GcRule.Union + * @memberof google.bigtable.admin.v2.Table.ClusterState * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Union.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ClusterState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.GcRule.Union"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Table.ClusterState"; }; - return Union; + /** + * ReplicationState enum. + * @name google.bigtable.admin.v2.Table.ClusterState.ReplicationState + * @enum {number} + * @property {number} STATE_NOT_KNOWN=0 STATE_NOT_KNOWN value + * @property {number} INITIALIZING=1 INITIALIZING value + * @property {number} PLANNED_MAINTENANCE=2 PLANNED_MAINTENANCE value + * @property {number} UNPLANNED_MAINTENANCE=3 UNPLANNED_MAINTENANCE value + * @property {number} READY=4 READY value + * @property {number} READY_OPTIMIZING=5 READY_OPTIMIZING value + */ + ClusterState.ReplicationState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_NOT_KNOWN"] = 0; + values[valuesById[1] = "INITIALIZING"] = 1; + values[valuesById[2] = "PLANNED_MAINTENANCE"] = 2; + values[valuesById[3] = "UNPLANNED_MAINTENANCE"] = 3; + values[valuesById[4] = "READY"] = 4; + values[valuesById[5] = "READY_OPTIMIZING"] = 5; + return values; + })(); + + return ClusterState; })(); - return GcRule; + /** + * TimestampGranularity enum. + * @name google.bigtable.admin.v2.Table.TimestampGranularity + * @enum {number} + * @property {number} TIMESTAMP_GRANULARITY_UNSPECIFIED=0 TIMESTAMP_GRANULARITY_UNSPECIFIED value + * @property {number} MILLIS=1 MILLIS value + */ + Table.TimestampGranularity = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TIMESTAMP_GRANULARITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "MILLIS"] = 1; + return values; + })(); + + /** + * View enum. + * @name google.bigtable.admin.v2.Table.View + * @enum {number} + * @property {number} VIEW_UNSPECIFIED=0 VIEW_UNSPECIFIED value + * @property {number} NAME_ONLY=1 NAME_ONLY value + * @property {number} SCHEMA_VIEW=2 SCHEMA_VIEW value + * @property {number} REPLICATION_VIEW=3 REPLICATION_VIEW value + * @property {number} ENCRYPTION_VIEW=5 ENCRYPTION_VIEW value + * @property {number} FULL=4 FULL value + */ + Table.View = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "NAME_ONLY"] = 1; + values[valuesById[2] = "SCHEMA_VIEW"] = 2; + values[valuesById[3] = "REPLICATION_VIEW"] = 3; + values[valuesById[5] = "ENCRYPTION_VIEW"] = 5; + values[valuesById[4] = "FULL"] = 4; + return values; + })(); + + Table.AutomatedBackupPolicy = (function() { + + /** + * Properties of an AutomatedBackupPolicy. + * @memberof google.bigtable.admin.v2.Table + * @interface IAutomatedBackupPolicy + * @property {google.protobuf.IDuration|null} [retentionPeriod] AutomatedBackupPolicy retentionPeriod + * @property {google.protobuf.IDuration|null} [frequency] AutomatedBackupPolicy frequency + */ + + /** + * Constructs a new AutomatedBackupPolicy. + * @memberof google.bigtable.admin.v2.Table + * @classdesc Represents an AutomatedBackupPolicy. + * @implements IAutomatedBackupPolicy + * @constructor + * @param {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy=} [properties] Properties to set + */ + function AutomatedBackupPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AutomatedBackupPolicy retentionPeriod. + * @member {google.protobuf.IDuration|null|undefined} retentionPeriod + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @instance + */ + AutomatedBackupPolicy.prototype.retentionPeriod = null; + + /** + * AutomatedBackupPolicy frequency. + * @member {google.protobuf.IDuration|null|undefined} frequency + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @instance + */ + AutomatedBackupPolicy.prototype.frequency = null; + + /** + * Creates a new AutomatedBackupPolicy instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} AutomatedBackupPolicy instance + */ + AutomatedBackupPolicy.create = function create(properties) { + return new AutomatedBackupPolicy(properties); + }; + + /** + * Encodes the specified AutomatedBackupPolicy message. Does not implicitly {@link google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy} message AutomatedBackupPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomatedBackupPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.retentionPeriod != null && Object.hasOwnProperty.call(message, "retentionPeriod")) + $root.google.protobuf.Duration.encode(message.retentionPeriod, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.frequency != null && Object.hasOwnProperty.call(message, "frequency")) + $root.google.protobuf.Duration.encode(message.frequency, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AutomatedBackupPolicy message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Table.AutomatedBackupPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {google.bigtable.admin.v2.Table.IAutomatedBackupPolicy} message AutomatedBackupPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomatedBackupPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutomatedBackupPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} AutomatedBackupPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomatedBackupPolicy.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.retentionPeriod = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.frequency = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutomatedBackupPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} AutomatedBackupPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomatedBackupPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutomatedBackupPolicy message. + * @function verify + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutomatedBackupPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.retentionPeriod != null && message.hasOwnProperty("retentionPeriod")) { + var error = $root.google.protobuf.Duration.verify(message.retentionPeriod); + if (error) + return "retentionPeriod." + error; + } + if (message.frequency != null && message.hasOwnProperty("frequency")) { + var error = $root.google.protobuf.Duration.verify(message.frequency); + if (error) + return "frequency." + error; + } + return null; + }; + + /** + * Creates an AutomatedBackupPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} AutomatedBackupPolicy + */ + AutomatedBackupPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy) + return object; + var message = new $root.google.bigtable.admin.v2.Table.AutomatedBackupPolicy(); + if (object.retentionPeriod != null) { + if (typeof object.retentionPeriod !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.AutomatedBackupPolicy.retentionPeriod: object expected"); + message.retentionPeriod = $root.google.protobuf.Duration.fromObject(object.retentionPeriod); + } + if (object.frequency != null) { + if (typeof object.frequency !== "object") + throw TypeError(".google.bigtable.admin.v2.Table.AutomatedBackupPolicy.frequency: object expected"); + message.frequency = $root.google.protobuf.Duration.fromObject(object.frequency); + } + return message; + }; + + /** + * Creates a plain object from an AutomatedBackupPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {google.bigtable.admin.v2.Table.AutomatedBackupPolicy} message AutomatedBackupPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutomatedBackupPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.retentionPeriod = null; + object.frequency = null; + } + if (message.retentionPeriod != null && message.hasOwnProperty("retentionPeriod")) + object.retentionPeriod = $root.google.protobuf.Duration.toObject(message.retentionPeriod, options); + if (message.frequency != null && message.hasOwnProperty("frequency")) + object.frequency = $root.google.protobuf.Duration.toObject(message.frequency, options); + return object; + }; + + /** + * Converts this AutomatedBackupPolicy to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @instance + * @returns {Object.} JSON object + */ + AutomatedBackupPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutomatedBackupPolicy + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Table.AutomatedBackupPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutomatedBackupPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Table.AutomatedBackupPolicy"; + }; + + return AutomatedBackupPolicy; + })(); + + return Table; })(); - v2.EncryptionInfo = (function() { + v2.AuthorizedView = (function() { /** - * Properties of an EncryptionInfo. + * Properties of an AuthorizedView. * @memberof google.bigtable.admin.v2 - * @interface IEncryptionInfo - * @property {google.bigtable.admin.v2.EncryptionInfo.EncryptionType|null} [encryptionType] EncryptionInfo encryptionType - * @property {google.rpc.IStatus|null} [encryptionStatus] EncryptionInfo encryptionStatus - * @property {string|null} [kmsKeyVersion] EncryptionInfo kmsKeyVersion + * @interface IAuthorizedView + * @property {string|null} [name] AuthorizedView name + * @property {google.bigtable.admin.v2.AuthorizedView.ISubsetView|null} [subsetView] AuthorizedView subsetView + * @property {string|null} [etag] AuthorizedView etag + * @property {boolean|null} [deletionProtection] AuthorizedView deletionProtection */ /** - * Constructs a new EncryptionInfo. + * Constructs a new AuthorizedView. * @memberof google.bigtable.admin.v2 - * @classdesc Represents an EncryptionInfo. - * @implements IEncryptionInfo + * @classdesc Represents an AuthorizedView. + * @implements IAuthorizedView * @constructor - * @param {google.bigtable.admin.v2.IEncryptionInfo=} [properties] Properties to set + * @param {google.bigtable.admin.v2.IAuthorizedView=} [properties] Properties to set */ - function EncryptionInfo(properties) { + function AuthorizedView(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33408,105 +33740,133 @@ } /** - * EncryptionInfo encryptionType. - * @member {google.bigtable.admin.v2.EncryptionInfo.EncryptionType} encryptionType - * @memberof google.bigtable.admin.v2.EncryptionInfo + * AuthorizedView name. + * @member {string} name + * @memberof google.bigtable.admin.v2.AuthorizedView * @instance */ - EncryptionInfo.prototype.encryptionType = 0; + AuthorizedView.prototype.name = ""; /** - * EncryptionInfo encryptionStatus. - * @member {google.rpc.IStatus|null|undefined} encryptionStatus - * @memberof google.bigtable.admin.v2.EncryptionInfo + * AuthorizedView subsetView. + * @member {google.bigtable.admin.v2.AuthorizedView.ISubsetView|null|undefined} subsetView + * @memberof google.bigtable.admin.v2.AuthorizedView * @instance */ - EncryptionInfo.prototype.encryptionStatus = null; + AuthorizedView.prototype.subsetView = null; /** - * EncryptionInfo kmsKeyVersion. - * @member {string} kmsKeyVersion - * @memberof google.bigtable.admin.v2.EncryptionInfo + * AuthorizedView etag. + * @member {string} etag + * @memberof google.bigtable.admin.v2.AuthorizedView * @instance */ - EncryptionInfo.prototype.kmsKeyVersion = ""; + AuthorizedView.prototype.etag = ""; /** - * Creates a new EncryptionInfo instance using the specified properties. + * AuthorizedView deletionProtection. + * @member {boolean} deletionProtection + * @memberof google.bigtable.admin.v2.AuthorizedView + * @instance + */ + AuthorizedView.prototype.deletionProtection = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AuthorizedView authorizedView. + * @member {"subsetView"|undefined} authorizedView + * @memberof google.bigtable.admin.v2.AuthorizedView + * @instance + */ + Object.defineProperty(AuthorizedView.prototype, "authorizedView", { + get: $util.oneOfGetter($oneOfFields = ["subsetView"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AuthorizedView instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static - * @param {google.bigtable.admin.v2.IEncryptionInfo=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.EncryptionInfo} EncryptionInfo instance + * @param {google.bigtable.admin.v2.IAuthorizedView=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.AuthorizedView} AuthorizedView instance */ - EncryptionInfo.create = function create(properties) { - return new EncryptionInfo(properties); + AuthorizedView.create = function create(properties) { + return new AuthorizedView(properties); }; /** - * Encodes the specified EncryptionInfo message. Does not implicitly {@link google.bigtable.admin.v2.EncryptionInfo.verify|verify} messages. + * Encodes the specified AuthorizedView message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static - * @param {google.bigtable.admin.v2.IEncryptionInfo} message EncryptionInfo message or plain object to encode + * @param {google.bigtable.admin.v2.IAuthorizedView} message AuthorizedView message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EncryptionInfo.encode = function encode(message, writer) { + AuthorizedView.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kmsKeyVersion != null && Object.hasOwnProperty.call(message, "kmsKeyVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKeyVersion); - if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.encryptionType); - if (message.encryptionStatus != null && Object.hasOwnProperty.call(message, "encryptionStatus")) - $root.google.rpc.Status.encode(message.encryptionStatus, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.subsetView != null && Object.hasOwnProperty.call(message, "subsetView")) + $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.encode(message.subsetView, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + if (message.deletionProtection != null && Object.hasOwnProperty.call(message, "deletionProtection")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.deletionProtection); return writer; }; /** - * Encodes the specified EncryptionInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.EncryptionInfo.verify|verify} messages. + * Encodes the specified AuthorizedView message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static - * @param {google.bigtable.admin.v2.IEncryptionInfo} message EncryptionInfo message or plain object to encode + * @param {google.bigtable.admin.v2.IAuthorizedView} message AuthorizedView message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EncryptionInfo.encodeDelimited = function encodeDelimited(message, writer) { + AuthorizedView.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EncryptionInfo message from the specified reader or buffer. + * Decodes an AuthorizedView message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.EncryptionInfo} EncryptionInfo + * @returns {google.bigtable.admin.v2.AuthorizedView} AuthorizedView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EncryptionInfo.decode = function decode(reader, length, error) { + AuthorizedView.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.EncryptionInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.AuthorizedView(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 3: { - message.encryptionType = reader.int32(); + case 1: { + message.name = reader.string(); break; } - case 4: { - message.encryptionStatus = $root.google.rpc.Status.decode(reader, reader.uint32()); + case 2: { + message.subsetView = $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.decode(reader, reader.uint32()); break; } - case 2: { - message.kmsKeyVersion = reader.string(); + case 3: { + message.etag = reader.string(); + break; + } + case 4: { + message.deletionProtection = reader.bool(); break; } default: @@ -33518,825 +33878,826 @@ }; /** - * Decodes an EncryptionInfo message from the specified reader or buffer, length delimited. + * Decodes an AuthorizedView message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.EncryptionInfo} EncryptionInfo + * @returns {google.bigtable.admin.v2.AuthorizedView} AuthorizedView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EncryptionInfo.decodeDelimited = function decodeDelimited(reader) { + AuthorizedView.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EncryptionInfo message. + * Verifies an AuthorizedView message. * @function verify - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EncryptionInfo.verify = function verify(message) { + AuthorizedView.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - switch (message.encryptionType) { - default: - return "encryptionType: enum value expected"; - case 0: - case 1: - case 2: - break; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.subsetView != null && message.hasOwnProperty("subsetView")) { + properties.authorizedView = 1; + { + var error = $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.verify(message.subsetView); + if (error) + return "subsetView." + error; } - if (message.encryptionStatus != null && message.hasOwnProperty("encryptionStatus")) { - var error = $root.google.rpc.Status.verify(message.encryptionStatus); - if (error) - return "encryptionStatus." + error; } - if (message.kmsKeyVersion != null && message.hasOwnProperty("kmsKeyVersion")) - if (!$util.isString(message.kmsKeyVersion)) - return "kmsKeyVersion: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) + if (typeof message.deletionProtection !== "boolean") + return "deletionProtection: boolean expected"; return null; }; /** - * Creates an EncryptionInfo message from a plain object. Also converts values to their respective internal types. + * Creates an AuthorizedView message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.EncryptionInfo} EncryptionInfo + * @returns {google.bigtable.admin.v2.AuthorizedView} AuthorizedView */ - EncryptionInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.EncryptionInfo) + AuthorizedView.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.AuthorizedView) return object; - var message = new $root.google.bigtable.admin.v2.EncryptionInfo(); - switch (object.encryptionType) { - default: - if (typeof object.encryptionType === "number") { - message.encryptionType = object.encryptionType; - break; - } - break; - case "ENCRYPTION_TYPE_UNSPECIFIED": - case 0: - message.encryptionType = 0; - break; - case "GOOGLE_DEFAULT_ENCRYPTION": - case 1: - message.encryptionType = 1; - break; - case "CUSTOMER_MANAGED_ENCRYPTION": - case 2: - message.encryptionType = 2; - break; - } - if (object.encryptionStatus != null) { - if (typeof object.encryptionStatus !== "object") - throw TypeError(".google.bigtable.admin.v2.EncryptionInfo.encryptionStatus: object expected"); - message.encryptionStatus = $root.google.rpc.Status.fromObject(object.encryptionStatus); + var message = new $root.google.bigtable.admin.v2.AuthorizedView(); + if (object.name != null) + message.name = String(object.name); + if (object.subsetView != null) { + if (typeof object.subsetView !== "object") + throw TypeError(".google.bigtable.admin.v2.AuthorizedView.subsetView: object expected"); + message.subsetView = $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.fromObject(object.subsetView); } - if (object.kmsKeyVersion != null) - message.kmsKeyVersion = String(object.kmsKeyVersion); + if (object.etag != null) + message.etag = String(object.etag); + if (object.deletionProtection != null) + message.deletionProtection = Boolean(object.deletionProtection); return message; }; /** - * Creates a plain object from an EncryptionInfo message. Also converts values to other types if specified. + * Creates a plain object from an AuthorizedView message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static - * @param {google.bigtable.admin.v2.EncryptionInfo} message EncryptionInfo + * @param {google.bigtable.admin.v2.AuthorizedView} message AuthorizedView * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EncryptionInfo.toObject = function toObject(message, options) { + AuthorizedView.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.kmsKeyVersion = ""; - object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0; - object.encryptionStatus = null; + object.name = ""; + object.etag = ""; + object.deletionProtection = false; } - if (message.kmsKeyVersion != null && message.hasOwnProperty("kmsKeyVersion")) - object.kmsKeyVersion = message.kmsKeyVersion; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - object.encryptionType = options.enums === String ? $root.google.bigtable.admin.v2.EncryptionInfo.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.bigtable.admin.v2.EncryptionInfo.EncryptionType[message.encryptionType] : message.encryptionType; - if (message.encryptionStatus != null && message.hasOwnProperty("encryptionStatus")) - object.encryptionStatus = $root.google.rpc.Status.toObject(message.encryptionStatus, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.subsetView != null && message.hasOwnProperty("subsetView")) { + object.subsetView = $root.google.bigtable.admin.v2.AuthorizedView.SubsetView.toObject(message.subsetView, options); + if (options.oneofs) + object.authorizedView = "subsetView"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) + object.deletionProtection = message.deletionProtection; return object; }; /** - * Converts this EncryptionInfo to JSON. + * Converts this AuthorizedView to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @instance * @returns {Object.} JSON object */ - EncryptionInfo.prototype.toJSON = function toJSON() { + AuthorizedView.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EncryptionInfo + * Gets the default type url for AuthorizedView * @function getTypeUrl - * @memberof google.bigtable.admin.v2.EncryptionInfo + * @memberof google.bigtable.admin.v2.AuthorizedView * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EncryptionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AuthorizedView.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.EncryptionInfo"; + return typeUrlPrefix + "/google.bigtable.admin.v2.AuthorizedView"; }; - /** - * EncryptionType enum. - * @name google.bigtable.admin.v2.EncryptionInfo.EncryptionType - * @enum {number} - * @property {number} ENCRYPTION_TYPE_UNSPECIFIED=0 ENCRYPTION_TYPE_UNSPECIFIED value - * @property {number} GOOGLE_DEFAULT_ENCRYPTION=1 GOOGLE_DEFAULT_ENCRYPTION value - * @property {number} CUSTOMER_MANAGED_ENCRYPTION=2 CUSTOMER_MANAGED_ENCRYPTION value - */ - EncryptionInfo.EncryptionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENCRYPTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "GOOGLE_DEFAULT_ENCRYPTION"] = 1; - values[valuesById[2] = "CUSTOMER_MANAGED_ENCRYPTION"] = 2; - return values; - })(); - - return EncryptionInfo; - })(); - - v2.Snapshot = (function() { - - /** - * Properties of a Snapshot. - * @memberof google.bigtable.admin.v2 - * @interface ISnapshot - * @property {string|null} [name] Snapshot name - * @property {google.bigtable.admin.v2.ITable|null} [sourceTable] Snapshot sourceTable - * @property {number|Long|null} [dataSizeBytes] Snapshot dataSizeBytes - * @property {google.protobuf.ITimestamp|null} [createTime] Snapshot createTime - * @property {google.protobuf.ITimestamp|null} [deleteTime] Snapshot deleteTime - * @property {google.bigtable.admin.v2.Snapshot.State|null} [state] Snapshot state - * @property {string|null} [description] Snapshot description - */ - - /** - * Constructs a new Snapshot. - * @memberof google.bigtable.admin.v2 - * @classdesc Represents a Snapshot. - * @implements ISnapshot - * @constructor - * @param {google.bigtable.admin.v2.ISnapshot=} [properties] Properties to set - */ - function Snapshot(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Snapshot name. - * @member {string} name - * @memberof google.bigtable.admin.v2.Snapshot - * @instance - */ - Snapshot.prototype.name = ""; - - /** - * Snapshot sourceTable. - * @member {google.bigtable.admin.v2.ITable|null|undefined} sourceTable - * @memberof google.bigtable.admin.v2.Snapshot - * @instance - */ - Snapshot.prototype.sourceTable = null; - - /** - * Snapshot dataSizeBytes. - * @member {number|Long} dataSizeBytes - * @memberof google.bigtable.admin.v2.Snapshot - * @instance - */ - Snapshot.prototype.dataSizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AuthorizedView.FamilySubsets = (function() { - /** - * Snapshot createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.bigtable.admin.v2.Snapshot - * @instance - */ - Snapshot.prototype.createTime = null; + /** + * Properties of a FamilySubsets. + * @memberof google.bigtable.admin.v2.AuthorizedView + * @interface IFamilySubsets + * @property {Array.|null} [qualifiers] FamilySubsets qualifiers + * @property {Array.|null} [qualifierPrefixes] FamilySubsets qualifierPrefixes + */ - /** - * Snapshot deleteTime. - * @member {google.protobuf.ITimestamp|null|undefined} deleteTime - * @memberof google.bigtable.admin.v2.Snapshot - * @instance - */ - Snapshot.prototype.deleteTime = null; + /** + * Constructs a new FamilySubsets. + * @memberof google.bigtable.admin.v2.AuthorizedView + * @classdesc Represents a FamilySubsets. + * @implements IFamilySubsets + * @constructor + * @param {google.bigtable.admin.v2.AuthorizedView.IFamilySubsets=} [properties] Properties to set + */ + function FamilySubsets(properties) { + this.qualifiers = []; + this.qualifierPrefixes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Snapshot state. - * @member {google.bigtable.admin.v2.Snapshot.State} state - * @memberof google.bigtable.admin.v2.Snapshot - * @instance - */ - Snapshot.prototype.state = 0; + /** + * FamilySubsets qualifiers. + * @member {Array.} qualifiers + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @instance + */ + FamilySubsets.prototype.qualifiers = $util.emptyArray; - /** - * Snapshot description. - * @member {string} description - * @memberof google.bigtable.admin.v2.Snapshot - * @instance - */ - Snapshot.prototype.description = ""; + /** + * FamilySubsets qualifierPrefixes. + * @member {Array.} qualifierPrefixes + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @instance + */ + FamilySubsets.prototype.qualifierPrefixes = $util.emptyArray; - /** - * Creates a new Snapshot instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {google.bigtable.admin.v2.ISnapshot=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Snapshot} Snapshot instance - */ - Snapshot.create = function create(properties) { - return new Snapshot(properties); - }; + /** + * Creates a new FamilySubsets instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {google.bigtable.admin.v2.AuthorizedView.IFamilySubsets=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} FamilySubsets instance + */ + FamilySubsets.create = function create(properties) { + return new FamilySubsets(properties); + }; - /** - * Encodes the specified Snapshot message. Does not implicitly {@link google.bigtable.admin.v2.Snapshot.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {google.bigtable.admin.v2.ISnapshot} message Snapshot message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Snapshot.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.sourceTable != null && Object.hasOwnProperty.call(message, "sourceTable")) - $root.google.bigtable.admin.v2.Table.encode(message.sourceTable, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dataSizeBytes != null && Object.hasOwnProperty.call(message, "dataSizeBytes")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.dataSizeBytes); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) - $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.description); - return writer; - }; + /** + * Encodes the specified FamilySubsets message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {google.bigtable.admin.v2.AuthorizedView.IFamilySubsets} message FamilySubsets message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FamilySubsets.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.qualifiers != null && message.qualifiers.length) + for (var i = 0; i < message.qualifiers.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.qualifiers[i]); + if (message.qualifierPrefixes != null && message.qualifierPrefixes.length) + for (var i = 0; i < message.qualifierPrefixes.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.qualifierPrefixes[i]); + return writer; + }; - /** - * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Snapshot.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {google.bigtable.admin.v2.ISnapshot} message Snapshot message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Snapshot.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified FamilySubsets message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {google.bigtable.admin.v2.AuthorizedView.IFamilySubsets} message FamilySubsets message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FamilySubsets.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Snapshot message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Snapshot} Snapshot - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Snapshot.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Snapshot(); - 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.sourceTable = $root.google.bigtable.admin.v2.Table.decode(reader, reader.uint32()); - break; - } - case 3: { - message.dataSizeBytes = reader.int64(); - break; - } - case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.state = reader.int32(); + /** + * Decodes a FamilySubsets message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} FamilySubsets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FamilySubsets.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - } - case 7: { - message.description = reader.string(); + switch (tag >>> 3) { + case 1: { + if (!(message.qualifiers && message.qualifiers.length)) + message.qualifiers = []; + message.qualifiers.push(reader.bytes()); + break; + } + case 2: { + if (!(message.qualifierPrefixes && message.qualifierPrefixes.length)) + message.qualifierPrefixes = []; + message.qualifierPrefixes.push(reader.bytes()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Snapshot message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Snapshot} Snapshot - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Snapshot.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a FamilySubsets message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} FamilySubsets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FamilySubsets.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Snapshot message. - * @function verify - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Snapshot.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) { - var error = $root.google.bigtable.admin.v2.Table.verify(message.sourceTable); - if (error) - return "sourceTable." + error; - } - if (message.dataSizeBytes != null && message.hasOwnProperty("dataSizeBytes")) - if (!$util.isInteger(message.dataSizeBytes) && !(message.dataSizeBytes && $util.isInteger(message.dataSizeBytes.low) && $util.isInteger(message.dataSizeBytes.high))) - return "dataSizeBytes: integer|Long expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); - if (error) - return "deleteTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; + /** + * Verifies a FamilySubsets message. + * @function verify + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FamilySubsets.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.qualifiers != null && message.hasOwnProperty("qualifiers")) { + if (!Array.isArray(message.qualifiers)) + return "qualifiers: array expected"; + for (var i = 0; i < message.qualifiers.length; ++i) + if (!(message.qualifiers[i] && typeof message.qualifiers[i].length === "number" || $util.isString(message.qualifiers[i]))) + return "qualifiers: buffer[] expected"; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - return null; - }; + if (message.qualifierPrefixes != null && message.hasOwnProperty("qualifierPrefixes")) { + if (!Array.isArray(message.qualifierPrefixes)) + return "qualifierPrefixes: array expected"; + for (var i = 0; i < message.qualifierPrefixes.length; ++i) + if (!(message.qualifierPrefixes[i] && typeof message.qualifierPrefixes[i].length === "number" || $util.isString(message.qualifierPrefixes[i]))) + return "qualifierPrefixes: buffer[] expected"; + } + return null; + }; - /** - * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Snapshot} Snapshot - */ - Snapshot.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Snapshot) - return object; - var message = new $root.google.bigtable.admin.v2.Snapshot(); - if (object.name != null) - message.name = String(object.name); - if (object.sourceTable != null) { - if (typeof object.sourceTable !== "object") - throw TypeError(".google.bigtable.admin.v2.Snapshot.sourceTable: object expected"); - message.sourceTable = $root.google.bigtable.admin.v2.Table.fromObject(object.sourceTable); - } - if (object.dataSizeBytes != null) - if ($util.Long) - (message.dataSizeBytes = $util.Long.fromValue(object.dataSizeBytes)).unsigned = false; - else if (typeof object.dataSizeBytes === "string") - message.dataSizeBytes = parseInt(object.dataSizeBytes, 10); - else if (typeof object.dataSizeBytes === "number") - message.dataSizeBytes = object.dataSizeBytes; - else if (typeof object.dataSizeBytes === "object") - message.dataSizeBytes = new $util.LongBits(object.dataSizeBytes.low >>> 0, object.dataSizeBytes.high >>> 0).toNumber(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.bigtable.admin.v2.Snapshot.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.deleteTime != null) { - if (typeof object.deleteTime !== "object") - throw TypeError(".google.bigtable.admin.v2.Snapshot.deleteTime: object expected"); - message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; + /** + * Creates a FamilySubsets message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} FamilySubsets + */ + FamilySubsets.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets) + return object; + var message = new $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets(); + if (object.qualifiers) { + if (!Array.isArray(object.qualifiers)) + throw TypeError(".google.bigtable.admin.v2.AuthorizedView.FamilySubsets.qualifiers: array expected"); + message.qualifiers = []; + for (var i = 0; i < object.qualifiers.length; ++i) + if (typeof object.qualifiers[i] === "string") + $util.base64.decode(object.qualifiers[i], message.qualifiers[i] = $util.newBuffer($util.base64.length(object.qualifiers[i])), 0); + else if (object.qualifiers[i].length >= 0) + message.qualifiers[i] = object.qualifiers[i]; } - break; - case "STATE_NOT_KNOWN": - case 0: - message.state = 0; - break; - case "READY": - case 1: - message.state = 1; - break; - case "CREATING": - case 2: - message.state = 2; - break; - } - if (object.description != null) - message.description = String(object.description); - return message; - }; + if (object.qualifierPrefixes) { + if (!Array.isArray(object.qualifierPrefixes)) + throw TypeError(".google.bigtable.admin.v2.AuthorizedView.FamilySubsets.qualifierPrefixes: array expected"); + message.qualifierPrefixes = []; + for (var i = 0; i < object.qualifierPrefixes.length; ++i) + if (typeof object.qualifierPrefixes[i] === "string") + $util.base64.decode(object.qualifierPrefixes[i], message.qualifierPrefixes[i] = $util.newBuffer($util.base64.length(object.qualifierPrefixes[i])), 0); + else if (object.qualifierPrefixes[i].length >= 0) + message.qualifierPrefixes[i] = object.qualifierPrefixes[i]; + } + return message; + }; - /** - * Creates a plain object from a Snapshot message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {google.bigtable.admin.v2.Snapshot} message Snapshot - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Snapshot.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.sourceTable = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.dataSizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dataSizeBytes = options.longs === String ? "0" : 0; - object.createTime = null; - object.deleteTime = null; - object.state = options.enums === String ? "STATE_NOT_KNOWN" : 0; - object.description = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) - object.sourceTable = $root.google.bigtable.admin.v2.Table.toObject(message.sourceTable, options); - if (message.dataSizeBytes != null && message.hasOwnProperty("dataSizeBytes")) - if (typeof message.dataSizeBytes === "number") - object.dataSizeBytes = options.longs === String ? String(message.dataSizeBytes) : message.dataSizeBytes; - else - object.dataSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.dataSizeBytes) : options.longs === Number ? new $util.LongBits(message.dataSizeBytes.low >>> 0, message.dataSizeBytes.high >>> 0).toNumber() : message.dataSizeBytes; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) - object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.bigtable.admin.v2.Snapshot.State[message.state] === undefined ? message.state : $root.google.bigtable.admin.v2.Snapshot.State[message.state] : message.state; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - return object; - }; + /** + * Creates a plain object from a FamilySubsets message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {google.bigtable.admin.v2.AuthorizedView.FamilySubsets} message FamilySubsets + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FamilySubsets.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.qualifiers = []; + object.qualifierPrefixes = []; + } + if (message.qualifiers && message.qualifiers.length) { + object.qualifiers = []; + for (var j = 0; j < message.qualifiers.length; ++j) + object.qualifiers[j] = options.bytes === String ? $util.base64.encode(message.qualifiers[j], 0, message.qualifiers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.qualifiers[j]) : message.qualifiers[j]; + } + if (message.qualifierPrefixes && message.qualifierPrefixes.length) { + object.qualifierPrefixes = []; + for (var j = 0; j < message.qualifierPrefixes.length; ++j) + object.qualifierPrefixes[j] = options.bytes === String ? $util.base64.encode(message.qualifierPrefixes[j], 0, message.qualifierPrefixes[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.qualifierPrefixes[j]) : message.qualifierPrefixes[j]; + } + return object; + }; - /** - * Converts this Snapshot to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Snapshot - * @instance - * @returns {Object.} JSON object - */ - Snapshot.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this FamilySubsets to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @instance + * @returns {Object.} JSON object + */ + FamilySubsets.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Snapshot - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Snapshot - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Snapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Snapshot"; - }; + /** + * Gets the default type url for FamilySubsets + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.AuthorizedView.FamilySubsets + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FamilySubsets.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.AuthorizedView.FamilySubsets"; + }; - /** - * State enum. - * @name google.bigtable.admin.v2.Snapshot.State - * @enum {number} - * @property {number} STATE_NOT_KNOWN=0 STATE_NOT_KNOWN value - * @property {number} READY=1 READY value - * @property {number} CREATING=2 CREATING value - */ - Snapshot.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_NOT_KNOWN"] = 0; - values[valuesById[1] = "READY"] = 1; - values[valuesById[2] = "CREATING"] = 2; - return values; + return FamilySubsets; })(); - return Snapshot; - })(); + AuthorizedView.SubsetView = (function() { - v2.Backup = (function() { + /** + * Properties of a SubsetView. + * @memberof google.bigtable.admin.v2.AuthorizedView + * @interface ISubsetView + * @property {Array.|null} [rowPrefixes] SubsetView rowPrefixes + * @property {Object.|null} [familySubsets] SubsetView familySubsets + */ - /** - * Properties of a Backup. - * @memberof google.bigtable.admin.v2 - * @interface IBackup - * @property {string|null} [name] Backup name - * @property {string|null} [sourceTable] Backup sourceTable - * @property {string|null} [sourceBackup] Backup sourceBackup - * @property {google.protobuf.ITimestamp|null} [expireTime] Backup expireTime - * @property {google.protobuf.ITimestamp|null} [startTime] Backup startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Backup endTime - * @property {number|Long|null} [sizeBytes] Backup sizeBytes - * @property {google.bigtable.admin.v2.Backup.State|null} [state] Backup state - * @property {google.bigtable.admin.v2.IEncryptionInfo|null} [encryptionInfo] Backup encryptionInfo - * @property {google.bigtable.admin.v2.Backup.BackupType|null} [backupType] Backup backupType - * @property {google.protobuf.ITimestamp|null} [hotToStandardTime] Backup hotToStandardTime - */ + /** + * Constructs a new SubsetView. + * @memberof google.bigtable.admin.v2.AuthorizedView + * @classdesc Represents a SubsetView. + * @implements ISubsetView + * @constructor + * @param {google.bigtable.admin.v2.AuthorizedView.ISubsetView=} [properties] Properties to set + */ + function SubsetView(properties) { + this.rowPrefixes = []; + this.familySubsets = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new Backup. - * @memberof google.bigtable.admin.v2 - * @classdesc Represents a Backup. - * @implements IBackup - * @constructor - * @param {google.bigtable.admin.v2.IBackup=} [properties] Properties to set - */ - function Backup(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * SubsetView rowPrefixes. + * @member {Array.} rowPrefixes + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @instance + */ + SubsetView.prototype.rowPrefixes = $util.emptyArray; - /** - * Backup name. - * @member {string} name - * @memberof google.bigtable.admin.v2.Backup - * @instance - */ - Backup.prototype.name = ""; + /** + * SubsetView familySubsets. + * @member {Object.} familySubsets + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @instance + */ + SubsetView.prototype.familySubsets = $util.emptyObject; - /** - * Backup sourceTable. - * @member {string} sourceTable - * @memberof google.bigtable.admin.v2.Backup - * @instance - */ - Backup.prototype.sourceTable = ""; + /** + * Creates a new SubsetView instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {google.bigtable.admin.v2.AuthorizedView.ISubsetView=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.AuthorizedView.SubsetView} SubsetView instance + */ + SubsetView.create = function create(properties) { + return new SubsetView(properties); + }; - /** - * Backup sourceBackup. - * @member {string} sourceBackup - * @memberof google.bigtable.admin.v2.Backup - * @instance - */ - Backup.prototype.sourceBackup = ""; + /** + * Encodes the specified SubsetView message. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.SubsetView.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {google.bigtable.admin.v2.AuthorizedView.ISubsetView} message SubsetView message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SubsetView.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rowPrefixes != null && message.rowPrefixes.length) + for (var i = 0; i < message.rowPrefixes.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowPrefixes[i]); + if (message.familySubsets != null && Object.hasOwnProperty.call(message, "familySubsets")) + for (var keys = Object.keys(message.familySubsets), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.encode(message.familySubsets[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; - /** - * Backup expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.bigtable.admin.v2.Backup - * @instance - */ - Backup.prototype.expireTime = null; + /** + * Encodes the specified SubsetView message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.AuthorizedView.SubsetView.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {google.bigtable.admin.v2.AuthorizedView.ISubsetView} message SubsetView message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SubsetView.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Backup startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.bigtable.admin.v2.Backup - * @instance - */ - Backup.prototype.startTime = null; + /** + * Decodes a SubsetView message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.AuthorizedView.SubsetView} SubsetView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SubsetView.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.AuthorizedView.SubsetView(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.rowPrefixes && message.rowPrefixes.length)) + message.rowPrefixes = []; + message.rowPrefixes.push(reader.bytes()); + break; + } + case 2: { + if (message.familySubsets === $util.emptyObject) + message.familySubsets = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.familySubsets[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Backup endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.bigtable.admin.v2.Backup - * @instance - */ - Backup.prototype.endTime = null; + /** + * Decodes a SubsetView message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.AuthorizedView.SubsetView} SubsetView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SubsetView.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Backup sizeBytes. - * @member {number|Long} sizeBytes - * @memberof google.bigtable.admin.v2.Backup - * @instance + /** + * Verifies a SubsetView message. + * @function verify + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SubsetView.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rowPrefixes != null && message.hasOwnProperty("rowPrefixes")) { + if (!Array.isArray(message.rowPrefixes)) + return "rowPrefixes: array expected"; + for (var i = 0; i < message.rowPrefixes.length; ++i) + if (!(message.rowPrefixes[i] && typeof message.rowPrefixes[i].length === "number" || $util.isString(message.rowPrefixes[i]))) + return "rowPrefixes: buffer[] expected"; + } + if (message.familySubsets != null && message.hasOwnProperty("familySubsets")) { + if (!$util.isObject(message.familySubsets)) + return "familySubsets: object expected"; + var key = Object.keys(message.familySubsets); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.verify(message.familySubsets[key[i]]); + if (error) + return "familySubsets." + error; + } + } + return null; + }; + + /** + * Creates a SubsetView message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.AuthorizedView.SubsetView} SubsetView + */ + SubsetView.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.AuthorizedView.SubsetView) + return object; + var message = new $root.google.bigtable.admin.v2.AuthorizedView.SubsetView(); + if (object.rowPrefixes) { + if (!Array.isArray(object.rowPrefixes)) + throw TypeError(".google.bigtable.admin.v2.AuthorizedView.SubsetView.rowPrefixes: array expected"); + message.rowPrefixes = []; + for (var i = 0; i < object.rowPrefixes.length; ++i) + if (typeof object.rowPrefixes[i] === "string") + $util.base64.decode(object.rowPrefixes[i], message.rowPrefixes[i] = $util.newBuffer($util.base64.length(object.rowPrefixes[i])), 0); + else if (object.rowPrefixes[i].length >= 0) + message.rowPrefixes[i] = object.rowPrefixes[i]; + } + if (object.familySubsets) { + if (typeof object.familySubsets !== "object") + throw TypeError(".google.bigtable.admin.v2.AuthorizedView.SubsetView.familySubsets: object expected"); + message.familySubsets = {}; + for (var keys = Object.keys(object.familySubsets), i = 0; i < keys.length; ++i) { + if (typeof object.familySubsets[keys[i]] !== "object") + throw TypeError(".google.bigtable.admin.v2.AuthorizedView.SubsetView.familySubsets: object expected"); + message.familySubsets[keys[i]] = $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.fromObject(object.familySubsets[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a SubsetView message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {google.bigtable.admin.v2.AuthorizedView.SubsetView} message SubsetView + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubsetView.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rowPrefixes = []; + if (options.objects || options.defaults) + object.familySubsets = {}; + if (message.rowPrefixes && message.rowPrefixes.length) { + object.rowPrefixes = []; + for (var j = 0; j < message.rowPrefixes.length; ++j) + object.rowPrefixes[j] = options.bytes === String ? $util.base64.encode(message.rowPrefixes[j], 0, message.rowPrefixes[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.rowPrefixes[j]) : message.rowPrefixes[j]; + } + var keys2; + if (message.familySubsets && (keys2 = Object.keys(message.familySubsets)).length) { + object.familySubsets = {}; + for (var j = 0; j < keys2.length; ++j) + object.familySubsets[keys2[j]] = $root.google.bigtable.admin.v2.AuthorizedView.FamilySubsets.toObject(message.familySubsets[keys2[j]], options); + } + return object; + }; + + /** + * Converts this SubsetView to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @instance + * @returns {Object.} JSON object + */ + SubsetView.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubsetView + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.AuthorizedView.SubsetView + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubsetView.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.AuthorizedView.SubsetView"; + }; + + return SubsetView; + })(); + + /** + * ResponseView enum. + * @name google.bigtable.admin.v2.AuthorizedView.ResponseView + * @enum {number} + * @property {number} RESPONSE_VIEW_UNSPECIFIED=0 RESPONSE_VIEW_UNSPECIFIED value + * @property {number} NAME_ONLY=1 NAME_ONLY value + * @property {number} BASIC=2 BASIC value + * @property {number} FULL=3 FULL value */ - Backup.prototype.sizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AuthorizedView.ResponseView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESPONSE_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "NAME_ONLY"] = 1; + values[valuesById[2] = "BASIC"] = 2; + values[valuesById[3] = "FULL"] = 3; + return values; + })(); + + return AuthorizedView; + })(); + + v2.ColumnFamily = (function() { /** - * Backup state. - * @member {google.bigtable.admin.v2.Backup.State} state - * @memberof google.bigtable.admin.v2.Backup - * @instance + * Properties of a ColumnFamily. + * @memberof google.bigtable.admin.v2 + * @interface IColumnFamily + * @property {google.bigtable.admin.v2.IGcRule|null} [gcRule] ColumnFamily gcRule + * @property {google.bigtable.admin.v2.IType|null} [valueType] ColumnFamily valueType */ - Backup.prototype.state = 0; /** - * Backup encryptionInfo. - * @member {google.bigtable.admin.v2.IEncryptionInfo|null|undefined} encryptionInfo - * @memberof google.bigtable.admin.v2.Backup - * @instance + * Constructs a new ColumnFamily. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a ColumnFamily. + * @implements IColumnFamily + * @constructor + * @param {google.bigtable.admin.v2.IColumnFamily=} [properties] Properties to set */ - Backup.prototype.encryptionInfo = null; + function ColumnFamily(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Backup backupType. - * @member {google.bigtable.admin.v2.Backup.BackupType} backupType - * @memberof google.bigtable.admin.v2.Backup + * ColumnFamily gcRule. + * @member {google.bigtable.admin.v2.IGcRule|null|undefined} gcRule + * @memberof google.bigtable.admin.v2.ColumnFamily * @instance */ - Backup.prototype.backupType = 0; + ColumnFamily.prototype.gcRule = null; /** - * Backup hotToStandardTime. - * @member {google.protobuf.ITimestamp|null|undefined} hotToStandardTime - * @memberof google.bigtable.admin.v2.Backup + * ColumnFamily valueType. + * @member {google.bigtable.admin.v2.IType|null|undefined} valueType + * @memberof google.bigtable.admin.v2.ColumnFamily * @instance */ - Backup.prototype.hotToStandardTime = null; + ColumnFamily.prototype.valueType = null; /** - * Creates a new Backup instance using the specified properties. + * Creates a new ColumnFamily instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static - * @param {google.bigtable.admin.v2.IBackup=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Backup} Backup instance + * @param {google.bigtable.admin.v2.IColumnFamily=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.ColumnFamily} ColumnFamily instance */ - Backup.create = function create(properties) { - return new Backup(properties); + ColumnFamily.create = function create(properties) { + return new ColumnFamily(properties); }; /** - * Encodes the specified Backup message. Does not implicitly {@link google.bigtable.admin.v2.Backup.verify|verify} messages. + * Encodes the specified ColumnFamily message. Does not implicitly {@link google.bigtable.admin.v2.ColumnFamily.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static - * @param {google.bigtable.admin.v2.IBackup} message Backup message or plain object to encode + * @param {google.bigtable.admin.v2.IColumnFamily} message ColumnFamily message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Backup.encode = function encode(message, writer) { + ColumnFamily.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.sourceTable != null && Object.hasOwnProperty.call(message, "sourceTable")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceTable); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.sizeBytes); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); - if (message.encryptionInfo != null && Object.hasOwnProperty.call(message, "encryptionInfo")) - $root.google.bigtable.admin.v2.EncryptionInfo.encode(message.encryptionInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.sourceBackup); - if (message.backupType != null && Object.hasOwnProperty.call(message, "backupType")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.backupType); - if (message.hotToStandardTime != null && Object.hasOwnProperty.call(message, "hotToStandardTime")) - $root.google.protobuf.Timestamp.encode(message.hotToStandardTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.gcRule != null && Object.hasOwnProperty.call(message, "gcRule")) + $root.google.bigtable.admin.v2.GcRule.encode(message.gcRule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) + $root.google.bigtable.admin.v2.Type.encode(message.valueType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Backup.verify|verify} messages. + * Encodes the specified ColumnFamily message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ColumnFamily.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static - * @param {google.bigtable.admin.v2.IBackup} message Backup message or plain object to encode + * @param {google.bigtable.admin.v2.IColumnFamily} message ColumnFamily message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Backup.encodeDelimited = function encodeDelimited(message, writer) { + ColumnFamily.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Backup message from the specified reader or buffer. + * Decodes a ColumnFamily message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Backup} Backup + * @returns {google.bigtable.admin.v2.ColumnFamily} ColumnFamily * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Backup.decode = function decode(reader, length, error) { + ColumnFamily.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Backup(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.ColumnFamily(); 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.sourceTable = reader.string(); - break; - } - case 10: { - message.sourceBackup = reader.string(); + message.gcRule = $root.google.bigtable.admin.v2.GcRule.decode(reader, reader.uint32()); break; } case 3: { - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.sizeBytes = reader.int64(); - break; - } - case 7: { - message.state = reader.int32(); - break; - } - case 9: { - message.encryptionInfo = $root.google.bigtable.admin.v2.EncryptionInfo.decode(reader, reader.uint32()); - break; - } - case 11: { - message.backupType = reader.int32(); - break; - } - case 12: { - message.hotToStandardTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.valueType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); break; } default: @@ -34348,326 +34709,144 @@ }; /** - * Decodes a Backup message from the specified reader or buffer, length delimited. + * Decodes a ColumnFamily message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Backup} Backup + * @returns {google.bigtable.admin.v2.ColumnFamily} ColumnFamily * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Backup.decodeDelimited = function decodeDelimited(reader) { + ColumnFamily.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Backup message. + * Verifies a ColumnFamily message. * @function verify - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Backup.verify = function verify(message) { + ColumnFamily.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) - if (!$util.isString(message.sourceTable)) - return "sourceTable: string expected"; - if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) - if (!$util.isString(message.sourceBackup)) - return "sourceBackup: string expected"; - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); - if (error) - return "expireTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes")) - if (!$util.isInteger(message.sizeBytes) && !(message.sizeBytes && $util.isInteger(message.sizeBytes.low) && $util.isInteger(message.sizeBytes.high))) - return "sizeBytes: integer|Long expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.encryptionInfo != null && message.hasOwnProperty("encryptionInfo")) { - var error = $root.google.bigtable.admin.v2.EncryptionInfo.verify(message.encryptionInfo); + if (message.gcRule != null && message.hasOwnProperty("gcRule")) { + var error = $root.google.bigtable.admin.v2.GcRule.verify(message.gcRule); if (error) - return "encryptionInfo." + error; + return "gcRule." + error; } - if (message.backupType != null && message.hasOwnProperty("backupType")) - switch (message.backupType) { - default: - return "backupType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.hotToStandardTime != null && message.hasOwnProperty("hotToStandardTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.hotToStandardTime); + if (message.valueType != null && message.hasOwnProperty("valueType")) { + var error = $root.google.bigtable.admin.v2.Type.verify(message.valueType); if (error) - return "hotToStandardTime." + error; + return "valueType." + error; } return null; }; /** - * Creates a Backup message from a plain object. Also converts values to their respective internal types. + * Creates a ColumnFamily message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Backup} Backup + * @returns {google.bigtable.admin.v2.ColumnFamily} ColumnFamily */ - Backup.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Backup) + ColumnFamily.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.ColumnFamily) return object; - var message = new $root.google.bigtable.admin.v2.Backup(); - if (object.name != null) - message.name = String(object.name); - if (object.sourceTable != null) - message.sourceTable = String(object.sourceTable); - if (object.sourceBackup != null) - message.sourceBackup = String(object.sourceBackup); - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.bigtable.admin.v2.Backup.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.bigtable.admin.v2.Backup.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.bigtable.admin.v2.Backup.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.sizeBytes != null) - if ($util.Long) - (message.sizeBytes = $util.Long.fromValue(object.sizeBytes)).unsigned = false; - else if (typeof object.sizeBytes === "string") - message.sizeBytes = parseInt(object.sizeBytes, 10); - else if (typeof object.sizeBytes === "number") - message.sizeBytes = object.sizeBytes; - else if (typeof object.sizeBytes === "object") - message.sizeBytes = new $util.LongBits(object.sizeBytes.low >>> 0, object.sizeBytes.high >>> 0).toNumber(); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "CREATING": - case 1: - message.state = 1; - break; - case "READY": - case 2: - message.state = 2; - break; - } - if (object.encryptionInfo != null) { - if (typeof object.encryptionInfo !== "object") - throw TypeError(".google.bigtable.admin.v2.Backup.encryptionInfo: object expected"); - message.encryptionInfo = $root.google.bigtable.admin.v2.EncryptionInfo.fromObject(object.encryptionInfo); - } - switch (object.backupType) { - default: - if (typeof object.backupType === "number") { - message.backupType = object.backupType; - break; - } - break; - case "BACKUP_TYPE_UNSPECIFIED": - case 0: - message.backupType = 0; - break; - case "STANDARD": - case 1: - message.backupType = 1; - break; - case "HOT": - case 2: - message.backupType = 2; - break; + var message = new $root.google.bigtable.admin.v2.ColumnFamily(); + if (object.gcRule != null) { + if (typeof object.gcRule !== "object") + throw TypeError(".google.bigtable.admin.v2.ColumnFamily.gcRule: object expected"); + message.gcRule = $root.google.bigtable.admin.v2.GcRule.fromObject(object.gcRule); } - if (object.hotToStandardTime != null) { - if (typeof object.hotToStandardTime !== "object") - throw TypeError(".google.bigtable.admin.v2.Backup.hotToStandardTime: object expected"); - message.hotToStandardTime = $root.google.protobuf.Timestamp.fromObject(object.hotToStandardTime); + if (object.valueType != null) { + if (typeof object.valueType !== "object") + throw TypeError(".google.bigtable.admin.v2.ColumnFamily.valueType: object expected"); + message.valueType = $root.google.bigtable.admin.v2.Type.fromObject(object.valueType); } return message; }; /** - * Creates a plain object from a Backup message. Also converts values to other types if specified. + * Creates a plain object from a ColumnFamily message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static - * @param {google.bigtable.admin.v2.Backup} message Backup + * @param {google.bigtable.admin.v2.ColumnFamily} message ColumnFamily * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Backup.toObject = function toObject(message, options) { + ColumnFamily.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.sourceTable = ""; - object.expireTime = null; - object.startTime = null; - object.endTime = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.sizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sizeBytes = options.longs === String ? "0" : 0; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.encryptionInfo = null; - object.sourceBackup = ""; - object.backupType = options.enums === String ? "BACKUP_TYPE_UNSPECIFIED" : 0; - object.hotToStandardTime = null; + object.gcRule = null; + object.valueType = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) - object.sourceTable = message.sourceTable; - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes")) - if (typeof message.sizeBytes === "number") - object.sizeBytes = options.longs === String ? String(message.sizeBytes) : message.sizeBytes; - else - object.sizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.sizeBytes) : options.longs === Number ? new $util.LongBits(message.sizeBytes.low >>> 0, message.sizeBytes.high >>> 0).toNumber() : message.sizeBytes; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.bigtable.admin.v2.Backup.State[message.state] === undefined ? message.state : $root.google.bigtable.admin.v2.Backup.State[message.state] : message.state; - if (message.encryptionInfo != null && message.hasOwnProperty("encryptionInfo")) - object.encryptionInfo = $root.google.bigtable.admin.v2.EncryptionInfo.toObject(message.encryptionInfo, options); - if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) - object.sourceBackup = message.sourceBackup; - if (message.backupType != null && message.hasOwnProperty("backupType")) - object.backupType = options.enums === String ? $root.google.bigtable.admin.v2.Backup.BackupType[message.backupType] === undefined ? message.backupType : $root.google.bigtable.admin.v2.Backup.BackupType[message.backupType] : message.backupType; - if (message.hotToStandardTime != null && message.hasOwnProperty("hotToStandardTime")) - object.hotToStandardTime = $root.google.protobuf.Timestamp.toObject(message.hotToStandardTime, options); + if (message.gcRule != null && message.hasOwnProperty("gcRule")) + object.gcRule = $root.google.bigtable.admin.v2.GcRule.toObject(message.gcRule, options); + if (message.valueType != null && message.hasOwnProperty("valueType")) + object.valueType = $root.google.bigtable.admin.v2.Type.toObject(message.valueType, options); return object; }; /** - * Converts this Backup to JSON. + * Converts this ColumnFamily to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @instance * @returns {Object.} JSON object */ - Backup.prototype.toJSON = function toJSON() { + ColumnFamily.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Backup + * Gets the default type url for ColumnFamily * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Backup + * @memberof google.bigtable.admin.v2.ColumnFamily * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Backup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ColumnFamily.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Backup"; + return typeUrlPrefix + "/google.bigtable.admin.v2.ColumnFamily"; }; - /** - * State enum. - * @name google.bigtable.admin.v2.Backup.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} CREATING=1 CREATING value - * @property {number} READY=2 READY value - */ - Backup.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATING"] = 1; - values[valuesById[2] = "READY"] = 2; - return values; - })(); - - /** - * BackupType enum. - * @name google.bigtable.admin.v2.Backup.BackupType - * @enum {number} - * @property {number} BACKUP_TYPE_UNSPECIFIED=0 BACKUP_TYPE_UNSPECIFIED value - * @property {number} STANDARD=1 STANDARD value - * @property {number} HOT=2 HOT value - */ - Backup.BackupType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BACKUP_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "STANDARD"] = 1; - values[valuesById[2] = "HOT"] = 2; - return values; - })(); - - return Backup; + return ColumnFamily; })(); - v2.BackupInfo = (function() { + v2.GcRule = (function() { /** - * Properties of a BackupInfo. + * Properties of a GcRule. * @memberof google.bigtable.admin.v2 - * @interface IBackupInfo - * @property {string|null} [backup] BackupInfo backup - * @property {google.protobuf.ITimestamp|null} [startTime] BackupInfo startTime - * @property {google.protobuf.ITimestamp|null} [endTime] BackupInfo endTime - * @property {string|null} [sourceTable] BackupInfo sourceTable - * @property {string|null} [sourceBackup] BackupInfo sourceBackup + * @interface IGcRule + * @property {number|null} [maxNumVersions] GcRule maxNumVersions + * @property {google.protobuf.IDuration|null} [maxAge] GcRule maxAge + * @property {google.bigtable.admin.v2.GcRule.IIntersection|null} [intersection] GcRule intersection + * @property {google.bigtable.admin.v2.GcRule.IUnion|null} [union] GcRule union */ /** - * Constructs a new BackupInfo. + * Constructs a new GcRule. * @memberof google.bigtable.admin.v2 - * @classdesc Represents a BackupInfo. - * @implements IBackupInfo + * @classdesc Represents a GcRule. + * @implements IGcRule * @constructor - * @param {google.bigtable.admin.v2.IBackupInfo=} [properties] Properties to set + * @param {google.bigtable.admin.v2.IGcRule=} [properties] Properties to set */ - function BackupInfo(properties) { + function GcRule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34675,133 +34854,133 @@ } /** - * BackupInfo backup. - * @member {string} backup - * @memberof google.bigtable.admin.v2.BackupInfo + * GcRule maxNumVersions. + * @member {number|null|undefined} maxNumVersions + * @memberof google.bigtable.admin.v2.GcRule * @instance */ - BackupInfo.prototype.backup = ""; + GcRule.prototype.maxNumVersions = null; /** - * BackupInfo startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.bigtable.admin.v2.BackupInfo + * GcRule maxAge. + * @member {google.protobuf.IDuration|null|undefined} maxAge + * @memberof google.bigtable.admin.v2.GcRule * @instance */ - BackupInfo.prototype.startTime = null; + GcRule.prototype.maxAge = null; /** - * BackupInfo endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.bigtable.admin.v2.BackupInfo + * GcRule intersection. + * @member {google.bigtable.admin.v2.GcRule.IIntersection|null|undefined} intersection + * @memberof google.bigtable.admin.v2.GcRule * @instance */ - BackupInfo.prototype.endTime = null; + GcRule.prototype.intersection = null; /** - * BackupInfo sourceTable. - * @member {string} sourceTable - * @memberof google.bigtable.admin.v2.BackupInfo + * GcRule union. + * @member {google.bigtable.admin.v2.GcRule.IUnion|null|undefined} union + * @memberof google.bigtable.admin.v2.GcRule * @instance */ - BackupInfo.prototype.sourceTable = ""; + GcRule.prototype.union = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * BackupInfo sourceBackup. - * @member {string} sourceBackup - * @memberof google.bigtable.admin.v2.BackupInfo + * GcRule rule. + * @member {"maxNumVersions"|"maxAge"|"intersection"|"union"|undefined} rule + * @memberof google.bigtable.admin.v2.GcRule * @instance */ - BackupInfo.prototype.sourceBackup = ""; + Object.defineProperty(GcRule.prototype, "rule", { + get: $util.oneOfGetter($oneOfFields = ["maxNumVersions", "maxAge", "intersection", "union"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new BackupInfo instance using the specified properties. + * Creates a new GcRule instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static - * @param {google.bigtable.admin.v2.IBackupInfo=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.BackupInfo} BackupInfo instance + * @param {google.bigtable.admin.v2.IGcRule=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.GcRule} GcRule instance */ - BackupInfo.create = function create(properties) { - return new BackupInfo(properties); + GcRule.create = function create(properties) { + return new GcRule(properties); }; /** - * Encodes the specified BackupInfo message. Does not implicitly {@link google.bigtable.admin.v2.BackupInfo.verify|verify} messages. + * Encodes the specified GcRule message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static - * @param {google.bigtable.admin.v2.IBackupInfo} message BackupInfo message or plain object to encode + * @param {google.bigtable.admin.v2.IGcRule} message GcRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupInfo.encode = function encode(message, writer) { + GcRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.backup != null && Object.hasOwnProperty.call(message, "backup")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.backup); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.sourceTable != null && Object.hasOwnProperty.call(message, "sourceTable")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sourceTable); - if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.sourceBackup); + if (message.maxNumVersions != null && Object.hasOwnProperty.call(message, "maxNumVersions")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxNumVersions); + if (message.maxAge != null && Object.hasOwnProperty.call(message, "maxAge")) + $root.google.protobuf.Duration.encode(message.maxAge, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.intersection != null && Object.hasOwnProperty.call(message, "intersection")) + $root.google.bigtable.admin.v2.GcRule.Intersection.encode(message.intersection, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.union != null && Object.hasOwnProperty.call(message, "union")) + $root.google.bigtable.admin.v2.GcRule.Union.encode(message.union, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.BackupInfo.verify|verify} messages. + * Encodes the specified GcRule message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static - * @param {google.bigtable.admin.v2.IBackupInfo} message BackupInfo message or plain object to encode + * @param {google.bigtable.admin.v2.IGcRule} message GcRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupInfo.encodeDelimited = function encodeDelimited(message, writer) { + GcRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupInfo message from the specified reader or buffer. + * Decodes a GcRule message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.BackupInfo} BackupInfo + * @returns {google.bigtable.admin.v2.GcRule} GcRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupInfo.decode = function decode(reader, length, error) { + GcRule.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.BackupInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.GcRule(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.backup = reader.string(); + message.maxNumVersions = reader.int32(); break; } case 2: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.maxAge = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } case 3: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.intersection = $root.google.bigtable.admin.v2.GcRule.Intersection.decode(reader, reader.uint32()); break; } case 4: { - message.sourceTable = reader.string(); - break; - } - case 10: { - message.sourceBackup = reader.string(); + message.union = $root.google.bigtable.admin.v2.GcRule.Union.decode(reader, reader.uint32()); break; } default: @@ -34813,436 +34992,746 @@ }; /** - * Decodes a BackupInfo message from the specified reader or buffer, length delimited. + * Decodes a GcRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.BackupInfo} BackupInfo + * @returns {google.bigtable.admin.v2.GcRule} GcRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupInfo.decodeDelimited = function decodeDelimited(reader) { + GcRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupInfo message. + * Verifies a GcRule message. * @function verify - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupInfo.verify = function verify(message) { + GcRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.backup != null && message.hasOwnProperty("backup")) - if (!$util.isString(message.backup)) - return "backup: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; + var properties = {}; + if (message.maxNumVersions != null && message.hasOwnProperty("maxNumVersions")) { + properties.rule = 1; + if (!$util.isInteger(message.maxNumVersions)) + return "maxNumVersions: integer expected"; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + if (message.maxAge != null && message.hasOwnProperty("maxAge")) { + if (properties.rule === 1) + return "rule: multiple values"; + properties.rule = 1; + { + var error = $root.google.protobuf.Duration.verify(message.maxAge); + if (error) + return "maxAge." + error; + } + } + if (message.intersection != null && message.hasOwnProperty("intersection")) { + if (properties.rule === 1) + return "rule: multiple values"; + properties.rule = 1; + { + var error = $root.google.bigtable.admin.v2.GcRule.Intersection.verify(message.intersection); + if (error) + return "intersection." + error; + } + } + if (message.union != null && message.hasOwnProperty("union")) { + if (properties.rule === 1) + return "rule: multiple values"; + properties.rule = 1; + { + var error = $root.google.bigtable.admin.v2.GcRule.Union.verify(message.union); + if (error) + return "union." + error; + } } - if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) - if (!$util.isString(message.sourceTable)) - return "sourceTable: string expected"; - if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) - if (!$util.isString(message.sourceBackup)) - return "sourceBackup: string expected"; return null; }; /** - * Creates a BackupInfo message from a plain object. Also converts values to their respective internal types. + * Creates a GcRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.BackupInfo} BackupInfo + * @returns {google.bigtable.admin.v2.GcRule} GcRule */ - BackupInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.BackupInfo) + GcRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.GcRule) return object; - var message = new $root.google.bigtable.admin.v2.BackupInfo(); - if (object.backup != null) - message.backup = String(object.backup); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.bigtable.admin.v2.BackupInfo.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + var message = new $root.google.bigtable.admin.v2.GcRule(); + if (object.maxNumVersions != null) + message.maxNumVersions = object.maxNumVersions | 0; + if (object.maxAge != null) { + if (typeof object.maxAge !== "object") + throw TypeError(".google.bigtable.admin.v2.GcRule.maxAge: object expected"); + message.maxAge = $root.google.protobuf.Duration.fromObject(object.maxAge); } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.bigtable.admin.v2.BackupInfo.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.intersection != null) { + if (typeof object.intersection !== "object") + throw TypeError(".google.bigtable.admin.v2.GcRule.intersection: object expected"); + message.intersection = $root.google.bigtable.admin.v2.GcRule.Intersection.fromObject(object.intersection); + } + if (object.union != null) { + if (typeof object.union !== "object") + throw TypeError(".google.bigtable.admin.v2.GcRule.union: object expected"); + message.union = $root.google.bigtable.admin.v2.GcRule.Union.fromObject(object.union); } - if (object.sourceTable != null) - message.sourceTable = String(object.sourceTable); - if (object.sourceBackup != null) - message.sourceBackup = String(object.sourceBackup); return message; }; /** - * Creates a plain object from a BackupInfo message. Also converts values to other types if specified. + * Creates a plain object from a GcRule message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static - * @param {google.bigtable.admin.v2.BackupInfo} message BackupInfo + * @param {google.bigtable.admin.v2.GcRule} message GcRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupInfo.toObject = function toObject(message, options) { + GcRule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.backup = ""; - object.startTime = null; - object.endTime = null; - object.sourceTable = ""; - object.sourceBackup = ""; + if (message.maxNumVersions != null && message.hasOwnProperty("maxNumVersions")) { + object.maxNumVersions = message.maxNumVersions; + if (options.oneofs) + object.rule = "maxNumVersions"; + } + if (message.maxAge != null && message.hasOwnProperty("maxAge")) { + object.maxAge = $root.google.protobuf.Duration.toObject(message.maxAge, options); + if (options.oneofs) + object.rule = "maxAge"; + } + if (message.intersection != null && message.hasOwnProperty("intersection")) { + object.intersection = $root.google.bigtable.admin.v2.GcRule.Intersection.toObject(message.intersection, options); + if (options.oneofs) + object.rule = "intersection"; + } + if (message.union != null && message.hasOwnProperty("union")) { + object.union = $root.google.bigtable.admin.v2.GcRule.Union.toObject(message.union, options); + if (options.oneofs) + object.rule = "union"; } - if (message.backup != null && message.hasOwnProperty("backup")) - object.backup = message.backup; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) - object.sourceTable = message.sourceTable; - if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) - object.sourceBackup = message.sourceBackup; return object; }; /** - * Converts this BackupInfo to JSON. + * Converts this GcRule to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @instance * @returns {Object.} JSON object */ - BackupInfo.prototype.toJSON = function toJSON() { + GcRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BackupInfo + * Gets the default type url for GcRule * @function getTypeUrl - * @memberof google.bigtable.admin.v2.BackupInfo + * @memberof google.bigtable.admin.v2.GcRule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BackupInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GcRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.BackupInfo"; + return typeUrlPrefix + "/google.bigtable.admin.v2.GcRule"; }; - return BackupInfo; - })(); - - /** - * RestoreSourceType enum. - * @name google.bigtable.admin.v2.RestoreSourceType - * @enum {number} - * @property {number} RESTORE_SOURCE_TYPE_UNSPECIFIED=0 RESTORE_SOURCE_TYPE_UNSPECIFIED value - * @property {number} BACKUP=1 BACKUP value - */ - v2.RestoreSourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESTORE_SOURCE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "BACKUP"] = 1; - return values; - })(); - - v2.Type = (function() { - - /** - * Properties of a Type. - * @memberof google.bigtable.admin.v2 - * @interface IType - * @property {google.bigtable.admin.v2.Type.IBytes|null} [bytesType] Type bytesType - * @property {google.bigtable.admin.v2.Type.IString|null} [stringType] Type stringType - * @property {google.bigtable.admin.v2.Type.IInt64|null} [int64Type] Type int64Type - * @property {google.bigtable.admin.v2.Type.IFloat32|null} [float32Type] Type float32Type - * @property {google.bigtable.admin.v2.Type.IFloat64|null} [float64Type] Type float64Type - * @property {google.bigtable.admin.v2.Type.IBool|null} [boolType] Type boolType - * @property {google.bigtable.admin.v2.Type.ITimestamp|null} [timestampType] Type timestampType - * @property {google.bigtable.admin.v2.Type.IDate|null} [dateType] Type dateType - * @property {google.bigtable.admin.v2.Type.IAggregate|null} [aggregateType] Type aggregateType - * @property {google.bigtable.admin.v2.Type.IStruct|null} [structType] Type structType - * @property {google.bigtable.admin.v2.Type.IArray|null} [arrayType] Type arrayType - * @property {google.bigtable.admin.v2.Type.IMap|null} [mapType] Type mapType - */ + GcRule.Intersection = (function() { - /** - * Constructs a new Type. - * @memberof google.bigtable.admin.v2 - * @classdesc Represents a Type. - * @implements IType - * @constructor - * @param {google.bigtable.admin.v2.IType=} [properties] Properties to set - */ - function Type(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an Intersection. + * @memberof google.bigtable.admin.v2.GcRule + * @interface IIntersection + * @property {Array.|null} [rules] Intersection rules + */ - /** - * Type bytesType. - * @member {google.bigtable.admin.v2.Type.IBytes|null|undefined} bytesType - * @memberof google.bigtable.admin.v2.Type - * @instance - */ - Type.prototype.bytesType = null; + /** + * Constructs a new Intersection. + * @memberof google.bigtable.admin.v2.GcRule + * @classdesc Represents an Intersection. + * @implements IIntersection + * @constructor + * @param {google.bigtable.admin.v2.GcRule.IIntersection=} [properties] Properties to set + */ + function Intersection(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Type stringType. - * @member {google.bigtable.admin.v2.Type.IString|null|undefined} stringType - * @memberof google.bigtable.admin.v2.Type - * @instance - */ - Type.prototype.stringType = null; + /** + * Intersection rules. + * @member {Array.} rules + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @instance + */ + Intersection.prototype.rules = $util.emptyArray; - /** - * Type int64Type. - * @member {google.bigtable.admin.v2.Type.IInt64|null|undefined} int64Type - * @memberof google.bigtable.admin.v2.Type - * @instance - */ - Type.prototype.int64Type = null; + /** + * Creates a new Intersection instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {google.bigtable.admin.v2.GcRule.IIntersection=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.GcRule.Intersection} Intersection instance + */ + Intersection.create = function create(properties) { + return new Intersection(properties); + }; - /** - * Type float32Type. - * @member {google.bigtable.admin.v2.Type.IFloat32|null|undefined} float32Type - * @memberof google.bigtable.admin.v2.Type - * @instance - */ - Type.prototype.float32Type = null; + /** + * Encodes the specified Intersection message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Intersection.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {google.bigtable.admin.v2.GcRule.IIntersection} message Intersection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intersection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.bigtable.admin.v2.GcRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Type float64Type. - * @member {google.bigtable.admin.v2.Type.IFloat64|null|undefined} float64Type - * @memberof google.bigtable.admin.v2.Type - * @instance - */ - Type.prototype.float64Type = null; + /** + * Encodes the specified Intersection message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Intersection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {google.bigtable.admin.v2.GcRule.IIntersection} message Intersection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intersection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Type boolType. - * @member {google.bigtable.admin.v2.Type.IBool|null|undefined} boolType - * @memberof google.bigtable.admin.v2.Type - * @instance - */ - Type.prototype.boolType = null; + /** + * Decodes an Intersection message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.GcRule.Intersection} Intersection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intersection.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.GcRule.Intersection(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.bigtable.admin.v2.GcRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Type timestampType. - * @member {google.bigtable.admin.v2.Type.ITimestamp|null|undefined} timestampType - * @memberof google.bigtable.admin.v2.Type - * @instance - */ - Type.prototype.timestampType = null; + /** + * Decodes an Intersection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.GcRule.Intersection} Intersection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intersection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Type dateType. - * @member {google.bigtable.admin.v2.Type.IDate|null|undefined} dateType - * @memberof google.bigtable.admin.v2.Type - * @instance - */ - Type.prototype.dateType = null; + /** + * Verifies an Intersection message. + * @function verify + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Intersection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.bigtable.admin.v2.GcRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + return null; + }; + + /** + * Creates an Intersection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.GcRule.Intersection} Intersection + */ + Intersection.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.GcRule.Intersection) + return object; + var message = new $root.google.bigtable.admin.v2.GcRule.Intersection(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.bigtable.admin.v2.GcRule.Intersection.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.bigtable.admin.v2.GcRule.Intersection.rules: object expected"); + message.rules[i] = $root.google.bigtable.admin.v2.GcRule.fromObject(object.rules[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an Intersection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {google.bigtable.admin.v2.GcRule.Intersection} message Intersection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Intersection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.bigtable.admin.v2.GcRule.toObject(message.rules[j], options); + } + return object; + }; + + /** + * Converts this Intersection to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @instance + * @returns {Object.} JSON object + */ + Intersection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Intersection + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.GcRule.Intersection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Intersection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.GcRule.Intersection"; + }; + + return Intersection; + })(); + + GcRule.Union = (function() { + + /** + * Properties of an Union. + * @memberof google.bigtable.admin.v2.GcRule + * @interface IUnion + * @property {Array.|null} [rules] Union rules + */ + + /** + * Constructs a new Union. + * @memberof google.bigtable.admin.v2.GcRule + * @classdesc Represents an Union. + * @implements IUnion + * @constructor + * @param {google.bigtable.admin.v2.GcRule.IUnion=} [properties] Properties to set + */ + function Union(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Union rules. + * @member {Array.} rules + * @memberof google.bigtable.admin.v2.GcRule.Union + * @instance + */ + Union.prototype.rules = $util.emptyArray; + + /** + * Creates a new Union instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {google.bigtable.admin.v2.GcRule.IUnion=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.GcRule.Union} Union instance + */ + Union.create = function create(properties) { + return new Union(properties); + }; + + /** + * Encodes the specified Union message. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Union.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {google.bigtable.admin.v2.GcRule.IUnion} message Union message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Union.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.bigtable.admin.v2.GcRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Union message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.GcRule.Union.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {google.bigtable.admin.v2.GcRule.IUnion} message Union message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Union.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Union message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.GcRule.Union} Union + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Union.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.GcRule.Union(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.bigtable.admin.v2.GcRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Union message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.GcRule.Union} Union + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Union.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Union message. + * @function verify + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Union.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.bigtable.admin.v2.GcRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + return null; + }; + + /** + * Creates an Union message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.GcRule.Union} Union + */ + Union.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.GcRule.Union) + return object; + var message = new $root.google.bigtable.admin.v2.GcRule.Union(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.bigtable.admin.v2.GcRule.Union.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.bigtable.admin.v2.GcRule.Union.rules: object expected"); + message.rules[i] = $root.google.bigtable.admin.v2.GcRule.fromObject(object.rules[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an Union message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {google.bigtable.admin.v2.GcRule.Union} message Union + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Union.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.bigtable.admin.v2.GcRule.toObject(message.rules[j], options); + } + return object; + }; + + /** + * Converts this Union to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.GcRule.Union + * @instance + * @returns {Object.} JSON object + */ + Union.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Union + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.GcRule.Union + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Union.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.GcRule.Union"; + }; + + return Union; + })(); + + return GcRule; + })(); + + v2.EncryptionInfo = (function() { /** - * Type aggregateType. - * @member {google.bigtable.admin.v2.Type.IAggregate|null|undefined} aggregateType - * @memberof google.bigtable.admin.v2.Type - * @instance + * Properties of an EncryptionInfo. + * @memberof google.bigtable.admin.v2 + * @interface IEncryptionInfo + * @property {google.bigtable.admin.v2.EncryptionInfo.EncryptionType|null} [encryptionType] EncryptionInfo encryptionType + * @property {google.rpc.IStatus|null} [encryptionStatus] EncryptionInfo encryptionStatus + * @property {string|null} [kmsKeyVersion] EncryptionInfo kmsKeyVersion */ - Type.prototype.aggregateType = null; /** - * Type structType. - * @member {google.bigtable.admin.v2.Type.IStruct|null|undefined} structType - * @memberof google.bigtable.admin.v2.Type - * @instance + * Constructs a new EncryptionInfo. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents an EncryptionInfo. + * @implements IEncryptionInfo + * @constructor + * @param {google.bigtable.admin.v2.IEncryptionInfo=} [properties] Properties to set */ - Type.prototype.structType = null; + function EncryptionInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Type arrayType. - * @member {google.bigtable.admin.v2.Type.IArray|null|undefined} arrayType - * @memberof google.bigtable.admin.v2.Type + * EncryptionInfo encryptionType. + * @member {google.bigtable.admin.v2.EncryptionInfo.EncryptionType} encryptionType + * @memberof google.bigtable.admin.v2.EncryptionInfo * @instance */ - Type.prototype.arrayType = null; + EncryptionInfo.prototype.encryptionType = 0; /** - * Type mapType. - * @member {google.bigtable.admin.v2.Type.IMap|null|undefined} mapType - * @memberof google.bigtable.admin.v2.Type + * EncryptionInfo encryptionStatus. + * @member {google.rpc.IStatus|null|undefined} encryptionStatus + * @memberof google.bigtable.admin.v2.EncryptionInfo * @instance */ - Type.prototype.mapType = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + EncryptionInfo.prototype.encryptionStatus = null; /** - * Type kind. - * @member {"bytesType"|"stringType"|"int64Type"|"float32Type"|"float64Type"|"boolType"|"timestampType"|"dateType"|"aggregateType"|"structType"|"arrayType"|"mapType"|undefined} kind - * @memberof google.bigtable.admin.v2.Type + * EncryptionInfo kmsKeyVersion. + * @member {string} kmsKeyVersion + * @memberof google.bigtable.admin.v2.EncryptionInfo * @instance */ - Object.defineProperty(Type.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["bytesType", "stringType", "int64Type", "float32Type", "float64Type", "boolType", "timestampType", "dateType", "aggregateType", "structType", "arrayType", "mapType"]), - set: $util.oneOfSetter($oneOfFields) - }); + EncryptionInfo.prototype.kmsKeyVersion = ""; /** - * Creates a new Type instance using the specified properties. + * Creates a new EncryptionInfo instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static - * @param {google.bigtable.admin.v2.IType=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type} Type instance + * @param {google.bigtable.admin.v2.IEncryptionInfo=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.EncryptionInfo} EncryptionInfo instance */ - Type.create = function create(properties) { - return new Type(properties); + EncryptionInfo.create = function create(properties) { + return new EncryptionInfo(properties); }; /** - * Encodes the specified Type message. Does not implicitly {@link google.bigtable.admin.v2.Type.verify|verify} messages. + * Encodes the specified EncryptionInfo message. Does not implicitly {@link google.bigtable.admin.v2.EncryptionInfo.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static - * @param {google.bigtable.admin.v2.IType} message Type message or plain object to encode + * @param {google.bigtable.admin.v2.IEncryptionInfo} message EncryptionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Type.encode = function encode(message, writer) { + EncryptionInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bytesType != null && Object.hasOwnProperty.call(message, "bytesType")) - $root.google.bigtable.admin.v2.Type.Bytes.encode(message.bytesType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stringType != null && Object.hasOwnProperty.call(message, "stringType")) - $root.google.bigtable.admin.v2.Type.String.encode(message.stringType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.arrayType != null && Object.hasOwnProperty.call(message, "arrayType")) - $root.google.bigtable.admin.v2.Type.Array.encode(message.arrayType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.mapType != null && Object.hasOwnProperty.call(message, "mapType")) - $root.google.bigtable.admin.v2.Type.Map.encode(message.mapType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.int64Type != null && Object.hasOwnProperty.call(message, "int64Type")) - $root.google.bigtable.admin.v2.Type.Int64.encode(message.int64Type, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.aggregateType != null && Object.hasOwnProperty.call(message, "aggregateType")) - $root.google.bigtable.admin.v2.Type.Aggregate.encode(message.aggregateType, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.structType != null && Object.hasOwnProperty.call(message, "structType")) - $root.google.bigtable.admin.v2.Type.Struct.encode(message.structType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.boolType != null && Object.hasOwnProperty.call(message, "boolType")) - $root.google.bigtable.admin.v2.Type.Bool.encode(message.boolType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.float64Type != null && Object.hasOwnProperty.call(message, "float64Type")) - $root.google.bigtable.admin.v2.Type.Float64.encode(message.float64Type, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.timestampType != null && Object.hasOwnProperty.call(message, "timestampType")) - $root.google.bigtable.admin.v2.Type.Timestamp.encode(message.timestampType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.dateType != null && Object.hasOwnProperty.call(message, "dateType")) - $root.google.bigtable.admin.v2.Type.Date.encode(message.dateType, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.float32Type != null && Object.hasOwnProperty.call(message, "float32Type")) - $root.google.bigtable.admin.v2.Type.Float32.encode(message.float32Type, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.kmsKeyVersion != null && Object.hasOwnProperty.call(message, "kmsKeyVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKeyVersion); + if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.encryptionType); + if (message.encryptionStatus != null && Object.hasOwnProperty.call(message, "encryptionStatus")) + $root.google.rpc.Status.encode(message.encryptionStatus, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Type message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.verify|verify} messages. + * Encodes the specified EncryptionInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.EncryptionInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static - * @param {google.bigtable.admin.v2.IType} message Type message or plain object to encode + * @param {google.bigtable.admin.v2.IEncryptionInfo} message EncryptionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Type.encodeDelimited = function encodeDelimited(message, writer) { + EncryptionInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Type message from the specified reader or buffer. + * Decodes an EncryptionInfo message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type} Type + * @returns {google.bigtable.admin.v2.EncryptionInfo} EncryptionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Type.decode = function decode(reader, length, error) { + EncryptionInfo.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.EncryptionInfo(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 1: { - message.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.decode(reader, reader.uint32()); - break; - } - case 2: { - message.stringType = $root.google.bigtable.admin.v2.Type.String.decode(reader, reader.uint32()); - break; - } - case 5: { - message.int64Type = $root.google.bigtable.admin.v2.Type.Int64.decode(reader, reader.uint32()); - break; - } - case 12: { - message.float32Type = $root.google.bigtable.admin.v2.Type.Float32.decode(reader, reader.uint32()); - break; - } - case 9: { - message.float64Type = $root.google.bigtable.admin.v2.Type.Float64.decode(reader, reader.uint32()); - break; - } - case 8: { - message.boolType = $root.google.bigtable.admin.v2.Type.Bool.decode(reader, reader.uint32()); - break; - } - case 10: { - message.timestampType = $root.google.bigtable.admin.v2.Type.Timestamp.decode(reader, reader.uint32()); - break; - } - case 11: { - message.dateType = $root.google.bigtable.admin.v2.Type.Date.decode(reader, reader.uint32()); - break; - } - case 6: { - message.aggregateType = $root.google.bigtable.admin.v2.Type.Aggregate.decode(reader, reader.uint32()); - break; - } - case 7: { - message.structType = $root.google.bigtable.admin.v2.Type.Struct.decode(reader, reader.uint32()); - break; - } case 3: { - message.arrayType = $root.google.bigtable.admin.v2.Type.Array.decode(reader, reader.uint32()); + message.encryptionType = reader.int32(); break; } case 4: { - message.mapType = $root.google.bigtable.admin.v2.Type.Map.decode(reader, reader.uint32()); + message.encryptionStatus = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 2: { + message.kmsKeyVersion = reader.string(); break; } default: @@ -35254,3007 +35743,2646 @@ }; /** - * Decodes a Type message from the specified reader or buffer, length delimited. + * Decodes an EncryptionInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type} Type + * @returns {google.bigtable.admin.v2.EncryptionInfo} EncryptionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Type.decodeDelimited = function decodeDelimited(reader) { + EncryptionInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Type message. + * Verifies an EncryptionInfo message. * @function verify - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Type.verify = function verify(message) { + EncryptionInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.bytesType != null && message.hasOwnProperty("bytesType")) { - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Bytes.verify(message.bytesType); - if (error) - return "bytesType." + error; - } - } - if (message.stringType != null && message.hasOwnProperty("stringType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.String.verify(message.stringType); - if (error) - return "stringType." + error; - } - } - if (message.int64Type != null && message.hasOwnProperty("int64Type")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Int64.verify(message.int64Type); - if (error) - return "int64Type." + error; - } - } - if (message.float32Type != null && message.hasOwnProperty("float32Type")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Float32.verify(message.float32Type); - if (error) - return "float32Type." + error; - } - } - if (message.float64Type != null && message.hasOwnProperty("float64Type")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Float64.verify(message.float64Type); - if (error) - return "float64Type." + error; - } - } - if (message.boolType != null && message.hasOwnProperty("boolType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Bool.verify(message.boolType); - if (error) - return "boolType." + error; - } - } - if (message.timestampType != null && message.hasOwnProperty("timestampType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Timestamp.verify(message.timestampType); - if (error) - return "timestampType." + error; - } - } - if (message.dateType != null && message.hasOwnProperty("dateType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Date.verify(message.dateType); - if (error) - return "dateType." + error; - } - } - if (message.aggregateType != null && message.hasOwnProperty("aggregateType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Aggregate.verify(message.aggregateType); - if (error) - return "aggregateType." + error; - } - } - if (message.structType != null && message.hasOwnProperty("structType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Struct.verify(message.structType); - if (error) - return "structType." + error; - } - } - if (message.arrayType != null && message.hasOwnProperty("arrayType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Array.verify(message.arrayType); - if (error) - return "arrayType." + error; - } - } - if (message.mapType != null && message.hasOwnProperty("mapType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Map.verify(message.mapType); - if (error) - return "mapType." + error; + if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + switch (message.encryptionType) { + default: + return "encryptionType: enum value expected"; + case 0: + case 1: + case 2: + break; } + if (message.encryptionStatus != null && message.hasOwnProperty("encryptionStatus")) { + var error = $root.google.rpc.Status.verify(message.encryptionStatus); + if (error) + return "encryptionStatus." + error; } + if (message.kmsKeyVersion != null && message.hasOwnProperty("kmsKeyVersion")) + if (!$util.isString(message.kmsKeyVersion)) + return "kmsKeyVersion: string expected"; return null; }; /** - * Creates a Type message from a plain object. Also converts values to their respective internal types. + * Creates an EncryptionInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type} Type + * @returns {google.bigtable.admin.v2.EncryptionInfo} EncryptionInfo */ - Type.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type) + EncryptionInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.EncryptionInfo) return object; - var message = new $root.google.bigtable.admin.v2.Type(); - if (object.bytesType != null) { - if (typeof object.bytesType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.bytesType: object expected"); - message.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.fromObject(object.bytesType); - } - if (object.stringType != null) { - if (typeof object.stringType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.stringType: object expected"); - message.stringType = $root.google.bigtable.admin.v2.Type.String.fromObject(object.stringType); - } - if (object.int64Type != null) { - if (typeof object.int64Type !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.int64Type: object expected"); - message.int64Type = $root.google.bigtable.admin.v2.Type.Int64.fromObject(object.int64Type); - } - if (object.float32Type != null) { - if (typeof object.float32Type !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.float32Type: object expected"); - message.float32Type = $root.google.bigtable.admin.v2.Type.Float32.fromObject(object.float32Type); - } - if (object.float64Type != null) { - if (typeof object.float64Type !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.float64Type: object expected"); - message.float64Type = $root.google.bigtable.admin.v2.Type.Float64.fromObject(object.float64Type); - } - if (object.boolType != null) { - if (typeof object.boolType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.boolType: object expected"); - message.boolType = $root.google.bigtable.admin.v2.Type.Bool.fromObject(object.boolType); - } - if (object.timestampType != null) { - if (typeof object.timestampType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.timestampType: object expected"); - message.timestampType = $root.google.bigtable.admin.v2.Type.Timestamp.fromObject(object.timestampType); - } - if (object.dateType != null) { - if (typeof object.dateType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.dateType: object expected"); - message.dateType = $root.google.bigtable.admin.v2.Type.Date.fromObject(object.dateType); - } - if (object.aggregateType != null) { - if (typeof object.aggregateType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.aggregateType: object expected"); - message.aggregateType = $root.google.bigtable.admin.v2.Type.Aggregate.fromObject(object.aggregateType); - } - if (object.structType != null) { - if (typeof object.structType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.structType: object expected"); - message.structType = $root.google.bigtable.admin.v2.Type.Struct.fromObject(object.structType); - } - if (object.arrayType != null) { - if (typeof object.arrayType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.arrayType: object expected"); - message.arrayType = $root.google.bigtable.admin.v2.Type.Array.fromObject(object.arrayType); + var message = new $root.google.bigtable.admin.v2.EncryptionInfo(); + switch (object.encryptionType) { + default: + if (typeof object.encryptionType === "number") { + message.encryptionType = object.encryptionType; + break; + } + break; + case "ENCRYPTION_TYPE_UNSPECIFIED": + case 0: + message.encryptionType = 0; + break; + case "GOOGLE_DEFAULT_ENCRYPTION": + case 1: + message.encryptionType = 1; + break; + case "CUSTOMER_MANAGED_ENCRYPTION": + case 2: + message.encryptionType = 2; + break; } - if (object.mapType != null) { - if (typeof object.mapType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.mapType: object expected"); - message.mapType = $root.google.bigtable.admin.v2.Type.Map.fromObject(object.mapType); + if (object.encryptionStatus != null) { + if (typeof object.encryptionStatus !== "object") + throw TypeError(".google.bigtable.admin.v2.EncryptionInfo.encryptionStatus: object expected"); + message.encryptionStatus = $root.google.rpc.Status.fromObject(object.encryptionStatus); } + if (object.kmsKeyVersion != null) + message.kmsKeyVersion = String(object.kmsKeyVersion); return message; }; /** - * Creates a plain object from a Type message. Also converts values to other types if specified. + * Creates a plain object from an EncryptionInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static - * @param {google.bigtable.admin.v2.Type} message Type + * @param {google.bigtable.admin.v2.EncryptionInfo} message EncryptionInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Type.toObject = function toObject(message, options) { + EncryptionInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.bytesType != null && message.hasOwnProperty("bytesType")) { - object.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.toObject(message.bytesType, options); - if (options.oneofs) - object.kind = "bytesType"; - } - if (message.stringType != null && message.hasOwnProperty("stringType")) { - object.stringType = $root.google.bigtable.admin.v2.Type.String.toObject(message.stringType, options); - if (options.oneofs) - object.kind = "stringType"; - } - if (message.arrayType != null && message.hasOwnProperty("arrayType")) { - object.arrayType = $root.google.bigtable.admin.v2.Type.Array.toObject(message.arrayType, options); - if (options.oneofs) - object.kind = "arrayType"; - } - if (message.mapType != null && message.hasOwnProperty("mapType")) { - object.mapType = $root.google.bigtable.admin.v2.Type.Map.toObject(message.mapType, options); - if (options.oneofs) - object.kind = "mapType"; - } - if (message.int64Type != null && message.hasOwnProperty("int64Type")) { - object.int64Type = $root.google.bigtable.admin.v2.Type.Int64.toObject(message.int64Type, options); - if (options.oneofs) - object.kind = "int64Type"; - } - if (message.aggregateType != null && message.hasOwnProperty("aggregateType")) { - object.aggregateType = $root.google.bigtable.admin.v2.Type.Aggregate.toObject(message.aggregateType, options); - if (options.oneofs) - object.kind = "aggregateType"; - } - if (message.structType != null && message.hasOwnProperty("structType")) { - object.structType = $root.google.bigtable.admin.v2.Type.Struct.toObject(message.structType, options); - if (options.oneofs) - object.kind = "structType"; - } - if (message.boolType != null && message.hasOwnProperty("boolType")) { - object.boolType = $root.google.bigtable.admin.v2.Type.Bool.toObject(message.boolType, options); - if (options.oneofs) - object.kind = "boolType"; - } - if (message.float64Type != null && message.hasOwnProperty("float64Type")) { - object.float64Type = $root.google.bigtable.admin.v2.Type.Float64.toObject(message.float64Type, options); - if (options.oneofs) - object.kind = "float64Type"; - } - if (message.timestampType != null && message.hasOwnProperty("timestampType")) { - object.timestampType = $root.google.bigtable.admin.v2.Type.Timestamp.toObject(message.timestampType, options); - if (options.oneofs) - object.kind = "timestampType"; - } - if (message.dateType != null && message.hasOwnProperty("dateType")) { - object.dateType = $root.google.bigtable.admin.v2.Type.Date.toObject(message.dateType, options); - if (options.oneofs) - object.kind = "dateType"; - } - if (message.float32Type != null && message.hasOwnProperty("float32Type")) { - object.float32Type = $root.google.bigtable.admin.v2.Type.Float32.toObject(message.float32Type, options); - if (options.oneofs) - object.kind = "float32Type"; + if (options.defaults) { + object.kmsKeyVersion = ""; + object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0; + object.encryptionStatus = null; } + if (message.kmsKeyVersion != null && message.hasOwnProperty("kmsKeyVersion")) + object.kmsKeyVersion = message.kmsKeyVersion; + if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + object.encryptionType = options.enums === String ? $root.google.bigtable.admin.v2.EncryptionInfo.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.bigtable.admin.v2.EncryptionInfo.EncryptionType[message.encryptionType] : message.encryptionType; + if (message.encryptionStatus != null && message.hasOwnProperty("encryptionStatus")) + object.encryptionStatus = $root.google.rpc.Status.toObject(message.encryptionStatus, options); return object; }; /** - * Converts this Type to JSON. + * Converts this EncryptionInfo to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @instance * @returns {Object.} JSON object */ - Type.prototype.toJSON = function toJSON() { + EncryptionInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Type + * Gets the default type url for EncryptionInfo * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type + * @memberof google.bigtable.admin.v2.EncryptionInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Type.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EncryptionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type"; + return typeUrlPrefix + "/google.bigtable.admin.v2.EncryptionInfo"; }; - Type.Bytes = (function() { - - /** - * Properties of a Bytes. - * @memberof google.bigtable.admin.v2.Type - * @interface IBytes - * @property {google.bigtable.admin.v2.Type.Bytes.IEncoding|null} [encoding] Bytes encoding - */ + /** + * EncryptionType enum. + * @name google.bigtable.admin.v2.EncryptionInfo.EncryptionType + * @enum {number} + * @property {number} ENCRYPTION_TYPE_UNSPECIFIED=0 ENCRYPTION_TYPE_UNSPECIFIED value + * @property {number} GOOGLE_DEFAULT_ENCRYPTION=1 GOOGLE_DEFAULT_ENCRYPTION value + * @property {number} CUSTOMER_MANAGED_ENCRYPTION=2 CUSTOMER_MANAGED_ENCRYPTION value + */ + EncryptionInfo.EncryptionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENCRYPTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GOOGLE_DEFAULT_ENCRYPTION"] = 1; + values[valuesById[2] = "CUSTOMER_MANAGED_ENCRYPTION"] = 2; + return values; + })(); - /** - * Constructs a new Bytes. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a Bytes. - * @implements IBytes - * @constructor - * @param {google.bigtable.admin.v2.Type.IBytes=} [properties] Properties to set - */ - function Bytes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return EncryptionInfo; + })(); - /** - * Bytes encoding. - * @member {google.bigtable.admin.v2.Type.Bytes.IEncoding|null|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.Bytes - * @instance - */ - Bytes.prototype.encoding = null; + v2.Snapshot = (function() { - /** - * Creates a new Bytes instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {google.bigtable.admin.v2.Type.IBytes=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Bytes} Bytes instance - */ - Bytes.create = function create(properties) { - return new Bytes(properties); - }; + /** + * Properties of a Snapshot. + * @memberof google.bigtable.admin.v2 + * @interface ISnapshot + * @property {string|null} [name] Snapshot name + * @property {google.bigtable.admin.v2.ITable|null} [sourceTable] Snapshot sourceTable + * @property {number|Long|null} [dataSizeBytes] Snapshot dataSizeBytes + * @property {google.protobuf.ITimestamp|null} [createTime] Snapshot createTime + * @property {google.protobuf.ITimestamp|null} [deleteTime] Snapshot deleteTime + * @property {google.bigtable.admin.v2.Snapshot.State|null} [state] Snapshot state + * @property {string|null} [description] Snapshot description + */ - /** - * Encodes the specified Bytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {google.bigtable.admin.v2.Type.IBytes} message Bytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bytes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - $root.google.bigtable.admin.v2.Type.Bytes.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new Snapshot. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a Snapshot. + * @implements ISnapshot + * @constructor + * @param {google.bigtable.admin.v2.ISnapshot=} [properties] Properties to set + */ + function Snapshot(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Bytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {google.bigtable.admin.v2.Type.IBytes} message Bytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bytes.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Snapshot name. + * @member {string} name + * @memberof google.bigtable.admin.v2.Snapshot + * @instance + */ + Snapshot.prototype.name = ""; - /** - * Decodes a Bytes message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Bytes} Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bytes.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Bytes(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.encoding = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Bytes message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Bytes} Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bytes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Bytes message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Bytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encoding != null && message.hasOwnProperty("encoding")) { - var error = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.verify(message.encoding); - if (error) - return "encoding." + error; - } - return null; - }; - - /** - * Creates a Bytes message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Bytes} Bytes - */ - Bytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Bytes) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Bytes(); - if (object.encoding != null) { - if (typeof object.encoding !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Bytes.encoding: object expected"); - message.encoding = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.fromObject(object.encoding); - } - return message; - }; - - /** - * Creates a plain object from a Bytes message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {google.bigtable.admin.v2.Type.Bytes} message Bytes - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Bytes.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.encoding = null; - if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.toObject(message.encoding, options); - return object; - }; - - /** - * Converts this Bytes to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Bytes - * @instance - * @returns {Object.} JSON object - */ - Bytes.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Bytes - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Bytes - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Bytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Bytes"; - }; - - Bytes.Encoding = (function() { + /** + * Snapshot sourceTable. + * @member {google.bigtable.admin.v2.ITable|null|undefined} sourceTable + * @memberof google.bigtable.admin.v2.Snapshot + * @instance + */ + Snapshot.prototype.sourceTable = null; - /** - * Properties of an Encoding. - * @memberof google.bigtable.admin.v2.Type.Bytes - * @interface IEncoding - * @property {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw|null} [raw] Encoding raw - */ + /** + * Snapshot dataSizeBytes. + * @member {number|Long} dataSizeBytes + * @memberof google.bigtable.admin.v2.Snapshot + * @instance + */ + Snapshot.prototype.dataSizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Constructs a new Encoding. - * @memberof google.bigtable.admin.v2.Type.Bytes - * @classdesc Represents an Encoding. - * @implements IEncoding - * @constructor - * @param {google.bigtable.admin.v2.Type.Bytes.IEncoding=} [properties] Properties to set - */ - function Encoding(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Snapshot createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.bigtable.admin.v2.Snapshot + * @instance + */ + Snapshot.prototype.createTime = null; - /** - * Encoding raw. - * @member {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw|null|undefined} raw - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @instance - */ - Encoding.prototype.raw = null; + /** + * Snapshot deleteTime. + * @member {google.protobuf.ITimestamp|null|undefined} deleteTime + * @memberof google.bigtable.admin.v2.Snapshot + * @instance + */ + Snapshot.prototype.deleteTime = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Snapshot state. + * @member {google.bigtable.admin.v2.Snapshot.State} state + * @memberof google.bigtable.admin.v2.Snapshot + * @instance + */ + Snapshot.prototype.state = 0; - /** - * Encoding encoding. - * @member {"raw"|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @instance - */ - Object.defineProperty(Encoding.prototype, "encoding", { - get: $util.oneOfGetter($oneOfFields = ["raw"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Snapshot description. + * @member {string} description + * @memberof google.bigtable.admin.v2.Snapshot + * @instance + */ + Snapshot.prototype.description = ""; - /** - * Creates a new Encoding instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Bytes.IEncoding=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding} Encoding instance - */ - Encoding.create = function create(properties) { - return new Encoding(properties); - }; + /** + * Creates a new Snapshot instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {google.bigtable.admin.v2.ISnapshot=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Snapshot} Snapshot instance + */ + Snapshot.create = function create(properties) { + return new Snapshot(properties); + }; - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Bytes.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.raw != null && Object.hasOwnProperty.call(message, "raw")) - $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.encode(message.raw, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Snapshot message. Does not implicitly {@link google.bigtable.admin.v2.Snapshot.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {google.bigtable.admin.v2.ISnapshot} message Snapshot message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Snapshot.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.sourceTable != null && Object.hasOwnProperty.call(message, "sourceTable")) + $root.google.bigtable.admin.v2.Table.encode(message.sourceTable, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dataSizeBytes != null && Object.hasOwnProperty.call(message, "dataSizeBytes")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.dataSizeBytes); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime")) + $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.description); + return writer; + }; - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Bytes.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Snapshot.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {google.bigtable.admin.v2.ISnapshot} message Snapshot message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Snapshot.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an Encoding message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Bytes.Encoding(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.raw = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a Snapshot message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Snapshot} Snapshot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Snapshot.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Snapshot(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } - return message; - }; - - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Encoding message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Encoding.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.raw != null && message.hasOwnProperty("raw")) { - properties.encoding = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify(message.raw); - if (error) - return "raw." + error; - } + case 2: { + message.sourceTable = $root.google.bigtable.admin.v2.Table.decode(reader, reader.uint32()); + break; } - return null; - }; - - /** - * Creates an Encoding message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding} Encoding - */ - Encoding.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Bytes.Encoding) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Bytes.Encoding(); - if (object.raw != null) { - if (typeof object.raw !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Bytes.Encoding.raw: object expected"); - message.raw = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.fromObject(object.raw); + case 3: { + message.dataSizeBytes = reader.int64(); + break; } - return message; - }; - - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Bytes.Encoding} message Encoding - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Encoding.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.raw != null && message.hasOwnProperty("raw")) { - object.raw = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.toObject(message.raw, options); - if (options.oneofs) - object.encoding = "raw"; + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; } - return object; - }; - - /** - * Converts this Encoding to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @instance - * @returns {Object.} JSON object - */ - Encoding.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Encoding - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + case 5: { + message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Bytes.Encoding"; - }; - - Encoding.Raw = (function() { - - /** - * Properties of a Raw. - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @interface IRaw - */ - - /** - * Constructs a new Raw. - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding - * @classdesc Represents a Raw. - * @implements IRaw - * @constructor - * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw=} [properties] Properties to set - */ - function Raw(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.description = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new Raw instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} Raw instance - */ - Raw.create = function create(properties) { - return new Raw(properties); - }; + /** + * Decodes a Snapshot message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Snapshot} Snapshot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Snapshot.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified Raw message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw} message Raw message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Raw.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Verifies a Snapshot message. + * @function verify + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Snapshot.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) { + var error = $root.google.bigtable.admin.v2.Table.verify(message.sourceTable); + if (error) + return "sourceTable." + error; + } + if (message.dataSizeBytes != null && message.hasOwnProperty("dataSizeBytes")) + if (!$util.isInteger(message.dataSizeBytes) && !(message.dataSizeBytes && $util.isInteger(message.dataSizeBytes.low) && $util.isInteger(message.dataSizeBytes.high))) + return "dataSizeBytes: integer|Long expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.deleteTime); + if (error) + return "deleteTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; - /** - * Encodes the specified Raw message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw} message Raw message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Raw.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Snapshot} Snapshot + */ + Snapshot.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Snapshot) + return object; + var message = new $root.google.bigtable.admin.v2.Snapshot(); + if (object.name != null) + message.name = String(object.name); + if (object.sourceTable != null) { + if (typeof object.sourceTable !== "object") + throw TypeError(".google.bigtable.admin.v2.Snapshot.sourceTable: object expected"); + message.sourceTable = $root.google.bigtable.admin.v2.Table.fromObject(object.sourceTable); + } + if (object.dataSizeBytes != null) + if ($util.Long) + (message.dataSizeBytes = $util.Long.fromValue(object.dataSizeBytes)).unsigned = false; + else if (typeof object.dataSizeBytes === "string") + message.dataSizeBytes = parseInt(object.dataSizeBytes, 10); + else if (typeof object.dataSizeBytes === "number") + message.dataSizeBytes = object.dataSizeBytes; + else if (typeof object.dataSizeBytes === "object") + message.dataSizeBytes = new $util.LongBits(object.dataSizeBytes.low >>> 0, object.dataSizeBytes.high >>> 0).toNumber(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.bigtable.admin.v2.Snapshot.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.deleteTime != null) { + if (typeof object.deleteTime !== "object") + throw TypeError(".google.bigtable.admin.v2.Snapshot.deleteTime: object expected"); + message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_NOT_KNOWN": + case 0: + message.state = 0; + break; + case "READY": + case 1: + message.state = 1; + break; + case "CREATING": + case 2: + message.state = 2; + break; + } + if (object.description != null) + message.description = String(object.description); + return message; + }; - /** - * Decodes a Raw message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Raw.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from a Snapshot message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {google.bigtable.admin.v2.Snapshot} message Snapshot + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Snapshot.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.sourceTable = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.dataSizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dataSizeBytes = options.longs === String ? "0" : 0; + object.createTime = null; + object.deleteTime = null; + object.state = options.enums === String ? "STATE_NOT_KNOWN" : 0; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) + object.sourceTable = $root.google.bigtable.admin.v2.Table.toObject(message.sourceTable, options); + if (message.dataSizeBytes != null && message.hasOwnProperty("dataSizeBytes")) + if (typeof message.dataSizeBytes === "number") + object.dataSizeBytes = options.longs === String ? String(message.dataSizeBytes) : message.dataSizeBytes; + else + object.dataSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.dataSizeBytes) : options.longs === Number ? new $util.LongBits(message.dataSizeBytes.low >>> 0, message.dataSizeBytes.high >>> 0).toNumber() : message.dataSizeBytes; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) + object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.bigtable.admin.v2.Snapshot.State[message.state] === undefined ? message.state : $root.google.bigtable.admin.v2.Snapshot.State[message.state] : message.state; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; - /** - * Decodes a Raw message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Raw.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this Snapshot to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Snapshot + * @instance + * @returns {Object.} JSON object + */ + Snapshot.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a Raw message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Raw.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Gets the default type url for Snapshot + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Snapshot + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Snapshot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Snapshot"; + }; - /** - * Creates a Raw message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} Raw - */ - Raw.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw) - return object; - return new $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw(); - }; + /** + * State enum. + * @name google.bigtable.admin.v2.Snapshot.State + * @enum {number} + * @property {number} STATE_NOT_KNOWN=0 STATE_NOT_KNOWN value + * @property {number} READY=1 READY value + * @property {number} CREATING=2 CREATING value + */ + Snapshot.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_NOT_KNOWN"] = 0; + values[valuesById[1] = "READY"] = 1; + values[valuesById[2] = "CREATING"] = 2; + return values; + })(); - /** - * Creates a plain object from a Raw message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} message Raw - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Raw.toObject = function toObject() { - return {}; - }; + return Snapshot; + })(); - /** - * Converts this Raw to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @instance - * @returns {Object.} JSON object - */ - Raw.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + v2.Backup = (function() { - /** - * Gets the default type url for Raw - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Raw.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Bytes.Encoding.Raw"; - }; + /** + * Properties of a Backup. + * @memberof google.bigtable.admin.v2 + * @interface IBackup + * @property {string|null} [name] Backup name + * @property {string|null} [sourceTable] Backup sourceTable + * @property {string|null} [sourceBackup] Backup sourceBackup + * @property {google.protobuf.ITimestamp|null} [expireTime] Backup expireTime + * @property {google.protobuf.ITimestamp|null} [startTime] Backup startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Backup endTime + * @property {number|Long|null} [sizeBytes] Backup sizeBytes + * @property {google.bigtable.admin.v2.Backup.State|null} [state] Backup state + * @property {google.bigtable.admin.v2.IEncryptionInfo|null} [encryptionInfo] Backup encryptionInfo + * @property {google.bigtable.admin.v2.Backup.BackupType|null} [backupType] Backup backupType + * @property {google.protobuf.ITimestamp|null} [hotToStandardTime] Backup hotToStandardTime + */ - return Raw; - })(); + /** + * Constructs a new Backup. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a Backup. + * @implements IBackup + * @constructor + * @param {google.bigtable.admin.v2.IBackup=} [properties] Properties to set + */ + function Backup(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return Encoding; - })(); + /** + * Backup name. + * @member {string} name + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.name = ""; - return Bytes; - })(); + /** + * Backup sourceTable. + * @member {string} sourceTable + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.sourceTable = ""; - Type.String = (function() { + /** + * Backup sourceBackup. + * @member {string} sourceBackup + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.sourceBackup = ""; - /** - * Properties of a String. - * @memberof google.bigtable.admin.v2.Type - * @interface IString - * @property {google.bigtable.admin.v2.Type.String.IEncoding|null} [encoding] String encoding - */ + /** + * Backup expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.expireTime = null; - /** - * Constructs a new String. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a String. - * @implements IString - * @constructor - * @param {google.bigtable.admin.v2.Type.IString=} [properties] Properties to set - */ - function String(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Backup startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.startTime = null; - /** - * String encoding. - * @member {google.bigtable.admin.v2.Type.String.IEncoding|null|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.String - * @instance - */ - String.prototype.encoding = null; + /** + * Backup endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.endTime = null; - /** - * Creates a new String instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {google.bigtable.admin.v2.Type.IString=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.String} String instance - */ - String.create = function create(properties) { - return new String(properties); - }; + /** + * Backup sizeBytes. + * @member {number|Long} sizeBytes + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.sizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Encodes the specified String message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {google.bigtable.admin.v2.Type.IString} message String message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - String.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - $root.google.bigtable.admin.v2.Type.String.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Backup state. + * @member {google.bigtable.admin.v2.Backup.State} state + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.state = 0; - /** - * Encodes the specified String message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {google.bigtable.admin.v2.Type.IString} message String message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - String.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Backup encryptionInfo. + * @member {google.bigtable.admin.v2.IEncryptionInfo|null|undefined} encryptionInfo + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.encryptionInfo = null; - /** - * Decodes a String message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.String} String - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - String.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.String(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.encoding = $root.google.bigtable.admin.v2.Type.String.Encoding.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a String message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.String} String - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - String.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a String message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - String.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encoding != null && message.hasOwnProperty("encoding")) { - var error = $root.google.bigtable.admin.v2.Type.String.Encoding.verify(message.encoding); - if (error) - return "encoding." + error; - } - return null; - }; - - /** - * Creates a String message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.String} String - */ - String.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.String) - return object; - var message = new $root.google.bigtable.admin.v2.Type.String(); - if (object.encoding != null) { - if (typeof object.encoding !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.String.encoding: object expected"); - message.encoding = $root.google.bigtable.admin.v2.Type.String.Encoding.fromObject(object.encoding); - } - return message; - }; - - /** - * Creates a plain object from a String message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {google.bigtable.admin.v2.Type.String} message String - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - String.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.encoding = null; - if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = $root.google.bigtable.admin.v2.Type.String.Encoding.toObject(message.encoding, options); - return object; - }; - - /** - * Converts this String to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.String - * @instance - * @returns {Object.} JSON object - */ - String.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for String - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.String - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - String.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.String"; - }; - - String.Encoding = (function() { - - /** - * Properties of an Encoding. - * @memberof google.bigtable.admin.v2.Type.String - * @interface IEncoding - * @property {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw|null} [utf8Raw] Encoding utf8Raw - * @property {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes|null} [utf8Bytes] Encoding utf8Bytes - */ - - /** - * Constructs a new Encoding. - * @memberof google.bigtable.admin.v2.Type.String - * @classdesc Represents an Encoding. - * @implements IEncoding - * @constructor - * @param {google.bigtable.admin.v2.Type.String.IEncoding=} [properties] Properties to set - */ - function Encoding(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Encoding utf8Raw. - * @member {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw|null|undefined} utf8Raw - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @instance - */ - Encoding.prototype.utf8Raw = null; - - /** - * Encoding utf8Bytes. - * @member {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes|null|undefined} utf8Bytes - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @instance - */ - Encoding.prototype.utf8Bytes = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Backup backupType. + * @member {google.bigtable.admin.v2.Backup.BackupType} backupType + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.backupType = 0; - /** - * Encoding encoding. - * @member {"utf8Raw"|"utf8Bytes"|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @instance - */ - Object.defineProperty(Encoding.prototype, "encoding", { - get: $util.oneOfGetter($oneOfFields = ["utf8Raw", "utf8Bytes"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Backup hotToStandardTime. + * @member {google.protobuf.ITimestamp|null|undefined} hotToStandardTime + * @memberof google.bigtable.admin.v2.Backup + * @instance + */ + Backup.prototype.hotToStandardTime = null; - /** - * Creates a new Encoding instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.String.IEncoding=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.String.Encoding} Encoding instance - */ - Encoding.create = function create(properties) { - return new Encoding(properties); - }; + /** + * Creates a new Backup instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {google.bigtable.admin.v2.IBackup=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Backup} Backup instance + */ + Backup.create = function create(properties) { + return new Backup(properties); + }; - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.String.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.utf8Raw != null && Object.hasOwnProperty.call(message, "utf8Raw")) - $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.encode(message.utf8Raw, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.utf8Bytes != null && Object.hasOwnProperty.call(message, "utf8Bytes")) - $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.encode(message.utf8Bytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Backup message. Does not implicitly {@link google.bigtable.admin.v2.Backup.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {google.bigtable.admin.v2.IBackup} message Backup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Backup.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.sourceTable != null && Object.hasOwnProperty.call(message, "sourceTable")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceTable); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.sizeBytes); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.encryptionInfo != null && Object.hasOwnProperty.call(message, "encryptionInfo")) + $root.google.bigtable.admin.v2.EncryptionInfo.encode(message.encryptionInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.sourceBackup); + if (message.backupType != null && Object.hasOwnProperty.call(message, "backupType")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.backupType); + if (message.hotToStandardTime != null && Object.hasOwnProperty.call(message, "hotToStandardTime")) + $root.google.protobuf.Timestamp.encode(message.hotToStandardTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.String.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Backup message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Backup.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {google.bigtable.admin.v2.IBackup} message Backup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Backup.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an Encoding message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.String.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.String.Encoding(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.utf8Raw = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.decode(reader, reader.uint32()); - break; - } - case 2: { - message.utf8Bytes = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a Backup message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Backup} Backup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Backup.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Backup(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } - return message; - }; - - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.String.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Encoding message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Encoding.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.utf8Raw != null && message.hasOwnProperty("utf8Raw")) { - properties.encoding = 1; - { - var error = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify(message.utf8Raw); - if (error) - return "utf8Raw." + error; - } + case 2: { + message.sourceTable = reader.string(); + break; } - if (message.utf8Bytes != null && message.hasOwnProperty("utf8Bytes")) { - if (properties.encoding === 1) - return "encoding: multiple values"; - properties.encoding = 1; - { - var error = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify(message.utf8Bytes); - if (error) - return "utf8Bytes." + error; - } + case 10: { + message.sourceBackup = reader.string(); + break; } - return null; - }; - - /** - * Creates an Encoding message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.String.Encoding} Encoding - */ - Encoding.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.String.Encoding) - return object; - var message = new $root.google.bigtable.admin.v2.Type.String.Encoding(); - if (object.utf8Raw != null) { - if (typeof object.utf8Raw !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.String.Encoding.utf8Raw: object expected"); - message.utf8Raw = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.fromObject(object.utf8Raw); + case 3: { + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; } - if (object.utf8Bytes != null) { - if (typeof object.utf8Bytes !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.String.Encoding.utf8Bytes: object expected"); - message.utf8Bytes = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.fromObject(object.utf8Bytes); + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; } - return message; - }; - - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding} message Encoding - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Encoding.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.utf8Raw != null && message.hasOwnProperty("utf8Raw")) { - object.utf8Raw = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.toObject(message.utf8Raw, options); - if (options.oneofs) - object.encoding = "utf8Raw"; + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; } - if (message.utf8Bytes != null && message.hasOwnProperty("utf8Bytes")) { - object.utf8Bytes = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.toObject(message.utf8Bytes, options); - if (options.oneofs) - object.encoding = "utf8Bytes"; + case 6: { + message.sizeBytes = reader.int64(); + break; } - return object; - }; - - /** - * Converts this Encoding to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @instance - * @returns {Object.} JSON object - */ - Encoding.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Encoding - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + case 7: { + message.state = reader.int32(); + break; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.String.Encoding"; - }; - - Encoding.Utf8Raw = (function() { - - /** - * Properties of an Utf8Raw. - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @interface IUtf8Raw - */ - - /** - * Constructs a new Utf8Raw. - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @classdesc Represents an Utf8Raw. - * @implements IUtf8Raw - * @constructor - * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw=} [properties] Properties to set - */ - function Utf8Raw(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + case 9: { + message.encryptionInfo = $root.google.bigtable.admin.v2.EncryptionInfo.decode(reader, reader.uint32()); + break; } + case 11: { + message.backupType = reader.int32(); + break; + } + case 12: { + message.hotToStandardTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new Utf8Raw instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} Utf8Raw instance - */ - Utf8Raw.create = function create(properties) { - return new Utf8Raw(properties); - }; - - /** - * Encodes the specified Utf8Raw message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw} message Utf8Raw message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Utf8Raw.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Decodes a Backup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Backup} Backup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Backup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified Utf8Raw message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw} message Utf8Raw message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Utf8Raw.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a Backup message. + * @function verify + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Backup.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) + if (!$util.isString(message.sourceTable)) + return "sourceTable: string expected"; + if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) + if (!$util.isString(message.sourceBackup)) + return "sourceBackup: string expected"; + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes")) + if (!$util.isInteger(message.sizeBytes) && !(message.sizeBytes && $util.isInteger(message.sizeBytes.low) && $util.isInteger(message.sizeBytes.high))) + return "sizeBytes: integer|Long expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.encryptionInfo != null && message.hasOwnProperty("encryptionInfo")) { + var error = $root.google.bigtable.admin.v2.EncryptionInfo.verify(message.encryptionInfo); + if (error) + return "encryptionInfo." + error; + } + if (message.backupType != null && message.hasOwnProperty("backupType")) + switch (message.backupType) { + default: + return "backupType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.hotToStandardTime != null && message.hasOwnProperty("hotToStandardTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.hotToStandardTime); + if (error) + return "hotToStandardTime." + error; + } + return null; + }; - /** - * Decodes an Utf8Raw message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} Utf8Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Utf8Raw.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a Backup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Backup} Backup + */ + Backup.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Backup) + return object; + var message = new $root.google.bigtable.admin.v2.Backup(); + if (object.name != null) + message.name = String(object.name); + if (object.sourceTable != null) + message.sourceTable = String(object.sourceTable); + if (object.sourceBackup != null) + message.sourceBackup = String(object.sourceBackup); + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.bigtable.admin.v2.Backup.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.bigtable.admin.v2.Backup.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.bigtable.admin.v2.Backup.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.sizeBytes != null) + if ($util.Long) + (message.sizeBytes = $util.Long.fromValue(object.sizeBytes)).unsigned = false; + else if (typeof object.sizeBytes === "string") + message.sizeBytes = parseInt(object.sizeBytes, 10); + else if (typeof object.sizeBytes === "number") + message.sizeBytes = object.sizeBytes; + else if (typeof object.sizeBytes === "object") + message.sizeBytes = new $util.LongBits(object.sizeBytes.low >>> 0, object.sizeBytes.high >>> 0).toNumber(); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "CREATING": + case 1: + message.state = 1; + break; + case "READY": + case 2: + message.state = 2; + break; + } + if (object.encryptionInfo != null) { + if (typeof object.encryptionInfo !== "object") + throw TypeError(".google.bigtable.admin.v2.Backup.encryptionInfo: object expected"); + message.encryptionInfo = $root.google.bigtable.admin.v2.EncryptionInfo.fromObject(object.encryptionInfo); + } + switch (object.backupType) { + default: + if (typeof object.backupType === "number") { + message.backupType = object.backupType; + break; + } + break; + case "BACKUP_TYPE_UNSPECIFIED": + case 0: + message.backupType = 0; + break; + case "STANDARD": + case 1: + message.backupType = 1; + break; + case "HOT": + case 2: + message.backupType = 2; + break; + } + if (object.hotToStandardTime != null) { + if (typeof object.hotToStandardTime !== "object") + throw TypeError(".google.bigtable.admin.v2.Backup.hotToStandardTime: object expected"); + message.hotToStandardTime = $root.google.protobuf.Timestamp.fromObject(object.hotToStandardTime); + } + return message; + }; - /** - * Decodes an Utf8Raw message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} Utf8Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Utf8Raw.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a Backup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {google.bigtable.admin.v2.Backup} message Backup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Backup.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.sourceTable = ""; + object.expireTime = null; + object.startTime = null; + object.endTime = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.sizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sizeBytes = options.longs === String ? "0" : 0; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.encryptionInfo = null; + object.sourceBackup = ""; + object.backupType = options.enums === String ? "BACKUP_TYPE_UNSPECIFIED" : 0; + object.hotToStandardTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) + object.sourceTable = message.sourceTable; + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes")) + if (typeof message.sizeBytes === "number") + object.sizeBytes = options.longs === String ? String(message.sizeBytes) : message.sizeBytes; + else + object.sizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.sizeBytes) : options.longs === Number ? new $util.LongBits(message.sizeBytes.low >>> 0, message.sizeBytes.high >>> 0).toNumber() : message.sizeBytes; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.bigtable.admin.v2.Backup.State[message.state] === undefined ? message.state : $root.google.bigtable.admin.v2.Backup.State[message.state] : message.state; + if (message.encryptionInfo != null && message.hasOwnProperty("encryptionInfo")) + object.encryptionInfo = $root.google.bigtable.admin.v2.EncryptionInfo.toObject(message.encryptionInfo, options); + if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) + object.sourceBackup = message.sourceBackup; + if (message.backupType != null && message.hasOwnProperty("backupType")) + object.backupType = options.enums === String ? $root.google.bigtable.admin.v2.Backup.BackupType[message.backupType] === undefined ? message.backupType : $root.google.bigtable.admin.v2.Backup.BackupType[message.backupType] : message.backupType; + if (message.hotToStandardTime != null && message.hasOwnProperty("hotToStandardTime")) + object.hotToStandardTime = $root.google.protobuf.Timestamp.toObject(message.hotToStandardTime, options); + return object; + }; - /** - * Verifies an Utf8Raw message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Utf8Raw.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Converts this Backup to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Backup + * @instance + * @returns {Object.} JSON object + */ + Backup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates an Utf8Raw message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} Utf8Raw - */ - Utf8Raw.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw) - return object; - return new $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw(); - }; + /** + * Gets the default type url for Backup + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Backup + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Backup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Backup"; + }; - /** - * Creates a plain object from an Utf8Raw message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} message Utf8Raw - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Utf8Raw.toObject = function toObject() { - return {}; - }; + /** + * State enum. + * @name google.bigtable.admin.v2.Backup.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} CREATING=1 CREATING value + * @property {number} READY=2 READY value + */ + Backup.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATING"] = 1; + values[valuesById[2] = "READY"] = 2; + return values; + })(); - /** - * Converts this Utf8Raw to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @instance - * @returns {Object.} JSON object - */ - Utf8Raw.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * BackupType enum. + * @name google.bigtable.admin.v2.Backup.BackupType + * @enum {number} + * @property {number} BACKUP_TYPE_UNSPECIFIED=0 BACKUP_TYPE_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} HOT=2 HOT value + */ + Backup.BackupType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BACKUP_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "HOT"] = 2; + return values; + })(); - /** - * Gets the default type url for Utf8Raw - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Utf8Raw.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw"; - }; + return Backup; + })(); - return Utf8Raw; - })(); + v2.BackupInfo = (function() { - Encoding.Utf8Bytes = (function() { + /** + * Properties of a BackupInfo. + * @memberof google.bigtable.admin.v2 + * @interface IBackupInfo + * @property {string|null} [backup] BackupInfo backup + * @property {google.protobuf.ITimestamp|null} [startTime] BackupInfo startTime + * @property {google.protobuf.ITimestamp|null} [endTime] BackupInfo endTime + * @property {string|null} [sourceTable] BackupInfo sourceTable + * @property {string|null} [sourceBackup] BackupInfo sourceBackup + */ - /** - * Properties of an Utf8Bytes. - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @interface IUtf8Bytes - */ + /** + * Constructs a new BackupInfo. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a BackupInfo. + * @implements IBackupInfo + * @constructor + * @param {google.bigtable.admin.v2.IBackupInfo=} [properties] Properties to set + */ + function BackupInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new Utf8Bytes. - * @memberof google.bigtable.admin.v2.Type.String.Encoding - * @classdesc Represents an Utf8Bytes. - * @implements IUtf8Bytes - * @constructor - * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes=} [properties] Properties to set - */ - function Utf8Bytes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * BackupInfo backup. + * @member {string} backup + * @memberof google.bigtable.admin.v2.BackupInfo + * @instance + */ + BackupInfo.prototype.backup = ""; - /** - * Creates a new Utf8Bytes instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes instance - */ - Utf8Bytes.create = function create(properties) { - return new Utf8Bytes(properties); - }; + /** + * BackupInfo startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.bigtable.admin.v2.BackupInfo + * @instance + */ + BackupInfo.prototype.startTime = null; - /** - * Encodes the specified Utf8Bytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes} message Utf8Bytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Utf8Bytes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * BackupInfo endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.bigtable.admin.v2.BackupInfo + * @instance + */ + BackupInfo.prototype.endTime = null; - /** - * Encodes the specified Utf8Bytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes} message Utf8Bytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Utf8Bytes.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * BackupInfo sourceTable. + * @member {string} sourceTable + * @memberof google.bigtable.admin.v2.BackupInfo + * @instance + */ + BackupInfo.prototype.sourceTable = ""; - /** - * Decodes an Utf8Bytes message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Utf8Bytes.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * BackupInfo sourceBackup. + * @member {string} sourceBackup + * @memberof google.bigtable.admin.v2.BackupInfo + * @instance + */ + BackupInfo.prototype.sourceBackup = ""; - /** - * Decodes an Utf8Bytes message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Utf8Bytes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new BackupInfo instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {google.bigtable.admin.v2.IBackupInfo=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.BackupInfo} BackupInfo instance + */ + BackupInfo.create = function create(properties) { + return new BackupInfo(properties); + }; - /** - * Verifies an Utf8Bytes message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Utf8Bytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Encodes the specified BackupInfo message. Does not implicitly {@link google.bigtable.admin.v2.BackupInfo.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {google.bigtable.admin.v2.IBackupInfo} message BackupInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.backup != null && Object.hasOwnProperty.call(message, "backup")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.backup); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sourceTable != null && Object.hasOwnProperty.call(message, "sourceTable")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sourceTable); + if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.sourceBackup); + return writer; + }; - /** - * Creates an Utf8Bytes message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes - */ - Utf8Bytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes) - return object; - return new $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes(); - }; + /** + * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.BackupInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {google.bigtable.admin.v2.IBackupInfo} message BackupInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackupInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from an Utf8Bytes message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} message Utf8Bytes - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Utf8Bytes.toObject = function toObject() { - return {}; - }; + /** + * Decodes a BackupInfo message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.BackupInfo} BackupInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackupInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.BackupInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.backup = reader.string(); + break; + } + case 2: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.sourceTable = reader.string(); + break; + } + case 10: { + message.sourceBackup = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this Utf8Bytes to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @instance - * @returns {Object.} JSON object - */ - Utf8Bytes.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a BackupInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.BackupInfo} BackupInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackupInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for Utf8Bytes - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Utf8Bytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes"; - }; + /** + * Verifies a BackupInfo message. + * @function verify + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackupInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.backup != null && message.hasOwnProperty("backup")) + if (!$util.isString(message.backup)) + return "backup: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) + if (!$util.isString(message.sourceTable)) + return "sourceTable: string expected"; + if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) + if (!$util.isString(message.sourceBackup)) + return "sourceBackup: string expected"; + return null; + }; - return Utf8Bytes; - })(); + /** + * Creates a BackupInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.BackupInfo} BackupInfo + */ + BackupInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.BackupInfo) + return object; + var message = new $root.google.bigtable.admin.v2.BackupInfo(); + if (object.backup != null) + message.backup = String(object.backup); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.bigtable.admin.v2.BackupInfo.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.bigtable.admin.v2.BackupInfo.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.sourceTable != null) + message.sourceTable = String(object.sourceTable); + if (object.sourceBackup != null) + message.sourceBackup = String(object.sourceBackup); + return message; + }; - return Encoding; - })(); + /** + * Creates a plain object from a BackupInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {google.bigtable.admin.v2.BackupInfo} message BackupInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackupInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.backup = ""; + object.startTime = null; + object.endTime = null; + object.sourceTable = ""; + object.sourceBackup = ""; + } + if (message.backup != null && message.hasOwnProperty("backup")) + object.backup = message.backup; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.sourceTable != null && message.hasOwnProperty("sourceTable")) + object.sourceTable = message.sourceTable; + if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup")) + object.sourceBackup = message.sourceBackup; + return object; + }; - return String; - })(); + /** + * Converts this BackupInfo to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.BackupInfo + * @instance + * @returns {Object.} JSON object + */ + BackupInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - Type.Int64 = (function() { + /** + * Gets the default type url for BackupInfo + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.BackupInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackupInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.BackupInfo"; + }; - /** - * Properties of an Int64. - * @memberof google.bigtable.admin.v2.Type - * @interface IInt64 - * @property {google.bigtable.admin.v2.Type.Int64.IEncoding|null} [encoding] Int64 encoding - */ + return BackupInfo; + })(); - /** - * Constructs a new Int64. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents an Int64. - * @implements IInt64 - * @constructor - * @param {google.bigtable.admin.v2.Type.IInt64=} [properties] Properties to set - */ - function Int64(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * RestoreSourceType enum. + * @name google.bigtable.admin.v2.RestoreSourceType + * @enum {number} + * @property {number} RESTORE_SOURCE_TYPE_UNSPECIFIED=0 RESTORE_SOURCE_TYPE_UNSPECIFIED value + * @property {number} BACKUP=1 BACKUP value + */ + v2.RestoreSourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESTORE_SOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "BACKUP"] = 1; + return values; + })(); - /** - * Int64 encoding. - * @member {google.bigtable.admin.v2.Type.Int64.IEncoding|null|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.Int64 - * @instance - */ - Int64.prototype.encoding = null; + v2.ProtoSchema = (function() { - /** - * Creates a new Int64 instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {google.bigtable.admin.v2.Type.IInt64=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Int64} Int64 instance - */ - Int64.create = function create(properties) { - return new Int64(properties); - }; + /** + * Properties of a ProtoSchema. + * @memberof google.bigtable.admin.v2 + * @interface IProtoSchema + * @property {Uint8Array|null} [protoDescriptors] ProtoSchema protoDescriptors + */ - /** - * Encodes the specified Int64 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {google.bigtable.admin.v2.Type.IInt64} message Int64 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Int64.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - $root.google.bigtable.admin.v2.Type.Int64.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new ProtoSchema. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a ProtoSchema. + * @implements IProtoSchema + * @constructor + * @param {google.bigtable.admin.v2.IProtoSchema=} [properties] Properties to set + */ + function ProtoSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Int64 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {google.bigtable.admin.v2.Type.IInt64} message Int64 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Int64.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ProtoSchema protoDescriptors. + * @member {Uint8Array} protoDescriptors + * @memberof google.bigtable.admin.v2.ProtoSchema + * @instance + */ + ProtoSchema.prototype.protoDescriptors = $util.newBuffer([]); - /** - * Decodes an Int64 message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Int64} Int64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Int64.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Int64(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.encoding = $root.google.bigtable.admin.v2.Type.Int64.Encoding.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Creates a new ProtoSchema instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {google.bigtable.admin.v2.IProtoSchema=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.ProtoSchema} ProtoSchema instance + */ + ProtoSchema.create = function create(properties) { + return new ProtoSchema(properties); + }; + + /** + * Encodes the specified ProtoSchema message. Does not implicitly {@link google.bigtable.admin.v2.ProtoSchema.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {google.bigtable.admin.v2.IProtoSchema} message ProtoSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.protoDescriptors != null && Object.hasOwnProperty.call(message, "protoDescriptors")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.protoDescriptors); + return writer; + }; + + /** + * Encodes the specified ProtoSchema message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.ProtoSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {google.bigtable.admin.v2.IProtoSchema} message ProtoSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProtoSchema message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.ProtoSchema} ProtoSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoSchema.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.ProtoSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 2: { + message.protoDescriptors = reader.bytes(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes an Int64 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Int64} Int64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Int64.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an Int64 message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Int64.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encoding != null && message.hasOwnProperty("encoding")) { - var error = $root.google.bigtable.admin.v2.Type.Int64.Encoding.verify(message.encoding); - if (error) - return "encoding." + error; - } - return null; - }; + /** + * Decodes a ProtoSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.ProtoSchema} ProtoSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an Int64 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Int64} Int64 - */ - Int64.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Int64) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Int64(); - if (object.encoding != null) { - if (typeof object.encoding !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Int64.encoding: object expected"); - message.encoding = $root.google.bigtable.admin.v2.Type.Int64.Encoding.fromObject(object.encoding); - } - return message; - }; + /** + * Verifies a ProtoSchema message. + * @function verify + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProtoSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.protoDescriptors != null && message.hasOwnProperty("protoDescriptors")) + if (!(message.protoDescriptors && typeof message.protoDescriptors.length === "number" || $util.isString(message.protoDescriptors))) + return "protoDescriptors: buffer expected"; + return null; + }; - /** - * Creates a plain object from an Int64 message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {google.bigtable.admin.v2.Type.Int64} message Int64 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Int64.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.encoding = null; - if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = $root.google.bigtable.admin.v2.Type.Int64.Encoding.toObject(message.encoding, options); + /** + * Creates a ProtoSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.ProtoSchema} ProtoSchema + */ + ProtoSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.ProtoSchema) return object; - }; - - /** - * Converts this Int64 to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Int64 - * @instance - * @returns {Object.} JSON object - */ - Int64.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.google.bigtable.admin.v2.ProtoSchema(); + if (object.protoDescriptors != null) + if (typeof object.protoDescriptors === "string") + $util.base64.decode(object.protoDescriptors, message.protoDescriptors = $util.newBuffer($util.base64.length(object.protoDescriptors)), 0); + else if (object.protoDescriptors.length >= 0) + message.protoDescriptors = object.protoDescriptors; + return message; + }; - /** - * Gets the default type url for Int64 - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Int64 - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Int64.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Creates a plain object from a ProtoSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {google.bigtable.admin.v2.ProtoSchema} message ProtoSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProtoSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.protoDescriptors = ""; + else { + object.protoDescriptors = []; + if (options.bytes !== Array) + object.protoDescriptors = $util.newBuffer(object.protoDescriptors); } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Int64"; - }; + if (message.protoDescriptors != null && message.hasOwnProperty("protoDescriptors")) + object.protoDescriptors = options.bytes === String ? $util.base64.encode(message.protoDescriptors, 0, message.protoDescriptors.length) : options.bytes === Array ? Array.prototype.slice.call(message.protoDescriptors) : message.protoDescriptors; + return object; + }; - Int64.Encoding = (function() { + /** + * Converts this ProtoSchema to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.ProtoSchema + * @instance + * @returns {Object.} JSON object + */ + ProtoSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of an Encoding. - * @memberof google.bigtable.admin.v2.Type.Int64 - * @interface IEncoding - * @property {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes|null} [bigEndianBytes] Encoding bigEndianBytes - * @property {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes|null} [orderedCodeBytes] Encoding orderedCodeBytes - */ + /** + * Gets the default type url for ProtoSchema + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.ProtoSchema + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProtoSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.ProtoSchema"; + }; - /** - * Constructs a new Encoding. - * @memberof google.bigtable.admin.v2.Type.Int64 - * @classdesc Represents an Encoding. - * @implements IEncoding - * @constructor - * @param {google.bigtable.admin.v2.Type.Int64.IEncoding=} [properties] Properties to set - */ - function Encoding(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return ProtoSchema; + })(); - /** - * Encoding bigEndianBytes. - * @member {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes|null|undefined} bigEndianBytes - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @instance - */ - Encoding.prototype.bigEndianBytes = null; + v2.SchemaBundle = (function() { - /** - * Encoding orderedCodeBytes. - * @member {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes|null|undefined} orderedCodeBytes - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @instance - */ - Encoding.prototype.orderedCodeBytes = null; + /** + * Properties of a SchemaBundle. + * @memberof google.bigtable.admin.v2 + * @interface ISchemaBundle + * @property {string|null} [name] SchemaBundle name + * @property {google.bigtable.admin.v2.IProtoSchema|null} [protoSchema] SchemaBundle protoSchema + * @property {string|null} [etag] SchemaBundle etag + */ - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new SchemaBundle. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a SchemaBundle. + * @implements ISchemaBundle + * @constructor + * @param {google.bigtable.admin.v2.ISchemaBundle=} [properties] Properties to set + */ + function SchemaBundle(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encoding encoding. - * @member {"bigEndianBytes"|"orderedCodeBytes"|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @instance - */ - Object.defineProperty(Encoding.prototype, "encoding", { - get: $util.oneOfGetter($oneOfFields = ["bigEndianBytes", "orderedCodeBytes"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * SchemaBundle name. + * @member {string} name + * @memberof google.bigtable.admin.v2.SchemaBundle + * @instance + */ + SchemaBundle.prototype.name = ""; - /** - * Creates a new Encoding instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Int64.IEncoding=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding} Encoding instance - */ - Encoding.create = function create(properties) { - return new Encoding(properties); - }; + /** + * SchemaBundle protoSchema. + * @member {google.bigtable.admin.v2.IProtoSchema|null|undefined} protoSchema + * @memberof google.bigtable.admin.v2.SchemaBundle + * @instance + */ + SchemaBundle.prototype.protoSchema = null; - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Int64.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bigEndianBytes != null && Object.hasOwnProperty.call(message, "bigEndianBytes")) - $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.encode(message.bigEndianBytes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.orderedCodeBytes != null && Object.hasOwnProperty.call(message, "orderedCodeBytes")) - $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.encode(message.orderedCodeBytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * SchemaBundle etag. + * @member {string} etag + * @memberof google.bigtable.admin.v2.SchemaBundle + * @instance + */ + SchemaBundle.prototype.etag = ""; - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Int64.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes an Encoding message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.bigEndianBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.decode(reader, reader.uint32()); - break; - } - case 2: { - message.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * SchemaBundle type. + * @member {"protoSchema"|undefined} type + * @memberof google.bigtable.admin.v2.SchemaBundle + * @instance + */ + Object.defineProperty(SchemaBundle.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["protoSchema"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new SchemaBundle instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {google.bigtable.admin.v2.ISchemaBundle=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.SchemaBundle} SchemaBundle instance + */ + SchemaBundle.create = function create(properties) { + return new SchemaBundle(properties); + }; - /** - * Verifies an Encoding message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Encoding.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.bigEndianBytes != null && message.hasOwnProperty("bigEndianBytes")) { - properties.encoding = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify(message.bigEndianBytes); - if (error) - return "bigEndianBytes." + error; - } - } - if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { - if (properties.encoding === 1) - return "encoding: multiple values"; - properties.encoding = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify(message.orderedCodeBytes); - if (error) - return "orderedCodeBytes." + error; - } - } - return null; - }; + /** + * Encodes the specified SchemaBundle message. Does not implicitly {@link google.bigtable.admin.v2.SchemaBundle.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {google.bigtable.admin.v2.ISchemaBundle} message SchemaBundle message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaBundle.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.protoSchema != null && Object.hasOwnProperty.call(message, "protoSchema")) + $root.google.bigtable.admin.v2.ProtoSchema.encode(message.protoSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + return writer; + }; - /** - * Creates an Encoding message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding} Encoding - */ - Encoding.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Int64.Encoding) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding(); - if (object.bigEndianBytes != null) { - if (typeof object.bigEndianBytes !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Int64.Encoding.bigEndianBytes: object expected"); - message.bigEndianBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.fromObject(object.bigEndianBytes); - } - if (object.orderedCodeBytes != null) { - if (typeof object.orderedCodeBytes !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Int64.Encoding.orderedCodeBytes: object expected"); - message.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.fromObject(object.orderedCodeBytes); - } - return message; - }; + /** + * Encodes the specified SchemaBundle message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.SchemaBundle.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {google.bigtable.admin.v2.ISchemaBundle} message SchemaBundle message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaBundle.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding} message Encoding - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Encoding.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.bigEndianBytes != null && message.hasOwnProperty("bigEndianBytes")) { - object.bigEndianBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.toObject(message.bigEndianBytes, options); - if (options.oneofs) - object.encoding = "bigEndianBytes"; + /** + * Decodes a SchemaBundle message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.SchemaBundle} SchemaBundle + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaBundle.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.SchemaBundle(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } - if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { - object.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.toObject(message.orderedCodeBytes, options); - if (options.oneofs) - object.encoding = "orderedCodeBytes"; + case 2: { + message.protoSchema = $root.google.bigtable.admin.v2.ProtoSchema.decode(reader, reader.uint32()); + break; } - return object; - }; + case 3: { + message.etag = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this Encoding to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @instance - * @returns {Object.} JSON object - */ - Encoding.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a SchemaBundle message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.SchemaBundle} SchemaBundle + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaBundle.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for Encoding - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Int64.Encoding"; - }; + /** + * Verifies a SchemaBundle message. + * @function verify + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaBundle.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.protoSchema != null && message.hasOwnProperty("protoSchema")) { + properties.type = 1; + { + var error = $root.google.bigtable.admin.v2.ProtoSchema.verify(message.protoSchema); + if (error) + return "protoSchema." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + return null; + }; - Encoding.BigEndianBytes = (function() { + /** + * Creates a SchemaBundle message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.SchemaBundle} SchemaBundle + */ + SchemaBundle.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.SchemaBundle) + return object; + var message = new $root.google.bigtable.admin.v2.SchemaBundle(); + if (object.name != null) + message.name = String(object.name); + if (object.protoSchema != null) { + if (typeof object.protoSchema !== "object") + throw TypeError(".google.bigtable.admin.v2.SchemaBundle.protoSchema: object expected"); + message.protoSchema = $root.google.bigtable.admin.v2.ProtoSchema.fromObject(object.protoSchema); + } + if (object.etag != null) + message.etag = String(object.etag); + return message; + }; - /** - * Properties of a BigEndianBytes. - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @interface IBigEndianBytes - * @property {google.bigtable.admin.v2.Type.IBytes|null} [bytesType] BigEndianBytes bytesType - */ + /** + * Creates a plain object from a SchemaBundle message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {google.bigtable.admin.v2.SchemaBundle} message SchemaBundle + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SchemaBundle.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.protoSchema != null && message.hasOwnProperty("protoSchema")) { + object.protoSchema = $root.google.bigtable.admin.v2.ProtoSchema.toObject(message.protoSchema, options); + if (options.oneofs) + object.type = "protoSchema"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; + }; - /** - * Constructs a new BigEndianBytes. - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @classdesc Represents a BigEndianBytes. - * @implements IBigEndianBytes - * @constructor - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes=} [properties] Properties to set - */ - function BigEndianBytes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this SchemaBundle to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.SchemaBundle + * @instance + * @returns {Object.} JSON object + */ + SchemaBundle.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * BigEndianBytes bytesType. - * @member {google.bigtable.admin.v2.Type.IBytes|null|undefined} bytesType - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @instance - */ - BigEndianBytes.prototype.bytesType = null; + /** + * Gets the default type url for SchemaBundle + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.SchemaBundle + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SchemaBundle.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.SchemaBundle"; + }; - /** - * Creates a new BigEndianBytes instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes instance - */ - BigEndianBytes.create = function create(properties) { - return new BigEndianBytes(properties); - }; + return SchemaBundle; + })(); - /** - * Encodes the specified BigEndianBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes} message BigEndianBytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BigEndianBytes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bytesType != null && Object.hasOwnProperty.call(message, "bytesType")) - $root.google.bigtable.admin.v2.Type.Bytes.encode(message.bytesType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + v2.Type = (function() { - /** - * Encodes the specified BigEndianBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes} message BigEndianBytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BigEndianBytes.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a Type. + * @memberof google.bigtable.admin.v2 + * @interface IType + * @property {google.bigtable.admin.v2.Type.IBytes|null} [bytesType] Type bytesType + * @property {google.bigtable.admin.v2.Type.IString|null} [stringType] Type stringType + * @property {google.bigtable.admin.v2.Type.IInt64|null} [int64Type] Type int64Type + * @property {google.bigtable.admin.v2.Type.IFloat32|null} [float32Type] Type float32Type + * @property {google.bigtable.admin.v2.Type.IFloat64|null} [float64Type] Type float64Type + * @property {google.bigtable.admin.v2.Type.IBool|null} [boolType] Type boolType + * @property {google.bigtable.admin.v2.Type.ITimestamp|null} [timestampType] Type timestampType + * @property {google.bigtable.admin.v2.Type.IDate|null} [dateType] Type dateType + * @property {google.bigtable.admin.v2.Type.IAggregate|null} [aggregateType] Type aggregateType + * @property {google.bigtable.admin.v2.Type.IStruct|null} [structType] Type structType + * @property {google.bigtable.admin.v2.Type.IArray|null} [arrayType] Type arrayType + * @property {google.bigtable.admin.v2.Type.IMap|null} [mapType] Type mapType + * @property {google.bigtable.admin.v2.Type.IProto|null} [protoType] Type protoType + * @property {google.bigtable.admin.v2.Type.IEnum|null} [enumType] Type enumType + */ - /** - * Decodes a BigEndianBytes message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BigEndianBytes.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new Type. + * @memberof google.bigtable.admin.v2 + * @classdesc Represents a Type. + * @implements IType + * @constructor + * @param {google.bigtable.admin.v2.IType=} [properties] Properties to set + */ + function Type(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a BigEndianBytes message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BigEndianBytes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Type bytesType. + * @member {google.bigtable.admin.v2.Type.IBytes|null|undefined} bytesType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.bytesType = null; - /** - * Verifies a BigEndianBytes message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BigEndianBytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bytesType != null && message.hasOwnProperty("bytesType")) { - var error = $root.google.bigtable.admin.v2.Type.Bytes.verify(message.bytesType); - if (error) - return "bytesType." + error; - } - return null; - }; + /** + * Type stringType. + * @member {google.bigtable.admin.v2.Type.IString|null|undefined} stringType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.stringType = null; - /** - * Creates a BigEndianBytes message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes - */ - BigEndianBytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes(); - if (object.bytesType != null) { - if (typeof object.bytesType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.bytesType: object expected"); - message.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.fromObject(object.bytesType); - } - return message; - }; + /** + * Type int64Type. + * @member {google.bigtable.admin.v2.Type.IInt64|null|undefined} int64Type + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.int64Type = null; - /** - * Creates a plain object from a BigEndianBytes message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} message BigEndianBytes - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BigEndianBytes.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.bytesType = null; - if (message.bytesType != null && message.hasOwnProperty("bytesType")) - object.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.toObject(message.bytesType, options); - return object; - }; + /** + * Type float32Type. + * @member {google.bigtable.admin.v2.Type.IFloat32|null|undefined} float32Type + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.float32Type = null; - /** - * Converts this BigEndianBytes to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @instance - * @returns {Object.} JSON object - */ - BigEndianBytes.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Type float64Type. + * @member {google.bigtable.admin.v2.Type.IFloat64|null|undefined} float64Type + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.float64Type = null; - /** - * Gets the default type url for BigEndianBytes - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BigEndianBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes"; - }; + /** + * Type boolType. + * @member {google.bigtable.admin.v2.Type.IBool|null|undefined} boolType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.boolType = null; - return BigEndianBytes; - })(); + /** + * Type timestampType. + * @member {google.bigtable.admin.v2.Type.ITimestamp|null|undefined} timestampType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.timestampType = null; - Encoding.OrderedCodeBytes = (function() { + /** + * Type dateType. + * @member {google.bigtable.admin.v2.Type.IDate|null|undefined} dateType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.dateType = null; - /** - * Properties of an OrderedCodeBytes. - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @interface IOrderedCodeBytes - */ + /** + * Type aggregateType. + * @member {google.bigtable.admin.v2.Type.IAggregate|null|undefined} aggregateType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.aggregateType = null; - /** - * Constructs a new OrderedCodeBytes. - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding - * @classdesc Represents an OrderedCodeBytes. - * @implements IOrderedCodeBytes - * @constructor - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes=} [properties] Properties to set - */ - function OrderedCodeBytes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Type structType. + * @member {google.bigtable.admin.v2.Type.IStruct|null|undefined} structType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.structType = null; - /** - * Creates a new OrderedCodeBytes instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes instance - */ - OrderedCodeBytes.create = function create(properties) { - return new OrderedCodeBytes(properties); - }; + /** + * Type arrayType. + * @member {google.bigtable.admin.v2.Type.IArray|null|undefined} arrayType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.arrayType = null; - /** - * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OrderedCodeBytes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Type mapType. + * @member {google.bigtable.admin.v2.Type.IMap|null|undefined} mapType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.mapType = null; - /** - * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OrderedCodeBytes.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Type protoType. + * @member {google.bigtable.admin.v2.Type.IProto|null|undefined} protoType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.protoType = null; - /** - * Decodes an OrderedCodeBytes message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OrderedCodeBytes.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OrderedCodeBytes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OrderedCodeBytes message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OrderedCodeBytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes - */ - OrderedCodeBytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) - return object; - return new $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes(); - }; - - /** - * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} message OrderedCodeBytes - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OrderedCodeBytes.toObject = function toObject() { - return {}; - }; - - /** - * Converts this OrderedCodeBytes to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @instance - * @returns {Object.} JSON object - */ - OrderedCodeBytes.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OrderedCodeBytes - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OrderedCodeBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes"; - }; - - return OrderedCodeBytes; - })(); - - return Encoding; - })(); - - return Int64; - })(); - - Type.Bool = (function() { + /** + * Type enumType. + * @member {google.bigtable.admin.v2.Type.IEnum|null|undefined} enumType + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Type.prototype.enumType = null; - /** - * Properties of a Bool. - * @memberof google.bigtable.admin.v2.Type - * @interface IBool - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Constructs a new Bool. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a Bool. - * @implements IBool - * @constructor - * @param {google.bigtable.admin.v2.Type.IBool=} [properties] Properties to set - */ - function Bool(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Type kind. + * @member {"bytesType"|"stringType"|"int64Type"|"float32Type"|"float64Type"|"boolType"|"timestampType"|"dateType"|"aggregateType"|"structType"|"arrayType"|"mapType"|"protoType"|"enumType"|undefined} kind + * @memberof google.bigtable.admin.v2.Type + * @instance + */ + Object.defineProperty(Type.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["bytesType", "stringType", "int64Type", "float32Type", "float64Type", "boolType", "timestampType", "dateType", "aggregateType", "structType", "arrayType", "mapType", "protoType", "enumType"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a new Bool instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {google.bigtable.admin.v2.Type.IBool=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Bool} Bool instance - */ - Bool.create = function create(properties) { - return new Bool(properties); - }; + /** + * Creates a new Type instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {google.bigtable.admin.v2.IType=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type} Type instance + */ + Type.create = function create(properties) { + return new Type(properties); + }; - /** - * Encodes the specified Bool message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bool.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {google.bigtable.admin.v2.Type.IBool} message Bool message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bool.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Encodes the specified Type message. Does not implicitly {@link google.bigtable.admin.v2.Type.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {google.bigtable.admin.v2.IType} message Type message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Type.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bytesType != null && Object.hasOwnProperty.call(message, "bytesType")) + $root.google.bigtable.admin.v2.Type.Bytes.encode(message.bytesType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.stringType != null && Object.hasOwnProperty.call(message, "stringType")) + $root.google.bigtable.admin.v2.Type.String.encode(message.stringType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.arrayType != null && Object.hasOwnProperty.call(message, "arrayType")) + $root.google.bigtable.admin.v2.Type.Array.encode(message.arrayType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mapType != null && Object.hasOwnProperty.call(message, "mapType")) + $root.google.bigtable.admin.v2.Type.Map.encode(message.mapType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.int64Type != null && Object.hasOwnProperty.call(message, "int64Type")) + $root.google.bigtable.admin.v2.Type.Int64.encode(message.int64Type, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.aggregateType != null && Object.hasOwnProperty.call(message, "aggregateType")) + $root.google.bigtable.admin.v2.Type.Aggregate.encode(message.aggregateType, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.structType != null && Object.hasOwnProperty.call(message, "structType")) + $root.google.bigtable.admin.v2.Type.Struct.encode(message.structType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.boolType != null && Object.hasOwnProperty.call(message, "boolType")) + $root.google.bigtable.admin.v2.Type.Bool.encode(message.boolType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.float64Type != null && Object.hasOwnProperty.call(message, "float64Type")) + $root.google.bigtable.admin.v2.Type.Float64.encode(message.float64Type, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.timestampType != null && Object.hasOwnProperty.call(message, "timestampType")) + $root.google.bigtable.admin.v2.Type.Timestamp.encode(message.timestampType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.dateType != null && Object.hasOwnProperty.call(message, "dateType")) + $root.google.bigtable.admin.v2.Type.Date.encode(message.dateType, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.float32Type != null && Object.hasOwnProperty.call(message, "float32Type")) + $root.google.bigtable.admin.v2.Type.Float32.encode(message.float32Type, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.protoType != null && Object.hasOwnProperty.call(message, "protoType")) + $root.google.bigtable.admin.v2.Type.Proto.encode(message.protoType, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType")) + $root.google.bigtable.admin.v2.Type.Enum.encode(message.enumType, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified Bool message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bool.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {google.bigtable.admin.v2.Type.IBool} message Bool message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bool.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Type message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {google.bigtable.admin.v2.IType} message Type message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Type.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Bool message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Bool} Bool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bool.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Bool(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) + /** + * Decodes a Type message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type} Type + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Type.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.decode(reader, reader.uint32()); break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); + } + case 2: { + message.stringType = $root.google.bigtable.admin.v2.Type.String.decode(reader, reader.uint32()); break; } - } - return message; - }; - - /** - * Decodes a Bool message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Bool} Bool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bool.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Bool message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Bool.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a Bool message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Bool} Bool - */ - Bool.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Bool) - return object; - return new $root.google.bigtable.admin.v2.Type.Bool(); - }; - - /** - * Creates a plain object from a Bool message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {google.bigtable.admin.v2.Type.Bool} message Bool - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Bool.toObject = function toObject() { - return {}; - }; - - /** - * Converts this Bool to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Bool - * @instance - * @returns {Object.} JSON object - */ - Bool.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Bool - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Bool - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Bool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Bool"; - }; - - return Bool; - })(); - - Type.Float32 = (function() { - - /** - * Properties of a Float32. - * @memberof google.bigtable.admin.v2.Type - * @interface IFloat32 - */ - - /** - * Constructs a new Float32. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a Float32. - * @implements IFloat32 - * @constructor - * @param {google.bigtable.admin.v2.Type.IFloat32=} [properties] Properties to set - */ - function Float32(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new Float32 instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {google.bigtable.admin.v2.Type.IFloat32=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Float32} Float32 instance - */ - Float32.create = function create(properties) { - return new Float32(properties); - }; - - /** - * Encodes the specified Float32 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Float32.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {google.bigtable.admin.v2.Type.IFloat32} message Float32 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Float32.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified Float32 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Float32.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {google.bigtable.admin.v2.Type.IFloat32} message Float32 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Float32.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Float32 message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Float32} Float32 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Float32.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Float32(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) + case 5: { + message.int64Type = $root.google.bigtable.admin.v2.Type.Int64.decode(reader, reader.uint32()); break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); + } + case 12: { + message.float32Type = $root.google.bigtable.admin.v2.Type.Float32.decode(reader, reader.uint32()); + break; + } + case 9: { + message.float64Type = $root.google.bigtable.admin.v2.Type.Float64.decode(reader, reader.uint32()); + break; + } + case 8: { + message.boolType = $root.google.bigtable.admin.v2.Type.Bool.decode(reader, reader.uint32()); + break; + } + case 10: { + message.timestampType = $root.google.bigtable.admin.v2.Type.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.dateType = $root.google.bigtable.admin.v2.Type.Date.decode(reader, reader.uint32()); + break; + } + case 6: { + message.aggregateType = $root.google.bigtable.admin.v2.Type.Aggregate.decode(reader, reader.uint32()); + break; + } + case 7: { + message.structType = $root.google.bigtable.admin.v2.Type.Struct.decode(reader, reader.uint32()); break; } + case 3: { + message.arrayType = $root.google.bigtable.admin.v2.Type.Array.decode(reader, reader.uint32()); + break; + } + case 4: { + message.mapType = $root.google.bigtable.admin.v2.Type.Map.decode(reader, reader.uint32()); + break; + } + case 13: { + message.protoType = $root.google.bigtable.admin.v2.Type.Proto.decode(reader, reader.uint32()); + break; + } + case 14: { + message.enumType = $root.google.bigtable.admin.v2.Type.Enum.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a Float32 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Float32} Float32 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Float32.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Float32 message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Float32.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Decodes a Type message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type} Type + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Type.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Float32 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Float32} Float32 - */ - Float32.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Float32) - return object; - return new $root.google.bigtable.admin.v2.Type.Float32(); - }; + /** + * Verifies a Type message. + * @function verify + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Type.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bytesType != null && message.hasOwnProperty("bytesType")) { + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Bytes.verify(message.bytesType); + if (error) + return "bytesType." + error; + } + } + if (message.stringType != null && message.hasOwnProperty("stringType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.String.verify(message.stringType); + if (error) + return "stringType." + error; + } + } + if (message.int64Type != null && message.hasOwnProperty("int64Type")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Int64.verify(message.int64Type); + if (error) + return "int64Type." + error; + } + } + if (message.float32Type != null && message.hasOwnProperty("float32Type")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Float32.verify(message.float32Type); + if (error) + return "float32Type." + error; + } + } + if (message.float64Type != null && message.hasOwnProperty("float64Type")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Float64.verify(message.float64Type); + if (error) + return "float64Type." + error; + } + } + if (message.boolType != null && message.hasOwnProperty("boolType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Bool.verify(message.boolType); + if (error) + return "boolType." + error; + } + } + if (message.timestampType != null && message.hasOwnProperty("timestampType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Timestamp.verify(message.timestampType); + if (error) + return "timestampType." + error; + } + } + if (message.dateType != null && message.hasOwnProperty("dateType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Date.verify(message.dateType); + if (error) + return "dateType." + error; + } + } + if (message.aggregateType != null && message.hasOwnProperty("aggregateType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Aggregate.verify(message.aggregateType); + if (error) + return "aggregateType." + error; + } + } + if (message.structType != null && message.hasOwnProperty("structType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Struct.verify(message.structType); + if (error) + return "structType." + error; + } + } + if (message.arrayType != null && message.hasOwnProperty("arrayType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Array.verify(message.arrayType); + if (error) + return "arrayType." + error; + } + } + if (message.mapType != null && message.hasOwnProperty("mapType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Map.verify(message.mapType); + if (error) + return "mapType." + error; + } + } + if (message.protoType != null && message.hasOwnProperty("protoType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Proto.verify(message.protoType); + if (error) + return "protoType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Enum.verify(message.enumType); + if (error) + return "enumType." + error; + } + } + return null; + }; - /** - * Creates a plain object from a Float32 message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {google.bigtable.admin.v2.Type.Float32} message Float32 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Float32.toObject = function toObject() { - return {}; - }; + /** + * Creates a Type message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type} Type + */ + Type.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type) + return object; + var message = new $root.google.bigtable.admin.v2.Type(); + if (object.bytesType != null) { + if (typeof object.bytesType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.bytesType: object expected"); + message.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.fromObject(object.bytesType); + } + if (object.stringType != null) { + if (typeof object.stringType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.stringType: object expected"); + message.stringType = $root.google.bigtable.admin.v2.Type.String.fromObject(object.stringType); + } + if (object.int64Type != null) { + if (typeof object.int64Type !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.int64Type: object expected"); + message.int64Type = $root.google.bigtable.admin.v2.Type.Int64.fromObject(object.int64Type); + } + if (object.float32Type != null) { + if (typeof object.float32Type !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.float32Type: object expected"); + message.float32Type = $root.google.bigtable.admin.v2.Type.Float32.fromObject(object.float32Type); + } + if (object.float64Type != null) { + if (typeof object.float64Type !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.float64Type: object expected"); + message.float64Type = $root.google.bigtable.admin.v2.Type.Float64.fromObject(object.float64Type); + } + if (object.boolType != null) { + if (typeof object.boolType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.boolType: object expected"); + message.boolType = $root.google.bigtable.admin.v2.Type.Bool.fromObject(object.boolType); + } + if (object.timestampType != null) { + if (typeof object.timestampType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.timestampType: object expected"); + message.timestampType = $root.google.bigtable.admin.v2.Type.Timestamp.fromObject(object.timestampType); + } + if (object.dateType != null) { + if (typeof object.dateType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.dateType: object expected"); + message.dateType = $root.google.bigtable.admin.v2.Type.Date.fromObject(object.dateType); + } + if (object.aggregateType != null) { + if (typeof object.aggregateType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.aggregateType: object expected"); + message.aggregateType = $root.google.bigtable.admin.v2.Type.Aggregate.fromObject(object.aggregateType); + } + if (object.structType != null) { + if (typeof object.structType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.structType: object expected"); + message.structType = $root.google.bigtable.admin.v2.Type.Struct.fromObject(object.structType); + } + if (object.arrayType != null) { + if (typeof object.arrayType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.arrayType: object expected"); + message.arrayType = $root.google.bigtable.admin.v2.Type.Array.fromObject(object.arrayType); + } + if (object.mapType != null) { + if (typeof object.mapType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.mapType: object expected"); + message.mapType = $root.google.bigtable.admin.v2.Type.Map.fromObject(object.mapType); + } + if (object.protoType != null) { + if (typeof object.protoType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.protoType: object expected"); + message.protoType = $root.google.bigtable.admin.v2.Type.Proto.fromObject(object.protoType); + } + if (object.enumType != null) { + if (typeof object.enumType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.enumType: object expected"); + message.enumType = $root.google.bigtable.admin.v2.Type.Enum.fromObject(object.enumType); + } + return message; + }; - /** - * Converts this Float32 to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Float32 - * @instance - * @returns {Object.} JSON object - */ - Float32.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Type message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {google.bigtable.admin.v2.Type} message Type + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Type.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.bytesType != null && message.hasOwnProperty("bytesType")) { + object.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.toObject(message.bytesType, options); + if (options.oneofs) + object.kind = "bytesType"; + } + if (message.stringType != null && message.hasOwnProperty("stringType")) { + object.stringType = $root.google.bigtable.admin.v2.Type.String.toObject(message.stringType, options); + if (options.oneofs) + object.kind = "stringType"; + } + if (message.arrayType != null && message.hasOwnProperty("arrayType")) { + object.arrayType = $root.google.bigtable.admin.v2.Type.Array.toObject(message.arrayType, options); + if (options.oneofs) + object.kind = "arrayType"; + } + if (message.mapType != null && message.hasOwnProperty("mapType")) { + object.mapType = $root.google.bigtable.admin.v2.Type.Map.toObject(message.mapType, options); + if (options.oneofs) + object.kind = "mapType"; + } + if (message.int64Type != null && message.hasOwnProperty("int64Type")) { + object.int64Type = $root.google.bigtable.admin.v2.Type.Int64.toObject(message.int64Type, options); + if (options.oneofs) + object.kind = "int64Type"; + } + if (message.aggregateType != null && message.hasOwnProperty("aggregateType")) { + object.aggregateType = $root.google.bigtable.admin.v2.Type.Aggregate.toObject(message.aggregateType, options); + if (options.oneofs) + object.kind = "aggregateType"; + } + if (message.structType != null && message.hasOwnProperty("structType")) { + object.structType = $root.google.bigtable.admin.v2.Type.Struct.toObject(message.structType, options); + if (options.oneofs) + object.kind = "structType"; + } + if (message.boolType != null && message.hasOwnProperty("boolType")) { + object.boolType = $root.google.bigtable.admin.v2.Type.Bool.toObject(message.boolType, options); + if (options.oneofs) + object.kind = "boolType"; + } + if (message.float64Type != null && message.hasOwnProperty("float64Type")) { + object.float64Type = $root.google.bigtable.admin.v2.Type.Float64.toObject(message.float64Type, options); + if (options.oneofs) + object.kind = "float64Type"; + } + if (message.timestampType != null && message.hasOwnProperty("timestampType")) { + object.timestampType = $root.google.bigtable.admin.v2.Type.Timestamp.toObject(message.timestampType, options); + if (options.oneofs) + object.kind = "timestampType"; + } + if (message.dateType != null && message.hasOwnProperty("dateType")) { + object.dateType = $root.google.bigtable.admin.v2.Type.Date.toObject(message.dateType, options); + if (options.oneofs) + object.kind = "dateType"; + } + if (message.float32Type != null && message.hasOwnProperty("float32Type")) { + object.float32Type = $root.google.bigtable.admin.v2.Type.Float32.toObject(message.float32Type, options); + if (options.oneofs) + object.kind = "float32Type"; + } + if (message.protoType != null && message.hasOwnProperty("protoType")) { + object.protoType = $root.google.bigtable.admin.v2.Type.Proto.toObject(message.protoType, options); + if (options.oneofs) + object.kind = "protoType"; + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + object.enumType = $root.google.bigtable.admin.v2.Type.Enum.toObject(message.enumType, options); + if (options.oneofs) + object.kind = "enumType"; + } + return object; + }; - /** - * Gets the default type url for Float32 - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Float32 - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Float32.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Float32"; - }; + /** + * Converts this Type to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type + * @instance + * @returns {Object.} JSON object + */ + Type.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Float32; - })(); + /** + * Gets the default type url for Type + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Type.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type"; + }; - Type.Float64 = (function() { + Type.Bytes = (function() { /** - * Properties of a Float64. + * Properties of a Bytes. * @memberof google.bigtable.admin.v2.Type - * @interface IFloat64 + * @interface IBytes + * @property {google.bigtable.admin.v2.Type.Bytes.IEncoding|null} [encoding] Bytes encoding */ /** - * Constructs a new Float64. + * Constructs a new Bytes. * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a Float64. - * @implements IFloat64 + * @classdesc Represents a Bytes. + * @implements IBytes * @constructor - * @param {google.bigtable.admin.v2.Type.IFloat64=} [properties] Properties to set + * @param {google.bigtable.admin.v2.Type.IBytes=} [properties] Properties to set */ - function Float64(properties) { + function Bytes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38262,65 +38390,79 @@ } /** - * Creates a new Float64 instance using the specified properties. + * Bytes encoding. + * @member {google.bigtable.admin.v2.Type.Bytes.IEncoding|null|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.Bytes + * @instance + */ + Bytes.prototype.encoding = null; + + /** + * Creates a new Bytes instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Float64 + * @memberof google.bigtable.admin.v2.Type.Bytes * @static - * @param {google.bigtable.admin.v2.Type.IFloat64=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Float64} Float64 instance + * @param {google.bigtable.admin.v2.Type.IBytes=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Bytes} Bytes instance */ - Float64.create = function create(properties) { - return new Float64(properties); + Bytes.create = function create(properties) { + return new Bytes(properties); }; /** - * Encodes the specified Float64 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Float64.verify|verify} messages. + * Encodes the specified Bytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Float64 + * @memberof google.bigtable.admin.v2.Type.Bytes * @static - * @param {google.bigtable.admin.v2.Type.IFloat64} message Float64 message or plain object to encode + * @param {google.bigtable.admin.v2.Type.IBytes} message Bytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Float64.encode = function encode(message, writer) { + Bytes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + $root.google.bigtable.admin.v2.Type.Bytes.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Float64 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Float64.verify|verify} messages. + * Encodes the specified Bytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Float64 + * @memberof google.bigtable.admin.v2.Type.Bytes * @static - * @param {google.bigtable.admin.v2.Type.IFloat64} message Float64 message or plain object to encode + * @param {google.bigtable.admin.v2.Type.IBytes} message Bytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Float64.encodeDelimited = function encodeDelimited(message, writer) { + Bytes.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Float64 message from the specified reader or buffer. + * Decodes a Bytes message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Float64 + * @memberof google.bigtable.admin.v2.Type.Bytes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Float64} Float64 + * @returns {google.bigtable.admin.v2.Type.Bytes} Bytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Float64.decode = function decode(reader, length, error) { + Bytes.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Float64(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Bytes(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 1: { + message.encoding = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -38330,314 +38472,122 @@ }; /** - * Decodes a Float64 message from the specified reader or buffer, length delimited. + * Decodes a Bytes message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Float64 + * @memberof google.bigtable.admin.v2.Type.Bytes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Float64} Float64 + * @returns {google.bigtable.admin.v2.Type.Bytes} Bytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Float64.decodeDelimited = function decodeDelimited(reader) { + Bytes.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Float64 message. + * Verifies a Bytes message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Float64 + * @memberof google.bigtable.admin.v2.Type.Bytes * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Float64.verify = function verify(message) { + Bytes.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.encoding != null && message.hasOwnProperty("encoding")) { + var error = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.verify(message.encoding); + if (error) + return "encoding." + error; + } return null; }; /** - * Creates a Float64 message from a plain object. Also converts values to their respective internal types. + * Creates a Bytes message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Float64 + * @memberof google.bigtable.admin.v2.Type.Bytes * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Float64} Float64 + * @returns {google.bigtable.admin.v2.Type.Bytes} Bytes */ - Float64.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Float64) + Bytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Bytes) return object; - return new $root.google.bigtable.admin.v2.Type.Float64(); - }; - - /** - * Creates a plain object from a Float64 message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Float64 - * @static - * @param {google.bigtable.admin.v2.Type.Float64} message Float64 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Float64.toObject = function toObject() { - return {}; - }; - - /** - * Converts this Float64 to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Float64 - * @instance - * @returns {Object.} JSON object - */ - Float64.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Float64 - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Float64 - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Float64.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Float64"; - }; - - return Float64; - })(); - - Type.Timestamp = (function() { - - /** - * Properties of a Timestamp. - * @memberof google.bigtable.admin.v2.Type - * @interface ITimestamp - * @property {google.bigtable.admin.v2.Type.Timestamp.IEncoding|null} [encoding] Timestamp encoding - */ - - /** - * Constructs a new Timestamp. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a Timestamp. - * @implements ITimestamp - * @constructor - * @param {google.bigtable.admin.v2.Type.ITimestamp=} [properties] Properties to set - */ - function Timestamp(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Timestamp encoding. - * @member {google.bigtable.admin.v2.Type.Timestamp.IEncoding|null|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.Timestamp - * @instance - */ - Timestamp.prototype.encoding = null; - - /** - * Creates a new Timestamp instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Timestamp - * @static - * @param {google.bigtable.admin.v2.Type.ITimestamp=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Timestamp} Timestamp instance - */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); - }; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Timestamp - * @static - * @param {google.bigtable.admin.v2.Type.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Timestamp - * @static - * @param {google.bigtable.admin.v2.Type.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Timestamp(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.encoding = $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Timestamp message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Timestamp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Timestamp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encoding != null && message.hasOwnProperty("encoding")) { - var error = $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.verify(message.encoding); - if (error) - return "encoding." + error; - } - return null; - }; - - /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Timestamp - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Timestamp} Timestamp - */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Timestamp) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Timestamp(); + var message = new $root.google.bigtable.admin.v2.Type.Bytes(); if (object.encoding != null) { if (typeof object.encoding !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Timestamp.encoding: object expected"); - message.encoding = $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.fromObject(object.encoding); + throw TypeError(".google.bigtable.admin.v2.Type.Bytes.encoding: object expected"); + message.encoding = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.fromObject(object.encoding); } return message; }; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * Creates a plain object from a Bytes message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Timestamp + * @memberof google.bigtable.admin.v2.Type.Bytes * @static - * @param {google.bigtable.admin.v2.Type.Timestamp} message Timestamp + * @param {google.bigtable.admin.v2.Type.Bytes} message Bytes * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Timestamp.toObject = function toObject(message, options) { + Bytes.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) object.encoding = null; if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.toObject(message.encoding, options); + object.encoding = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.toObject(message.encoding, options); return object; }; /** - * Converts this Timestamp to JSON. + * Converts this Bytes to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Timestamp + * @memberof google.bigtable.admin.v2.Type.Bytes * @instance * @returns {Object.} JSON object */ - Timestamp.prototype.toJSON = function toJSON() { + Bytes.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Timestamp + * Gets the default type url for Bytes * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Timestamp + * @memberof google.bigtable.admin.v2.Type.Bytes * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Bytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Timestamp"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Bytes"; }; - Timestamp.Encoding = (function() { + Bytes.Encoding = (function() { /** * Properties of an Encoding. - * @memberof google.bigtable.admin.v2.Type.Timestamp + * @memberof google.bigtable.admin.v2.Type.Bytes * @interface IEncoding - * @property {google.bigtable.admin.v2.Type.Int64.IEncoding|null} [unixMicrosInt64] Encoding unixMicrosInt64 + * @property {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw|null} [raw] Encoding raw */ /** * Constructs a new Encoding. - * @memberof google.bigtable.admin.v2.Type.Timestamp + * @memberof google.bigtable.admin.v2.Type.Bytes * @classdesc Represents an Encoding. * @implements IEncoding * @constructor - * @param {google.bigtable.admin.v2.Type.Timestamp.IEncoding=} [properties] Properties to set + * @param {google.bigtable.admin.v2.Type.Bytes.IEncoding=} [properties] Properties to set */ function Encoding(properties) { if (properties) @@ -38647,62 +38597,62 @@ } /** - * Encoding unixMicrosInt64. - * @member {google.bigtable.admin.v2.Type.Int64.IEncoding|null|undefined} unixMicrosInt64 - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * Encoding raw. + * @member {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw|null|undefined} raw + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @instance */ - Encoding.prototype.unixMicrosInt64 = null; + Encoding.prototype.raw = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * Encoding encoding. - * @member {"unixMicrosInt64"|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @member {"raw"|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @instance */ Object.defineProperty(Encoding.prototype, "encoding", { - get: $util.oneOfGetter($oneOfFields = ["unixMicrosInt64"]), + get: $util.oneOfGetter($oneOfFields = ["raw"]), set: $util.oneOfSetter($oneOfFields) }); /** * Creates a new Encoding instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Timestamp.IEncoding=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Timestamp.Encoding} Encoding instance + * @param {google.bigtable.admin.v2.Type.Bytes.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding} Encoding instance */ Encoding.create = function create(properties) { return new Encoding(properties); }; /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.Encoding.verify|verify} messages. + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Timestamp.IEncoding} message Encoding message or plain object to encode + * @param {google.bigtable.admin.v2.Type.Bytes.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Encoding.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.unixMicrosInt64 != null && Object.hasOwnProperty.call(message, "unixMicrosInt64")) - $root.google.bigtable.admin.v2.Type.Int64.Encoding.encode(message.unixMicrosInt64, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.raw != null && Object.hasOwnProperty.call(message, "raw")) + $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.encode(message.raw, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.Encoding.verify|verify} messages. + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Timestamp.IEncoding} message Encoding message or plain object to encode + * @param {google.bigtable.admin.v2.Type.Bytes.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -38713,25 +38663,25 @@ /** * Decodes an Encoding message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Timestamp.Encoding} Encoding + * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Encoding.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Timestamp.Encoding(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Bytes.Encoding(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.unixMicrosInt64 = $root.google.bigtable.admin.v2.Type.Int64.Encoding.decode(reader, reader.uint32()); + message.raw = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.decode(reader, reader.uint32()); break; } default: @@ -38745,10 +38695,10 @@ /** * Decodes an Encoding message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Timestamp.Encoding} Encoding + * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -38761,7 +38711,7 @@ /** * Verifies an Encoding message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -38770,12 +38720,12 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.unixMicrosInt64 != null && message.hasOwnProperty("unixMicrosInt64")) { + if (message.raw != null && message.hasOwnProperty("raw")) { properties.encoding = 1; { - var error = $root.google.bigtable.admin.v2.Type.Int64.Encoding.verify(message.unixMicrosInt64); + var error = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify(message.raw); if (error) - return "unixMicrosInt64." + error; + return "raw." + error; } } return null; @@ -38784,19 +38734,19 @@ /** * Creates an Encoding message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Timestamp.Encoding} Encoding + * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding} Encoding */ Encoding.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Timestamp.Encoding) + if (object instanceof $root.google.bigtable.admin.v2.Type.Bytes.Encoding) return object; - var message = new $root.google.bigtable.admin.v2.Type.Timestamp.Encoding(); - if (object.unixMicrosInt64 != null) { - if (typeof object.unixMicrosInt64 !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Timestamp.Encoding.unixMicrosInt64: object expected"); - message.unixMicrosInt64 = $root.google.bigtable.admin.v2.Type.Int64.Encoding.fromObject(object.unixMicrosInt64); + var message = new $root.google.bigtable.admin.v2.Type.Bytes.Encoding(); + if (object.raw != null) { + if (typeof object.raw !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Bytes.Encoding.raw: object expected"); + message.raw = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.fromObject(object.raw); } return message; }; @@ -38804,9 +38754,9 @@ /** * Creates a plain object from an Encoding message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Timestamp.Encoding} message Encoding + * @param {google.bigtable.admin.v2.Type.Bytes.Encoding} message Encoding * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -38814,10 +38764,10 @@ if (!options) options = {}; var object = {}; - if (message.unixMicrosInt64 != null && message.hasOwnProperty("unixMicrosInt64")) { - object.unixMicrosInt64 = $root.google.bigtable.admin.v2.Type.Int64.Encoding.toObject(message.unixMicrosInt64, options); + if (message.raw != null && message.hasOwnProperty("raw")) { + object.raw = $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.toObject(message.raw, options); if (options.oneofs) - object.encoding = "unixMicrosInt64"; + object.encoding = "raw"; } return object; }; @@ -38825,7 +38775,7 @@ /** * Converts this Encoding to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @instance * @returns {Object.} JSON object */ @@ -38836,7 +38786,7 @@ /** * Gets the default type url for Encoding * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -38845,212 +38795,210 @@ if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Timestamp.Encoding"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Bytes.Encoding"; }; + Encoding.Raw = (function() { + + /** + * Properties of a Raw. + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding + * @interface IRaw + */ + + /** + * Constructs a new Raw. + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding + * @classdesc Represents a Raw. + * @implements IRaw + * @constructor + * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw=} [properties] Properties to set + */ + function Raw(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new Raw instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} Raw instance + */ + Raw.create = function create(properties) { + return new Raw(properties); + }; + + /** + * Encodes the specified Raw message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw} message Raw message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Raw.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified Raw message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.IRaw} message Raw message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Raw.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Raw message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Raw.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Raw message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Raw.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Raw message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Raw.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a Raw message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} Raw + */ + Raw.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw) + return object; + return new $root.google.bigtable.admin.v2.Type.Bytes.Encoding.Raw(); + }; + + /** + * Creates a plain object from a Raw message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {google.bigtable.admin.v2.Type.Bytes.Encoding.Raw} message Raw + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Raw.toObject = function toObject() { + return {}; + }; + + /** + * Converts this Raw to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @instance + * @returns {Object.} JSON object + */ + Raw.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Raw + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Raw.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Bytes.Encoding.Raw"; + }; + + return Raw; + })(); + return Encoding; })(); - return Timestamp; + return Bytes; })(); - Type.Date = (function() { + Type.String = (function() { /** - * Properties of a Date. + * Properties of a String. * @memberof google.bigtable.admin.v2.Type - * @interface IDate + * @interface IString + * @property {google.bigtable.admin.v2.Type.String.IEncoding|null} [encoding] String encoding */ /** - * Constructs a new Date. + * Constructs a new String. * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a Date. - * @implements IDate + * @classdesc Represents a String. + * @implements IString * @constructor - * @param {google.bigtable.admin.v2.Type.IDate=} [properties] Properties to set - */ - function Date(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new Date instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {google.bigtable.admin.v2.Type.IDate=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Date} Date instance - */ - Date.create = function create(properties) { - return new Date(properties); - }; - - /** - * Encodes the specified Date message. Does not implicitly {@link google.bigtable.admin.v2.Type.Date.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {google.bigtable.admin.v2.Type.IDate} message Date message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Date.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified Date message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Date.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {google.bigtable.admin.v2.Type.IDate} message Date message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Date.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Date message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Date} Date - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Date.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Date(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Date message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Date} Date - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Date.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Date message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Date.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a Date message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Date} Date - */ - Date.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Date) - return object; - return new $root.google.bigtable.admin.v2.Type.Date(); - }; - - /** - * Creates a plain object from a Date message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {google.bigtable.admin.v2.Type.Date} message Date - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Date.toObject = function toObject() { - return {}; - }; - - /** - * Converts this Date to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Date - * @instance - * @returns {Object.} JSON object - */ - Date.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Date - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Date - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Date.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Date"; - }; - - return Date; - })(); - - Type.Struct = (function() { - - /** - * Properties of a Struct. - * @memberof google.bigtable.admin.v2.Type - * @interface IStruct - * @property {Array.|null} [fields] Struct fields - * @property {google.bigtable.admin.v2.Type.Struct.IEncoding|null} [encoding] Struct encoding - */ - - /** - * Constructs a new Struct. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a Struct. - * @implements IStruct - * @constructor - * @param {google.bigtable.admin.v2.Type.IStruct=} [properties] Properties to set + * @param {google.bigtable.admin.v2.Type.IString=} [properties] Properties to set */ - function Struct(properties) { - this.fields = []; + function String(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39058,94 +39006,77 @@ } /** - * Struct fields. - * @member {Array.} fields - * @memberof google.bigtable.admin.v2.Type.Struct - * @instance - */ - Struct.prototype.fields = $util.emptyArray; - - /** - * Struct encoding. - * @member {google.bigtable.admin.v2.Type.Struct.IEncoding|null|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.Struct + * String encoding. + * @member {google.bigtable.admin.v2.Type.String.IEncoding|null|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.String * @instance */ - Struct.prototype.encoding = null; + String.prototype.encoding = null; /** - * Creates a new Struct instance using the specified properties. + * Creates a new String instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static - * @param {google.bigtable.admin.v2.Type.IStruct=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Struct} Struct instance + * @param {google.bigtable.admin.v2.Type.IString=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.String} String instance */ - Struct.create = function create(properties) { - return new Struct(properties); + String.create = function create(properties) { + return new String(properties); }; /** - * Encodes the specified Struct message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.verify|verify} messages. + * Encodes the specified String message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static - * @param {google.bigtable.admin.v2.Type.IStruct} message Struct message or plain object to encode + * @param {google.bigtable.admin.v2.Type.IString} message String message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Struct.encode = function encode(message, writer) { + String.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fields != null && message.fields.length) - for (var i = 0; i < message.fields.length; ++i) - $root.google.bigtable.admin.v2.Type.Struct.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - $root.google.bigtable.admin.v2.Type.Struct.Encoding.encode(message.encoding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.bigtable.admin.v2.Type.String.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.verify|verify} messages. + * Encodes the specified String message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static - * @param {google.bigtable.admin.v2.Type.IStruct} message Struct message or plain object to encode + * @param {google.bigtable.admin.v2.Type.IString} message String message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Struct.encodeDelimited = function encodeDelimited(message, writer) { + String.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Struct message from the specified reader or buffer. + * Decodes a String message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Struct} Struct + * @returns {google.bigtable.admin.v2.Type.String} String * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Struct.decode = function decode(reader, length, error) { + String.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.String(); 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.bigtable.admin.v2.Type.Struct.Field.decode(reader, reader.uint32())); - break; - } - case 2: { - message.encoding = $root.google.bigtable.admin.v2.Type.Struct.Encoding.decode(reader, reader.uint32()); + message.encoding = $root.google.bigtable.admin.v2.Type.String.Encoding.decode(reader, reader.uint32()); break; } default: @@ -39157,43 +39088,34 @@ }; /** - * Decodes a Struct message from the specified reader or buffer, length delimited. + * Decodes a String message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Struct} Struct + * @returns {google.bigtable.admin.v2.Type.String} String * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Struct.decodeDelimited = function decodeDelimited(reader) { + String.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Struct message. + * Verifies a String message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Struct.verify = function verify(message) { + String.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (var i = 0; i < message.fields.length; ++i) { - var error = $root.google.bigtable.admin.v2.Type.Struct.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } - } if (message.encoding != null && message.hasOwnProperty("encoding")) { - var error = $root.google.bigtable.admin.v2.Type.Struct.Encoding.verify(message.encoding); + var error = $root.google.bigtable.admin.v2.Type.String.Encoding.verify(message.encoding); if (error) return "encoding." + error; } @@ -39201,107 +39123,90 @@ }; /** - * Creates a Struct message from a plain object. Also converts values to their respective internal types. + * Creates a String message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Struct} Struct + * @returns {google.bigtable.admin.v2.Type.String} String */ - Struct.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Struct) + String.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.String) return object; - var message = new $root.google.bigtable.admin.v2.Type.Struct(); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".google.bigtable.admin.v2.Type.Struct.fields: array expected"); - message.fields = []; - for (var i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Struct.fields: object expected"); - message.fields[i] = $root.google.bigtable.admin.v2.Type.Struct.Field.fromObject(object.fields[i]); - } - } + var message = new $root.google.bigtable.admin.v2.Type.String(); if (object.encoding != null) { if (typeof object.encoding !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Struct.encoding: object expected"); - message.encoding = $root.google.bigtable.admin.v2.Type.Struct.Encoding.fromObject(object.encoding); + throw TypeError(".google.bigtable.admin.v2.Type.String.encoding: object expected"); + message.encoding = $root.google.bigtable.admin.v2.Type.String.Encoding.fromObject(object.encoding); } return message; }; /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. + * Creates a plain object from a String message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static - * @param {google.bigtable.admin.v2.Type.Struct} message Struct + * @param {google.bigtable.admin.v2.Type.String} message String * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Struct.toObject = function toObject(message, options) { + String.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.fields = []; if (options.defaults) object.encoding = null; - if (message.fields && message.fields.length) { - object.fields = []; - for (var j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.google.bigtable.admin.v2.Type.Struct.Field.toObject(message.fields[j], options); - } if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = $root.google.bigtable.admin.v2.Type.Struct.Encoding.toObject(message.encoding, options); + object.encoding = $root.google.bigtable.admin.v2.Type.String.Encoding.toObject(message.encoding, options); return object; }; /** - * Converts this Struct to JSON. + * Converts this String to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @instance * @returns {Object.} JSON object */ - Struct.prototype.toJSON = function toJSON() { + String.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Struct + * Gets the default type url for String * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Struct + * @memberof google.bigtable.admin.v2.Type.String * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + String.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.String"; }; - Struct.Field = (function() { + String.Encoding = (function() { /** - * Properties of a Field. - * @memberof google.bigtable.admin.v2.Type.Struct - * @interface IField - * @property {string|null} [fieldName] Field fieldName - * @property {google.bigtable.admin.v2.IType|null} [type] Field type + * Properties of an Encoding. + * @memberof google.bigtable.admin.v2.Type.String + * @interface IEncoding + * @property {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw|null} [utf8Raw] Encoding utf8Raw + * @property {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes|null} [utf8Bytes] Encoding utf8Bytes */ /** - * Constructs a new Field. - * @memberof google.bigtable.admin.v2.Type.Struct - * @classdesc Represents a Field. - * @implements IField + * Constructs a new Encoding. + * @memberof google.bigtable.admin.v2.Type.String + * @classdesc Represents an Encoding. + * @implements IEncoding * @constructor - * @param {google.bigtable.admin.v2.Type.Struct.IField=} [properties] Properties to set + * @param {google.bigtable.admin.v2.Type.String.IEncoding=} [properties] Properties to set */ - function Field(properties) { + function Encoding(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39309,91 +39214,105 @@ } /** - * Field fieldName. - * @member {string} fieldName - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * Encoding utf8Raw. + * @member {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw|null|undefined} utf8Raw + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @instance */ - Field.prototype.fieldName = ""; + Encoding.prototype.utf8Raw = null; /** - * Field type. - * @member {google.bigtable.admin.v2.IType|null|undefined} type - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * Encoding utf8Bytes. + * @member {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes|null|undefined} utf8Bytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @instance */ - Field.prototype.type = null; + Encoding.prototype.utf8Bytes = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new Field instance using the specified properties. + * Encoding encoding. + * @member {"utf8Raw"|"utf8Bytes"|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.String.Encoding + * @instance + */ + Object.defineProperty(Encoding.prototype, "encoding", { + get: $util.oneOfGetter($oneOfFields = ["utf8Raw", "utf8Bytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Encoding instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Struct.IField=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Struct.Field} Field instance + * @param {google.bigtable.admin.v2.Type.String.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.String.Encoding} Encoding instance */ - Field.create = function create(properties) { - return new Field(properties); + Encoding.create = function create(properties) { + return new Encoding(properties); }; /** - * Encodes the specified Field message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Field.verify|verify} messages. + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Struct.IField} message Field message or plain object to encode + * @param {google.bigtable.admin.v2.Type.String.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Field.encode = function encode(message, writer) { + Encoding.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - $root.google.bigtable.admin.v2.Type.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.utf8Raw != null && Object.hasOwnProperty.call(message, "utf8Raw")) + $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.encode(message.utf8Raw, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.utf8Bytes != null && Object.hasOwnProperty.call(message, "utf8Bytes")) + $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.encode(message.utf8Bytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Field.verify|verify} messages. + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Struct.IField} message Field message or plain object to encode + * @param {google.bigtable.admin.v2.Type.String.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Field.encodeDelimited = function encodeDelimited(message, writer) { + Encoding.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Field message from the specified reader or buffer. + * Decodes an Encoding message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Struct.Field} Field + * @returns {google.bigtable.admin.v2.Type.String.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Field.decode = function decode(reader, length, error) { + Encoding.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Field(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.String.Encoding(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.fieldName = reader.string(); + message.utf8Raw = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.decode(reader, reader.uint32()); break; } case 2: { - message.type = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + message.utf8Bytes = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.decode(reader, reader.uint32()); break; } default: @@ -39405,384 +39324,101 @@ }; /** - * Decodes a Field message from the specified reader or buffer, length delimited. + * Decodes an Encoding message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Struct.Field} Field + * @returns {google.bigtable.admin.v2.Type.String.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Field.decodeDelimited = function decodeDelimited(reader) { + Encoding.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Field message. + * Verifies an Encoding message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Field.verify = function verify(message) { + Encoding.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - if (!$util.isString(message.fieldName)) - return "fieldName: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.google.bigtable.admin.v2.Type.verify(message.type); - if (error) - return "type." + error; + var properties = {}; + if (message.utf8Raw != null && message.hasOwnProperty("utf8Raw")) { + properties.encoding = 1; + { + var error = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify(message.utf8Raw); + if (error) + return "utf8Raw." + error; + } + } + if (message.utf8Bytes != null && message.hasOwnProperty("utf8Bytes")) { + if (properties.encoding === 1) + return "encoding: multiple values"; + properties.encoding = 1; + { + var error = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify(message.utf8Bytes); + if (error) + return "utf8Bytes." + error; + } } return null; }; /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Struct.Field} Field + * @returns {google.bigtable.admin.v2.Type.String.Encoding} Encoding */ - Field.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Field) + Encoding.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.String.Encoding) return object; - var message = new $root.google.bigtable.admin.v2.Type.Struct.Field(); - if (object.fieldName != null) - message.fieldName = String(object.fieldName); - if (object.type != null) { - if (typeof object.type !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Struct.Field.type: object expected"); - message.type = $root.google.bigtable.admin.v2.Type.fromObject(object.type); + var message = new $root.google.bigtable.admin.v2.Type.String.Encoding(); + if (object.utf8Raw != null) { + if (typeof object.utf8Raw !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.String.Encoding.utf8Raw: object expected"); + message.utf8Raw = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.fromObject(object.utf8Raw); + } + if (object.utf8Bytes != null) { + if (typeof object.utf8Bytes !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.String.Encoding.utf8Bytes: object expected"); + message.utf8Bytes = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.fromObject(object.utf8Bytes); } return message; }; /** - * Creates a plain object from a Field message. Also converts values to other types if specified. + * Creates a plain object from an Encoding message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Struct.Field} message Field + * @param {google.bigtable.admin.v2.Type.String.Encoding} message Encoding * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Field.toObject = function toObject(message, options) { + Encoding.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.fieldName = ""; - object.type = null; - } - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - object.fieldName = message.fieldName; - if (message.type != null && message.hasOwnProperty("type")) - object.type = $root.google.bigtable.admin.v2.Type.toObject(message.type, options); - return object; - }; - - /** - * Converts this Field to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Struct.Field - * @instance - * @returns {Object.} JSON object - */ - Field.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Field - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Struct.Field - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Field.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Field"; - }; - - return Field; - })(); - - Struct.Encoding = (function() { - - /** - * Properties of an Encoding. - * @memberof google.bigtable.admin.v2.Type.Struct - * @interface IEncoding - * @property {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton|null} [singleton] Encoding singleton - * @property {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes|null} [delimitedBytes] Encoding delimitedBytes - * @property {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes|null} [orderedCodeBytes] Encoding orderedCodeBytes - */ - - /** - * Constructs a new Encoding. - * @memberof google.bigtable.admin.v2.Type.Struct - * @classdesc Represents an Encoding. - * @implements IEncoding - * @constructor - * @param {google.bigtable.admin.v2.Type.Struct.IEncoding=} [properties] Properties to set - */ - function Encoding(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Encoding singleton. - * @member {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton|null|undefined} singleton - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @instance - */ - Encoding.prototype.singleton = null; - - /** - * Encoding delimitedBytes. - * @member {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes|null|undefined} delimitedBytes - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @instance - */ - Encoding.prototype.delimitedBytes = null; - - /** - * Encoding orderedCodeBytes. - * @member {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes|null|undefined} orderedCodeBytes - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @instance - */ - Encoding.prototype.orderedCodeBytes = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Encoding encoding. - * @member {"singleton"|"delimitedBytes"|"orderedCodeBytes"|undefined} encoding - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @instance - */ - Object.defineProperty(Encoding.prototype, "encoding", { - get: $util.oneOfGetter($oneOfFields = ["singleton", "delimitedBytes", "orderedCodeBytes"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Encoding instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Struct.IEncoding=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding} Encoding instance - */ - Encoding.create = function create(properties) { - return new Encoding(properties); - }; - - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Struct.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.singleton != null && Object.hasOwnProperty.call(message, "singleton")) - $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.encode(message.singleton, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.delimitedBytes != null && Object.hasOwnProperty.call(message, "delimitedBytes")) - $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.encode(message.delimitedBytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.orderedCodeBytes != null && Object.hasOwnProperty.call(message, "orderedCodeBytes")) - $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.encode(message.orderedCodeBytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Struct.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Encoding message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.singleton = $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.decode(reader, reader.uint32()); - break; - } - case 2: { - message.delimitedBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.decode(reader, reader.uint32()); - break; - } - case 3: { - message.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Encoding message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Encoding.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.singleton != null && message.hasOwnProperty("singleton")) { - properties.encoding = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify(message.singleton); - if (error) - return "singleton." + error; - } - } - if (message.delimitedBytes != null && message.hasOwnProperty("delimitedBytes")) { - if (properties.encoding === 1) - return "encoding: multiple values"; - properties.encoding = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify(message.delimitedBytes); - if (error) - return "delimitedBytes." + error; - } - } - if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { - if (properties.encoding === 1) - return "encoding: multiple values"; - properties.encoding = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify(message.orderedCodeBytes); - if (error) - return "orderedCodeBytes." + error; - } - } - return null; - }; - - /** - * Creates an Encoding message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding} Encoding - */ - Encoding.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Encoding) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding(); - if (object.singleton != null) { - if (typeof object.singleton !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Struct.Encoding.singleton: object expected"); - message.singleton = $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.fromObject(object.singleton); - } - if (object.delimitedBytes != null) { - if (typeof object.delimitedBytes !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Struct.Encoding.delimitedBytes: object expected"); - message.delimitedBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.fromObject(object.delimitedBytes); - } - if (object.orderedCodeBytes != null) { - if (typeof object.orderedCodeBytes !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Struct.Encoding.orderedCodeBytes: object expected"); - message.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.fromObject(object.orderedCodeBytes); - } - return message; - }; - - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding} message Encoding - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Encoding.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.singleton != null && message.hasOwnProperty("singleton")) { - object.singleton = $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.toObject(message.singleton, options); - if (options.oneofs) - object.encoding = "singleton"; - } - if (message.delimitedBytes != null && message.hasOwnProperty("delimitedBytes")) { - object.delimitedBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.toObject(message.delimitedBytes, options); + if (message.utf8Raw != null && message.hasOwnProperty("utf8Raw")) { + object.utf8Raw = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.toObject(message.utf8Raw, options); if (options.oneofs) - object.encoding = "delimitedBytes"; + object.encoding = "utf8Raw"; } - if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { - object.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.toObject(message.orderedCodeBytes, options); + if (message.utf8Bytes != null && message.hasOwnProperty("utf8Bytes")) { + object.utf8Bytes = $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.toObject(message.utf8Bytes, options); if (options.oneofs) - object.encoding = "orderedCodeBytes"; + object.encoding = "utf8Bytes"; } return object; }; @@ -39790,7 +39426,7 @@ /** * Converts this Encoding to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @instance * @returns {Object.} JSON object */ @@ -39801,7 +39437,7 @@ /** * Gets the default type url for Encoding * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @memberof google.bigtable.admin.v2.Type.String.Encoding * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -39810,26 +39446,26 @@ if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Encoding"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.String.Encoding"; }; - Encoding.Singleton = (function() { + Encoding.Utf8Raw = (function() { /** - * Properties of a Singleton. - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @interface ISingleton + * Properties of an Utf8Raw. + * @memberof google.bigtable.admin.v2.Type.String.Encoding + * @interface IUtf8Raw */ /** - * Constructs a new Singleton. - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @classdesc Represents a Singleton. - * @implements ISingleton + * Constructs a new Utf8Raw. + * @memberof google.bigtable.admin.v2.Type.String.Encoding + * @classdesc Represents an Utf8Raw. + * @implements IUtf8Raw * @constructor - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton=} [properties] Properties to set + * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw=} [properties] Properties to set */ - function Singleton(properties) { + function Utf8Raw(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39837,60 +39473,60 @@ } /** - * Creates a new Singleton instance using the specified properties. + * Creates a new Utf8Raw instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} Singleton instance + * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} Utf8Raw instance */ - Singleton.create = function create(properties) { - return new Singleton(properties); + Utf8Raw.create = function create(properties) { + return new Utf8Raw(properties); }; /** - * Encodes the specified Singleton message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. + * Encodes the specified Utf8Raw message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton} message Singleton message or plain object to encode + * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw} message Utf8Raw message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Singleton.encode = function encode(message, writer) { + Utf8Raw.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified Singleton message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. + * Encodes the specified Utf8Raw message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton} message Singleton message or plain object to encode + * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Raw} message Utf8Raw message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Singleton.encodeDelimited = function encodeDelimited(message, writer) { + Utf8Raw.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Singleton message from the specified reader or buffer. + * Decodes an Utf8Raw message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} Singleton + * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} Utf8Raw * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Singleton.decode = function decode(reader, length, error) { + Utf8Raw.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -39905,109 +39541,108 @@ }; /** - * Decodes a Singleton message from the specified reader or buffer, length delimited. + * Decodes an Utf8Raw message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} Singleton + * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} Utf8Raw * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Singleton.decodeDelimited = function decodeDelimited(reader) { + Utf8Raw.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Singleton message. + * Verifies an Utf8Raw message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Singleton.verify = function verify(message) { + Utf8Raw.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a Singleton message from a plain object. Also converts values to their respective internal types. + * Creates an Utf8Raw message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} Singleton + * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} Utf8Raw */ - Singleton.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) + Utf8Raw.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw) return object; - return new $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton(); + return new $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw(); }; /** - * Creates a plain object from a Singleton message. Also converts values to other types if specified. + * Creates a plain object from an Utf8Raw message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} message Singleton + * @param {google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw} message Utf8Raw * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Singleton.toObject = function toObject() { + Utf8Raw.toObject = function toObject() { return {}; }; /** - * Converts this Singleton to JSON. + * Converts this Utf8Raw to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @instance * @returns {Object.} JSON object */ - Singleton.prototype.toJSON = function toJSON() { + Utf8Raw.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Singleton + * Gets the default type url for Utf8Raw * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Singleton.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Utf8Raw.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Encoding.Singleton"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw"; }; - return Singleton; + return Utf8Raw; })(); - Encoding.DelimitedBytes = (function() { + Encoding.Utf8Bytes = (function() { /** - * Properties of a DelimitedBytes. - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @interface IDelimitedBytes - * @property {Uint8Array|null} [delimiter] DelimitedBytes delimiter + * Properties of an Utf8Bytes. + * @memberof google.bigtable.admin.v2.Type.String.Encoding + * @interface IUtf8Bytes */ /** - * Constructs a new DelimitedBytes. - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @classdesc Represents a DelimitedBytes. - * @implements IDelimitedBytes + * Constructs a new Utf8Bytes. + * @memberof google.bigtable.admin.v2.Type.String.Encoding + * @classdesc Represents an Utf8Bytes. + * @implements IUtf8Bytes * @constructor - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes=} [properties] Properties to set + * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes=} [properties] Properties to set */ - function DelimitedBytes(properties) { + function Utf8Bytes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40015,79 +39650,65 @@ } /** - * DelimitedBytes delimiter. - * @member {Uint8Array} delimiter - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes - * @instance - */ - DelimitedBytes.prototype.delimiter = $util.newBuffer([]); - - /** - * Creates a new DelimitedBytes instance using the specified properties. + * Creates a new Utf8Bytes instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes instance + * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes instance */ - DelimitedBytes.create = function create(properties) { - return new DelimitedBytes(properties); + Utf8Bytes.create = function create(properties) { + return new Utf8Bytes(properties); }; /** - * Encodes the specified DelimitedBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * Encodes the specified Utf8Bytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes} message DelimitedBytes message or plain object to encode + * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes} message Utf8Bytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DelimitedBytes.encode = function encode(message, writer) { + Utf8Bytes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.delimiter != null && Object.hasOwnProperty.call(message, "delimiter")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.delimiter); return writer; }; /** - * Encodes the specified DelimitedBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * Encodes the specified Utf8Bytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes} message DelimitedBytes message or plain object to encode + * @param {google.bigtable.admin.v2.Type.String.Encoding.IUtf8Bytes} message Utf8Bytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DelimitedBytes.encodeDelimited = function encodeDelimited(message, writer) { + Utf8Bytes.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DelimitedBytes message from the specified reader or buffer. + * Decodes an Utf8Bytes message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes + * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DelimitedBytes.decode = function decode(reader, length, error) { + Utf8Bytes.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 1: { - message.delimiter = reader.bytes(); - break; - } default: reader.skipType(tag & 7); break; @@ -40097,314 +39718,115 @@ }; /** - * Decodes a DelimitedBytes message from the specified reader or buffer, length delimited. + * Decodes an Utf8Bytes message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes + * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DelimitedBytes.decodeDelimited = function decodeDelimited(reader) { + Utf8Bytes.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DelimitedBytes message. + * Verifies an Utf8Bytes message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DelimitedBytes.verify = function verify(message) { + Utf8Bytes.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.delimiter != null && message.hasOwnProperty("delimiter")) - if (!(message.delimiter && typeof message.delimiter.length === "number" || $util.isString(message.delimiter))) - return "delimiter: buffer expected"; return null; }; /** - * Creates a DelimitedBytes message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes - */ - DelimitedBytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes(); - if (object.delimiter != null) - if (typeof object.delimiter === "string") - $util.base64.decode(object.delimiter, message.delimiter = $util.newBuffer($util.base64.length(object.delimiter)), 0); - else if (object.delimiter.length >= 0) - message.delimiter = object.delimiter; - return message; - }; - - /** - * Creates a plain object from a DelimitedBytes message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes - * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} message DelimitedBytes - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DelimitedBytes.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if (options.bytes === String) - object.delimiter = ""; - else { - object.delimiter = []; - if (options.bytes !== Array) - object.delimiter = $util.newBuffer(object.delimiter); - } - if (message.delimiter != null && message.hasOwnProperty("delimiter")) - object.delimiter = options.bytes === String ? $util.base64.encode(message.delimiter, 0, message.delimiter.length) : options.bytes === Array ? Array.prototype.slice.call(message.delimiter) : message.delimiter; - return object; - }; - - /** - * Converts this DelimitedBytes to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes - * @instance - * @returns {Object.} JSON object - */ - DelimitedBytes.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DelimitedBytes - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DelimitedBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes"; - }; - - return DelimitedBytes; - })(); - - Encoding.OrderedCodeBytes = (function() { - - /** - * Properties of an OrderedCodeBytes. - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @interface IOrderedCodeBytes - */ - - /** - * Constructs a new OrderedCodeBytes. - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding - * @classdesc Represents an OrderedCodeBytes. - * @implements IOrderedCodeBytes - * @constructor - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes=} [properties] Properties to set - */ - function OrderedCodeBytes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new OrderedCodeBytes instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes - * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes instance - */ - OrderedCodeBytes.create = function create(properties) { - return new OrderedCodeBytes(properties); - }; - - /** - * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes - * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OrderedCodeBytes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes - * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OrderedCodeBytes.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OrderedCodeBytes message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OrderedCodeBytes.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OrderedCodeBytes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OrderedCodeBytes message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OrderedCodeBytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * Creates an Utf8Bytes message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @returns {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes */ - OrderedCodeBytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) + Utf8Bytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes) return object; - return new $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes(); + return new $root.google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes(); }; /** - * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * Creates a plain object from an Utf8Bytes message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static - * @param {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} message OrderedCodeBytes + * @param {google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes} message Utf8Bytes * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OrderedCodeBytes.toObject = function toObject() { + Utf8Bytes.toObject = function toObject() { return {}; }; /** - * Converts this OrderedCodeBytes to JSON. + * Converts this Utf8Bytes to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @instance * @returns {Object.} JSON object */ - OrderedCodeBytes.prototype.toJSON = function toJSON() { + Utf8Bytes.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OrderedCodeBytes + * Gets the default type url for Utf8Bytes * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @memberof google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OrderedCodeBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Utf8Bytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes"; }; - return OrderedCodeBytes; + return Utf8Bytes; })(); return Encoding; })(); - return Struct; + return String; })(); - Type.Array = (function() { + Type.Int64 = (function() { /** - * Properties of an Array. + * Properties of an Int64. * @memberof google.bigtable.admin.v2.Type - * @interface IArray - * @property {google.bigtable.admin.v2.IType|null} [elementType] Array elementType + * @interface IInt64 + * @property {google.bigtable.admin.v2.Type.Int64.IEncoding|null} [encoding] Int64 encoding */ /** - * Constructs a new Array. + * Constructs a new Int64. * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents an Array. - * @implements IArray + * @classdesc Represents an Int64. + * @implements IInt64 * @constructor - * @param {google.bigtable.admin.v2.Type.IArray=} [properties] Properties to set + * @param {google.bigtable.admin.v2.Type.IInt64=} [properties] Properties to set */ - function Array(properties) { + function Int64(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40412,77 +39834,77 @@ } /** - * Array elementType. - * @member {google.bigtable.admin.v2.IType|null|undefined} elementType - * @memberof google.bigtable.admin.v2.Type.Array + * Int64 encoding. + * @member {google.bigtable.admin.v2.Type.Int64.IEncoding|null|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.Int64 * @instance */ - Array.prototype.elementType = null; + Int64.prototype.encoding = null; /** - * Creates a new Array instance using the specified properties. + * Creates a new Int64 instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static - * @param {google.bigtable.admin.v2.Type.IArray=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Array} Array instance + * @param {google.bigtable.admin.v2.Type.IInt64=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Int64} Int64 instance */ - Array.create = function create(properties) { - return new Array(properties); + Int64.create = function create(properties) { + return new Int64(properties); }; /** - * Encodes the specified Array message. Does not implicitly {@link google.bigtable.admin.v2.Type.Array.verify|verify} messages. + * Encodes the specified Int64 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static - * @param {google.bigtable.admin.v2.Type.IArray} message Array message or plain object to encode + * @param {google.bigtable.admin.v2.Type.IInt64} message Int64 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Array.encode = function encode(message, writer) { + Int64.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.elementType != null && Object.hasOwnProperty.call(message, "elementType")) - $root.google.bigtable.admin.v2.Type.encode(message.elementType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + $root.google.bigtable.admin.v2.Type.Int64.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Array message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Array.verify|verify} messages. + * Encodes the specified Int64 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static - * @param {google.bigtable.admin.v2.Type.IArray} message Array message or plain object to encode + * @param {google.bigtable.admin.v2.Type.IInt64} message Int64 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Array.encodeDelimited = function encodeDelimited(message, writer) { + Int64.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Array message from the specified reader or buffer. + * Decodes an Int64 message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Array} Array + * @returns {google.bigtable.admin.v2.Type.Int64} Int64 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Array.decode = function decode(reader, length, error) { + Int64.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Array(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Int64(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.elementType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + message.encoding = $root.google.bigtable.admin.v2.Type.Int64.Encoding.decode(reader, reader.uint32()); break; } default: @@ -40494,535 +39916,843 @@ }; /** - * Decodes an Array message from the specified reader or buffer, length delimited. + * Decodes an Int64 message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Array} Array + * @returns {google.bigtable.admin.v2.Type.Int64} Int64 * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Array.decodeDelimited = function decodeDelimited(reader) { + Int64.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Array message. + * Verifies an Int64 message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Array.verify = function verify(message) { + Int64.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.elementType != null && message.hasOwnProperty("elementType")) { - var error = $root.google.bigtable.admin.v2.Type.verify(message.elementType); + if (message.encoding != null && message.hasOwnProperty("encoding")) { + var error = $root.google.bigtable.admin.v2.Type.Int64.Encoding.verify(message.encoding); if (error) - return "elementType." + error; + return "encoding." + error; } return null; }; /** - * Creates an Array message from a plain object. Also converts values to their respective internal types. + * Creates an Int64 message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Array} Array + * @returns {google.bigtable.admin.v2.Type.Int64} Int64 */ - Array.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Array) + Int64.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Int64) return object; - var message = new $root.google.bigtable.admin.v2.Type.Array(); - if (object.elementType != null) { - if (typeof object.elementType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Array.elementType: object expected"); - message.elementType = $root.google.bigtable.admin.v2.Type.fromObject(object.elementType); + var message = new $root.google.bigtable.admin.v2.Type.Int64(); + if (object.encoding != null) { + if (typeof object.encoding !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Int64.encoding: object expected"); + message.encoding = $root.google.bigtable.admin.v2.Type.Int64.Encoding.fromObject(object.encoding); } return message; }; /** - * Creates a plain object from an Array message. Also converts values to other types if specified. + * Creates a plain object from an Int64 message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static - * @param {google.bigtable.admin.v2.Type.Array} message Array + * @param {google.bigtable.admin.v2.Type.Int64} message Int64 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Array.toObject = function toObject(message, options) { + Int64.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.elementType = null; - if (message.elementType != null && message.hasOwnProperty("elementType")) - object.elementType = $root.google.bigtable.admin.v2.Type.toObject(message.elementType, options); + object.encoding = null; + if (message.encoding != null && message.hasOwnProperty("encoding")) + object.encoding = $root.google.bigtable.admin.v2.Type.Int64.Encoding.toObject(message.encoding, options); return object; }; /** - * Converts this Array to JSON. + * Converts this Int64 to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @instance * @returns {Object.} JSON object */ - Array.prototype.toJSON = function toJSON() { + Int64.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Array + * Gets the default type url for Int64 * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Array + * @memberof google.bigtable.admin.v2.Type.Int64 * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Array.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Int64.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Array"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Int64"; }; - return Array; - })(); - - Type.Map = (function() { + Int64.Encoding = (function() { - /** - * Properties of a Map. - * @memberof google.bigtable.admin.v2.Type - * @interface IMap - * @property {google.bigtable.admin.v2.IType|null} [keyType] Map keyType - * @property {google.bigtable.admin.v2.IType|null} [valueType] Map valueType - */ + /** + * Properties of an Encoding. + * @memberof google.bigtable.admin.v2.Type.Int64 + * @interface IEncoding + * @property {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes|null} [bigEndianBytes] Encoding bigEndianBytes + * @property {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes|null} [orderedCodeBytes] Encoding orderedCodeBytes + */ - /** - * Constructs a new Map. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents a Map. - * @implements IMap - * @constructor - * @param {google.bigtable.admin.v2.Type.IMap=} [properties] Properties to set - */ - function Map(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Encoding. + * @memberof google.bigtable.admin.v2.Type.Int64 + * @classdesc Represents an Encoding. + * @implements IEncoding + * @constructor + * @param {google.bigtable.admin.v2.Type.Int64.IEncoding=} [properties] Properties to set + */ + function Encoding(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Map keyType. - * @member {google.bigtable.admin.v2.IType|null|undefined} keyType - * @memberof google.bigtable.admin.v2.Type.Map - * @instance - */ - Map.prototype.keyType = null; + /** + * Encoding bigEndianBytes. + * @member {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes|null|undefined} bigEndianBytes + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @instance + */ + Encoding.prototype.bigEndianBytes = null; - /** - * Map valueType. - * @member {google.bigtable.admin.v2.IType|null|undefined} valueType - * @memberof google.bigtable.admin.v2.Type.Map - * @instance - */ - Map.prototype.valueType = null; + /** + * Encoding orderedCodeBytes. + * @member {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes|null|undefined} orderedCodeBytes + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @instance + */ + Encoding.prototype.orderedCodeBytes = null; - /** - * Creates a new Map instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {google.bigtable.admin.v2.Type.IMap=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Map} Map instance - */ - Map.create = function create(properties) { - return new Map(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified Map message. Does not implicitly {@link google.bigtable.admin.v2.Type.Map.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {google.bigtable.admin.v2.Type.IMap} message Map message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Map.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - $root.google.bigtable.admin.v2.Type.encode(message.keyType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) - $root.google.bigtable.admin.v2.Type.encode(message.valueType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encoding encoding. + * @member {"bigEndianBytes"|"orderedCodeBytes"|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @instance + */ + Object.defineProperty(Encoding.prototype, "encoding", { + get: $util.oneOfGetter($oneOfFields = ["bigEndianBytes", "orderedCodeBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified Map message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Map.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {google.bigtable.admin.v2.Type.IMap} message Map message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Map.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new Encoding instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {google.bigtable.admin.v2.Type.Int64.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding} Encoding instance + */ + Encoding.create = function create(properties) { + return new Encoding(properties); + }; - /** - * Decodes a Map message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Map} Map - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Map.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Map(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.keyType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {google.bigtable.admin.v2.Type.Int64.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bigEndianBytes != null && Object.hasOwnProperty.call(message, "bigEndianBytes")) + $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.encode(message.bigEndianBytes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.orderedCodeBytes != null && Object.hasOwnProperty.call(message, "orderedCodeBytes")) + $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.encode(message.orderedCodeBytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {google.bigtable.admin.v2.Type.Int64.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Encoding message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - } - case 2: { - message.valueType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + switch (tag >>> 3) { + case 1: { + message.bigEndianBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.decode(reader, reader.uint32()); + break; + } + case 2: { + message.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a Map message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Map} Map - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Map.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Map message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Map.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) { - var error = $root.google.bigtable.admin.v2.Type.verify(message.keyType); - if (error) - return "keyType." + error; - } - if (message.valueType != null && message.hasOwnProperty("valueType")) { - var error = $root.google.bigtable.admin.v2.Type.verify(message.valueType); - if (error) - return "valueType." + error; - } - return null; - }; + return message; + }; - /** - * Creates a Map message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Map} Map - */ - Map.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Map) - return object; - var message = new $root.google.bigtable.admin.v2.Type.Map(); - if (object.keyType != null) { - if (typeof object.keyType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Map.keyType: object expected"); - message.keyType = $root.google.bigtable.admin.v2.Type.fromObject(object.keyType); - } - if (object.valueType != null) { - if (typeof object.valueType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Map.valueType: object expected"); - message.valueType = $root.google.bigtable.admin.v2.Type.fromObject(object.valueType); - } - return message; - }; + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Map message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {google.bigtable.admin.v2.Type.Map} message Map - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Map.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.keyType = null; - object.valueType = null; - } - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = $root.google.bigtable.admin.v2.Type.toObject(message.keyType, options); - if (message.valueType != null && message.hasOwnProperty("valueType")) - object.valueType = $root.google.bigtable.admin.v2.Type.toObject(message.valueType, options); - return object; - }; + /** + * Verifies an Encoding message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Encoding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bigEndianBytes != null && message.hasOwnProperty("bigEndianBytes")) { + properties.encoding = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify(message.bigEndianBytes); + if (error) + return "bigEndianBytes." + error; + } + } + if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { + if (properties.encoding === 1) + return "encoding: multiple values"; + properties.encoding = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify(message.orderedCodeBytes); + if (error) + return "orderedCodeBytes." + error; + } + } + return null; + }; - /** - * Converts this Map to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Map - * @instance - * @returns {Object.} JSON object - */ - Map.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding} Encoding + */ + Encoding.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Int64.Encoding) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding(); + if (object.bigEndianBytes != null) { + if (typeof object.bigEndianBytes !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Int64.Encoding.bigEndianBytes: object expected"); + message.bigEndianBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.fromObject(object.bigEndianBytes); + } + if (object.orderedCodeBytes != null) { + if (typeof object.orderedCodeBytes !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Int64.Encoding.orderedCodeBytes: object expected"); + message.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.fromObject(object.orderedCodeBytes); + } + return message; + }; - /** - * Gets the default type url for Map - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Map - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Map.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Map"; - }; + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding} message Encoding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Encoding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.bigEndianBytes != null && message.hasOwnProperty("bigEndianBytes")) { + object.bigEndianBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.toObject(message.bigEndianBytes, options); + if (options.oneofs) + object.encoding = "bigEndianBytes"; + } + if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { + object.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.toObject(message.orderedCodeBytes, options); + if (options.oneofs) + object.encoding = "orderedCodeBytes"; + } + return object; + }; - return Map; - })(); + /** + * Converts this Encoding to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @instance + * @returns {Object.} JSON object + */ + Encoding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - Type.Aggregate = (function() { + /** + * Gets the default type url for Encoding + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Int64.Encoding"; + }; - /** - * Properties of an Aggregate. - * @memberof google.bigtable.admin.v2.Type - * @interface IAggregate - * @property {google.bigtable.admin.v2.IType|null} [inputType] Aggregate inputType - * @property {google.bigtable.admin.v2.IType|null} [stateType] Aggregate stateType - * @property {google.bigtable.admin.v2.Type.Aggregate.ISum|null} [sum] Aggregate sum - * @property {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount|null} [hllppUniqueCount] Aggregate hllppUniqueCount - * @property {google.bigtable.admin.v2.Type.Aggregate.IMax|null} [max] Aggregate max - * @property {google.bigtable.admin.v2.Type.Aggregate.IMin|null} [min] Aggregate min - */ + Encoding.BigEndianBytes = (function() { - /** - * Constructs a new Aggregate. - * @memberof google.bigtable.admin.v2.Type - * @classdesc Represents an Aggregate. - * @implements IAggregate - * @constructor - * @param {google.bigtable.admin.v2.Type.IAggregate=} [properties] Properties to set - */ - function Aggregate(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a BigEndianBytes. + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @interface IBigEndianBytes + * @property {google.bigtable.admin.v2.Type.IBytes|null} [bytesType] BigEndianBytes bytesType + */ - /** - * Aggregate inputType. - * @member {google.bigtable.admin.v2.IType|null|undefined} inputType - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @instance - */ - Aggregate.prototype.inputType = null; + /** + * Constructs a new BigEndianBytes. + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @classdesc Represents a BigEndianBytes. + * @implements IBigEndianBytes + * @constructor + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes=} [properties] Properties to set + */ + function BigEndianBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Aggregate stateType. - * @member {google.bigtable.admin.v2.IType|null|undefined} stateType - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @instance - */ - Aggregate.prototype.stateType = null; + /** + * BigEndianBytes bytesType. + * @member {google.bigtable.admin.v2.Type.IBytes|null|undefined} bytesType + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @instance + */ + BigEndianBytes.prototype.bytesType = null; - /** - * Aggregate sum. - * @member {google.bigtable.admin.v2.Type.Aggregate.ISum|null|undefined} sum - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @instance - */ - Aggregate.prototype.sum = null; + /** + * Creates a new BigEndianBytes instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes instance + */ + BigEndianBytes.create = function create(properties) { + return new BigEndianBytes(properties); + }; - /** - * Aggregate hllppUniqueCount. - * @member {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount|null|undefined} hllppUniqueCount - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @instance - */ - Aggregate.prototype.hllppUniqueCount = null; + /** + * Encodes the specified BigEndianBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes} message BigEndianBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigEndianBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bytesType != null && Object.hasOwnProperty.call(message, "bytesType")) + $root.google.bigtable.admin.v2.Type.Bytes.encode(message.bytesType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Aggregate max. - * @member {google.bigtable.admin.v2.Type.Aggregate.IMax|null|undefined} max - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @instance - */ - Aggregate.prototype.max = null; + /** + * Encodes the specified BigEndianBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IBigEndianBytes} message BigEndianBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigEndianBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Aggregate min. - * @member {google.bigtable.admin.v2.Type.Aggregate.IMin|null|undefined} min - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @instance - */ - Aggregate.prototype.min = null; + /** + * Decodes a BigEndianBytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigEndianBytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Decodes a BigEndianBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigEndianBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Aggregate aggregator. - * @member {"sum"|"hllppUniqueCount"|"max"|"min"|undefined} aggregator - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @instance + /** + * Verifies a BigEndianBytes message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigEndianBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bytesType != null && message.hasOwnProperty("bytesType")) { + var error = $root.google.bigtable.admin.v2.Type.Bytes.verify(message.bytesType); + if (error) + return "bytesType." + error; + } + return null; + }; + + /** + * Creates a BigEndianBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes + */ + BigEndianBytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes(); + if (object.bytesType != null) { + if (typeof object.bytesType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes.bytesType: object expected"); + message.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.fromObject(object.bytesType); + } + return message; + }; + + /** + * Creates a plain object from a BigEndianBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes} message BigEndianBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigEndianBytes.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.bytesType = null; + if (message.bytesType != null && message.hasOwnProperty("bytesType")) + object.bytesType = $root.google.bigtable.admin.v2.Type.Bytes.toObject(message.bytesType, options); + return object; + }; + + /** + * Converts this BigEndianBytes to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @instance + * @returns {Object.} JSON object + */ + BigEndianBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BigEndianBytes + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BigEndianBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes"; + }; + + return BigEndianBytes; + })(); + + Encoding.OrderedCodeBytes = (function() { + + /** + * Properties of an OrderedCodeBytes. + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @interface IOrderedCodeBytes + */ + + /** + * Constructs a new OrderedCodeBytes. + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding + * @classdesc Represents an OrderedCodeBytes. + * @implements IOrderedCodeBytes + * @constructor + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes=} [properties] Properties to set + */ + function OrderedCodeBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new OrderedCodeBytes instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes instance + */ + OrderedCodeBytes.create = function create(properties) { + return new OrderedCodeBytes(properties); + }; + + /** + * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrderedCodeBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrderedCodeBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrderedCodeBytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrderedCodeBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OrderedCodeBytes message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OrderedCodeBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes + */ + OrderedCodeBytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes) + return object; + return new $root.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes(); + }; + + /** + * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes} message OrderedCodeBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OrderedCodeBytes.toObject = function toObject() { + return {}; + }; + + /** + * Converts this OrderedCodeBytes to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @instance + * @returns {Object.} JSON object + */ + OrderedCodeBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OrderedCodeBytes + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OrderedCodeBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes"; + }; + + return OrderedCodeBytes; + })(); + + return Encoding; + })(); + + return Int64; + })(); + + Type.Bool = (function() { + + /** + * Properties of a Bool. + * @memberof google.bigtable.admin.v2.Type + * @interface IBool */ - Object.defineProperty(Aggregate.prototype, "aggregator", { - get: $util.oneOfGetter($oneOfFields = ["sum", "hllppUniqueCount", "max", "min"]), - set: $util.oneOfSetter($oneOfFields) - }); /** - * Creates a new Aggregate instance using the specified properties. + * Constructs a new Bool. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents a Bool. + * @implements IBool + * @constructor + * @param {google.bigtable.admin.v2.Type.IBool=} [properties] Properties to set + */ + function Bool(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new Bool instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static - * @param {google.bigtable.admin.v2.Type.IAggregate=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Aggregate} Aggregate instance + * @param {google.bigtable.admin.v2.Type.IBool=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Bool} Bool instance */ - Aggregate.create = function create(properties) { - return new Aggregate(properties); + Bool.create = function create(properties) { + return new Bool(properties); }; /** - * Encodes the specified Aggregate message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.verify|verify} messages. + * Encodes the specified Bool message. Does not implicitly {@link google.bigtable.admin.v2.Type.Bool.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static - * @param {google.bigtable.admin.v2.Type.IAggregate} message Aggregate message or plain object to encode + * @param {google.bigtable.admin.v2.Type.IBool} message Bool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Aggregate.encode = function encode(message, writer) { + Bool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) - $root.google.bigtable.admin.v2.Type.encode(message.inputType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stateType != null && Object.hasOwnProperty.call(message, "stateType")) - $root.google.bigtable.admin.v2.Type.encode(message.stateType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sum != null && Object.hasOwnProperty.call(message, "sum")) - $root.google.bigtable.admin.v2.Type.Aggregate.Sum.encode(message.sum, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.hllppUniqueCount != null && Object.hasOwnProperty.call(message, "hllppUniqueCount")) - $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.encode(message.hllppUniqueCount, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.max != null && Object.hasOwnProperty.call(message, "max")) - $root.google.bigtable.admin.v2.Type.Aggregate.Max.encode(message.max, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.min != null && Object.hasOwnProperty.call(message, "min")) - $root.google.bigtable.admin.v2.Type.Aggregate.Min.encode(message.min, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified Aggregate message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.verify|verify} messages. + * Encodes the specified Bool message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Bool.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static - * @param {google.bigtable.admin.v2.Type.IAggregate} message Aggregate message or plain object to encode + * @param {google.bigtable.admin.v2.Type.IBool} message Bool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Aggregate.encodeDelimited = function encodeDelimited(message, writer) { + Bool.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Aggregate message from the specified reader or buffer. + * Decodes a Bool message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Aggregate} Aggregate + * @returns {google.bigtable.admin.v2.Type.Bool} Bool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Aggregate.decode = function decode(reader, length, error) { + Bool.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Bool(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 1: { - message.inputType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); - break; - } - case 2: { - message.stateType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); - break; - } - case 4: { - message.sum = $root.google.bigtable.admin.v2.Type.Aggregate.Sum.decode(reader, reader.uint32()); - break; - } - case 5: { - message.hllppUniqueCount = $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.decode(reader, reader.uint32()); - break; - } - case 6: { - message.max = $root.google.bigtable.admin.v2.Type.Aggregate.Max.decode(reader, reader.uint32()); - break; - } - case 7: { - message.min = $root.google.bigtable.admin.v2.Type.Aggregate.Min.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -41032,570 +40762,670 @@ }; /** - * Decodes an Aggregate message from the specified reader or buffer, length delimited. + * Decodes a Bool message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Aggregate} Aggregate + * @returns {google.bigtable.admin.v2.Type.Bool} Bool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Aggregate.decodeDelimited = function decodeDelimited(reader) { + Bool.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Aggregate message. + * Verifies a Bool message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Aggregate.verify = function verify(message) { + Bool.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.inputType != null && message.hasOwnProperty("inputType")) { - var error = $root.google.bigtable.admin.v2.Type.verify(message.inputType); - if (error) - return "inputType." + error; - } - if (message.stateType != null && message.hasOwnProperty("stateType")) { - var error = $root.google.bigtable.admin.v2.Type.verify(message.stateType); - if (error) - return "stateType." + error; - } - if (message.sum != null && message.hasOwnProperty("sum")) { - properties.aggregator = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Aggregate.Sum.verify(message.sum); - if (error) - return "sum." + error; - } - } - if (message.hllppUniqueCount != null && message.hasOwnProperty("hllppUniqueCount")) { - if (properties.aggregator === 1) - return "aggregator: multiple values"; - properties.aggregator = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify(message.hllppUniqueCount); - if (error) - return "hllppUniqueCount." + error; - } - } - if (message.max != null && message.hasOwnProperty("max")) { - if (properties.aggregator === 1) - return "aggregator: multiple values"; - properties.aggregator = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Aggregate.Max.verify(message.max); - if (error) - return "max." + error; - } - } - if (message.min != null && message.hasOwnProperty("min")) { - if (properties.aggregator === 1) - return "aggregator: multiple values"; - properties.aggregator = 1; - { - var error = $root.google.bigtable.admin.v2.Type.Aggregate.Min.verify(message.min); - if (error) - return "min." + error; - } - } return null; }; /** - * Creates an Aggregate message from a plain object. Also converts values to their respective internal types. + * Creates a Bool message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Aggregate} Aggregate + * @returns {google.bigtable.admin.v2.Type.Bool} Bool */ - Aggregate.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate) + Bool.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Bool) return object; - var message = new $root.google.bigtable.admin.v2.Type.Aggregate(); - if (object.inputType != null) { - if (typeof object.inputType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.inputType: object expected"); - message.inputType = $root.google.bigtable.admin.v2.Type.fromObject(object.inputType); - } - if (object.stateType != null) { - if (typeof object.stateType !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.stateType: object expected"); - message.stateType = $root.google.bigtable.admin.v2.Type.fromObject(object.stateType); - } - if (object.sum != null) { - if (typeof object.sum !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.sum: object expected"); - message.sum = $root.google.bigtable.admin.v2.Type.Aggregate.Sum.fromObject(object.sum); - } - if (object.hllppUniqueCount != null) { - if (typeof object.hllppUniqueCount !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.hllppUniqueCount: object expected"); - message.hllppUniqueCount = $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.fromObject(object.hllppUniqueCount); - } - if (object.max != null) { - if (typeof object.max !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.max: object expected"); - message.max = $root.google.bigtable.admin.v2.Type.Aggregate.Max.fromObject(object.max); - } - if (object.min != null) { - if (typeof object.min !== "object") - throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.min: object expected"); - message.min = $root.google.bigtable.admin.v2.Type.Aggregate.Min.fromObject(object.min); - } - return message; + return new $root.google.bigtable.admin.v2.Type.Bool(); }; /** - * Creates a plain object from an Aggregate message. Also converts values to other types if specified. + * Creates a plain object from a Bool message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static - * @param {google.bigtable.admin.v2.Type.Aggregate} message Aggregate + * @param {google.bigtable.admin.v2.Type.Bool} message Bool * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Aggregate.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.inputType = null; - object.stateType = null; - } - if (message.inputType != null && message.hasOwnProperty("inputType")) - object.inputType = $root.google.bigtable.admin.v2.Type.toObject(message.inputType, options); - if (message.stateType != null && message.hasOwnProperty("stateType")) - object.stateType = $root.google.bigtable.admin.v2.Type.toObject(message.stateType, options); - if (message.sum != null && message.hasOwnProperty("sum")) { - object.sum = $root.google.bigtable.admin.v2.Type.Aggregate.Sum.toObject(message.sum, options); - if (options.oneofs) - object.aggregator = "sum"; - } - if (message.hllppUniqueCount != null && message.hasOwnProperty("hllppUniqueCount")) { - object.hllppUniqueCount = $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.toObject(message.hllppUniqueCount, options); - if (options.oneofs) - object.aggregator = "hllppUniqueCount"; - } - if (message.max != null && message.hasOwnProperty("max")) { - object.max = $root.google.bigtable.admin.v2.Type.Aggregate.Max.toObject(message.max, options); - if (options.oneofs) - object.aggregator = "max"; - } - if (message.min != null && message.hasOwnProperty("min")) { - object.min = $root.google.bigtable.admin.v2.Type.Aggregate.Min.toObject(message.min, options); - if (options.oneofs) - object.aggregator = "min"; - } - return object; + Bool.toObject = function toObject() { + return {}; }; /** - * Converts this Aggregate to JSON. + * Converts this Bool to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @instance * @returns {Object.} JSON object */ - Aggregate.prototype.toJSON = function toJSON() { + Bool.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Aggregate + * Gets the default type url for Bool * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Aggregate + * @memberof google.bigtable.admin.v2.Type.Bool * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Aggregate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Bool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Bool"; }; - Aggregate.Sum = (function() { + return Bool; + })(); - /** - * Properties of a Sum. - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @interface ISum - */ + Type.Float32 = (function() { - /** - * Constructs a new Sum. - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @classdesc Represents a Sum. - * @implements ISum - * @constructor - * @param {google.bigtable.admin.v2.Type.Aggregate.ISum=} [properties] Properties to set - */ - function Sum(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a Float32. + * @memberof google.bigtable.admin.v2.Type + * @interface IFloat32 + */ - /** - * Creates a new Sum instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.ISum=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Aggregate.Sum} Sum instance - */ - Sum.create = function create(properties) { - return new Sum(properties); - }; + /** + * Constructs a new Float32. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents a Float32. + * @implements IFloat32 + * @constructor + * @param {google.bigtable.admin.v2.Type.IFloat32=} [properties] Properties to set + */ + function Float32(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Sum message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Sum.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.ISum} message Sum message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Sum.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Creates a new Float32 instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {google.bigtable.admin.v2.Type.IFloat32=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Float32} Float32 instance + */ + Float32.create = function create(properties) { + return new Float32(properties); + }; - /** - * Encodes the specified Sum message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Sum.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.ISum} message Sum message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Sum.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Float32 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Float32.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {google.bigtable.admin.v2.Type.IFloat32} message Float32 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Float32.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Decodes a Sum message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Aggregate.Sum} Sum - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Sum.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate.Sum(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Encodes the specified Float32 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Float32.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {google.bigtable.admin.v2.Type.IFloat32} message Float32 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Float32.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Float32 message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Float32} Float32 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Float32.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Float32(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a Sum message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Aggregate.Sum} Sum - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Sum.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Float32 message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Float32} Float32 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Float32.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Sum message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Sum.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Verifies a Float32 message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Float32.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a Sum message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Aggregate.Sum} Sum - */ - Sum.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate.Sum) - return object; - return new $root.google.bigtable.admin.v2.Type.Aggregate.Sum(); - }; + /** + * Creates a Float32 message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Float32} Float32 + */ + Float32.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Float32) + return object; + return new $root.google.bigtable.admin.v2.Type.Float32(); + }; - /** - * Creates a plain object from a Sum message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.Sum} message Sum - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Sum.toObject = function toObject() { - return {}; - }; + /** + * Creates a plain object from a Float32 message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {google.bigtable.admin.v2.Type.Float32} message Float32 + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Float32.toObject = function toObject() { + return {}; + }; - /** - * Converts this Sum to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @instance - * @returns {Object.} JSON object - */ - Sum.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Float32 to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Float32 + * @instance + * @returns {Object.} JSON object + */ + Float32.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Sum - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Sum.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate.Sum"; - }; + /** + * Gets the default type url for Float32 + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Float32 + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Float32.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Float32"; + }; - return Sum; - })(); + return Float32; + })(); - Aggregate.Max = (function() { + Type.Float64 = (function() { - /** - * Properties of a Max. - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @interface IMax - */ + /** + * Properties of a Float64. + * @memberof google.bigtable.admin.v2.Type + * @interface IFloat64 + */ - /** - * Constructs a new Max. - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @classdesc Represents a Max. - * @implements IMax - * @constructor - * @param {google.bigtable.admin.v2.Type.Aggregate.IMax=} [properties] Properties to set - */ - function Max(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Float64. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents a Float64. + * @implements IFloat64 + * @constructor + * @param {google.bigtable.admin.v2.Type.IFloat64=} [properties] Properties to set + */ + function Float64(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new Max instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IMax=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Aggregate.Max} Max instance - */ - Max.create = function create(properties) { - return new Max(properties); - }; + /** + * Creates a new Float64 instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {google.bigtable.admin.v2.Type.IFloat64=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Float64} Float64 instance + */ + Float64.create = function create(properties) { + return new Float64(properties); + }; - /** - * Encodes the specified Max message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Max.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IMax} message Max message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Max.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Encodes the specified Float64 message. Does not implicitly {@link google.bigtable.admin.v2.Type.Float64.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {google.bigtable.admin.v2.Type.IFloat64} message Float64 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Float64.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Encodes the specified Max message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Max.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IMax} message Max message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Max.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Float64 message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Float64.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {google.bigtable.admin.v2.Type.IFloat64} message Float64 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Float64.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Max message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Aggregate.Max} Max - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Max.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate.Max(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a Float64 message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Float64} Float64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Float64.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Float64(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a Max message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Aggregate.Max} Max - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Max.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a Max message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Max.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Decodes a Float64 message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Float64} Float64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Float64.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Max message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Aggregate.Max} Max - */ - Max.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate.Max) - return object; - return new $root.google.bigtable.admin.v2.Type.Aggregate.Max(); - }; + /** + * Verifies a Float64 message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Float64.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a plain object from a Max message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.Max} message Max - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Max.toObject = function toObject() { - return {}; - }; + /** + * Creates a Float64 message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Float64} Float64 + */ + Float64.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Float64) + return object; + return new $root.google.bigtable.admin.v2.Type.Float64(); + }; - /** - * Converts this Max to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @instance - * @returns {Object.} JSON object - */ - Max.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Float64 message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {google.bigtable.admin.v2.Type.Float64} message Float64 + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Float64.toObject = function toObject() { + return {}; + }; - /** - * Gets the default type url for Max - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Aggregate.Max - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Max.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Converts this Float64 to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Float64 + * @instance + * @returns {Object.} JSON object + */ + Float64.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Float64 + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Float64 + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Float64.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Float64"; + }; + + return Float64; + })(); + + Type.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.bigtable.admin.v2.Type + * @interface ITimestamp + * @property {google.bigtable.admin.v2.Type.Timestamp.IEncoding|null} [encoding] Timestamp encoding + */ + + /** + * Constructs a new Timestamp. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.bigtable.admin.v2.Type.ITimestamp=} [properties] Properties to set + */ + function Timestamp(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Timestamp encoding. + * @member {google.bigtable.admin.v2.Type.Timestamp.IEncoding|null|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @instance + */ + Timestamp.prototype.encoding = null; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {google.bigtable.admin.v2.Type.ITimestamp=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {google.bigtable.admin.v2.Type.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {google.bigtable.admin.v2.Type.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.encoding = $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate.Max"; - }; + } + return message; + }; - return Max; - })(); + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - Aggregate.Min = (function() { + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.encoding != null && message.hasOwnProperty("encoding")) { + var error = $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.verify(message.encoding); + if (error) + return "encoding." + error; + } + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Timestamp) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Timestamp(); + if (object.encoding != null) { + if (typeof object.encoding !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Timestamp.encoding: object expected"); + message.encoding = $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.fromObject(object.encoding); + } + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {google.bigtable.admin.v2.Type.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.encoding = null; + if (message.encoding != null && message.hasOwnProperty("encoding")) + object.encoding = $root.google.bigtable.admin.v2.Type.Timestamp.Encoding.toObject(message.encoding, options); + return object; + }; + + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Timestamp"; + }; + + Timestamp.Encoding = (function() { /** - * Properties of a Min. - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @interface IMin + * Properties of an Encoding. + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @interface IEncoding + * @property {google.bigtable.admin.v2.Type.Int64.IEncoding|null} [unixMicrosInt64] Encoding unixMicrosInt64 */ /** - * Constructs a new Min. - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @classdesc Represents a Min. - * @implements IMin + * Constructs a new Encoding. + * @memberof google.bigtable.admin.v2.Type.Timestamp + * @classdesc Represents an Encoding. + * @implements IEncoding * @constructor - * @param {google.bigtable.admin.v2.Type.Aggregate.IMin=} [properties] Properties to set + * @param {google.bigtable.admin.v2.Type.Timestamp.IEncoding=} [properties] Properties to set */ - function Min(properties) { + function Encoding(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41603,65 +41433,93 @@ } /** - * Creates a new Min instance using the specified properties. + * Encoding unixMicrosInt64. + * @member {google.bigtable.admin.v2.Type.Int64.IEncoding|null|undefined} unixMicrosInt64 + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @instance + */ + Encoding.prototype.unixMicrosInt64 = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Encoding encoding. + * @member {"unixMicrosInt64"|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding + * @instance + */ + Object.defineProperty(Encoding.prototype, "encoding", { + get: $util.oneOfGetter($oneOfFields = ["unixMicrosInt64"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Encoding instance using the specified properties. * @function create - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IMin=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Aggregate.Min} Min instance + * @param {google.bigtable.admin.v2.Type.Timestamp.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Timestamp.Encoding} Encoding instance */ - Min.create = function create(properties) { - return new Min(properties); + Encoding.create = function create(properties) { + return new Encoding(properties); }; /** - * Encodes the specified Min message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Min.verify|verify} messages. + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.Encoding.verify|verify} messages. * @function encode - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IMin} message Min message or plain object to encode + * @param {google.bigtable.admin.v2.Type.Timestamp.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Min.encode = function encode(message, writer) { + Encoding.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.unixMicrosInt64 != null && Object.hasOwnProperty.call(message, "unixMicrosInt64")) + $root.google.bigtable.admin.v2.Type.Int64.Encoding.encode(message.unixMicrosInt64, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Min message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Min.verify|verify} messages. + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Timestamp.Encoding.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IMin} message Min message or plain object to encode + * @param {google.bigtable.admin.v2.Type.Timestamp.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Min.encodeDelimited = function encodeDelimited(message, writer) { + Encoding.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Min message from the specified reader or buffer. + * Decodes an Encoding message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Aggregate.Min} Min + * @returns {google.bigtable.admin.v2.Type.Timestamp.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Min.decode = function decode(reader, length, error) { + Encoding.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate.Min(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Timestamp.Encoding(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 1: { + message.unixMicrosInt64 = $root.google.bigtable.admin.v2.Type.Int64.Encoding.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -41671,4402 +41529,4250 @@ }; /** - * Decodes a Min message from the specified reader or buffer, length delimited. + * Decodes an Encoding message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Aggregate.Min} Min + * @returns {google.bigtable.admin.v2.Type.Timestamp.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Min.decodeDelimited = function decodeDelimited(reader) { + Encoding.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Min message. + * Verifies an Encoding message. * @function verify - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Min.verify = function verify(message) { + Encoding.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.unixMicrosInt64 != null && message.hasOwnProperty("unixMicrosInt64")) { + properties.encoding = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Int64.Encoding.verify(message.unixMicrosInt64); + if (error) + return "unixMicrosInt64." + error; + } + } return null; }; /** - * Creates a Min message from a plain object. Also converts values to their respective internal types. + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Aggregate.Min} Min + * @returns {google.bigtable.admin.v2.Type.Timestamp.Encoding} Encoding */ - Min.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate.Min) + Encoding.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Timestamp.Encoding) return object; - return new $root.google.bigtable.admin.v2.Type.Aggregate.Min(); + var message = new $root.google.bigtable.admin.v2.Type.Timestamp.Encoding(); + if (object.unixMicrosInt64 != null) { + if (typeof object.unixMicrosInt64 !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Timestamp.Encoding.unixMicrosInt64: object expected"); + message.unixMicrosInt64 = $root.google.bigtable.admin.v2.Type.Int64.Encoding.fromObject(object.unixMicrosInt64); + } + return message; }; /** - * Creates a plain object from a Min message. Also converts values to other types if specified. + * Creates a plain object from an Encoding message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.Min} message Min + * @param {google.bigtable.admin.v2.Type.Timestamp.Encoding} message Encoding * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Min.toObject = function toObject() { - return {}; - }; - - /** - * Converts this Min to JSON. - * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min - * @instance - * @returns {Object.} JSON object - */ - Min.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Min - * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Aggregate.Min - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Min.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate.Min"; - }; - - return Min; - })(); - - Aggregate.HyperLogLogPlusPlusUniqueCount = (function() { - - /** - * Properties of a HyperLogLogPlusPlusUniqueCount. - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @interface IHyperLogLogPlusPlusUniqueCount - */ - - /** - * Constructs a new HyperLogLogPlusPlusUniqueCount. - * @memberof google.bigtable.admin.v2.Type.Aggregate - * @classdesc Represents a HyperLogLogPlusPlusUniqueCount. - * @implements IHyperLogLogPlusPlusUniqueCount - * @constructor - * @param {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount=} [properties] Properties to set - */ - function HyperLogLogPlusPlusUniqueCount(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new HyperLogLogPlusPlusUniqueCount instance using the specified properties. - * @function create - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount=} [properties] Properties to set - * @returns {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} HyperLogLogPlusPlusUniqueCount instance - */ - HyperLogLogPlusPlusUniqueCount.create = function create(properties) { - return new HyperLogLogPlusPlusUniqueCount(properties); - }; - - /** - * Encodes the specified HyperLogLogPlusPlusUniqueCount message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify|verify} messages. - * @function encode - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount} message HyperLogLogPlusPlusUniqueCount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HyperLogLogPlusPlusUniqueCount.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified HyperLogLogPlusPlusUniqueCount message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount} message HyperLogLogPlusPlusUniqueCount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HyperLogLogPlusPlusUniqueCount.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a HyperLogLogPlusPlusUniqueCount message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} HyperLogLogPlusPlusUniqueCount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HyperLogLogPlusPlusUniqueCount.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + Encoding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.unixMicrosInt64 != null && message.hasOwnProperty("unixMicrosInt64")) { + object.unixMicrosInt64 = $root.google.bigtable.admin.v2.Type.Int64.Encoding.toObject(message.unixMicrosInt64, options); + if (options.oneofs) + object.encoding = "unixMicrosInt64"; } - return message; - }; - - /** - * Decodes a HyperLogLogPlusPlusUniqueCount message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} HyperLogLogPlusPlusUniqueCount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HyperLogLogPlusPlusUniqueCount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a HyperLogLogPlusPlusUniqueCount message. - * @function verify - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - HyperLogLogPlusPlusUniqueCount.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a HyperLogLogPlusPlusUniqueCount message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} HyperLogLogPlusPlusUniqueCount - */ - HyperLogLogPlusPlusUniqueCount.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount) - return object; - return new $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount(); - }; - - /** - * Creates a plain object from a HyperLogLogPlusPlusUniqueCount message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - * @static - * @param {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} message HyperLogLogPlusPlusUniqueCount - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - HyperLogLogPlusPlusUniqueCount.toObject = function toObject() { - return {}; + return object; }; /** - * Converts this HyperLogLogPlusPlusUniqueCount to JSON. + * Converts this Encoding to JSON. * @function toJSON - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @instance * @returns {Object.} JSON object */ - HyperLogLogPlusPlusUniqueCount.prototype.toJSON = function toJSON() { + Encoding.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HyperLogLogPlusPlusUniqueCount + * Gets the default type url for Encoding * @function getTypeUrl - * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @memberof google.bigtable.admin.v2.Type.Timestamp.Encoding * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HyperLogLogPlusPlusUniqueCount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount"; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Timestamp.Encoding"; }; - return HyperLogLogPlusPlusUniqueCount; + return Encoding; })(); - return Aggregate; + return Timestamp; })(); - return Type; - })(); - - return v2; - })(); + Type.Date = (function() { - return admin; - })(); + /** + * Properties of a Date. + * @memberof google.bigtable.admin.v2.Type + * @interface IDate + */ - bigtable.v2 = (function() { + /** + * Constructs a new Date. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents a Date. + * @implements IDate + * @constructor + * @param {google.bigtable.admin.v2.Type.IDate=} [properties] Properties to set + */ + function Date(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Namespace v2. - * @memberof google.bigtable - * @namespace - */ - var v2 = {}; + /** + * Creates a new Date instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {google.bigtable.admin.v2.Type.IDate=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Date} Date instance + */ + Date.create = function create(properties) { + return new Date(properties); + }; - v2.Bigtable = (function() { + /** + * Encodes the specified Date message. Does not implicitly {@link google.bigtable.admin.v2.Type.Date.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {google.bigtable.admin.v2.Type.IDate} message Date message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Date.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Constructs a new Bigtable service. - * @memberof google.bigtable.v2 - * @classdesc Represents a Bigtable - * @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 Bigtable(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Encodes the specified Date message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Date.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {google.bigtable.admin.v2.Type.IDate} message Date message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Date.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - (Bigtable.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Bigtable; + /** + * Decodes a Date message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Date} Date + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Date.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Date(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates new Bigtable service using the specified rpc implementation. - * @function create - * @memberof google.bigtable.v2.Bigtable - * @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 {Bigtable} RPC service. Useful where requests and/or responses are streamed. - */ - Bigtable.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * Decodes a Date message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Date} Date + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Date.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. - * @memberof google.bigtable.v2.Bigtable - * @typedef ReadRowsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.ReadRowsResponse} [response] ReadRowsResponse - */ + /** + * Verifies a Date message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Date.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Calls ReadRows. - * @function readRows - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IReadRowsRequest} request ReadRowsRequest message or plain object - * @param {google.bigtable.v2.Bigtable.ReadRowsCallback} callback Node-style callback called with the error, if any, and ReadRowsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.readRows = function readRows(request, callback) { - return this.rpcCall(readRows, $root.google.bigtable.v2.ReadRowsRequest, $root.google.bigtable.v2.ReadRowsResponse, request, callback); - }, "name", { value: "ReadRows" }); + /** + * Creates a Date message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Date} Date + */ + Date.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Date) + return object; + return new $root.google.bigtable.admin.v2.Type.Date(); + }; - /** - * Calls ReadRows. - * @function readRows - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IReadRowsRequest} request ReadRowsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a Date message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {google.bigtable.admin.v2.Type.Date} message Date + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Date.toObject = function toObject() { + return {}; + }; - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. - * @memberof google.bigtable.v2.Bigtable - * @typedef SampleRowKeysCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.SampleRowKeysResponse} [response] SampleRowKeysResponse - */ + /** + * Converts this Date to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Date + * @instance + * @returns {Object.} JSON object + */ + Date.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls SampleRowKeys. - * @function sampleRowKeys - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.ISampleRowKeysRequest} request SampleRowKeysRequest message or plain object - * @param {google.bigtable.v2.Bigtable.SampleRowKeysCallback} callback Node-style callback called with the error, if any, and SampleRowKeysResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.sampleRowKeys = function sampleRowKeys(request, callback) { - return this.rpcCall(sampleRowKeys, $root.google.bigtable.v2.SampleRowKeysRequest, $root.google.bigtable.v2.SampleRowKeysResponse, request, callback); - }, "name", { value: "SampleRowKeys" }); + /** + * Gets the default type url for Date + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Date + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Date.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Date"; + }; - /** - * Calls SampleRowKeys. - * @function sampleRowKeys - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.ISampleRowKeysRequest} request SampleRowKeysRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return Date; + })(); - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. - * @memberof google.bigtable.v2.Bigtable - * @typedef MutateRowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.MutateRowResponse} [response] MutateRowResponse - */ + Type.Struct = (function() { - /** - * Calls MutateRow. - * @function mutateRow - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IMutateRowRequest} request MutateRowRequest message or plain object - * @param {google.bigtable.v2.Bigtable.MutateRowCallback} callback Node-style callback called with the error, if any, and MutateRowResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.mutateRow = function mutateRow(request, callback) { - return this.rpcCall(mutateRow, $root.google.bigtable.v2.MutateRowRequest, $root.google.bigtable.v2.MutateRowResponse, request, callback); - }, "name", { value: "MutateRow" }); + /** + * Properties of a Struct. + * @memberof google.bigtable.admin.v2.Type + * @interface IStruct + * @property {Array.|null} [fields] Struct fields + * @property {google.bigtable.admin.v2.Type.Struct.IEncoding|null} [encoding] Struct encoding + */ - /** - * Calls MutateRow. - * @function mutateRow - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IMutateRowRequest} request MutateRowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new Struct. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents a Struct. + * @implements IStruct + * @constructor + * @param {google.bigtable.admin.v2.Type.IStruct=} [properties] Properties to set + */ + function Struct(properties) { + this.fields = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. - * @memberof google.bigtable.v2.Bigtable - * @typedef MutateRowsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.MutateRowsResponse} [response] MutateRowsResponse - */ - - /** - * Calls MutateRows. - * @function mutateRows - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IMutateRowsRequest} request MutateRowsRequest message or plain object - * @param {google.bigtable.v2.Bigtable.MutateRowsCallback} callback Node-style callback called with the error, if any, and MutateRowsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.mutateRows = function mutateRows(request, callback) { - return this.rpcCall(mutateRows, $root.google.bigtable.v2.MutateRowsRequest, $root.google.bigtable.v2.MutateRowsResponse, request, callback); - }, "name", { value: "MutateRows" }); - - /** - * Calls MutateRows. - * @function mutateRows - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IMutateRowsRequest} request MutateRowsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Struct fields. + * @member {Array.} fields + * @memberof google.bigtable.admin.v2.Type.Struct + * @instance + */ + Struct.prototype.fields = $util.emptyArray; - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. - * @memberof google.bigtable.v2.Bigtable - * @typedef CheckAndMutateRowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.CheckAndMutateRowResponse} [response] CheckAndMutateRowResponse - */ + /** + * Struct encoding. + * @member {google.bigtable.admin.v2.Type.Struct.IEncoding|null|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.Struct + * @instance + */ + Struct.prototype.encoding = null; - /** - * Calls CheckAndMutateRow. - * @function checkAndMutateRow - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.ICheckAndMutateRowRequest} request CheckAndMutateRowRequest message or plain object - * @param {google.bigtable.v2.Bigtable.CheckAndMutateRowCallback} callback Node-style callback called with the error, if any, and CheckAndMutateRowResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.checkAndMutateRow = function checkAndMutateRow(request, callback) { - return this.rpcCall(checkAndMutateRow, $root.google.bigtable.v2.CheckAndMutateRowRequest, $root.google.bigtable.v2.CheckAndMutateRowResponse, request, callback); - }, "name", { value: "CheckAndMutateRow" }); + /** + * Creates a new Struct instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {google.bigtable.admin.v2.Type.IStruct=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Struct} Struct instance + */ + Struct.create = function create(properties) { + return new Struct(properties); + }; - /** - * Calls CheckAndMutateRow. - * @function checkAndMutateRow - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.ICheckAndMutateRowRequest} request CheckAndMutateRowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified Struct message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {google.bigtable.admin.v2.Type.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.google.bigtable.admin.v2.Type.Struct.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + $root.google.bigtable.admin.v2.Type.Struct.Encoding.encode(message.encoding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. - * @memberof google.bigtable.v2.Bigtable - * @typedef PingAndWarmCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.PingAndWarmResponse} [response] PingAndWarmResponse - */ + /** + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {google.bigtable.admin.v2.Type.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls PingAndWarm. - * @function pingAndWarm - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IPingAndWarmRequest} request PingAndWarmRequest message or plain object - * @param {google.bigtable.v2.Bigtable.PingAndWarmCallback} callback Node-style callback called with the error, if any, and PingAndWarmResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.pingAndWarm = function pingAndWarm(request, callback) { - return this.rpcCall(pingAndWarm, $root.google.bigtable.v2.PingAndWarmRequest, $root.google.bigtable.v2.PingAndWarmResponse, request, callback); - }, "name", { value: "PingAndWarm" }); + /** + * Decodes a Struct message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct(); + 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.bigtable.admin.v2.Type.Struct.Field.decode(reader, reader.uint32())); + break; + } + case 2: { + message.encoding = $root.google.bigtable.admin.v2.Type.Struct.Encoding.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls PingAndWarm. - * @function pingAndWarm - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IPingAndWarmRequest} request PingAndWarmRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a Struct message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. - * @memberof google.bigtable.v2.Bigtable - * @typedef ReadModifyWriteRowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.ReadModifyWriteRowResponse} [response] ReadModifyWriteRowResponse - */ + /** + * Verifies a Struct message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Struct.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.google.bigtable.admin.v2.Type.Struct.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } + if (message.encoding != null && message.hasOwnProperty("encoding")) { + var error = $root.google.bigtable.admin.v2.Type.Struct.Encoding.verify(message.encoding); + if (error) + return "encoding." + error; + } + return null; + }; - /** - * Calls ReadModifyWriteRow. - * @function readModifyWriteRow - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IReadModifyWriteRowRequest} request ReadModifyWriteRowRequest message or plain object - * @param {google.bigtable.v2.Bigtable.ReadModifyWriteRowCallback} callback Node-style callback called with the error, if any, and ReadModifyWriteRowResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.readModifyWriteRow = function readModifyWriteRow(request, callback) { - return this.rpcCall(readModifyWriteRow, $root.google.bigtable.v2.ReadModifyWriteRowRequest, $root.google.bigtable.v2.ReadModifyWriteRowResponse, request, callback); - }, "name", { value: "ReadModifyWriteRow" }); + /** + * Creates a Struct message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Struct} Struct + */ + Struct.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Struct) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Struct(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".google.bigtable.admin.v2.Type.Struct.fields: array expected"); + message.fields = []; + for (var i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Struct.fields: object expected"); + message.fields[i] = $root.google.bigtable.admin.v2.Type.Struct.Field.fromObject(object.fields[i]); + } + } + if (object.encoding != null) { + if (typeof object.encoding !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Struct.encoding: object expected"); + message.encoding = $root.google.bigtable.admin.v2.Type.Struct.Encoding.fromObject(object.encoding); + } + return message; + }; - /** - * Calls ReadModifyWriteRow. - * @function readModifyWriteRow - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IReadModifyWriteRowRequest} request ReadModifyWriteRowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a Struct message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {google.bigtable.admin.v2.Type.Struct} message Struct + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Struct.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.fields = []; + if (options.defaults) + object.encoding = null; + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.google.bigtable.admin.v2.Type.Struct.Field.toObject(message.fields[j], options); + } + if (message.encoding != null && message.hasOwnProperty("encoding")) + object.encoding = $root.google.bigtable.admin.v2.Type.Struct.Encoding.toObject(message.encoding, options); + return object; + }; - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|generateInitialChangeStreamPartitions}. - * @memberof google.bigtable.v2.Bigtable - * @typedef GenerateInitialChangeStreamPartitionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} [response] GenerateInitialChangeStreamPartitionsResponse - */ + /** + * Converts this Struct to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Struct + * @instance + * @returns {Object.} JSON object + */ + Struct.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls GenerateInitialChangeStreamPartitions. - * @function generateInitialChangeStreamPartitions - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest} request GenerateInitialChangeStreamPartitionsRequest message or plain object - * @param {google.bigtable.v2.Bigtable.GenerateInitialChangeStreamPartitionsCallback} callback Node-style callback called with the error, if any, and GenerateInitialChangeStreamPartitionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.generateInitialChangeStreamPartitions = function generateInitialChangeStreamPartitions(request, callback) { - return this.rpcCall(generateInitialChangeStreamPartitions, $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest, $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse, request, callback); - }, "name", { value: "GenerateInitialChangeStreamPartitions" }); + /** + * Gets the default type url for Struct + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Struct + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct"; + }; - /** - * Calls GenerateInitialChangeStreamPartitions. - * @function generateInitialChangeStreamPartitions - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest} request GenerateInitialChangeStreamPartitionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + Struct.Field = (function() { - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readChangeStream}. - * @memberof google.bigtable.v2.Bigtable - * @typedef ReadChangeStreamCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.ReadChangeStreamResponse} [response] ReadChangeStreamResponse - */ + /** + * Properties of a Field. + * @memberof google.bigtable.admin.v2.Type.Struct + * @interface IField + * @property {string|null} [fieldName] Field fieldName + * @property {google.bigtable.admin.v2.IType|null} [type] Field type + */ - /** - * Calls ReadChangeStream. - * @function readChangeStream - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IReadChangeStreamRequest} request ReadChangeStreamRequest message or plain object - * @param {google.bigtable.v2.Bigtable.ReadChangeStreamCallback} callback Node-style callback called with the error, if any, and ReadChangeStreamResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.readChangeStream = function readChangeStream(request, callback) { - return this.rpcCall(readChangeStream, $root.google.bigtable.v2.ReadChangeStreamRequest, $root.google.bigtable.v2.ReadChangeStreamResponse, request, callback); - }, "name", { value: "ReadChangeStream" }); + /** + * Constructs a new Field. + * @memberof google.bigtable.admin.v2.Type.Struct + * @classdesc Represents a Field. + * @implements IField + * @constructor + * @param {google.bigtable.admin.v2.Type.Struct.IField=} [properties] Properties to set + */ + function Field(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls ReadChangeStream. - * @function readChangeStream - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IReadChangeStreamRequest} request ReadChangeStreamRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Field fieldName. + * @member {string} fieldName + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @instance + */ + Field.prototype.fieldName = ""; - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|prepareQuery}. - * @memberof google.bigtable.v2.Bigtable - * @typedef PrepareQueryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.PrepareQueryResponse} [response] PrepareQueryResponse - */ + /** + * Field type. + * @member {google.bigtable.admin.v2.IType|null|undefined} type + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @instance + */ + Field.prototype.type = null; - /** - * Calls PrepareQuery. - * @function prepareQuery - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IPrepareQueryRequest} request PrepareQueryRequest message or plain object - * @param {google.bigtable.v2.Bigtable.PrepareQueryCallback} callback Node-style callback called with the error, if any, and PrepareQueryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.prepareQuery = function prepareQuery(request, callback) { - return this.rpcCall(prepareQuery, $root.google.bigtable.v2.PrepareQueryRequest, $root.google.bigtable.v2.PrepareQueryResponse, request, callback); - }, "name", { value: "PrepareQuery" }); + /** + * Creates a new Field instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {google.bigtable.admin.v2.Type.Struct.IField=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Struct.Field} Field instance + */ + Field.create = function create(properties) { + return new Field(properties); + }; - /** - * Calls PrepareQuery. - * @function prepareQuery - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IPrepareQueryRequest} request PrepareQueryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified Field message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Field.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {google.bigtable.admin.v2.Type.Struct.IField} message Field message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Field.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + $root.google.bigtable.admin.v2.Type.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link google.bigtable.v2.Bigtable|executeQuery}. - * @memberof google.bigtable.v2.Bigtable - * @typedef ExecuteQueryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.bigtable.v2.ExecuteQueryResponse} [response] ExecuteQueryResponse - */ + /** + * Encodes the specified Field message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Field.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {google.bigtable.admin.v2.Type.Struct.IField} message Field message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Field.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls ExecuteQuery. - * @function executeQuery - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IExecuteQueryRequest} request ExecuteQueryRequest message or plain object - * @param {google.bigtable.v2.Bigtable.ExecuteQueryCallback} callback Node-style callback called with the error, if any, and ExecuteQueryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Bigtable.prototype.executeQuery = function executeQuery(request, callback) { - return this.rpcCall(executeQuery, $root.google.bigtable.v2.ExecuteQueryRequest, $root.google.bigtable.v2.ExecuteQueryResponse, request, callback); - }, "name", { value: "ExecuteQuery" }); - - /** - * Calls ExecuteQuery. - * @function executeQuery - * @memberof google.bigtable.v2.Bigtable - * @instance - * @param {google.bigtable.v2.IExecuteQueryRequest} request ExecuteQueryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a Field message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Struct.Field} Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Field.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Field(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.fieldName = reader.string(); + break; + } + case 2: { + message.type = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return Bigtable; - })(); + /** + * Decodes a Field message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Struct.Field} Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Field.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - v2.ReadRowsRequest = (function() { + /** + * Verifies a Field message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Field.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.google.bigtable.admin.v2.Type.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; - /** - * Properties of a ReadRowsRequest. - * @memberof google.bigtable.v2 - * @interface IReadRowsRequest - * @property {string|null} [tableName] ReadRowsRequest tableName - * @property {string|null} [authorizedViewName] ReadRowsRequest authorizedViewName - * @property {string|null} [materializedViewName] ReadRowsRequest materializedViewName - * @property {string|null} [appProfileId] ReadRowsRequest appProfileId - * @property {google.bigtable.v2.IRowSet|null} [rows] ReadRowsRequest rows - * @property {google.bigtable.v2.IRowFilter|null} [filter] ReadRowsRequest filter - * @property {number|Long|null} [rowsLimit] ReadRowsRequest rowsLimit - * @property {google.bigtable.v2.ReadRowsRequest.RequestStatsView|null} [requestStatsView] ReadRowsRequest requestStatsView - * @property {boolean|null} [reversed] ReadRowsRequest reversed - */ + /** + * Creates a Field message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Struct.Field} Field + */ + Field.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Field) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Struct.Field(); + if (object.fieldName != null) + message.fieldName = String(object.fieldName); + if (object.type != null) { + if (typeof object.type !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Struct.Field.type: object expected"); + message.type = $root.google.bigtable.admin.v2.Type.fromObject(object.type); + } + return message; + }; - /** - * Constructs a new ReadRowsRequest. - * @memberof google.bigtable.v2 - * @classdesc Represents a ReadRowsRequest. - * @implements IReadRowsRequest - * @constructor - * @param {google.bigtable.v2.IReadRowsRequest=} [properties] Properties to set - */ - function ReadRowsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Field} message Field + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Field.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fieldName = ""; + object.type = null; + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = $root.google.bigtable.admin.v2.Type.toObject(message.type, options); + return object; + }; - /** - * ReadRowsRequest tableName. - * @member {string} tableName - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.tableName = ""; + /** + * Converts this Field to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @instance + * @returns {Object.} JSON object + */ + Field.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ReadRowsRequest authorizedViewName. - * @member {string} authorizedViewName - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.authorizedViewName = ""; + /** + * Gets the default type url for Field + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Struct.Field + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Field.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Field"; + }; - /** - * ReadRowsRequest materializedViewName. - * @member {string} materializedViewName - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.materializedViewName = ""; + return Field; + })(); - /** - * ReadRowsRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.appProfileId = ""; + Struct.Encoding = (function() { - /** - * ReadRowsRequest rows. - * @member {google.bigtable.v2.IRowSet|null|undefined} rows - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.rows = null; + /** + * Properties of an Encoding. + * @memberof google.bigtable.admin.v2.Type.Struct + * @interface IEncoding + * @property {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton|null} [singleton] Encoding singleton + * @property {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes|null} [delimitedBytes] Encoding delimitedBytes + * @property {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes|null} [orderedCodeBytes] Encoding orderedCodeBytes + */ - /** - * ReadRowsRequest filter. - * @member {google.bigtable.v2.IRowFilter|null|undefined} filter - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.filter = null; + /** + * Constructs a new Encoding. + * @memberof google.bigtable.admin.v2.Type.Struct + * @classdesc Represents an Encoding. + * @implements IEncoding + * @constructor + * @param {google.bigtable.admin.v2.Type.Struct.IEncoding=} [properties] Properties to set + */ + function Encoding(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ReadRowsRequest rowsLimit. - * @member {number|Long} rowsLimit - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.rowsLimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Encoding singleton. + * @member {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton|null|undefined} singleton + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @instance + */ + Encoding.prototype.singleton = null; - /** - * ReadRowsRequest requestStatsView. - * @member {google.bigtable.v2.ReadRowsRequest.RequestStatsView} requestStatsView - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.requestStatsView = 0; + /** + * Encoding delimitedBytes. + * @member {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes|null|undefined} delimitedBytes + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @instance + */ + Encoding.prototype.delimitedBytes = null; - /** - * ReadRowsRequest reversed. - * @member {boolean} reversed - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - */ - ReadRowsRequest.prototype.reversed = false; + /** + * Encoding orderedCodeBytes. + * @member {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes|null|undefined} orderedCodeBytes + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @instance + */ + Encoding.prototype.orderedCodeBytes = null; - /** - * Creates a new ReadRowsRequest instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {google.bigtable.v2.IReadRowsRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadRowsRequest} ReadRowsRequest instance - */ - ReadRowsRequest.create = function create(properties) { - return new ReadRowsRequest(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified ReadRowsRequest message. Does not implicitly {@link google.bigtable.v2.ReadRowsRequest.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {google.bigtable.v2.IReadRowsRequest} message ReadRowsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadRowsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); - if (message.rows != null && Object.hasOwnProperty.call(message, "rows")) - $root.google.bigtable.v2.RowSet.encode(message.rows, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - $root.google.bigtable.v2.RowFilter.encode(message.filter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.rowsLimit != null && Object.hasOwnProperty.call(message, "rowsLimit")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.rowsLimit); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.appProfileId); - if (message.requestStatsView != null && Object.hasOwnProperty.call(message, "requestStatsView")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.requestStatsView); - if (message.reversed != null && Object.hasOwnProperty.call(message, "reversed")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.reversed); - if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.authorizedViewName); - if (message.materializedViewName != null && Object.hasOwnProperty.call(message, "materializedViewName")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.materializedViewName); - return writer; - }; + /** + * Encoding encoding. + * @member {"singleton"|"delimitedBytes"|"orderedCodeBytes"|undefined} encoding + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @instance + */ + Object.defineProperty(Encoding.prototype, "encoding", { + get: $util.oneOfGetter($oneOfFields = ["singleton", "delimitedBytes", "orderedCodeBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified ReadRowsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {google.bigtable.v2.IReadRowsRequest} message ReadRowsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new Encoding instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {google.bigtable.admin.v2.Type.Struct.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding} Encoding instance + */ + Encoding.create = function create(properties) { + return new Encoding(properties); + }; - /** - * Decodes a ReadRowsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadRowsRequest} ReadRowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadRowsRequest.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadRowsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.tableName = reader.string(); - break; - } - case 9: { - message.authorizedViewName = reader.string(); - break; - } - case 11: { - message.materializedViewName = reader.string(); - break; - } - case 5: { - message.appProfileId = reader.string(); - break; - } - case 2: { - message.rows = $root.google.bigtable.v2.RowSet.decode(reader, reader.uint32()); - break; - } - case 3: { - message.filter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); - break; - } - case 4: { - message.rowsLimit = reader.int64(); - break; - } - case 6: { - message.requestStatsView = reader.int32(); - break; - } - case 7: { - message.reversed = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {google.bigtable.admin.v2.Type.Struct.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.singleton != null && Object.hasOwnProperty.call(message, "singleton")) + $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.encode(message.singleton, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.delimitedBytes != null && Object.hasOwnProperty.call(message, "delimitedBytes")) + $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.encode(message.delimitedBytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.orderedCodeBytes != null && Object.hasOwnProperty.call(message, "orderedCodeBytes")) + $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.encode(message.orderedCodeBytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Decodes a ReadRowsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadRowsRequest} ReadRowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadRowsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {google.bigtable.admin.v2.Type.Struct.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a ReadRowsRequest message. - * @function verify - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReadRowsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tableName != null && message.hasOwnProperty("tableName")) - if (!$util.isString(message.tableName)) - return "tableName: string expected"; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - if (!$util.isString(message.authorizedViewName)) - return "authorizedViewName: string expected"; - if (message.materializedViewName != null && message.hasOwnProperty("materializedViewName")) - if (!$util.isString(message.materializedViewName)) - return "materializedViewName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; - if (message.rows != null && message.hasOwnProperty("rows")) { - var error = $root.google.bigtable.v2.RowSet.verify(message.rows); - if (error) - return "rows." + error; - } - if (message.filter != null && message.hasOwnProperty("filter")) { - var error = $root.google.bigtable.v2.RowFilter.verify(message.filter); - if (error) - return "filter." + error; - } - if (message.rowsLimit != null && message.hasOwnProperty("rowsLimit")) - if (!$util.isInteger(message.rowsLimit) && !(message.rowsLimit && $util.isInteger(message.rowsLimit.low) && $util.isInteger(message.rowsLimit.high))) - return "rowsLimit: integer|Long expected"; - if (message.requestStatsView != null && message.hasOwnProperty("requestStatsView")) - switch (message.requestStatsView) { - default: - return "requestStatsView: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.reversed != null && message.hasOwnProperty("reversed")) - if (typeof message.reversed !== "boolean") - return "reversed: boolean expected"; - return null; - }; + /** + * Decodes an Encoding message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.singleton = $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.decode(reader, reader.uint32()); + break; + } + case 2: { + message.delimitedBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.decode(reader, reader.uint32()); + break; + } + case 3: { + message.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a ReadRowsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadRowsRequest} ReadRowsRequest - */ - ReadRowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadRowsRequest) - return object; - var message = new $root.google.bigtable.v2.ReadRowsRequest(); - if (object.tableName != null) - message.tableName = String(object.tableName); - if (object.authorizedViewName != null) - message.authorizedViewName = String(object.authorizedViewName); - if (object.materializedViewName != null) - message.materializedViewName = String(object.materializedViewName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - if (object.rows != null) { - if (typeof object.rows !== "object") - throw TypeError(".google.bigtable.v2.ReadRowsRequest.rows: object expected"); - message.rows = $root.google.bigtable.v2.RowSet.fromObject(object.rows); - } - if (object.filter != null) { - if (typeof object.filter !== "object") - throw TypeError(".google.bigtable.v2.ReadRowsRequest.filter: object expected"); - message.filter = $root.google.bigtable.v2.RowFilter.fromObject(object.filter); - } - if (object.rowsLimit != null) - if ($util.Long) - (message.rowsLimit = $util.Long.fromValue(object.rowsLimit)).unsigned = false; - else if (typeof object.rowsLimit === "string") - message.rowsLimit = parseInt(object.rowsLimit, 10); - else if (typeof object.rowsLimit === "number") - message.rowsLimit = object.rowsLimit; - else if (typeof object.rowsLimit === "object") - message.rowsLimit = new $util.LongBits(object.rowsLimit.low >>> 0, object.rowsLimit.high >>> 0).toNumber(); - switch (object.requestStatsView) { - default: - if (typeof object.requestStatsView === "number") { - message.requestStatsView = object.requestStatsView; - break; - } - break; - case "REQUEST_STATS_VIEW_UNSPECIFIED": - case 0: - message.requestStatsView = 0; - break; - case "REQUEST_STATS_NONE": - case 1: - message.requestStatsView = 1; - break; - case "REQUEST_STATS_FULL": - case 2: - message.requestStatsView = 2; - break; - } - if (object.reversed != null) - message.reversed = Boolean(object.reversed); - return message; - }; + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a ReadRowsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {google.bigtable.v2.ReadRowsRequest} message ReadRowsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReadRowsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tableName = ""; - object.rows = null; - object.filter = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.rowsLimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.rowsLimit = options.longs === String ? "0" : 0; - object.appProfileId = ""; - object.requestStatsView = options.enums === String ? "REQUEST_STATS_VIEW_UNSPECIFIED" : 0; - object.reversed = false; - object.authorizedViewName = ""; - object.materializedViewName = ""; - } - if (message.tableName != null && message.hasOwnProperty("tableName")) - object.tableName = message.tableName; - if (message.rows != null && message.hasOwnProperty("rows")) - object.rows = $root.google.bigtable.v2.RowSet.toObject(message.rows, options); - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = $root.google.bigtable.v2.RowFilter.toObject(message.filter, options); - if (message.rowsLimit != null && message.hasOwnProperty("rowsLimit")) - if (typeof message.rowsLimit === "number") - object.rowsLimit = options.longs === String ? String(message.rowsLimit) : message.rowsLimit; - else - object.rowsLimit = options.longs === String ? $util.Long.prototype.toString.call(message.rowsLimit) : options.longs === Number ? new $util.LongBits(message.rowsLimit.low >>> 0, message.rowsLimit.high >>> 0).toNumber() : message.rowsLimit; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - if (message.requestStatsView != null && message.hasOwnProperty("requestStatsView")) - object.requestStatsView = options.enums === String ? $root.google.bigtable.v2.ReadRowsRequest.RequestStatsView[message.requestStatsView] === undefined ? message.requestStatsView : $root.google.bigtable.v2.ReadRowsRequest.RequestStatsView[message.requestStatsView] : message.requestStatsView; - if (message.reversed != null && message.hasOwnProperty("reversed")) - object.reversed = message.reversed; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - object.authorizedViewName = message.authorizedViewName; - if (message.materializedViewName != null && message.hasOwnProperty("materializedViewName")) - object.materializedViewName = message.materializedViewName; - return object; - }; + /** + * Verifies an Encoding message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Encoding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.singleton != null && message.hasOwnProperty("singleton")) { + properties.encoding = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify(message.singleton); + if (error) + return "singleton." + error; + } + } + if (message.delimitedBytes != null && message.hasOwnProperty("delimitedBytes")) { + if (properties.encoding === 1) + return "encoding: multiple values"; + properties.encoding = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify(message.delimitedBytes); + if (error) + return "delimitedBytes." + error; + } + } + if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { + if (properties.encoding === 1) + return "encoding: multiple values"; + properties.encoding = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify(message.orderedCodeBytes); + if (error) + return "orderedCodeBytes." + error; + } + } + return null; + }; - /** - * Converts this ReadRowsRequest to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadRowsRequest - * @instance - * @returns {Object.} JSON object - */ - ReadRowsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding} Encoding + */ + Encoding.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Encoding) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding(); + if (object.singleton != null) { + if (typeof object.singleton !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Struct.Encoding.singleton: object expected"); + message.singleton = $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.fromObject(object.singleton); + } + if (object.delimitedBytes != null) { + if (typeof object.delimitedBytes !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Struct.Encoding.delimitedBytes: object expected"); + message.delimitedBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.fromObject(object.delimitedBytes); + } + if (object.orderedCodeBytes != null) { + if (typeof object.orderedCodeBytes !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Struct.Encoding.orderedCodeBytes: object expected"); + message.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.fromObject(object.orderedCodeBytes); + } + return message; + }; - /** - * Gets the default type url for ReadRowsRequest - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadRowsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ReadRowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ReadRowsRequest"; - }; + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding} message Encoding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Encoding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.singleton != null && message.hasOwnProperty("singleton")) { + object.singleton = $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.toObject(message.singleton, options); + if (options.oneofs) + object.encoding = "singleton"; + } + if (message.delimitedBytes != null && message.hasOwnProperty("delimitedBytes")) { + object.delimitedBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.toObject(message.delimitedBytes, options); + if (options.oneofs) + object.encoding = "delimitedBytes"; + } + if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { + object.orderedCodeBytes = $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.toObject(message.orderedCodeBytes, options); + if (options.oneofs) + object.encoding = "orderedCodeBytes"; + } + return object; + }; - /** - * RequestStatsView enum. - * @name google.bigtable.v2.ReadRowsRequest.RequestStatsView - * @enum {number} - * @property {number} REQUEST_STATS_VIEW_UNSPECIFIED=0 REQUEST_STATS_VIEW_UNSPECIFIED value - * @property {number} REQUEST_STATS_NONE=1 REQUEST_STATS_NONE value - * @property {number} REQUEST_STATS_FULL=2 REQUEST_STATS_FULL value - */ - ReadRowsRequest.RequestStatsView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REQUEST_STATS_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "REQUEST_STATS_NONE"] = 1; - values[valuesById[2] = "REQUEST_STATS_FULL"] = 2; - return values; - })(); + /** + * Converts this Encoding to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @instance + * @returns {Object.} JSON object + */ + Encoding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ReadRowsRequest; - })(); + /** + * Gets the default type url for Encoding + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Encoding"; + }; - v2.ReadRowsResponse = (function() { + Encoding.Singleton = (function() { - /** - * Properties of a ReadRowsResponse. - * @memberof google.bigtable.v2 - * @interface IReadRowsResponse - * @property {Array.|null} [chunks] ReadRowsResponse chunks - * @property {Uint8Array|null} [lastScannedRowKey] ReadRowsResponse lastScannedRowKey - * @property {google.bigtable.v2.IRequestStats|null} [requestStats] ReadRowsResponse requestStats - */ + /** + * Properties of a Singleton. + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @interface ISingleton + */ - /** - * Constructs a new ReadRowsResponse. - * @memberof google.bigtable.v2 - * @classdesc Represents a ReadRowsResponse. - * @implements IReadRowsResponse - * @constructor - * @param {google.bigtable.v2.IReadRowsResponse=} [properties] Properties to set - */ - function ReadRowsResponse(properties) { - this.chunks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Singleton. + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @classdesc Represents a Singleton. + * @implements ISingleton + * @constructor + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton=} [properties] Properties to set + */ + function Singleton(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ReadRowsResponse chunks. - * @member {Array.} chunks - * @memberof google.bigtable.v2.ReadRowsResponse - * @instance - */ - ReadRowsResponse.prototype.chunks = $util.emptyArray; + /** + * Creates a new Singleton instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} Singleton instance + */ + Singleton.create = function create(properties) { + return new Singleton(properties); + }; - /** - * ReadRowsResponse lastScannedRowKey. - * @member {Uint8Array} lastScannedRowKey - * @memberof google.bigtable.v2.ReadRowsResponse - * @instance - */ - ReadRowsResponse.prototype.lastScannedRowKey = $util.newBuffer([]); + /** + * Encodes the specified Singleton message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton} message Singleton message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Singleton.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * ReadRowsResponse requestStats. - * @member {google.bigtable.v2.IRequestStats|null|undefined} requestStats - * @memberof google.bigtable.v2.ReadRowsResponse - * @instance - */ - ReadRowsResponse.prototype.requestStats = null; + /** + * Encodes the specified Singleton message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.ISingleton} message Singleton message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Singleton.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new ReadRowsResponse instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {google.bigtable.v2.IReadRowsResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadRowsResponse} ReadRowsResponse instance - */ - ReadRowsResponse.create = function create(properties) { - return new ReadRowsResponse(properties); - }; + /** + * Decodes a Singleton message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} Singleton + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Singleton.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified ReadRowsResponse message. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {google.bigtable.v2.IReadRowsResponse} message ReadRowsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadRowsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.chunks != null && message.chunks.length) - for (var i = 0; i < message.chunks.length; ++i) - $root.google.bigtable.v2.ReadRowsResponse.CellChunk.encode(message.chunks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.lastScannedRowKey != null && Object.hasOwnProperty.call(message, "lastScannedRowKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.lastScannedRowKey); - if (message.requestStats != null && Object.hasOwnProperty.call(message, "requestStats")) - $root.google.bigtable.v2.RequestStats.encode(message.requestStats, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ReadRowsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {google.bigtable.v2.IReadRowsResponse} message ReadRowsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Singleton message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} Singleton + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Singleton.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a ReadRowsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadRowsResponse} ReadRowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadRowsResponse.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadRowsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - if (!(message.chunks && message.chunks.length)) - message.chunks = []; - message.chunks.push($root.google.bigtable.v2.ReadRowsResponse.CellChunk.decode(reader, reader.uint32())); - break; - } - case 2: { - message.lastScannedRowKey = reader.bytes(); - break; - } - case 3: { - message.requestStats = $root.google.bigtable.v2.RequestStats.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a Singleton message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Singleton.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Decodes a ReadRowsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadRowsResponse} ReadRowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadRowsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a Singleton message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} Singleton + */ + Singleton.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton) + return object; + return new $root.google.bigtable.admin.v2.Type.Struct.Encoding.Singleton(); + }; - /** - * Verifies a ReadRowsResponse message. - * @function verify - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReadRowsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.chunks != null && message.hasOwnProperty("chunks")) { - if (!Array.isArray(message.chunks)) - return "chunks: array expected"; - for (var i = 0; i < message.chunks.length; ++i) { - var error = $root.google.bigtable.v2.ReadRowsResponse.CellChunk.verify(message.chunks[i]); - if (error) - return "chunks." + error; - } - } - if (message.lastScannedRowKey != null && message.hasOwnProperty("lastScannedRowKey")) - if (!(message.lastScannedRowKey && typeof message.lastScannedRowKey.length === "number" || $util.isString(message.lastScannedRowKey))) - return "lastScannedRowKey: buffer expected"; - if (message.requestStats != null && message.hasOwnProperty("requestStats")) { - var error = $root.google.bigtable.v2.RequestStats.verify(message.requestStats); - if (error) - return "requestStats." + error; - } - return null; - }; + /** + * Creates a plain object from a Singleton message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.Singleton} message Singleton + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Singleton.toObject = function toObject() { + return {}; + }; - /** - * Creates a ReadRowsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadRowsResponse} ReadRowsResponse - */ - ReadRowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadRowsResponse) - return object; - var message = new $root.google.bigtable.v2.ReadRowsResponse(); - if (object.chunks) { - if (!Array.isArray(object.chunks)) - throw TypeError(".google.bigtable.v2.ReadRowsResponse.chunks: array expected"); - message.chunks = []; - for (var i = 0; i < object.chunks.length; ++i) { - if (typeof object.chunks[i] !== "object") - throw TypeError(".google.bigtable.v2.ReadRowsResponse.chunks: object expected"); - message.chunks[i] = $root.google.bigtable.v2.ReadRowsResponse.CellChunk.fromObject(object.chunks[i]); - } - } - if (object.lastScannedRowKey != null) - if (typeof object.lastScannedRowKey === "string") - $util.base64.decode(object.lastScannedRowKey, message.lastScannedRowKey = $util.newBuffer($util.base64.length(object.lastScannedRowKey)), 0); - else if (object.lastScannedRowKey.length >= 0) - message.lastScannedRowKey = object.lastScannedRowKey; - if (object.requestStats != null) { - if (typeof object.requestStats !== "object") - throw TypeError(".google.bigtable.v2.ReadRowsResponse.requestStats: object expected"); - message.requestStats = $root.google.bigtable.v2.RequestStats.fromObject(object.requestStats); - } - return message; - }; + /** + * Converts this Singleton to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @instance + * @returns {Object.} JSON object + */ + Singleton.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a ReadRowsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {google.bigtable.v2.ReadRowsResponse} message ReadRowsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReadRowsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.chunks = []; - if (options.defaults) { - if (options.bytes === String) - object.lastScannedRowKey = ""; - else { - object.lastScannedRowKey = []; - if (options.bytes !== Array) - object.lastScannedRowKey = $util.newBuffer(object.lastScannedRowKey); - } - object.requestStats = null; - } - if (message.chunks && message.chunks.length) { - object.chunks = []; - for (var j = 0; j < message.chunks.length; ++j) - object.chunks[j] = $root.google.bigtable.v2.ReadRowsResponse.CellChunk.toObject(message.chunks[j], options); - } - if (message.lastScannedRowKey != null && message.hasOwnProperty("lastScannedRowKey")) - object.lastScannedRowKey = options.bytes === String ? $util.base64.encode(message.lastScannedRowKey, 0, message.lastScannedRowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastScannedRowKey) : message.lastScannedRowKey; - if (message.requestStats != null && message.hasOwnProperty("requestStats")) - object.requestStats = $root.google.bigtable.v2.RequestStats.toObject(message.requestStats, options); - return object; - }; + /** + * Gets the default type url for Singleton + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Singleton.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Encoding.Singleton"; + }; - /** - * Converts this ReadRowsResponse to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadRowsResponse - * @instance - * @returns {Object.} JSON object - */ - ReadRowsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Singleton; + })(); - /** - * Gets the default type url for ReadRowsResponse - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadRowsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ReadRowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ReadRowsResponse"; - }; + Encoding.DelimitedBytes = (function() { - ReadRowsResponse.CellChunk = (function() { + /** + * Properties of a DelimitedBytes. + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @interface IDelimitedBytes + * @property {Uint8Array|null} [delimiter] DelimitedBytes delimiter + */ - /** - * Properties of a CellChunk. - * @memberof google.bigtable.v2.ReadRowsResponse - * @interface ICellChunk - * @property {Uint8Array|null} [rowKey] CellChunk rowKey - * @property {google.protobuf.IStringValue|null} [familyName] CellChunk familyName - * @property {google.protobuf.IBytesValue|null} [qualifier] CellChunk qualifier - * @property {number|Long|null} [timestampMicros] CellChunk timestampMicros - * @property {Array.|null} [labels] CellChunk labels - * @property {Uint8Array|null} [value] CellChunk value - * @property {number|null} [valueSize] CellChunk valueSize - * @property {boolean|null} [resetRow] CellChunk resetRow - * @property {boolean|null} [commitRow] CellChunk commitRow - */ + /** + * Constructs a new DelimitedBytes. + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @classdesc Represents a DelimitedBytes. + * @implements IDelimitedBytes + * @constructor + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes=} [properties] Properties to set + */ + function DelimitedBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new CellChunk. - * @memberof google.bigtable.v2.ReadRowsResponse - * @classdesc Represents a CellChunk. - * @implements ICellChunk - * @constructor - * @param {google.bigtable.v2.ReadRowsResponse.ICellChunk=} [properties] Properties to set - */ - function CellChunk(properties) { - this.labels = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * DelimitedBytes delimiter. + * @member {Uint8Array} delimiter + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @instance + */ + DelimitedBytes.prototype.delimiter = $util.newBuffer([]); - /** - * CellChunk rowKey. - * @member {Uint8Array} rowKey - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.rowKey = $util.newBuffer([]); + /** + * Creates a new DelimitedBytes instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes instance + */ + DelimitedBytes.create = function create(properties) { + return new DelimitedBytes(properties); + }; - /** - * CellChunk familyName. - * @member {google.protobuf.IStringValue|null|undefined} familyName - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.familyName = null; + /** + * Encodes the specified DelimitedBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes} message DelimitedBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DelimitedBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.delimiter != null && Object.hasOwnProperty.call(message, "delimiter")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.delimiter); + return writer; + }; - /** - * CellChunk qualifier. - * @member {google.protobuf.IBytesValue|null|undefined} qualifier - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.qualifier = null; + /** + * Encodes the specified DelimitedBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IDelimitedBytes} message DelimitedBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DelimitedBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * CellChunk timestampMicros. - * @member {number|Long} timestampMicros - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.timestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Decodes a DelimitedBytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DelimitedBytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.delimiter = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * CellChunk labels. - * @member {Array.} labels - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.labels = $util.emptyArray; + /** + * Decodes a DelimitedBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DelimitedBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * CellChunk value. - * @member {Uint8Array} value - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.value = $util.newBuffer([]); + /** + * Verifies a DelimitedBytes message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DelimitedBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.delimiter != null && message.hasOwnProperty("delimiter")) + if (!(message.delimiter && typeof message.delimiter.length === "number" || $util.isString(message.delimiter))) + return "delimiter: buffer expected"; + return null; + }; - /** - * CellChunk valueSize. - * @member {number} valueSize - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.valueSize = 0; + /** + * Creates a DelimitedBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes + */ + DelimitedBytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes(); + if (object.delimiter != null) + if (typeof object.delimiter === "string") + $util.base64.decode(object.delimiter, message.delimiter = $util.newBuffer($util.base64.length(object.delimiter)), 0); + else if (object.delimiter.length >= 0) + message.delimiter = object.delimiter; + return message; + }; - /** - * CellChunk resetRow. - * @member {boolean|null|undefined} resetRow - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.resetRow = null; - - /** - * CellChunk commitRow. - * @member {boolean|null|undefined} commitRow - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - CellChunk.prototype.commitRow = null; + /** + * Creates a plain object from a DelimitedBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes} message DelimitedBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DelimitedBytes.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.delimiter = ""; + else { + object.delimiter = []; + if (options.bytes !== Array) + object.delimiter = $util.newBuffer(object.delimiter); + } + if (message.delimiter != null && message.hasOwnProperty("delimiter")) + object.delimiter = options.bytes === String ? $util.base64.encode(message.delimiter, 0, message.delimiter.length) : options.bytes === Array ? Array.prototype.slice.call(message.delimiter) : message.delimiter; + return object; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Converts this DelimitedBytes to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @instance + * @returns {Object.} JSON object + */ + DelimitedBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * CellChunk rowStatus. - * @member {"resetRow"|"commitRow"|undefined} rowStatus - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - */ - Object.defineProperty(CellChunk.prototype, "rowStatus", { - get: $util.oneOfGetter($oneOfFields = ["resetRow", "commitRow"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Gets the default type url for DelimitedBytes + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DelimitedBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes"; + }; - /** - * Creates a new CellChunk instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {google.bigtable.v2.ReadRowsResponse.ICellChunk=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadRowsResponse.CellChunk} CellChunk instance - */ - CellChunk.create = function create(properties) { - return new CellChunk(properties); - }; + return DelimitedBytes; + })(); - /** - * Encodes the specified CellChunk message. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.CellChunk.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {google.bigtable.v2.ReadRowsResponse.ICellChunk} message CellChunk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CellChunk.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowKey); - if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) - $root.google.protobuf.StringValue.encode(message.familyName, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.qualifier != null && Object.hasOwnProperty.call(message, "qualifier")) - $root.google.protobuf.BytesValue.encode(message.qualifier, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.timestampMicros != null && Object.hasOwnProperty.call(message, "timestampMicros")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.timestampMicros); - if (message.labels != null && message.labels.length) - for (var i = 0; i < message.labels.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.labels[i]); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.value); - if (message.valueSize != null && Object.hasOwnProperty.call(message, "valueSize")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.valueSize); - if (message.resetRow != null && Object.hasOwnProperty.call(message, "resetRow")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.resetRow); - if (message.commitRow != null && Object.hasOwnProperty.call(message, "commitRow")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.commitRow); - return writer; - }; + Encoding.OrderedCodeBytes = (function() { - /** - * Encodes the specified CellChunk message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.CellChunk.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {google.bigtable.v2.ReadRowsResponse.ICellChunk} message CellChunk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CellChunk.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of an OrderedCodeBytes. + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @interface IOrderedCodeBytes + */ - /** - * Decodes a CellChunk message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadRowsResponse.CellChunk} CellChunk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CellChunk.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadRowsResponse.CellChunk(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.rowKey = reader.bytes(); - break; - } - case 2: { - message.familyName = $root.google.protobuf.StringValue.decode(reader, reader.uint32()); - break; - } - case 3: { - message.qualifier = $root.google.protobuf.BytesValue.decode(reader, reader.uint32()); - break; - } - case 4: { - message.timestampMicros = reader.int64(); - break; - } - case 5: { - if (!(message.labels && message.labels.length)) - message.labels = []; - message.labels.push(reader.string()); - break; - } - case 6: { - message.value = reader.bytes(); - break; - } - case 7: { - message.valueSize = reader.int32(); - break; - } - case 8: { - message.resetRow = reader.bool(); - break; - } - case 9: { - message.commitRow = reader.bool(); - break; + /** + * Constructs a new OrderedCodeBytes. + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding + * @classdesc Represents an OrderedCodeBytes. + * @implements IOrderedCodeBytes + * @constructor + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes=} [properties] Properties to set + */ + function OrderedCodeBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - /** - * Decodes a CellChunk message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadRowsResponse.CellChunk} CellChunk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CellChunk.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new OrderedCodeBytes instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes instance + */ + OrderedCodeBytes.create = function create(properties) { + return new OrderedCodeBytes(properties); + }; - /** - * Verifies a CellChunk message. - * @function verify - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CellChunk.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) - return "rowKey: buffer expected"; - if (message.familyName != null && message.hasOwnProperty("familyName")) { - var error = $root.google.protobuf.StringValue.verify(message.familyName); - if (error) - return "familyName." + error; - } - if (message.qualifier != null && message.hasOwnProperty("qualifier")) { - var error = $root.google.protobuf.BytesValue.verify(message.qualifier); - if (error) - return "qualifier." + error; - } - if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) - if (!$util.isInteger(message.timestampMicros) && !(message.timestampMicros && $util.isInteger(message.timestampMicros.low) && $util.isInteger(message.timestampMicros.high))) - return "timestampMicros: integer|Long expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!Array.isArray(message.labels)) - return "labels: array expected"; - for (var i = 0; i < message.labels.length; ++i) - if (!$util.isString(message.labels[i])) - return "labels: string[] expected"; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.valueSize != null && message.hasOwnProperty("valueSize")) - if (!$util.isInteger(message.valueSize)) - return "valueSize: integer expected"; - if (message.resetRow != null && message.hasOwnProperty("resetRow")) { - properties.rowStatus = 1; - if (typeof message.resetRow !== "boolean") - return "resetRow: boolean expected"; - } - if (message.commitRow != null && message.hasOwnProperty("commitRow")) { - if (properties.rowStatus === 1) - return "rowStatus: multiple values"; - properties.rowStatus = 1; - if (typeof message.commitRow !== "boolean") - return "commitRow: boolean expected"; - } - return null; - }; + /** + * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrderedCodeBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Creates a CellChunk message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadRowsResponse.CellChunk} CellChunk - */ - CellChunk.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadRowsResponse.CellChunk) - return object; - var message = new $root.google.bigtable.v2.ReadRowsResponse.CellChunk(); - if (object.rowKey != null) - if (typeof object.rowKey === "string") - $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); - else if (object.rowKey.length >= 0) - message.rowKey = object.rowKey; - if (object.familyName != null) { - if (typeof object.familyName !== "object") - throw TypeError(".google.bigtable.v2.ReadRowsResponse.CellChunk.familyName: object expected"); - message.familyName = $root.google.protobuf.StringValue.fromObject(object.familyName); - } - if (object.qualifier != null) { - if (typeof object.qualifier !== "object") - throw TypeError(".google.bigtable.v2.ReadRowsResponse.CellChunk.qualifier: object expected"); - message.qualifier = $root.google.protobuf.BytesValue.fromObject(object.qualifier); - } - if (object.timestampMicros != null) - if ($util.Long) - (message.timestampMicros = $util.Long.fromValue(object.timestampMicros)).unsigned = false; - else if (typeof object.timestampMicros === "string") - message.timestampMicros = parseInt(object.timestampMicros, 10); - else if (typeof object.timestampMicros === "number") - message.timestampMicros = object.timestampMicros; - else if (typeof object.timestampMicros === "object") - message.timestampMicros = new $util.LongBits(object.timestampMicros.low >>> 0, object.timestampMicros.high >>> 0).toNumber(); - if (object.labels) { - if (!Array.isArray(object.labels)) - throw TypeError(".google.bigtable.v2.ReadRowsResponse.CellChunk.labels: array expected"); - message.labels = []; - for (var i = 0; i < object.labels.length; ++i) - message.labels[i] = String(object.labels[i]); - } - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; - if (object.valueSize != null) - message.valueSize = object.valueSize | 0; - if (object.resetRow != null) - message.resetRow = Boolean(object.resetRow); - if (object.commitRow != null) - message.commitRow = Boolean(object.commitRow); - return message; - }; + /** + * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrderedCodeBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a CellChunk message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {google.bigtable.v2.ReadRowsResponse.CellChunk} message CellChunk - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CellChunk.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.labels = []; - if (options.defaults) { - if (options.bytes === String) - object.rowKey = ""; - else { - object.rowKey = []; - if (options.bytes !== Array) - object.rowKey = $util.newBuffer(object.rowKey); - } - object.familyName = null; - object.qualifier = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestampMicros = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - object.valueSize = 0; - } - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; - if (message.familyName != null && message.hasOwnProperty("familyName")) - object.familyName = $root.google.protobuf.StringValue.toObject(message.familyName, options); - if (message.qualifier != null && message.hasOwnProperty("qualifier")) - object.qualifier = $root.google.protobuf.BytesValue.toObject(message.qualifier, options); - if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) - if (typeof message.timestampMicros === "number") - object.timestampMicros = options.longs === String ? String(message.timestampMicros) : message.timestampMicros; - else - object.timestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMicros) : options.longs === Number ? new $util.LongBits(message.timestampMicros.low >>> 0, message.timestampMicros.high >>> 0).toNumber() : message.timestampMicros; - if (message.labels && message.labels.length) { - object.labels = []; - for (var j = 0; j < message.labels.length; ++j) - object.labels[j] = message.labels[j]; - } - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.valueSize != null && message.hasOwnProperty("valueSize")) - object.valueSize = message.valueSize; - if (message.resetRow != null && message.hasOwnProperty("resetRow")) { - object.resetRow = message.resetRow; - if (options.oneofs) - object.rowStatus = "resetRow"; - } - if (message.commitRow != null && message.hasOwnProperty("commitRow")) { - object.commitRow = message.commitRow; - if (options.oneofs) - object.rowStatus = "commitRow"; - } - return object; - }; + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrderedCodeBytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this CellChunk to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @instance - * @returns {Object.} JSON object - */ - CellChunk.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrderedCodeBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for CellChunk - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CellChunk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ReadRowsResponse.CellChunk"; - }; - - return CellChunk; - })(); + /** + * Verifies an OrderedCodeBytes message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OrderedCodeBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - return ReadRowsResponse; - })(); + /** + * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes + */ + OrderedCodeBytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes) + return object; + return new $root.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes(); + }; - v2.SampleRowKeysRequest = (function() { + /** + * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes} message OrderedCodeBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OrderedCodeBytes.toObject = function toObject() { + return {}; + }; - /** - * Properties of a SampleRowKeysRequest. - * @memberof google.bigtable.v2 - * @interface ISampleRowKeysRequest - * @property {string|null} [tableName] SampleRowKeysRequest tableName - * @property {string|null} [authorizedViewName] SampleRowKeysRequest authorizedViewName - * @property {string|null} [materializedViewName] SampleRowKeysRequest materializedViewName - * @property {string|null} [appProfileId] SampleRowKeysRequest appProfileId - */ + /** + * Converts this OrderedCodeBytes to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @instance + * @returns {Object.} JSON object + */ + OrderedCodeBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new SampleRowKeysRequest. - * @memberof google.bigtable.v2 - * @classdesc Represents a SampleRowKeysRequest. - * @implements ISampleRowKeysRequest - * @constructor - * @param {google.bigtable.v2.ISampleRowKeysRequest=} [properties] Properties to set - */ - function SampleRowKeysRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Gets the default type url for OrderedCodeBytes + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OrderedCodeBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes"; + }; - /** - * SampleRowKeysRequest tableName. - * @member {string} tableName - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @instance - */ - SampleRowKeysRequest.prototype.tableName = ""; + return OrderedCodeBytes; + })(); - /** - * SampleRowKeysRequest authorizedViewName. - * @member {string} authorizedViewName - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @instance - */ - SampleRowKeysRequest.prototype.authorizedViewName = ""; + return Encoding; + })(); - /** - * SampleRowKeysRequest materializedViewName. - * @member {string} materializedViewName - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @instance - */ - SampleRowKeysRequest.prototype.materializedViewName = ""; + return Struct; + })(); - /** - * SampleRowKeysRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @instance - */ - SampleRowKeysRequest.prototype.appProfileId = ""; + Type.Proto = (function() { - /** - * Creates a new SampleRowKeysRequest instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {google.bigtable.v2.ISampleRowKeysRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.SampleRowKeysRequest} SampleRowKeysRequest instance - */ - SampleRowKeysRequest.create = function create(properties) { - return new SampleRowKeysRequest(properties); - }; + /** + * Properties of a Proto. + * @memberof google.bigtable.admin.v2.Type + * @interface IProto + * @property {string|null} [schemaBundleId] Proto schemaBundleId + * @property {string|null} [messageName] Proto messageName + */ - /** - * Encodes the specified SampleRowKeysRequest message. Does not implicitly {@link google.bigtable.v2.SampleRowKeysRequest.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {google.bigtable.v2.ISampleRowKeysRequest} message SampleRowKeysRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SampleRowKeysRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); - if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.authorizedViewName); - if (message.materializedViewName != null && Object.hasOwnProperty.call(message, "materializedViewName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.materializedViewName); - return writer; - }; + /** + * Constructs a new Proto. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents a Proto. + * @implements IProto + * @constructor + * @param {google.bigtable.admin.v2.Type.IProto=} [properties] Properties to set + */ + function Proto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified SampleRowKeysRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.SampleRowKeysRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {google.bigtable.v2.ISampleRowKeysRequest} message SampleRowKeysRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SampleRowKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Proto schemaBundleId. + * @member {string} schemaBundleId + * @memberof google.bigtable.admin.v2.Type.Proto + * @instance + */ + Proto.prototype.schemaBundleId = ""; - /** - * Decodes a SampleRowKeysRequest message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.SampleRowKeysRequest} SampleRowKeysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SampleRowKeysRequest.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.SampleRowKeysRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.tableName = reader.string(); - break; - } - case 4: { - message.authorizedViewName = reader.string(); - break; - } - case 5: { - message.materializedViewName = reader.string(); - break; - } - case 2: { - message.appProfileId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Proto messageName. + * @member {string} messageName + * @memberof google.bigtable.admin.v2.Type.Proto + * @instance + */ + Proto.prototype.messageName = ""; - /** - * Decodes a SampleRowKeysRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.SampleRowKeysRequest} SampleRowKeysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SampleRowKeysRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new Proto instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {google.bigtable.admin.v2.Type.IProto=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Proto} Proto instance + */ + Proto.create = function create(properties) { + return new Proto(properties); + }; - /** - * Verifies a SampleRowKeysRequest message. - * @function verify - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SampleRowKeysRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tableName != null && message.hasOwnProperty("tableName")) - if (!$util.isString(message.tableName)) - return "tableName: string expected"; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - if (!$util.isString(message.authorizedViewName)) - return "authorizedViewName: string expected"; - if (message.materializedViewName != null && message.hasOwnProperty("materializedViewName")) - if (!$util.isString(message.materializedViewName)) - return "materializedViewName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; - return null; - }; + /** + * Encodes the specified Proto message. Does not implicitly {@link google.bigtable.admin.v2.Type.Proto.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {google.bigtable.admin.v2.Type.IProto} message Proto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Proto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schemaBundleId != null && Object.hasOwnProperty.call(message, "schemaBundleId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaBundleId); + if (message.messageName != null && Object.hasOwnProperty.call(message, "messageName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.messageName); + return writer; + }; - /** - * Creates a SampleRowKeysRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.SampleRowKeysRequest} SampleRowKeysRequest - */ - SampleRowKeysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.SampleRowKeysRequest) - return object; - var message = new $root.google.bigtable.v2.SampleRowKeysRequest(); - if (object.tableName != null) - message.tableName = String(object.tableName); - if (object.authorizedViewName != null) - message.authorizedViewName = String(object.authorizedViewName); - if (object.materializedViewName != null) - message.materializedViewName = String(object.materializedViewName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - return message; - }; + /** + * Encodes the specified Proto message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Proto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {google.bigtable.admin.v2.Type.IProto} message Proto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Proto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a SampleRowKeysRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {google.bigtable.v2.SampleRowKeysRequest} message SampleRowKeysRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SampleRowKeysRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tableName = ""; - object.appProfileId = ""; - object.authorizedViewName = ""; - object.materializedViewName = ""; - } - if (message.tableName != null && message.hasOwnProperty("tableName")) - object.tableName = message.tableName; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - object.authorizedViewName = message.authorizedViewName; - if (message.materializedViewName != null && message.hasOwnProperty("materializedViewName")) - object.materializedViewName = message.materializedViewName; - return object; - }; + /** + * Decodes a Proto message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Proto} Proto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Proto.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Proto(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.schemaBundleId = reader.string(); + break; + } + case 2: { + message.messageName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this SampleRowKeysRequest to JSON. - * @function toJSON - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @instance - * @returns {Object.} JSON object - */ - SampleRowKeysRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a Proto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Proto} Proto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Proto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for SampleRowKeysRequest - * @function getTypeUrl - * @memberof google.bigtable.v2.SampleRowKeysRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SampleRowKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.SampleRowKeysRequest"; - }; + /** + * Verifies a Proto message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Proto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + if (!$util.isString(message.schemaBundleId)) + return "schemaBundleId: string expected"; + if (message.messageName != null && message.hasOwnProperty("messageName")) + if (!$util.isString(message.messageName)) + return "messageName: string expected"; + return null; + }; - return SampleRowKeysRequest; - })(); + /** + * Creates a Proto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Proto} Proto + */ + Proto.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Proto) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Proto(); + if (object.schemaBundleId != null) + message.schemaBundleId = String(object.schemaBundleId); + if (object.messageName != null) + message.messageName = String(object.messageName); + return message; + }; - v2.SampleRowKeysResponse = (function() { + /** + * Creates a plain object from a Proto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {google.bigtable.admin.v2.Type.Proto} message Proto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Proto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.schemaBundleId = ""; + object.messageName = ""; + } + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + object.schemaBundleId = message.schemaBundleId; + if (message.messageName != null && message.hasOwnProperty("messageName")) + object.messageName = message.messageName; + return object; + }; - /** - * Properties of a SampleRowKeysResponse. - * @memberof google.bigtable.v2 - * @interface ISampleRowKeysResponse - * @property {Uint8Array|null} [rowKey] SampleRowKeysResponse rowKey - * @property {number|Long|null} [offsetBytes] SampleRowKeysResponse offsetBytes - */ + /** + * Converts this Proto to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Proto + * @instance + * @returns {Object.} JSON object + */ + Proto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new SampleRowKeysResponse. - * @memberof google.bigtable.v2 - * @classdesc Represents a SampleRowKeysResponse. - * @implements ISampleRowKeysResponse - * @constructor - * @param {google.bigtable.v2.ISampleRowKeysResponse=} [properties] Properties to set - */ - function SampleRowKeysResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Gets the default type url for Proto + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Proto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Proto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Proto"; + }; - /** - * SampleRowKeysResponse rowKey. - * @member {Uint8Array} rowKey - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @instance - */ - SampleRowKeysResponse.prototype.rowKey = $util.newBuffer([]); + return Proto; + })(); - /** - * SampleRowKeysResponse offsetBytes. - * @member {number|Long} offsetBytes - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @instance - */ - SampleRowKeysResponse.prototype.offsetBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Type.Enum = (function() { - /** - * Creates a new SampleRowKeysResponse instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {google.bigtable.v2.ISampleRowKeysResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.SampleRowKeysResponse} SampleRowKeysResponse instance - */ - SampleRowKeysResponse.create = function create(properties) { - return new SampleRowKeysResponse(properties); - }; + /** + * Properties of an Enum. + * @memberof google.bigtable.admin.v2.Type + * @interface IEnum + * @property {string|null} [schemaBundleId] Enum schemaBundleId + * @property {string|null} [enumName] Enum enumName + */ - /** - * Encodes the specified SampleRowKeysResponse message. Does not implicitly {@link google.bigtable.v2.SampleRowKeysResponse.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {google.bigtable.v2.ISampleRowKeysResponse} message SampleRowKeysResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SampleRowKeysResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowKey); - if (message.offsetBytes != null && Object.hasOwnProperty.call(message, "offsetBytes")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offsetBytes); - return writer; - }; + /** + * Constructs a new Enum. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents an Enum. + * @implements IEnum + * @constructor + * @param {google.bigtable.admin.v2.Type.IEnum=} [properties] Properties to set + */ + function Enum(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified SampleRowKeysResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.SampleRowKeysResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {google.bigtable.v2.ISampleRowKeysResponse} message SampleRowKeysResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SampleRowKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Enum schemaBundleId. + * @member {string} schemaBundleId + * @memberof google.bigtable.admin.v2.Type.Enum + * @instance + */ + Enum.prototype.schemaBundleId = ""; - /** - * Decodes a SampleRowKeysResponse message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.SampleRowKeysResponse} SampleRowKeysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SampleRowKeysResponse.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.SampleRowKeysResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.rowKey = reader.bytes(); - break; - } - case 2: { - message.offsetBytes = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Enum enumName. + * @member {string} enumName + * @memberof google.bigtable.admin.v2.Type.Enum + * @instance + */ + Enum.prototype.enumName = ""; - /** - * Decodes a SampleRowKeysResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.SampleRowKeysResponse} SampleRowKeysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SampleRowKeysResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new Enum instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {google.bigtable.admin.v2.Type.IEnum=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Enum} Enum instance + */ + Enum.create = function create(properties) { + return new Enum(properties); + }; - /** - * Verifies a SampleRowKeysResponse message. - * @function verify - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SampleRowKeysResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) - return "rowKey: buffer expected"; - if (message.offsetBytes != null && message.hasOwnProperty("offsetBytes")) - if (!$util.isInteger(message.offsetBytes) && !(message.offsetBytes && $util.isInteger(message.offsetBytes.low) && $util.isInteger(message.offsetBytes.high))) - return "offsetBytes: integer|Long expected"; - return null; - }; + /** + * Encodes the specified Enum message. Does not implicitly {@link google.bigtable.admin.v2.Type.Enum.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {google.bigtable.admin.v2.Type.IEnum} message Enum message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Enum.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schemaBundleId != null && Object.hasOwnProperty.call(message, "schemaBundleId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaBundleId); + if (message.enumName != null && Object.hasOwnProperty.call(message, "enumName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.enumName); + return writer; + }; - /** - * Creates a SampleRowKeysResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.SampleRowKeysResponse} SampleRowKeysResponse - */ - SampleRowKeysResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.SampleRowKeysResponse) - return object; - var message = new $root.google.bigtable.v2.SampleRowKeysResponse(); - if (object.rowKey != null) - if (typeof object.rowKey === "string") - $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); - else if (object.rowKey.length >= 0) - message.rowKey = object.rowKey; - if (object.offsetBytes != null) - if ($util.Long) - (message.offsetBytes = $util.Long.fromValue(object.offsetBytes)).unsigned = false; - else if (typeof object.offsetBytes === "string") - message.offsetBytes = parseInt(object.offsetBytes, 10); - else if (typeof object.offsetBytes === "number") - message.offsetBytes = object.offsetBytes; - else if (typeof object.offsetBytes === "object") - message.offsetBytes = new $util.LongBits(object.offsetBytes.low >>> 0, object.offsetBytes.high >>> 0).toNumber(); - return message; - }; + /** + * Encodes the specified Enum message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Enum.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {google.bigtable.admin.v2.Type.IEnum} message Enum message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Enum.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a SampleRowKeysResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {google.bigtable.v2.SampleRowKeysResponse} message SampleRowKeysResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SampleRowKeysResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.rowKey = ""; - else { - object.rowKey = []; - if (options.bytes !== Array) - object.rowKey = $util.newBuffer(object.rowKey); - } - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.offsetBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.offsetBytes = options.longs === String ? "0" : 0; - } - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; - if (message.offsetBytes != null && message.hasOwnProperty("offsetBytes")) - if (typeof message.offsetBytes === "number") - object.offsetBytes = options.longs === String ? String(message.offsetBytes) : message.offsetBytes; - else - object.offsetBytes = options.longs === String ? $util.Long.prototype.toString.call(message.offsetBytes) : options.longs === Number ? new $util.LongBits(message.offsetBytes.low >>> 0, message.offsetBytes.high >>> 0).toNumber() : message.offsetBytes; - return object; - }; + /** + * Decodes an Enum message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Enum} Enum + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Enum.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Enum(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.schemaBundleId = reader.string(); + break; + } + case 2: { + message.enumName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this SampleRowKeysResponse to JSON. - * @function toJSON - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @instance - * @returns {Object.} JSON object - */ - SampleRowKeysResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an Enum message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Enum} Enum + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Enum.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for SampleRowKeysResponse - * @function getTypeUrl - * @memberof google.bigtable.v2.SampleRowKeysResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SampleRowKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.SampleRowKeysResponse"; - }; + /** + * Verifies an Enum message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Enum.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + if (!$util.isString(message.schemaBundleId)) + return "schemaBundleId: string expected"; + if (message.enumName != null && message.hasOwnProperty("enumName")) + if (!$util.isString(message.enumName)) + return "enumName: string expected"; + return null; + }; - return SampleRowKeysResponse; - })(); + /** + * Creates an Enum message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Enum} Enum + */ + Enum.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Enum) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Enum(); + if (object.schemaBundleId != null) + message.schemaBundleId = String(object.schemaBundleId); + if (object.enumName != null) + message.enumName = String(object.enumName); + return message; + }; - v2.MutateRowRequest = (function() { + /** + * Creates a plain object from an Enum message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {google.bigtable.admin.v2.Type.Enum} message Enum + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Enum.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.schemaBundleId = ""; + object.enumName = ""; + } + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + object.schemaBundleId = message.schemaBundleId; + if (message.enumName != null && message.hasOwnProperty("enumName")) + object.enumName = message.enumName; + return object; + }; - /** - * Properties of a MutateRowRequest. - * @memberof google.bigtable.v2 - * @interface IMutateRowRequest - * @property {string|null} [tableName] MutateRowRequest tableName - * @property {string|null} [authorizedViewName] MutateRowRequest authorizedViewName - * @property {string|null} [appProfileId] MutateRowRequest appProfileId - * @property {Uint8Array|null} [rowKey] MutateRowRequest rowKey - * @property {Array.|null} [mutations] MutateRowRequest mutations - */ + /** + * Converts this Enum to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Enum + * @instance + * @returns {Object.} JSON object + */ + Enum.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new MutateRowRequest. - * @memberof google.bigtable.v2 - * @classdesc Represents a MutateRowRequest. - * @implements IMutateRowRequest - * @constructor - * @param {google.bigtable.v2.IMutateRowRequest=} [properties] Properties to set - */ - function MutateRowRequest(properties) { - this.mutations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Gets the default type url for Enum + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Enum + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Enum.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Enum"; + }; - /** - * MutateRowRequest tableName. - * @member {string} tableName - * @memberof google.bigtable.v2.MutateRowRequest - * @instance - */ - MutateRowRequest.prototype.tableName = ""; + return Enum; + })(); - /** - * MutateRowRequest authorizedViewName. - * @member {string} authorizedViewName - * @memberof google.bigtable.v2.MutateRowRequest - * @instance - */ - MutateRowRequest.prototype.authorizedViewName = ""; + Type.Array = (function() { - /** - * MutateRowRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.MutateRowRequest - * @instance - */ - MutateRowRequest.prototype.appProfileId = ""; + /** + * Properties of an Array. + * @memberof google.bigtable.admin.v2.Type + * @interface IArray + * @property {google.bigtable.admin.v2.IType|null} [elementType] Array elementType + */ - /** - * MutateRowRequest rowKey. - * @member {Uint8Array} rowKey - * @memberof google.bigtable.v2.MutateRowRequest - * @instance - */ - MutateRowRequest.prototype.rowKey = $util.newBuffer([]); + /** + * Constructs a new Array. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents an Array. + * @implements IArray + * @constructor + * @param {google.bigtable.admin.v2.Type.IArray=} [properties] Properties to set + */ + function Array(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MutateRowRequest mutations. - * @member {Array.} mutations - * @memberof google.bigtable.v2.MutateRowRequest - * @instance - */ - MutateRowRequest.prototype.mutations = $util.emptyArray; + /** + * Array elementType. + * @member {google.bigtable.admin.v2.IType|null|undefined} elementType + * @memberof google.bigtable.admin.v2.Type.Array + * @instance + */ + Array.prototype.elementType = null; - /** - * Creates a new MutateRowRequest instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {google.bigtable.v2.IMutateRowRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.MutateRowRequest} MutateRowRequest instance - */ - MutateRowRequest.create = function create(properties) { - return new MutateRowRequest(properties); - }; + /** + * Creates a new Array instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {google.bigtable.admin.v2.Type.IArray=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Array} Array instance + */ + Array.create = function create(properties) { + return new Array(properties); + }; - /** - * Encodes the specified MutateRowRequest message. Does not implicitly {@link google.bigtable.v2.MutateRowRequest.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {google.bigtable.v2.IMutateRowRequest} message MutateRowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateRowRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); - if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rowKey); - if (message.mutations != null && message.mutations.length) - for (var i = 0; i < message.mutations.length; ++i) - $root.google.bigtable.v2.Mutation.encode(message.mutations[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.appProfileId); - if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.authorizedViewName); - return writer; - }; + /** + * Encodes the specified Array message. Does not implicitly {@link google.bigtable.admin.v2.Type.Array.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {google.bigtable.admin.v2.Type.IArray} message Array message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Array.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.elementType != null && Object.hasOwnProperty.call(message, "elementType")) + $root.google.bigtable.admin.v2.Type.encode(message.elementType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified MutateRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {google.bigtable.v2.IMutateRowRequest} message MutateRowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateRowRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Array message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Array.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {google.bigtable.admin.v2.Type.IArray} message Array message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Array.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a MutateRowRequest message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.MutateRowRequest} MutateRowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateRowRequest.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.tableName = reader.string(); - break; - } - case 6: { - message.authorizedViewName = reader.string(); - break; + /** + * Decodes an Array message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Array} Array + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Array.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Array(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.elementType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - case 4: { - message.appProfileId = reader.string(); - break; + return message; + }; + + /** + * Decodes an Array message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Array} Array + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Array.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Array message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Array.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.elementType != null && message.hasOwnProperty("elementType")) { + var error = $root.google.bigtable.admin.v2.Type.verify(message.elementType); + if (error) + return "elementType." + error; } - case 2: { - message.rowKey = reader.bytes(); - break; + return null; + }; + + /** + * Creates an Array message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Array} Array + */ + Array.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Array) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Array(); + if (object.elementType != null) { + if (typeof object.elementType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Array.elementType: object expected"); + message.elementType = $root.google.bigtable.admin.v2.Type.fromObject(object.elementType); } - case 3: { - if (!(message.mutations && message.mutations.length)) - message.mutations = []; - message.mutations.push($root.google.bigtable.v2.Mutation.decode(reader, reader.uint32())); - break; + return message; + }; + + /** + * Creates a plain object from an Array message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {google.bigtable.admin.v2.Type.Array} message Array + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Array.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.elementType = null; + if (message.elementType != null && message.hasOwnProperty("elementType")) + object.elementType = $root.google.bigtable.admin.v2.Type.toObject(message.elementType, options); + return object; + }; + + /** + * Converts this Array to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Array + * @instance + * @returns {Object.} JSON object + */ + Array.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Array + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Array + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Array.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Array"; + }; - /** - * Decodes a MutateRowRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.MutateRowRequest} MutateRowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateRowRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return Array; + })(); - /** - * Verifies a MutateRowRequest message. - * @function verify - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MutateRowRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tableName != null && message.hasOwnProperty("tableName")) - if (!$util.isString(message.tableName)) - return "tableName: string expected"; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - if (!$util.isString(message.authorizedViewName)) - return "authorizedViewName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) - return "rowKey: buffer expected"; - if (message.mutations != null && message.hasOwnProperty("mutations")) { - if (!Array.isArray(message.mutations)) - return "mutations: array expected"; - for (var i = 0; i < message.mutations.length; ++i) { - var error = $root.google.bigtable.v2.Mutation.verify(message.mutations[i]); - if (error) - return "mutations." + error; - } - } - return null; - }; + Type.Map = (function() { - /** - * Creates a MutateRowRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.MutateRowRequest} MutateRowRequest - */ - MutateRowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.MutateRowRequest) - return object; - var message = new $root.google.bigtable.v2.MutateRowRequest(); - if (object.tableName != null) - message.tableName = String(object.tableName); - if (object.authorizedViewName != null) - message.authorizedViewName = String(object.authorizedViewName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - if (object.rowKey != null) - if (typeof object.rowKey === "string") - $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); - else if (object.rowKey.length >= 0) - message.rowKey = object.rowKey; - if (object.mutations) { - if (!Array.isArray(object.mutations)) - throw TypeError(".google.bigtable.v2.MutateRowRequest.mutations: array expected"); - message.mutations = []; - for (var i = 0; i < object.mutations.length; ++i) { - if (typeof object.mutations[i] !== "object") - throw TypeError(".google.bigtable.v2.MutateRowRequest.mutations: object expected"); - message.mutations[i] = $root.google.bigtable.v2.Mutation.fromObject(object.mutations[i]); - } - } - return message; - }; + /** + * Properties of a Map. + * @memberof google.bigtable.admin.v2.Type + * @interface IMap + * @property {google.bigtable.admin.v2.IType|null} [keyType] Map keyType + * @property {google.bigtable.admin.v2.IType|null} [valueType] Map valueType + */ - /** - * Creates a plain object from a MutateRowRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {google.bigtable.v2.MutateRowRequest} message MutateRowRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MutateRowRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.mutations = []; - if (options.defaults) { - object.tableName = ""; - if (options.bytes === String) - object.rowKey = ""; - else { - object.rowKey = []; - if (options.bytes !== Array) - object.rowKey = $util.newBuffer(object.rowKey); + /** + * Constructs a new Map. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents a Map. + * @implements IMap + * @constructor + * @param {google.bigtable.admin.v2.Type.IMap=} [properties] Properties to set + */ + function Map(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - object.appProfileId = ""; - object.authorizedViewName = ""; - } - if (message.tableName != null && message.hasOwnProperty("tableName")) - object.tableName = message.tableName; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; - if (message.mutations && message.mutations.length) { - object.mutations = []; - for (var j = 0; j < message.mutations.length; ++j) - object.mutations[j] = $root.google.bigtable.v2.Mutation.toObject(message.mutations[j], options); - } - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - object.authorizedViewName = message.authorizedViewName; - return object; - }; - - /** - * Converts this MutateRowRequest to JSON. - * @function toJSON - * @memberof google.bigtable.v2.MutateRowRequest - * @instance - * @returns {Object.} JSON object - */ - MutateRowRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - /** - * Gets the default type url for MutateRowRequest - * @function getTypeUrl - * @memberof google.bigtable.v2.MutateRowRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MutateRowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.MutateRowRequest"; - }; + /** + * Map keyType. + * @member {google.bigtable.admin.v2.IType|null|undefined} keyType + * @memberof google.bigtable.admin.v2.Type.Map + * @instance + */ + Map.prototype.keyType = null; - return MutateRowRequest; - })(); + /** + * Map valueType. + * @member {google.bigtable.admin.v2.IType|null|undefined} valueType + * @memberof google.bigtable.admin.v2.Type.Map + * @instance + */ + Map.prototype.valueType = null; - v2.MutateRowResponse = (function() { + /** + * Creates a new Map instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {google.bigtable.admin.v2.Type.IMap=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Map} Map instance + */ + Map.create = function create(properties) { + return new Map(properties); + }; - /** - * Properties of a MutateRowResponse. - * @memberof google.bigtable.v2 - * @interface IMutateRowResponse - */ + /** + * Encodes the specified Map message. Does not implicitly {@link google.bigtable.admin.v2.Type.Map.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {google.bigtable.admin.v2.Type.IMap} message Map message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Map.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) + $root.google.bigtable.admin.v2.Type.encode(message.keyType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) + $root.google.bigtable.admin.v2.Type.encode(message.valueType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Constructs a new MutateRowResponse. - * @memberof google.bigtable.v2 - * @classdesc Represents a MutateRowResponse. - * @implements IMutateRowResponse - * @constructor - * @param {google.bigtable.v2.IMutateRowResponse=} [properties] Properties to set - */ - function MutateRowResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified Map message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Map.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {google.bigtable.admin.v2.Type.IMap} message Map message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Map.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new MutateRowResponse instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {google.bigtable.v2.IMutateRowResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.MutateRowResponse} MutateRowResponse instance - */ - MutateRowResponse.create = function create(properties) { - return new MutateRowResponse(properties); - }; + /** + * Decodes a Map message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Map} Map + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Map.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Map(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.keyType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + break; + } + case 2: { + message.valueType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified MutateRowResponse message. Does not implicitly {@link google.bigtable.v2.MutateRowResponse.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {google.bigtable.v2.IMutateRowResponse} message MutateRowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateRowResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Decodes a Map message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Map} Map + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Map.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified MutateRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {google.bigtable.v2.IMutateRowResponse} message MutateRowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateRowResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a Map message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Map.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyType != null && message.hasOwnProperty("keyType")) { + var error = $root.google.bigtable.admin.v2.Type.verify(message.keyType); + if (error) + return "keyType." + error; + } + if (message.valueType != null && message.hasOwnProperty("valueType")) { + var error = $root.google.bigtable.admin.v2.Type.verify(message.valueType); + if (error) + return "valueType." + error; + } + return null; + }; - /** - * Decodes a MutateRowResponse message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.MutateRowResponse} MutateRowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateRowResponse.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a Map message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Map} Map + */ + Map.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Map) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Map(); + if (object.keyType != null) { + if (typeof object.keyType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Map.keyType: object expected"); + message.keyType = $root.google.bigtable.admin.v2.Type.fromObject(object.keyType); + } + if (object.valueType != null) { + if (typeof object.valueType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Map.valueType: object expected"); + message.valueType = $root.google.bigtable.admin.v2.Type.fromObject(object.valueType); + } + return message; + }; - /** - * Decodes a MutateRowResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.MutateRowResponse} MutateRowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateRowResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a Map message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {google.bigtable.admin.v2.Type.Map} message Map + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Map.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyType = null; + object.valueType = null; + } + if (message.keyType != null && message.hasOwnProperty("keyType")) + object.keyType = $root.google.bigtable.admin.v2.Type.toObject(message.keyType, options); + if (message.valueType != null && message.hasOwnProperty("valueType")) + object.valueType = $root.google.bigtable.admin.v2.Type.toObject(message.valueType, options); + return object; + }; - /** - * Verifies a MutateRowResponse message. - * @function verify - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MutateRowResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Converts this Map to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Map + * @instance + * @returns {Object.} JSON object + */ + Map.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a MutateRowResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.MutateRowResponse} MutateRowResponse - */ - MutateRowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.MutateRowResponse) - return object; - return new $root.google.bigtable.v2.MutateRowResponse(); - }; + /** + * Gets the default type url for Map + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Map + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Map.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Map"; + }; - /** - * Creates a plain object from a MutateRowResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {google.bigtable.v2.MutateRowResponse} message MutateRowResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MutateRowResponse.toObject = function toObject() { - return {}; - }; + return Map; + })(); - /** - * Converts this MutateRowResponse to JSON. - * @function toJSON - * @memberof google.bigtable.v2.MutateRowResponse - * @instance - * @returns {Object.} JSON object - */ - MutateRowResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Type.Aggregate = (function() { - /** - * Gets the default type url for MutateRowResponse - * @function getTypeUrl - * @memberof google.bigtable.v2.MutateRowResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MutateRowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.MutateRowResponse"; - }; + /** + * Properties of an Aggregate. + * @memberof google.bigtable.admin.v2.Type + * @interface IAggregate + * @property {google.bigtable.admin.v2.IType|null} [inputType] Aggregate inputType + * @property {google.bigtable.admin.v2.IType|null} [stateType] Aggregate stateType + * @property {google.bigtable.admin.v2.Type.Aggregate.ISum|null} [sum] Aggregate sum + * @property {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount|null} [hllppUniqueCount] Aggregate hllppUniqueCount + * @property {google.bigtable.admin.v2.Type.Aggregate.IMax|null} [max] Aggregate max + * @property {google.bigtable.admin.v2.Type.Aggregate.IMin|null} [min] Aggregate min + */ - return MutateRowResponse; - })(); + /** + * Constructs a new Aggregate. + * @memberof google.bigtable.admin.v2.Type + * @classdesc Represents an Aggregate. + * @implements IAggregate + * @constructor + * @param {google.bigtable.admin.v2.Type.IAggregate=} [properties] Properties to set + */ + function Aggregate(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - v2.MutateRowsRequest = (function() { + /** + * Aggregate inputType. + * @member {google.bigtable.admin.v2.IType|null|undefined} inputType + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @instance + */ + Aggregate.prototype.inputType = null; - /** - * Properties of a MutateRowsRequest. - * @memberof google.bigtable.v2 - * @interface IMutateRowsRequest - * @property {string|null} [tableName] MutateRowsRequest tableName - * @property {string|null} [authorizedViewName] MutateRowsRequest authorizedViewName - * @property {string|null} [appProfileId] MutateRowsRequest appProfileId - * @property {Array.|null} [entries] MutateRowsRequest entries - */ + /** + * Aggregate stateType. + * @member {google.bigtable.admin.v2.IType|null|undefined} stateType + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @instance + */ + Aggregate.prototype.stateType = null; - /** - * Constructs a new MutateRowsRequest. - * @memberof google.bigtable.v2 - * @classdesc Represents a MutateRowsRequest. - * @implements IMutateRowsRequest - * @constructor - * @param {google.bigtable.v2.IMutateRowsRequest=} [properties] Properties to set - */ - function MutateRowsRequest(properties) { - this.entries = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Aggregate sum. + * @member {google.bigtable.admin.v2.Type.Aggregate.ISum|null|undefined} sum + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @instance + */ + Aggregate.prototype.sum = null; - /** - * MutateRowsRequest tableName. - * @member {string} tableName - * @memberof google.bigtable.v2.MutateRowsRequest - * @instance - */ - MutateRowsRequest.prototype.tableName = ""; + /** + * Aggregate hllppUniqueCount. + * @member {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount|null|undefined} hllppUniqueCount + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @instance + */ + Aggregate.prototype.hllppUniqueCount = null; - /** - * MutateRowsRequest authorizedViewName. - * @member {string} authorizedViewName - * @memberof google.bigtable.v2.MutateRowsRequest - * @instance - */ - MutateRowsRequest.prototype.authorizedViewName = ""; + /** + * Aggregate max. + * @member {google.bigtable.admin.v2.Type.Aggregate.IMax|null|undefined} max + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @instance + */ + Aggregate.prototype.max = null; - /** - * MutateRowsRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.MutateRowsRequest - * @instance - */ - MutateRowsRequest.prototype.appProfileId = ""; + /** + * Aggregate min. + * @member {google.bigtable.admin.v2.Type.Aggregate.IMin|null|undefined} min + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @instance + */ + Aggregate.prototype.min = null; - /** - * MutateRowsRequest entries. - * @member {Array.} entries - * @memberof google.bigtable.v2.MutateRowsRequest - * @instance - */ - MutateRowsRequest.prototype.entries = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates a new MutateRowsRequest instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {google.bigtable.v2.IMutateRowsRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.MutateRowsRequest} MutateRowsRequest instance - */ - MutateRowsRequest.create = function create(properties) { - return new MutateRowsRequest(properties); - }; + /** + * Aggregate aggregator. + * @member {"sum"|"hllppUniqueCount"|"max"|"min"|undefined} aggregator + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @instance + */ + Object.defineProperty(Aggregate.prototype, "aggregator", { + get: $util.oneOfGetter($oneOfFields = ["sum", "hllppUniqueCount", "max", "min"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified MutateRowsRequest message. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {google.bigtable.v2.IMutateRowsRequest} message MutateRowsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateRowsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); - if (message.entries != null && message.entries.length) - for (var i = 0; i < message.entries.length; ++i) - $root.google.bigtable.v2.MutateRowsRequest.Entry.encode(message.entries[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.appProfileId); - if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.authorizedViewName); - return writer; - }; + /** + * Creates a new Aggregate instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {google.bigtable.admin.v2.Type.IAggregate=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Aggregate} Aggregate instance + */ + Aggregate.create = function create(properties) { + return new Aggregate(properties); + }; - /** - * Encodes the specified MutateRowsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {google.bigtable.v2.IMutateRowsRequest} message MutateRowsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Aggregate message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {google.bigtable.admin.v2.Type.IAggregate} message Aggregate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Aggregate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + $root.google.bigtable.admin.v2.Type.encode(message.inputType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.stateType != null && Object.hasOwnProperty.call(message, "stateType")) + $root.google.bigtable.admin.v2.Type.encode(message.stateType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sum != null && Object.hasOwnProperty.call(message, "sum")) + $root.google.bigtable.admin.v2.Type.Aggregate.Sum.encode(message.sum, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.hllppUniqueCount != null && Object.hasOwnProperty.call(message, "hllppUniqueCount")) + $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.encode(message.hllppUniqueCount, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.max != null && Object.hasOwnProperty.call(message, "max")) + $root.google.bigtable.admin.v2.Type.Aggregate.Max.encode(message.max, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.min != null && Object.hasOwnProperty.call(message, "min")) + $root.google.bigtable.admin.v2.Type.Aggregate.Min.encode(message.min, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; - /** - * Decodes a MutateRowsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.MutateRowsRequest} MutateRowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateRowsRequest.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.tableName = reader.string(); - break; - } - case 5: { - message.authorizedViewName = reader.string(); - break; - } - case 3: { - message.appProfileId = reader.string(); - break; - } - case 2: { - if (!(message.entries && message.entries.length)) - message.entries = []; - message.entries.push($root.google.bigtable.v2.MutateRowsRequest.Entry.decode(reader, reader.uint32())); - break; + /** + * Encodes the specified Aggregate message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {google.bigtable.admin.v2.Type.IAggregate} message Aggregate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Aggregate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Aggregate message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Aggregate} Aggregate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Aggregate.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.inputType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + break; + } + case 2: { + message.stateType = $root.google.bigtable.admin.v2.Type.decode(reader, reader.uint32()); + break; + } + case 4: { + message.sum = $root.google.bigtable.admin.v2.Type.Aggregate.Sum.decode(reader, reader.uint32()); + break; + } + case 5: { + message.hllppUniqueCount = $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.decode(reader, reader.uint32()); + break; + } + case 6: { + message.max = $root.google.bigtable.admin.v2.Type.Aggregate.Max.decode(reader, reader.uint32()); + break; + } + case 7: { + message.min = $root.google.bigtable.admin.v2.Type.Aggregate.Min.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return message; + }; - /** - * Decodes a MutateRowsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.MutateRowsRequest} MutateRowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateRowsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MutateRowsRequest message. - * @function verify - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MutateRowsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tableName != null && message.hasOwnProperty("tableName")) - if (!$util.isString(message.tableName)) - return "tableName: string expected"; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - if (!$util.isString(message.authorizedViewName)) - return "authorizedViewName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; - if (message.entries != null && message.hasOwnProperty("entries")) { - if (!Array.isArray(message.entries)) - return "entries: array expected"; - for (var i = 0; i < message.entries.length; ++i) { - var error = $root.google.bigtable.v2.MutateRowsRequest.Entry.verify(message.entries[i]); - if (error) - return "entries." + error; - } - } - return null; - }; - - /** - * Creates a MutateRowsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.MutateRowsRequest} MutateRowsRequest - */ - MutateRowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.MutateRowsRequest) - return object; - var message = new $root.google.bigtable.v2.MutateRowsRequest(); - if (object.tableName != null) - message.tableName = String(object.tableName); - if (object.authorizedViewName != null) - message.authorizedViewName = String(object.authorizedViewName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - if (object.entries) { - if (!Array.isArray(object.entries)) - throw TypeError(".google.bigtable.v2.MutateRowsRequest.entries: array expected"); - message.entries = []; - for (var i = 0; i < object.entries.length; ++i) { - if (typeof object.entries[i] !== "object") - throw TypeError(".google.bigtable.v2.MutateRowsRequest.entries: object expected"); - message.entries[i] = $root.google.bigtable.v2.MutateRowsRequest.Entry.fromObject(object.entries[i]); - } - } - return message; - }; + /** + * Decodes an Aggregate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Aggregate} Aggregate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Aggregate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a MutateRowsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {google.bigtable.v2.MutateRowsRequest} message MutateRowsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MutateRowsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.entries = []; - if (options.defaults) { - object.tableName = ""; - object.appProfileId = ""; - object.authorizedViewName = ""; - } - if (message.tableName != null && message.hasOwnProperty("tableName")) - object.tableName = message.tableName; - if (message.entries && message.entries.length) { - object.entries = []; - for (var j = 0; j < message.entries.length; ++j) - object.entries[j] = $root.google.bigtable.v2.MutateRowsRequest.Entry.toObject(message.entries[j], options); - } - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - object.authorizedViewName = message.authorizedViewName; - return object; - }; + /** + * Verifies an Aggregate message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Aggregate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.inputType != null && message.hasOwnProperty("inputType")) { + var error = $root.google.bigtable.admin.v2.Type.verify(message.inputType); + if (error) + return "inputType." + error; + } + if (message.stateType != null && message.hasOwnProperty("stateType")) { + var error = $root.google.bigtable.admin.v2.Type.verify(message.stateType); + if (error) + return "stateType." + error; + } + if (message.sum != null && message.hasOwnProperty("sum")) { + properties.aggregator = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Aggregate.Sum.verify(message.sum); + if (error) + return "sum." + error; + } + } + if (message.hllppUniqueCount != null && message.hasOwnProperty("hllppUniqueCount")) { + if (properties.aggregator === 1) + return "aggregator: multiple values"; + properties.aggregator = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify(message.hllppUniqueCount); + if (error) + return "hllppUniqueCount." + error; + } + } + if (message.max != null && message.hasOwnProperty("max")) { + if (properties.aggregator === 1) + return "aggregator: multiple values"; + properties.aggregator = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Aggregate.Max.verify(message.max); + if (error) + return "max." + error; + } + } + if (message.min != null && message.hasOwnProperty("min")) { + if (properties.aggregator === 1) + return "aggregator: multiple values"; + properties.aggregator = 1; + { + var error = $root.google.bigtable.admin.v2.Type.Aggregate.Min.verify(message.min); + if (error) + return "min." + error; + } + } + return null; + }; - /** - * Converts this MutateRowsRequest to JSON. - * @function toJSON - * @memberof google.bigtable.v2.MutateRowsRequest - * @instance - * @returns {Object.} JSON object - */ - MutateRowsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates an Aggregate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Aggregate} Aggregate + */ + Aggregate.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate) + return object; + var message = new $root.google.bigtable.admin.v2.Type.Aggregate(); + if (object.inputType != null) { + if (typeof object.inputType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.inputType: object expected"); + message.inputType = $root.google.bigtable.admin.v2.Type.fromObject(object.inputType); + } + if (object.stateType != null) { + if (typeof object.stateType !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.stateType: object expected"); + message.stateType = $root.google.bigtable.admin.v2.Type.fromObject(object.stateType); + } + if (object.sum != null) { + if (typeof object.sum !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.sum: object expected"); + message.sum = $root.google.bigtable.admin.v2.Type.Aggregate.Sum.fromObject(object.sum); + } + if (object.hllppUniqueCount != null) { + if (typeof object.hllppUniqueCount !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.hllppUniqueCount: object expected"); + message.hllppUniqueCount = $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.fromObject(object.hllppUniqueCount); + } + if (object.max != null) { + if (typeof object.max !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.max: object expected"); + message.max = $root.google.bigtable.admin.v2.Type.Aggregate.Max.fromObject(object.max); + } + if (object.min != null) { + if (typeof object.min !== "object") + throw TypeError(".google.bigtable.admin.v2.Type.Aggregate.min: object expected"); + message.min = $root.google.bigtable.admin.v2.Type.Aggregate.Min.fromObject(object.min); + } + return message; + }; - /** - * Gets the default type url for MutateRowsRequest - * @function getTypeUrl - * @memberof google.bigtable.v2.MutateRowsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MutateRowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.MutateRowsRequest"; - }; + /** + * Creates a plain object from an Aggregate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate} message Aggregate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Aggregate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.inputType = null; + object.stateType = null; + } + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = $root.google.bigtable.admin.v2.Type.toObject(message.inputType, options); + if (message.stateType != null && message.hasOwnProperty("stateType")) + object.stateType = $root.google.bigtable.admin.v2.Type.toObject(message.stateType, options); + if (message.sum != null && message.hasOwnProperty("sum")) { + object.sum = $root.google.bigtable.admin.v2.Type.Aggregate.Sum.toObject(message.sum, options); + if (options.oneofs) + object.aggregator = "sum"; + } + if (message.hllppUniqueCount != null && message.hasOwnProperty("hllppUniqueCount")) { + object.hllppUniqueCount = $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.toObject(message.hllppUniqueCount, options); + if (options.oneofs) + object.aggregator = "hllppUniqueCount"; + } + if (message.max != null && message.hasOwnProperty("max")) { + object.max = $root.google.bigtable.admin.v2.Type.Aggregate.Max.toObject(message.max, options); + if (options.oneofs) + object.aggregator = "max"; + } + if (message.min != null && message.hasOwnProperty("min")) { + object.min = $root.google.bigtable.admin.v2.Type.Aggregate.Min.toObject(message.min, options); + if (options.oneofs) + object.aggregator = "min"; + } + return object; + }; - MutateRowsRequest.Entry = (function() { + /** + * Converts this Aggregate to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @instance + * @returns {Object.} JSON object + */ + Aggregate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of an Entry. - * @memberof google.bigtable.v2.MutateRowsRequest - * @interface IEntry - * @property {Uint8Array|null} [rowKey] Entry rowKey - * @property {Array.|null} [mutations] Entry mutations - */ + /** + * Gets the default type url for Aggregate + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Aggregate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate"; + }; - /** - * Constructs a new Entry. - * @memberof google.bigtable.v2.MutateRowsRequest - * @classdesc Represents an Entry. - * @implements IEntry - * @constructor - * @param {google.bigtable.v2.MutateRowsRequest.IEntry=} [properties] Properties to set - */ - function Entry(properties) { - this.mutations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Aggregate.Sum = (function() { - /** - * Entry rowKey. - * @member {Uint8Array} rowKey - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @instance - */ - Entry.prototype.rowKey = $util.newBuffer([]); + /** + * Properties of a Sum. + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @interface ISum + */ - /** - * Entry mutations. - * @member {Array.} mutations - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @instance - */ - Entry.prototype.mutations = $util.emptyArray; + /** + * Constructs a new Sum. + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @classdesc Represents a Sum. + * @implements ISum + * @constructor + * @param {google.bigtable.admin.v2.Type.Aggregate.ISum=} [properties] Properties to set + */ + function Sum(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new Entry instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {google.bigtable.v2.MutateRowsRequest.IEntry=} [properties] Properties to set - * @returns {google.bigtable.v2.MutateRowsRequest.Entry} Entry instance - */ - Entry.create = function create(properties) { - return new Entry(properties); - }; + /** + * Creates a new Sum instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.ISum=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Aggregate.Sum} Sum instance + */ + Sum.create = function create(properties) { + return new Sum(properties); + }; - /** - * Encodes the specified Entry message. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.Entry.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {google.bigtable.v2.MutateRowsRequest.IEntry} message Entry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Entry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowKey); - if (message.mutations != null && message.mutations.length) - for (var i = 0; i < message.mutations.length; ++i) - $root.google.bigtable.v2.Mutation.encode(message.mutations[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Sum message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Sum.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.ISum} message Sum message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Sum.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.Entry.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {google.bigtable.v2.MutateRowsRequest.IEntry} message Entry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Entry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Sum message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Sum.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.ISum} message Sum message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Sum.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an Entry message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.MutateRowsRequest.Entry} Entry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Entry.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowsRequest.Entry(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.rowKey = reader.bytes(); - break; - } - case 2: { - if (!(message.mutations && message.mutations.length)) - message.mutations = []; - message.mutations.push($root.google.bigtable.v2.Mutation.decode(reader, reader.uint32())); - break; + /** + * Decodes a Sum message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Aggregate.Sum} Sum + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Sum.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate.Sum(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return message; + }; - /** - * Decodes an Entry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.MutateRowsRequest.Entry} Entry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Entry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Sum message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Aggregate.Sum} Sum + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Sum.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an Entry message. - * @function verify - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Entry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) - return "rowKey: buffer expected"; - if (message.mutations != null && message.hasOwnProperty("mutations")) { - if (!Array.isArray(message.mutations)) - return "mutations: array expected"; - for (var i = 0; i < message.mutations.length; ++i) { - var error = $root.google.bigtable.v2.Mutation.verify(message.mutations[i]); - if (error) - return "mutations." + error; - } - } - return null; - }; + /** + * Verifies a Sum message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Sum.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates an Entry message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.MutateRowsRequest.Entry} Entry - */ - Entry.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.MutateRowsRequest.Entry) - return object; - var message = new $root.google.bigtable.v2.MutateRowsRequest.Entry(); - if (object.rowKey != null) - if (typeof object.rowKey === "string") - $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); - else if (object.rowKey.length >= 0) - message.rowKey = object.rowKey; - if (object.mutations) { - if (!Array.isArray(object.mutations)) - throw TypeError(".google.bigtable.v2.MutateRowsRequest.Entry.mutations: array expected"); - message.mutations = []; - for (var i = 0; i < object.mutations.length; ++i) { - if (typeof object.mutations[i] !== "object") - throw TypeError(".google.bigtable.v2.MutateRowsRequest.Entry.mutations: object expected"); - message.mutations[i] = $root.google.bigtable.v2.Mutation.fromObject(object.mutations[i]); - } - } - return message; - }; + /** + * Creates a Sum message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Aggregate.Sum} Sum + */ + Sum.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate.Sum) + return object; + return new $root.google.bigtable.admin.v2.Type.Aggregate.Sum(); + }; - /** - * Creates a plain object from an Entry message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {google.bigtable.v2.MutateRowsRequest.Entry} message Entry - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Entry.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.mutations = []; - if (options.defaults) - if (options.bytes === String) - object.rowKey = ""; - else { - object.rowKey = []; - if (options.bytes !== Array) - object.rowKey = $util.newBuffer(object.rowKey); - } - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; - if (message.mutations && message.mutations.length) { - object.mutations = []; - for (var j = 0; j < message.mutations.length; ++j) - object.mutations[j] = $root.google.bigtable.v2.Mutation.toObject(message.mutations[j], options); - } - return object; - }; + /** + * Creates a plain object from a Sum message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.Sum} message Sum + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Sum.toObject = function toObject() { + return {}; + }; - /** - * Converts this Entry to JSON. - * @function toJSON - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @instance - * @returns {Object.} JSON object - */ - Entry.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Sum to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @instance + * @returns {Object.} JSON object + */ + Sum.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Entry - * @function getTypeUrl - * @memberof google.bigtable.v2.MutateRowsRequest.Entry - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Entry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.MutateRowsRequest.Entry"; - }; + /** + * Gets the default type url for Sum + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Aggregate.Sum + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Sum.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate.Sum"; + }; - return Entry; - })(); + return Sum; + })(); - return MutateRowsRequest; - })(); + Aggregate.Max = (function() { - v2.MutateRowsResponse = (function() { + /** + * Properties of a Max. + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @interface IMax + */ - /** - * Properties of a MutateRowsResponse. - * @memberof google.bigtable.v2 - * @interface IMutateRowsResponse - * @property {Array.|null} [entries] MutateRowsResponse entries - * @property {google.bigtable.v2.IRateLimitInfo|null} [rateLimitInfo] MutateRowsResponse rateLimitInfo - */ + /** + * Constructs a new Max. + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @classdesc Represents a Max. + * @implements IMax + * @constructor + * @param {google.bigtable.admin.v2.Type.Aggregate.IMax=} [properties] Properties to set + */ + function Max(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new MutateRowsResponse. - * @memberof google.bigtable.v2 - * @classdesc Represents a MutateRowsResponse. - * @implements IMutateRowsResponse - * @constructor - * @param {google.bigtable.v2.IMutateRowsResponse=} [properties] Properties to set - */ - function MutateRowsResponse(properties) { - this.entries = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a new Max instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IMax=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Aggregate.Max} Max instance + */ + Max.create = function create(properties) { + return new Max(properties); + }; - /** - * MutateRowsResponse entries. - * @member {Array.} entries - * @memberof google.bigtable.v2.MutateRowsResponse - * @instance - */ - MutateRowsResponse.prototype.entries = $util.emptyArray; + /** + * Encodes the specified Max message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Max.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IMax} message Max message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Max.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * MutateRowsResponse rateLimitInfo. - * @member {google.bigtable.v2.IRateLimitInfo|null|undefined} rateLimitInfo - * @memberof google.bigtable.v2.MutateRowsResponse - * @instance - */ - MutateRowsResponse.prototype.rateLimitInfo = null; + /** + * Encodes the specified Max message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Max.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IMax} message Max message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Max.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Decodes a Max message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Aggregate.Max} Max + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Max.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate.Max(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - // Virtual OneOf for proto3 optional field - Object.defineProperty(MutateRowsResponse.prototype, "_rateLimitInfo", { - get: $util.oneOfGetter($oneOfFields = ["rateLimitInfo"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes a Max message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Aggregate.Max} Max + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Max.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new MutateRowsResponse instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {google.bigtable.v2.IMutateRowsResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.MutateRowsResponse} MutateRowsResponse instance - */ - MutateRowsResponse.create = function create(properties) { - return new MutateRowsResponse(properties); - }; + /** + * Verifies a Max message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Max.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Encodes the specified MutateRowsResponse message. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {google.bigtable.v2.IMutateRowsResponse} message MutateRowsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateRowsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entries != null && message.entries.length) - for (var i = 0; i < message.entries.length; ++i) - $root.google.bigtable.v2.MutateRowsResponse.Entry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.rateLimitInfo != null && Object.hasOwnProperty.call(message, "rateLimitInfo")) - $root.google.bigtable.v2.RateLimitInfo.encode(message.rateLimitInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Creates a Max message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Aggregate.Max} Max + */ + Max.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate.Max) + return object; + return new $root.google.bigtable.admin.v2.Type.Aggregate.Max(); + }; - /** - * Encodes the specified MutateRowsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {google.bigtable.v2.IMutateRowsResponse} message MutateRowsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from a Max message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.Max} message Max + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Max.toObject = function toObject() { + return {}; + }; - /** - * Decodes a MutateRowsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.MutateRowsResponse} MutateRowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateRowsResponse.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - if (!(message.entries && message.entries.length)) - message.entries = []; - message.entries.push($root.google.bigtable.v2.MutateRowsResponse.Entry.decode(reader, reader.uint32())); - break; - } - case 3: { - message.rateLimitInfo = $root.google.bigtable.v2.RateLimitInfo.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Converts this Max to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @instance + * @returns {Object.} JSON object + */ + Max.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a MutateRowsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.MutateRowsResponse} MutateRowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateRowsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Gets the default type url for Max + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Aggregate.Max + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Max.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate.Max"; + }; - /** - * Verifies a MutateRowsResponse message. - * @function verify - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MutateRowsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.entries != null && message.hasOwnProperty("entries")) { - if (!Array.isArray(message.entries)) - return "entries: array expected"; - for (var i = 0; i < message.entries.length; ++i) { - var error = $root.google.bigtable.v2.MutateRowsResponse.Entry.verify(message.entries[i]); - if (error) - return "entries." + error; - } - } - if (message.rateLimitInfo != null && message.hasOwnProperty("rateLimitInfo")) { - properties._rateLimitInfo = 1; - { - var error = $root.google.bigtable.v2.RateLimitInfo.verify(message.rateLimitInfo); - if (error) - return "rateLimitInfo." + error; - } - } - return null; - }; + return Max; + })(); - /** - * Creates a MutateRowsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.MutateRowsResponse} MutateRowsResponse - */ - MutateRowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.MutateRowsResponse) - return object; - var message = new $root.google.bigtable.v2.MutateRowsResponse(); - if (object.entries) { - if (!Array.isArray(object.entries)) - throw TypeError(".google.bigtable.v2.MutateRowsResponse.entries: array expected"); - message.entries = []; - for (var i = 0; i < object.entries.length; ++i) { - if (typeof object.entries[i] !== "object") - throw TypeError(".google.bigtable.v2.MutateRowsResponse.entries: object expected"); - message.entries[i] = $root.google.bigtable.v2.MutateRowsResponse.Entry.fromObject(object.entries[i]); - } - } - if (object.rateLimitInfo != null) { - if (typeof object.rateLimitInfo !== "object") - throw TypeError(".google.bigtable.v2.MutateRowsResponse.rateLimitInfo: object expected"); - message.rateLimitInfo = $root.google.bigtable.v2.RateLimitInfo.fromObject(object.rateLimitInfo); - } - return message; - }; + Aggregate.Min = (function() { - /** - * Creates a plain object from a MutateRowsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {google.bigtable.v2.MutateRowsResponse} message MutateRowsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MutateRowsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.entries = []; - if (message.entries && message.entries.length) { - object.entries = []; - for (var j = 0; j < message.entries.length; ++j) - object.entries[j] = $root.google.bigtable.v2.MutateRowsResponse.Entry.toObject(message.entries[j], options); - } - if (message.rateLimitInfo != null && message.hasOwnProperty("rateLimitInfo")) { - object.rateLimitInfo = $root.google.bigtable.v2.RateLimitInfo.toObject(message.rateLimitInfo, options); - if (options.oneofs) - object._rateLimitInfo = "rateLimitInfo"; - } - return object; - }; + /** + * Properties of a Min. + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @interface IMin + */ - /** - * Converts this MutateRowsResponse to JSON. - * @function toJSON - * @memberof google.bigtable.v2.MutateRowsResponse - * @instance - * @returns {Object.} JSON object - */ - MutateRowsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new Min. + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @classdesc Represents a Min. + * @implements IMin + * @constructor + * @param {google.bigtable.admin.v2.Type.Aggregate.IMin=} [properties] Properties to set + */ + function Min(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Gets the default type url for MutateRowsResponse - * @function getTypeUrl - * @memberof google.bigtable.v2.MutateRowsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MutateRowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.MutateRowsResponse"; - }; + /** + * Creates a new Min instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IMin=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Aggregate.Min} Min instance + */ + Min.create = function create(properties) { + return new Min(properties); + }; - MutateRowsResponse.Entry = (function() { + /** + * Encodes the specified Min message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Min.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IMin} message Min message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Min.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Properties of an Entry. - * @memberof google.bigtable.v2.MutateRowsResponse - * @interface IEntry - * @property {number|Long|null} [index] Entry index - * @property {google.rpc.IStatus|null} [status] Entry status - */ + /** + * Encodes the specified Min message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.Min.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IMin} message Min message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Min.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new Entry. - * @memberof google.bigtable.v2.MutateRowsResponse - * @classdesc Represents an Entry. - * @implements IEntry - * @constructor - * @param {google.bigtable.v2.MutateRowsResponse.IEntry=} [properties] Properties to set - */ - function Entry(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Decodes a Min message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Aggregate.Min} Min + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Min.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate.Min(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Entry index. - * @member {number|Long} index - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @instance - */ - Entry.prototype.index = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Decodes a Min message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Aggregate.Min} Min + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Min.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Entry status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @instance - */ - Entry.prototype.status = null; + /** + * Verifies a Min message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Min.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a new Entry instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {google.bigtable.v2.MutateRowsResponse.IEntry=} [properties] Properties to set - * @returns {google.bigtable.v2.MutateRowsResponse.Entry} Entry instance - */ - Entry.create = function create(properties) { - return new Entry(properties); - }; + /** + * Creates a Min message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Aggregate.Min} Min + */ + Min.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate.Min) + return object; + return new $root.google.bigtable.admin.v2.Type.Aggregate.Min(); + }; - /** - * Encodes the specified Entry message. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.Entry.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {google.bigtable.v2.MutateRowsResponse.IEntry} message Entry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Entry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.index); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a plain object from a Min message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.Min} message Min + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Min.toObject = function toObject() { + return {}; + }; - /** - * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.Entry.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {google.bigtable.v2.MutateRowsResponse.IEntry} message Entry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Entry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this Min to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @instance + * @returns {Object.} JSON object + */ + Min.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes an Entry message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.MutateRowsResponse.Entry} Entry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Entry.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowsResponse.Entry(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.index = reader.int64(); - break; - } - case 2: { - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; + /** + * Gets the default type url for Min + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Aggregate.Min + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Min.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Entry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.MutateRowsResponse.Entry} Entry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Entry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate.Min"; + }; - /** - * Verifies an Entry message. - * @function verify - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Entry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index) && !(message.index && $util.isInteger(message.index.low) && $util.isInteger(message.index.high))) - return "index: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + return Min; + })(); - /** - * Creates an Entry message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.MutateRowsResponse.Entry} Entry - */ - Entry.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.MutateRowsResponse.Entry) - return object; - var message = new $root.google.bigtable.v2.MutateRowsResponse.Entry(); - if (object.index != null) - if ($util.Long) - (message.index = $util.Long.fromValue(object.index)).unsigned = false; - else if (typeof object.index === "string") - message.index = parseInt(object.index, 10); - else if (typeof object.index === "number") - message.index = object.index; - else if (typeof object.index === "object") - message.index = new $util.LongBits(object.index.low >>> 0, object.index.high >>> 0).toNumber(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.bigtable.v2.MutateRowsResponse.Entry.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; + Aggregate.HyperLogLogPlusPlusUniqueCount = (function() { - /** - * Creates a plain object from an Entry message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {google.bigtable.v2.MutateRowsResponse.Entry} message Entry - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Entry.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.index = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.index = options.longs === String ? "0" : 0; - object.status = null; - } - if (message.index != null && message.hasOwnProperty("index")) - if (typeof message.index === "number") - object.index = options.longs === String ? String(message.index) : message.index; - else - object.index = options.longs === String ? $util.Long.prototype.toString.call(message.index) : options.longs === Number ? new $util.LongBits(message.index.low >>> 0, message.index.high >>> 0).toNumber() : message.index; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - return object; - }; + /** + * Properties of a HyperLogLogPlusPlusUniqueCount. + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @interface IHyperLogLogPlusPlusUniqueCount + */ - /** - * Converts this Entry to JSON. - * @function toJSON - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @instance - * @returns {Object.} JSON object - */ - Entry.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new HyperLogLogPlusPlusUniqueCount. + * @memberof google.bigtable.admin.v2.Type.Aggregate + * @classdesc Represents a HyperLogLogPlusPlusUniqueCount. + * @implements IHyperLogLogPlusPlusUniqueCount + * @constructor + * @param {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount=} [properties] Properties to set + */ + function HyperLogLogPlusPlusUniqueCount(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Gets the default type url for Entry - * @function getTypeUrl - * @memberof google.bigtable.v2.MutateRowsResponse.Entry - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Entry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.MutateRowsResponse.Entry"; - }; + /** + * Creates a new HyperLogLogPlusPlusUniqueCount instance using the specified properties. + * @function create + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount=} [properties] Properties to set + * @returns {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} HyperLogLogPlusPlusUniqueCount instance + */ + HyperLogLogPlusPlusUniqueCount.create = function create(properties) { + return new HyperLogLogPlusPlusUniqueCount(properties); + }; - return Entry; + /** + * Encodes the specified HyperLogLogPlusPlusUniqueCount message. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify|verify} messages. + * @function encode + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount} message HyperLogLogPlusPlusUniqueCount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HyperLogLogPlusPlusUniqueCount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified HyperLogLogPlusPlusUniqueCount message, length delimited. Does not implicitly {@link google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.IHyperLogLogPlusPlusUniqueCount} message HyperLogLogPlusPlusUniqueCount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HyperLogLogPlusPlusUniqueCount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HyperLogLogPlusPlusUniqueCount message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} HyperLogLogPlusPlusUniqueCount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HyperLogLogPlusPlusUniqueCount.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HyperLogLogPlusPlusUniqueCount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} HyperLogLogPlusPlusUniqueCount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HyperLogLogPlusPlusUniqueCount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HyperLogLogPlusPlusUniqueCount message. + * @function verify + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HyperLogLogPlusPlusUniqueCount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a HyperLogLogPlusPlusUniqueCount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} HyperLogLogPlusPlusUniqueCount + */ + HyperLogLogPlusPlusUniqueCount.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount) + return object; + return new $root.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount(); + }; + + /** + * Creates a plain object from a HyperLogLogPlusPlusUniqueCount message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount} message HyperLogLogPlusPlusUniqueCount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HyperLogLogPlusPlusUniqueCount.toObject = function toObject() { + return {}; + }; + + /** + * Converts this HyperLogLogPlusPlusUniqueCount to JSON. + * @function toJSON + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @instance + * @returns {Object.} JSON object + */ + HyperLogLogPlusPlusUniqueCount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HyperLogLogPlusPlusUniqueCount + * @function getTypeUrl + * @memberof google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HyperLogLogPlusPlusUniqueCount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount"; + }; + + return HyperLogLogPlusPlusUniqueCount; + })(); + + return Aggregate; + })(); + + return Type; })(); - return MutateRowsResponse; + return v2; })(); - v2.RateLimitInfo = (function() { + return admin; + })(); - /** - * Properties of a RateLimitInfo. - * @memberof google.bigtable.v2 - * @interface IRateLimitInfo - * @property {google.protobuf.IDuration|null} [period] RateLimitInfo period - * @property {number|null} [factor] RateLimitInfo factor - */ + bigtable.v2 = (function() { + + /** + * Namespace v2. + * @memberof google.bigtable + * @namespace + */ + var v2 = {}; + + v2.Bigtable = (function() { /** - * Constructs a new RateLimitInfo. + * Constructs a new Bigtable service. * @memberof google.bigtable.v2 - * @classdesc Represents a RateLimitInfo. - * @implements IRateLimitInfo + * @classdesc Represents a Bigtable + * @extends $protobuf.rpc.Service * @constructor - * @param {google.bigtable.v2.IRateLimitInfo=} [properties] Properties to set + * @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 RateLimitInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function Bigtable(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * RateLimitInfo period. - * @member {google.protobuf.IDuration|null|undefined} period - * @memberof google.bigtable.v2.RateLimitInfo - * @instance - */ - RateLimitInfo.prototype.period = null; - - /** - * RateLimitInfo factor. - * @member {number} factor - * @memberof google.bigtable.v2.RateLimitInfo - * @instance - */ - RateLimitInfo.prototype.factor = 0; + (Bigtable.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Bigtable; /** - * Creates a new RateLimitInfo instance using the specified properties. + * Creates new Bigtable service using the specified rpc implementation. * @function create - * @memberof google.bigtable.v2.RateLimitInfo + * @memberof google.bigtable.v2.Bigtable * @static - * @param {google.bigtable.v2.IRateLimitInfo=} [properties] Properties to set - * @returns {google.bigtable.v2.RateLimitInfo} RateLimitInfo instance + * @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 {Bigtable} RPC service. Useful where requests and/or responses are streamed. */ - RateLimitInfo.create = function create(properties) { - return new RateLimitInfo(properties); + Bigtable.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Encodes the specified RateLimitInfo message. Does not implicitly {@link google.bigtable.v2.RateLimitInfo.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.RateLimitInfo - * @static - * @param {google.bigtable.v2.IRateLimitInfo} message RateLimitInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. + * @memberof google.bigtable.v2.Bigtable + * @typedef ReadRowsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.ReadRowsResponse} [response] ReadRowsResponse */ - RateLimitInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.period != null && Object.hasOwnProperty.call(message, "period")) - $root.google.protobuf.Duration.encode(message.period, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.factor != null && Object.hasOwnProperty.call(message, "factor")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.factor); - return writer; - }; /** - * Encodes the specified RateLimitInfo message, length delimited. Does not implicitly {@link google.bigtable.v2.RateLimitInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.RateLimitInfo - * @static - * @param {google.bigtable.v2.IRateLimitInfo} message RateLimitInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ReadRows. + * @function readRows + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IReadRowsRequest} request ReadRowsRequest message or plain object + * @param {google.bigtable.v2.Bigtable.ReadRowsCallback} callback Node-style callback called with the error, if any, and ReadRowsResponse + * @returns {undefined} + * @variation 1 */ - RateLimitInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Bigtable.prototype.readRows = function readRows(request, callback) { + return this.rpcCall(readRows, $root.google.bigtable.v2.ReadRowsRequest, $root.google.bigtable.v2.ReadRowsResponse, request, callback); + }, "name", { value: "ReadRows" }); /** - * Decodes a RateLimitInfo message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.RateLimitInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.RateLimitInfo} RateLimitInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ReadRows. + * @function readRows + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IReadRowsRequest} request ReadRowsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - RateLimitInfo.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RateLimitInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 2: { - message.factor = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a RateLimitInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.RateLimitInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.RateLimitInfo} RateLimitInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. + * @memberof google.bigtable.v2.Bigtable + * @typedef SampleRowKeysCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.SampleRowKeysResponse} [response] SampleRowKeysResponse */ - RateLimitInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a RateLimitInfo message. - * @function verify - * @memberof google.bigtable.v2.RateLimitInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls SampleRowKeys. + * @function sampleRowKeys + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.ISampleRowKeysRequest} request SampleRowKeysRequest message or plain object + * @param {google.bigtable.v2.Bigtable.SampleRowKeysCallback} callback Node-style callback called with the error, if any, and SampleRowKeysResponse + * @returns {undefined} + * @variation 1 */ - RateLimitInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.period != null && message.hasOwnProperty("period")) { - var error = $root.google.protobuf.Duration.verify(message.period); - if (error) - return "period." + error; - } - if (message.factor != null && message.hasOwnProperty("factor")) - if (typeof message.factor !== "number") - return "factor: number expected"; - return null; - }; + Object.defineProperty(Bigtable.prototype.sampleRowKeys = function sampleRowKeys(request, callback) { + return this.rpcCall(sampleRowKeys, $root.google.bigtable.v2.SampleRowKeysRequest, $root.google.bigtable.v2.SampleRowKeysResponse, request, callback); + }, "name", { value: "SampleRowKeys" }); /** - * Creates a RateLimitInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.RateLimitInfo - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.RateLimitInfo} RateLimitInfo + * Calls SampleRowKeys. + * @function sampleRowKeys + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.ISampleRowKeysRequest} request SampleRowKeysRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - RateLimitInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.RateLimitInfo) - return object; - var message = new $root.google.bigtable.v2.RateLimitInfo(); - if (object.period != null) { - if (typeof object.period !== "object") - throw TypeError(".google.bigtable.v2.RateLimitInfo.period: object expected"); - message.period = $root.google.protobuf.Duration.fromObject(object.period); - } - if (object.factor != null) - message.factor = Number(object.factor); - return message; - }; /** - * Creates a plain object from a RateLimitInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.RateLimitInfo - * @static - * @param {google.bigtable.v2.RateLimitInfo} message RateLimitInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. + * @memberof google.bigtable.v2.Bigtable + * @typedef MutateRowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.MutateRowResponse} [response] MutateRowResponse */ - RateLimitInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.period = null; - object.factor = 0; - } - if (message.period != null && message.hasOwnProperty("period")) - object.period = $root.google.protobuf.Duration.toObject(message.period, options); - if (message.factor != null && message.hasOwnProperty("factor")) - object.factor = options.json && !isFinite(message.factor) ? String(message.factor) : message.factor; - return object; - }; /** - * Converts this RateLimitInfo to JSON. - * @function toJSON - * @memberof google.bigtable.v2.RateLimitInfo + * Calls MutateRow. + * @function mutateRow + * @memberof google.bigtable.v2.Bigtable * @instance - * @returns {Object.} JSON object + * @param {google.bigtable.v2.IMutateRowRequest} request MutateRowRequest message or plain object + * @param {google.bigtable.v2.Bigtable.MutateRowCallback} callback Node-style callback called with the error, if any, and MutateRowResponse + * @returns {undefined} + * @variation 1 */ - RateLimitInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Bigtable.prototype.mutateRow = function mutateRow(request, callback) { + return this.rpcCall(mutateRow, $root.google.bigtable.v2.MutateRowRequest, $root.google.bigtable.v2.MutateRowResponse, request, callback); + }, "name", { value: "MutateRow" }); /** - * Gets the default type url for RateLimitInfo - * @function getTypeUrl - * @memberof google.bigtable.v2.RateLimitInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls MutateRow. + * @function mutateRow + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IMutateRowRequest} request MutateRowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - RateLimitInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.RateLimitInfo"; - }; - - return RateLimitInfo; - })(); - - v2.CheckAndMutateRowRequest = (function() { /** - * Properties of a CheckAndMutateRowRequest. - * @memberof google.bigtable.v2 - * @interface ICheckAndMutateRowRequest - * @property {string|null} [tableName] CheckAndMutateRowRequest tableName - * @property {string|null} [authorizedViewName] CheckAndMutateRowRequest authorizedViewName - * @property {string|null} [appProfileId] CheckAndMutateRowRequest appProfileId - * @property {Uint8Array|null} [rowKey] CheckAndMutateRowRequest rowKey - * @property {google.bigtable.v2.IRowFilter|null} [predicateFilter] CheckAndMutateRowRequest predicateFilter - * @property {Array.|null} [trueMutations] CheckAndMutateRowRequest trueMutations - * @property {Array.|null} [falseMutations] CheckAndMutateRowRequest falseMutations + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. + * @memberof google.bigtable.v2.Bigtable + * @typedef MutateRowsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.MutateRowsResponse} [response] MutateRowsResponse */ /** - * Constructs a new CheckAndMutateRowRequest. - * @memberof google.bigtable.v2 - * @classdesc Represents a CheckAndMutateRowRequest. - * @implements ICheckAndMutateRowRequest - * @constructor - * @param {google.bigtable.v2.ICheckAndMutateRowRequest=} [properties] Properties to set + * Calls MutateRows. + * @function mutateRows + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IMutateRowsRequest} request MutateRowsRequest message or plain object + * @param {google.bigtable.v2.Bigtable.MutateRowsCallback} callback Node-style callback called with the error, if any, and MutateRowsResponse + * @returns {undefined} + * @variation 1 */ - function CheckAndMutateRowRequest(properties) { - this.trueMutations = []; - this.falseMutations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Bigtable.prototype.mutateRows = function mutateRows(request, callback) { + return this.rpcCall(mutateRows, $root.google.bigtable.v2.MutateRowsRequest, $root.google.bigtable.v2.MutateRowsResponse, request, callback); + }, "name", { value: "MutateRows" }); /** - * CheckAndMutateRowRequest tableName. - * @member {string} tableName - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * Calls MutateRows. + * @function mutateRows + * @memberof google.bigtable.v2.Bigtable * @instance + * @param {google.bigtable.v2.IMutateRowsRequest} request MutateRowsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CheckAndMutateRowRequest.prototype.tableName = ""; /** - * CheckAndMutateRowRequest authorizedViewName. - * @member {string} authorizedViewName - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. + * @memberof google.bigtable.v2.Bigtable + * @typedef CheckAndMutateRowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.CheckAndMutateRowResponse} [response] CheckAndMutateRowResponse + */ + + /** + * Calls CheckAndMutateRow. + * @function checkAndMutateRow + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.ICheckAndMutateRowRequest} request CheckAndMutateRowRequest message or plain object + * @param {google.bigtable.v2.Bigtable.CheckAndMutateRowCallback} callback Node-style callback called with the error, if any, and CheckAndMutateRowResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Bigtable.prototype.checkAndMutateRow = function checkAndMutateRow(request, callback) { + return this.rpcCall(checkAndMutateRow, $root.google.bigtable.v2.CheckAndMutateRowRequest, $root.google.bigtable.v2.CheckAndMutateRowResponse, request, callback); + }, "name", { value: "CheckAndMutateRow" }); + + /** + * Calls CheckAndMutateRow. + * @function checkAndMutateRow + * @memberof google.bigtable.v2.Bigtable * @instance + * @param {google.bigtable.v2.ICheckAndMutateRowRequest} request CheckAndMutateRowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CheckAndMutateRowRequest.prototype.authorizedViewName = ""; /** - * CheckAndMutateRowRequest appProfileId. + * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. + * @memberof google.bigtable.v2.Bigtable + * @typedef PingAndWarmCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.PingAndWarmResponse} [response] PingAndWarmResponse + */ + + /** + * Calls PingAndWarm. + * @function pingAndWarm + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IPingAndWarmRequest} request PingAndWarmRequest message or plain object + * @param {google.bigtable.v2.Bigtable.PingAndWarmCallback} callback Node-style callback called with the error, if any, and PingAndWarmResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Bigtable.prototype.pingAndWarm = function pingAndWarm(request, callback) { + return this.rpcCall(pingAndWarm, $root.google.bigtable.v2.PingAndWarmRequest, $root.google.bigtable.v2.PingAndWarmResponse, request, callback); + }, "name", { value: "PingAndWarm" }); + + /** + * Calls PingAndWarm. + * @function pingAndWarm + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IPingAndWarmRequest} request PingAndWarmRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. + * @memberof google.bigtable.v2.Bigtable + * @typedef ReadModifyWriteRowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.ReadModifyWriteRowResponse} [response] ReadModifyWriteRowResponse + */ + + /** + * Calls ReadModifyWriteRow. + * @function readModifyWriteRow + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IReadModifyWriteRowRequest} request ReadModifyWriteRowRequest message or plain object + * @param {google.bigtable.v2.Bigtable.ReadModifyWriteRowCallback} callback Node-style callback called with the error, if any, and ReadModifyWriteRowResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Bigtable.prototype.readModifyWriteRow = function readModifyWriteRow(request, callback) { + return this.rpcCall(readModifyWriteRow, $root.google.bigtable.v2.ReadModifyWriteRowRequest, $root.google.bigtable.v2.ReadModifyWriteRowResponse, request, callback); + }, "name", { value: "ReadModifyWriteRow" }); + + /** + * Calls ReadModifyWriteRow. + * @function readModifyWriteRow + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IReadModifyWriteRowRequest} request ReadModifyWriteRowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|generateInitialChangeStreamPartitions}. + * @memberof google.bigtable.v2.Bigtable + * @typedef GenerateInitialChangeStreamPartitionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} [response] GenerateInitialChangeStreamPartitionsResponse + */ + + /** + * Calls GenerateInitialChangeStreamPartitions. + * @function generateInitialChangeStreamPartitions + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest} request GenerateInitialChangeStreamPartitionsRequest message or plain object + * @param {google.bigtable.v2.Bigtable.GenerateInitialChangeStreamPartitionsCallback} callback Node-style callback called with the error, if any, and GenerateInitialChangeStreamPartitionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Bigtable.prototype.generateInitialChangeStreamPartitions = function generateInitialChangeStreamPartitions(request, callback) { + return this.rpcCall(generateInitialChangeStreamPartitions, $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest, $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse, request, callback); + }, "name", { value: "GenerateInitialChangeStreamPartitions" }); + + /** + * Calls GenerateInitialChangeStreamPartitions. + * @function generateInitialChangeStreamPartitions + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest} request GenerateInitialChangeStreamPartitionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|readChangeStream}. + * @memberof google.bigtable.v2.Bigtable + * @typedef ReadChangeStreamCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.ReadChangeStreamResponse} [response] ReadChangeStreamResponse + */ + + /** + * Calls ReadChangeStream. + * @function readChangeStream + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IReadChangeStreamRequest} request ReadChangeStreamRequest message or plain object + * @param {google.bigtable.v2.Bigtable.ReadChangeStreamCallback} callback Node-style callback called with the error, if any, and ReadChangeStreamResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Bigtable.prototype.readChangeStream = function readChangeStream(request, callback) { + return this.rpcCall(readChangeStream, $root.google.bigtable.v2.ReadChangeStreamRequest, $root.google.bigtable.v2.ReadChangeStreamResponse, request, callback); + }, "name", { value: "ReadChangeStream" }); + + /** + * Calls ReadChangeStream. + * @function readChangeStream + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IReadChangeStreamRequest} request ReadChangeStreamRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|prepareQuery}. + * @memberof google.bigtable.v2.Bigtable + * @typedef PrepareQueryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.PrepareQueryResponse} [response] PrepareQueryResponse + */ + + /** + * Calls PrepareQuery. + * @function prepareQuery + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IPrepareQueryRequest} request PrepareQueryRequest message or plain object + * @param {google.bigtable.v2.Bigtable.PrepareQueryCallback} callback Node-style callback called with the error, if any, and PrepareQueryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Bigtable.prototype.prepareQuery = function prepareQuery(request, callback) { + return this.rpcCall(prepareQuery, $root.google.bigtable.v2.PrepareQueryRequest, $root.google.bigtable.v2.PrepareQueryResponse, request, callback); + }, "name", { value: "PrepareQuery" }); + + /** + * Calls PrepareQuery. + * @function prepareQuery + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IPrepareQueryRequest} request PrepareQueryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.bigtable.v2.Bigtable|executeQuery}. + * @memberof google.bigtable.v2.Bigtable + * @typedef ExecuteQueryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.bigtable.v2.ExecuteQueryResponse} [response] ExecuteQueryResponse + */ + + /** + * Calls ExecuteQuery. + * @function executeQuery + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IExecuteQueryRequest} request ExecuteQueryRequest message or plain object + * @param {google.bigtable.v2.Bigtable.ExecuteQueryCallback} callback Node-style callback called with the error, if any, and ExecuteQueryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Bigtable.prototype.executeQuery = function executeQuery(request, callback) { + return this.rpcCall(executeQuery, $root.google.bigtable.v2.ExecuteQueryRequest, $root.google.bigtable.v2.ExecuteQueryResponse, request, callback); + }, "name", { value: "ExecuteQuery" }); + + /** + * Calls ExecuteQuery. + * @function executeQuery + * @memberof google.bigtable.v2.Bigtable + * @instance + * @param {google.bigtable.v2.IExecuteQueryRequest} request ExecuteQueryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Bigtable; + })(); + + v2.ReadRowsRequest = (function() { + + /** + * Properties of a ReadRowsRequest. + * @memberof google.bigtable.v2 + * @interface IReadRowsRequest + * @property {string|null} [tableName] ReadRowsRequest tableName + * @property {string|null} [authorizedViewName] ReadRowsRequest authorizedViewName + * @property {string|null} [materializedViewName] ReadRowsRequest materializedViewName + * @property {string|null} [appProfileId] ReadRowsRequest appProfileId + * @property {google.bigtable.v2.IRowSet|null} [rows] ReadRowsRequest rows + * @property {google.bigtable.v2.IRowFilter|null} [filter] ReadRowsRequest filter + * @property {number|Long|null} [rowsLimit] ReadRowsRequest rowsLimit + * @property {google.bigtable.v2.ReadRowsRequest.RequestStatsView|null} [requestStatsView] ReadRowsRequest requestStatsView + * @property {boolean|null} [reversed] ReadRowsRequest reversed + */ + + /** + * Constructs a new ReadRowsRequest. + * @memberof google.bigtable.v2 + * @classdesc Represents a ReadRowsRequest. + * @implements IReadRowsRequest + * @constructor + * @param {google.bigtable.v2.IReadRowsRequest=} [properties] Properties to set + */ + function ReadRowsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReadRowsRequest tableName. + * @member {string} tableName + * @memberof google.bigtable.v2.ReadRowsRequest + * @instance + */ + ReadRowsRequest.prototype.tableName = ""; + + /** + * ReadRowsRequest authorizedViewName. + * @member {string} authorizedViewName + * @memberof google.bigtable.v2.ReadRowsRequest + * @instance + */ + ReadRowsRequest.prototype.authorizedViewName = ""; + + /** + * ReadRowsRequest materializedViewName. + * @member {string} materializedViewName + * @memberof google.bigtable.v2.ReadRowsRequest + * @instance + */ + ReadRowsRequest.prototype.materializedViewName = ""; + + /** + * ReadRowsRequest appProfileId. * @member {string} appProfileId - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @instance */ - CheckAndMutateRowRequest.prototype.appProfileId = ""; + ReadRowsRequest.prototype.appProfileId = ""; /** - * CheckAndMutateRowRequest rowKey. - * @member {Uint8Array} rowKey - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * ReadRowsRequest rows. + * @member {google.bigtable.v2.IRowSet|null|undefined} rows + * @memberof google.bigtable.v2.ReadRowsRequest * @instance */ - CheckAndMutateRowRequest.prototype.rowKey = $util.newBuffer([]); + ReadRowsRequest.prototype.rows = null; /** - * CheckAndMutateRowRequest predicateFilter. - * @member {google.bigtable.v2.IRowFilter|null|undefined} predicateFilter - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * ReadRowsRequest filter. + * @member {google.bigtable.v2.IRowFilter|null|undefined} filter + * @memberof google.bigtable.v2.ReadRowsRequest * @instance */ - CheckAndMutateRowRequest.prototype.predicateFilter = null; + ReadRowsRequest.prototype.filter = null; /** - * CheckAndMutateRowRequest trueMutations. - * @member {Array.} trueMutations - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * ReadRowsRequest rowsLimit. + * @member {number|Long} rowsLimit + * @memberof google.bigtable.v2.ReadRowsRequest * @instance */ - CheckAndMutateRowRequest.prototype.trueMutations = $util.emptyArray; + ReadRowsRequest.prototype.rowsLimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CheckAndMutateRowRequest falseMutations. - * @member {Array.} falseMutations - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * ReadRowsRequest requestStatsView. + * @member {google.bigtable.v2.ReadRowsRequest.RequestStatsView} requestStatsView + * @memberof google.bigtable.v2.ReadRowsRequest * @instance */ - CheckAndMutateRowRequest.prototype.falseMutations = $util.emptyArray; + ReadRowsRequest.prototype.requestStatsView = 0; /** - * Creates a new CheckAndMutateRowRequest instance using the specified properties. + * ReadRowsRequest reversed. + * @member {boolean} reversed + * @memberof google.bigtable.v2.ReadRowsRequest + * @instance + */ + ReadRowsRequest.prototype.reversed = false; + + /** + * Creates a new ReadRowsRequest instance using the specified properties. * @function create - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static - * @param {google.bigtable.v2.ICheckAndMutateRowRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.CheckAndMutateRowRequest} CheckAndMutateRowRequest instance + * @param {google.bigtable.v2.IReadRowsRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadRowsRequest} ReadRowsRequest instance */ - CheckAndMutateRowRequest.create = function create(properties) { - return new CheckAndMutateRowRequest(properties); + ReadRowsRequest.create = function create(properties) { + return new ReadRowsRequest(properties); }; /** - * Encodes the specified CheckAndMutateRowRequest message. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowRequest.verify|verify} messages. + * Encodes the specified ReadRowsRequest message. Does not implicitly {@link google.bigtable.v2.ReadRowsRequest.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static - * @param {google.bigtable.v2.ICheckAndMutateRowRequest} message CheckAndMutateRowRequest message or plain object to encode + * @param {google.bigtable.v2.IReadRowsRequest} message ReadRowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckAndMutateRowRequest.encode = function encode(message, writer) { + ReadRowsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); - if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rowKey); - if (message.trueMutations != null && message.trueMutations.length) - for (var i = 0; i < message.trueMutations.length; ++i) - $root.google.bigtable.v2.Mutation.encode(message.trueMutations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.falseMutations != null && message.falseMutations.length) - for (var i = 0; i < message.falseMutations.length; ++i) - $root.google.bigtable.v2.Mutation.encode(message.falseMutations[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.predicateFilter != null && Object.hasOwnProperty.call(message, "predicateFilter")) - $root.google.bigtable.v2.RowFilter.encode(message.predicateFilter, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.rows != null && Object.hasOwnProperty.call(message, "rows")) + $root.google.bigtable.v2.RowSet.encode(message.rows, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + $root.google.bigtable.v2.RowFilter.encode(message.filter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.rowsLimit != null && Object.hasOwnProperty.call(message, "rowsLimit")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.rowsLimit); if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.appProfileId); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.appProfileId); + if (message.requestStatsView != null && Object.hasOwnProperty.call(message, "requestStatsView")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.requestStatsView); + if (message.reversed != null && Object.hasOwnProperty.call(message, "reversed")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.reversed); if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.authorizedViewName); + if (message.materializedViewName != null && Object.hasOwnProperty.call(message, "materializedViewName")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.materializedViewName); return writer; }; /** - * Encodes the specified CheckAndMutateRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowRequest.verify|verify} messages. + * Encodes the specified ReadRowsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static - * @param {google.bigtable.v2.ICheckAndMutateRowRequest} message CheckAndMutateRowRequest message or plain object to encode + * @param {google.bigtable.v2.IReadRowsRequest} message ReadRowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckAndMutateRowRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CheckAndMutateRowRequest message from the specified reader or buffer. + * Decodes a ReadRowsRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.CheckAndMutateRowRequest} CheckAndMutateRowRequest + * @returns {google.bigtable.v2.ReadRowsRequest} ReadRowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckAndMutateRowRequest.decode = function decode(reader, length, error) { + ReadRowsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.CheckAndMutateRowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadRowsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -46080,28 +45786,32 @@ message.authorizedViewName = reader.string(); break; } - case 7: { + case 11: { + message.materializedViewName = reader.string(); + break; + } + case 5: { message.appProfileId = reader.string(); break; } case 2: { - message.rowKey = reader.bytes(); + message.rows = $root.google.bigtable.v2.RowSet.decode(reader, reader.uint32()); break; } - case 6: { - message.predicateFilter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); + case 3: { + message.filter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); break; } case 4: { - if (!(message.trueMutations && message.trueMutations.length)) - message.trueMutations = []; - message.trueMutations.push($root.google.bigtable.v2.Mutation.decode(reader, reader.uint32())); + message.rowsLimit = reader.int64(); break; } - case 5: { - if (!(message.falseMutations && message.falseMutations.length)) - message.falseMutations = []; - message.falseMutations.push($root.google.bigtable.v2.Mutation.decode(reader, reader.uint32())); + case 6: { + message.requestStatsView = reader.int32(); + break; + } + case 7: { + message.reversed = reader.bool(); break; } default: @@ -46113,30 +45823,30 @@ }; /** - * Decodes a CheckAndMutateRowRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadRowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.CheckAndMutateRowRequest} CheckAndMutateRowRequest + * @returns {google.bigtable.v2.ReadRowsRequest} ReadRowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckAndMutateRowRequest.decodeDelimited = function decodeDelimited(reader) { + ReadRowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CheckAndMutateRowRequest message. + * Verifies a ReadRowsRequest message. * @function verify - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CheckAndMutateRowRequest.verify = function verify(message) { + ReadRowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.tableName != null && message.hasOwnProperty("tableName")) @@ -46145,189 +45855,222 @@ if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) if (!$util.isString(message.authorizedViewName)) return "authorizedViewName: string expected"; + if (message.materializedViewName != null && message.hasOwnProperty("materializedViewName")) + if (!$util.isString(message.materializedViewName)) + return "materializedViewName: string expected"; if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) if (!$util.isString(message.appProfileId)) return "appProfileId: string expected"; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) - return "rowKey: buffer expected"; - if (message.predicateFilter != null && message.hasOwnProperty("predicateFilter")) { - var error = $root.google.bigtable.v2.RowFilter.verify(message.predicateFilter); + if (message.rows != null && message.hasOwnProperty("rows")) { + var error = $root.google.bigtable.v2.RowSet.verify(message.rows); if (error) - return "predicateFilter." + error; + return "rows." + error; } - if (message.trueMutations != null && message.hasOwnProperty("trueMutations")) { - if (!Array.isArray(message.trueMutations)) - return "trueMutations: array expected"; - for (var i = 0; i < message.trueMutations.length; ++i) { - var error = $root.google.bigtable.v2.Mutation.verify(message.trueMutations[i]); - if (error) - return "trueMutations." + error; - } + if (message.filter != null && message.hasOwnProperty("filter")) { + var error = $root.google.bigtable.v2.RowFilter.verify(message.filter); + if (error) + return "filter." + error; } - if (message.falseMutations != null && message.hasOwnProperty("falseMutations")) { - if (!Array.isArray(message.falseMutations)) - return "falseMutations: array expected"; - for (var i = 0; i < message.falseMutations.length; ++i) { - var error = $root.google.bigtable.v2.Mutation.verify(message.falseMutations[i]); - if (error) - return "falseMutations." + error; + if (message.rowsLimit != null && message.hasOwnProperty("rowsLimit")) + if (!$util.isInteger(message.rowsLimit) && !(message.rowsLimit && $util.isInteger(message.rowsLimit.low) && $util.isInteger(message.rowsLimit.high))) + return "rowsLimit: integer|Long expected"; + if (message.requestStatsView != null && message.hasOwnProperty("requestStatsView")) + switch (message.requestStatsView) { + default: + return "requestStatsView: enum value expected"; + case 0: + case 1: + case 2: + break; } - } + if (message.reversed != null && message.hasOwnProperty("reversed")) + if (typeof message.reversed !== "boolean") + return "reversed: boolean expected"; return null; }; /** - * Creates a CheckAndMutateRowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadRowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.CheckAndMutateRowRequest} CheckAndMutateRowRequest + * @returns {google.bigtable.v2.ReadRowsRequest} ReadRowsRequest */ - CheckAndMutateRowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.CheckAndMutateRowRequest) + ReadRowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadRowsRequest) return object; - var message = new $root.google.bigtable.v2.CheckAndMutateRowRequest(); + var message = new $root.google.bigtable.v2.ReadRowsRequest(); if (object.tableName != null) message.tableName = String(object.tableName); if (object.authorizedViewName != null) message.authorizedViewName = String(object.authorizedViewName); + if (object.materializedViewName != null) + message.materializedViewName = String(object.materializedViewName); if (object.appProfileId != null) message.appProfileId = String(object.appProfileId); - if (object.rowKey != null) - if (typeof object.rowKey === "string") - $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); - else if (object.rowKey.length >= 0) - message.rowKey = object.rowKey; - if (object.predicateFilter != null) { - if (typeof object.predicateFilter !== "object") - throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.predicateFilter: object expected"); - message.predicateFilter = $root.google.bigtable.v2.RowFilter.fromObject(object.predicateFilter); + if (object.rows != null) { + if (typeof object.rows !== "object") + throw TypeError(".google.bigtable.v2.ReadRowsRequest.rows: object expected"); + message.rows = $root.google.bigtable.v2.RowSet.fromObject(object.rows); } - if (object.trueMutations) { - if (!Array.isArray(object.trueMutations)) - throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.trueMutations: array expected"); - message.trueMutations = []; - for (var i = 0; i < object.trueMutations.length; ++i) { - if (typeof object.trueMutations[i] !== "object") - throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.trueMutations: object expected"); - message.trueMutations[i] = $root.google.bigtable.v2.Mutation.fromObject(object.trueMutations[i]); - } + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".google.bigtable.v2.ReadRowsRequest.filter: object expected"); + message.filter = $root.google.bigtable.v2.RowFilter.fromObject(object.filter); } - if (object.falseMutations) { - if (!Array.isArray(object.falseMutations)) - throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.falseMutations: array expected"); - message.falseMutations = []; - for (var i = 0; i < object.falseMutations.length; ++i) { - if (typeof object.falseMutations[i] !== "object") - throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.falseMutations: object expected"); - message.falseMutations[i] = $root.google.bigtable.v2.Mutation.fromObject(object.falseMutations[i]); + if (object.rowsLimit != null) + if ($util.Long) + (message.rowsLimit = $util.Long.fromValue(object.rowsLimit)).unsigned = false; + else if (typeof object.rowsLimit === "string") + message.rowsLimit = parseInt(object.rowsLimit, 10); + else if (typeof object.rowsLimit === "number") + message.rowsLimit = object.rowsLimit; + else if (typeof object.rowsLimit === "object") + message.rowsLimit = new $util.LongBits(object.rowsLimit.low >>> 0, object.rowsLimit.high >>> 0).toNumber(); + switch (object.requestStatsView) { + default: + if (typeof object.requestStatsView === "number") { + message.requestStatsView = object.requestStatsView; + break; } + break; + case "REQUEST_STATS_VIEW_UNSPECIFIED": + case 0: + message.requestStatsView = 0; + break; + case "REQUEST_STATS_NONE": + case 1: + message.requestStatsView = 1; + break; + case "REQUEST_STATS_FULL": + case 2: + message.requestStatsView = 2; + break; } + if (object.reversed != null) + message.reversed = Boolean(object.reversed); return message; }; /** - * Creates a plain object from a CheckAndMutateRowRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadRowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static - * @param {google.bigtable.v2.CheckAndMutateRowRequest} message CheckAndMutateRowRequest + * @param {google.bigtable.v2.ReadRowsRequest} message ReadRowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CheckAndMutateRowRequest.toObject = function toObject(message, options) { + ReadRowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.trueMutations = []; - object.falseMutations = []; - } if (options.defaults) { object.tableName = ""; - if (options.bytes === String) - object.rowKey = ""; - else { - object.rowKey = []; - if (options.bytes !== Array) - object.rowKey = $util.newBuffer(object.rowKey); - } - object.predicateFilter = null; + object.rows = null; + object.filter = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.rowsLimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.rowsLimit = options.longs === String ? "0" : 0; object.appProfileId = ""; + object.requestStatsView = options.enums === String ? "REQUEST_STATS_VIEW_UNSPECIFIED" : 0; + object.reversed = false; object.authorizedViewName = ""; + object.materializedViewName = ""; } if (message.tableName != null && message.hasOwnProperty("tableName")) object.tableName = message.tableName; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; - if (message.trueMutations && message.trueMutations.length) { - object.trueMutations = []; - for (var j = 0; j < message.trueMutations.length; ++j) - object.trueMutations[j] = $root.google.bigtable.v2.Mutation.toObject(message.trueMutations[j], options); - } - if (message.falseMutations && message.falseMutations.length) { - object.falseMutations = []; - for (var j = 0; j < message.falseMutations.length; ++j) - object.falseMutations[j] = $root.google.bigtable.v2.Mutation.toObject(message.falseMutations[j], options); - } - if (message.predicateFilter != null && message.hasOwnProperty("predicateFilter")) - object.predicateFilter = $root.google.bigtable.v2.RowFilter.toObject(message.predicateFilter, options); + if (message.rows != null && message.hasOwnProperty("rows")) + object.rows = $root.google.bigtable.v2.RowSet.toObject(message.rows, options); + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = $root.google.bigtable.v2.RowFilter.toObject(message.filter, options); + if (message.rowsLimit != null && message.hasOwnProperty("rowsLimit")) + if (typeof message.rowsLimit === "number") + object.rowsLimit = options.longs === String ? String(message.rowsLimit) : message.rowsLimit; + else + object.rowsLimit = options.longs === String ? $util.Long.prototype.toString.call(message.rowsLimit) : options.longs === Number ? new $util.LongBits(message.rowsLimit.low >>> 0, message.rowsLimit.high >>> 0).toNumber() : message.rowsLimit; if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) object.appProfileId = message.appProfileId; + if (message.requestStatsView != null && message.hasOwnProperty("requestStatsView")) + object.requestStatsView = options.enums === String ? $root.google.bigtable.v2.ReadRowsRequest.RequestStatsView[message.requestStatsView] === undefined ? message.requestStatsView : $root.google.bigtable.v2.ReadRowsRequest.RequestStatsView[message.requestStatsView] : message.requestStatsView; + if (message.reversed != null && message.hasOwnProperty("reversed")) + object.reversed = message.reversed; if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) object.authorizedViewName = message.authorizedViewName; + if (message.materializedViewName != null && message.hasOwnProperty("materializedViewName")) + object.materializedViewName = message.materializedViewName; return object; }; /** - * Converts this CheckAndMutateRowRequest to JSON. + * Converts this ReadRowsRequest to JSON. * @function toJSON - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @instance * @returns {Object.} JSON object */ - CheckAndMutateRowRequest.prototype.toJSON = function toJSON() { + ReadRowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CheckAndMutateRowRequest + * Gets the default type url for ReadRowsRequest * @function getTypeUrl - * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @memberof google.bigtable.v2.ReadRowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CheckAndMutateRowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadRowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.CheckAndMutateRowRequest"; + return typeUrlPrefix + "/google.bigtable.v2.ReadRowsRequest"; }; - return CheckAndMutateRowRequest; + /** + * RequestStatsView enum. + * @name google.bigtable.v2.ReadRowsRequest.RequestStatsView + * @enum {number} + * @property {number} REQUEST_STATS_VIEW_UNSPECIFIED=0 REQUEST_STATS_VIEW_UNSPECIFIED value + * @property {number} REQUEST_STATS_NONE=1 REQUEST_STATS_NONE value + * @property {number} REQUEST_STATS_FULL=2 REQUEST_STATS_FULL value + */ + ReadRowsRequest.RequestStatsView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REQUEST_STATS_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "REQUEST_STATS_NONE"] = 1; + values[valuesById[2] = "REQUEST_STATS_FULL"] = 2; + return values; + })(); + + return ReadRowsRequest; })(); - v2.CheckAndMutateRowResponse = (function() { + v2.ReadRowsResponse = (function() { /** - * Properties of a CheckAndMutateRowResponse. + * Properties of a ReadRowsResponse. * @memberof google.bigtable.v2 - * @interface ICheckAndMutateRowResponse - * @property {boolean|null} [predicateMatched] CheckAndMutateRowResponse predicateMatched + * @interface IReadRowsResponse + * @property {Array.|null} [chunks] ReadRowsResponse chunks + * @property {Uint8Array|null} [lastScannedRowKey] ReadRowsResponse lastScannedRowKey + * @property {google.bigtable.v2.IRequestStats|null} [requestStats] ReadRowsResponse requestStats */ /** - * Constructs a new CheckAndMutateRowResponse. + * Constructs a new ReadRowsResponse. * @memberof google.bigtable.v2 - * @classdesc Represents a CheckAndMutateRowResponse. - * @implements ICheckAndMutateRowResponse + * @classdesc Represents a ReadRowsResponse. + * @implements IReadRowsResponse * @constructor - * @param {google.bigtable.v2.ICheckAndMutateRowResponse=} [properties] Properties to set + * @param {google.bigtable.v2.IReadRowsResponse=} [properties] Properties to set */ - function CheckAndMutateRowResponse(properties) { + function ReadRowsResponse(properties) { + this.chunks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46335,77 +46078,108 @@ } /** - * CheckAndMutateRowResponse predicateMatched. - * @member {boolean} predicateMatched - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * ReadRowsResponse chunks. + * @member {Array.} chunks + * @memberof google.bigtable.v2.ReadRowsResponse * @instance */ - CheckAndMutateRowResponse.prototype.predicateMatched = false; + ReadRowsResponse.prototype.chunks = $util.emptyArray; /** - * Creates a new CheckAndMutateRowResponse instance using the specified properties. + * ReadRowsResponse lastScannedRowKey. + * @member {Uint8Array} lastScannedRowKey + * @memberof google.bigtable.v2.ReadRowsResponse + * @instance + */ + ReadRowsResponse.prototype.lastScannedRowKey = $util.newBuffer([]); + + /** + * ReadRowsResponse requestStats. + * @member {google.bigtable.v2.IRequestStats|null|undefined} requestStats + * @memberof google.bigtable.v2.ReadRowsResponse + * @instance + */ + ReadRowsResponse.prototype.requestStats = null; + + /** + * Creates a new ReadRowsResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static - * @param {google.bigtable.v2.ICheckAndMutateRowResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.CheckAndMutateRowResponse} CheckAndMutateRowResponse instance + * @param {google.bigtable.v2.IReadRowsResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadRowsResponse} ReadRowsResponse instance */ - CheckAndMutateRowResponse.create = function create(properties) { - return new CheckAndMutateRowResponse(properties); + ReadRowsResponse.create = function create(properties) { + return new ReadRowsResponse(properties); }; /** - * Encodes the specified CheckAndMutateRowResponse message. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowResponse.verify|verify} messages. + * Encodes the specified ReadRowsResponse message. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static - * @param {google.bigtable.v2.ICheckAndMutateRowResponse} message CheckAndMutateRowResponse message or plain object to encode + * @param {google.bigtable.v2.IReadRowsResponse} message ReadRowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckAndMutateRowResponse.encode = function encode(message, writer) { + ReadRowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.predicateMatched != null && Object.hasOwnProperty.call(message, "predicateMatched")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.predicateMatched); + if (message.chunks != null && message.chunks.length) + for (var i = 0; i < message.chunks.length; ++i) + $root.google.bigtable.v2.ReadRowsResponse.CellChunk.encode(message.chunks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.lastScannedRowKey != null && Object.hasOwnProperty.call(message, "lastScannedRowKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.lastScannedRowKey); + if (message.requestStats != null && Object.hasOwnProperty.call(message, "requestStats")) + $root.google.bigtable.v2.RequestStats.encode(message.requestStats, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CheckAndMutateRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowResponse.verify|verify} messages. + * Encodes the specified ReadRowsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static - * @param {google.bigtable.v2.ICheckAndMutateRowResponse} message CheckAndMutateRowResponse message or plain object to encode + * @param {google.bigtable.v2.IReadRowsResponse} message ReadRowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckAndMutateRowResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CheckAndMutateRowResponse message from the specified reader or buffer. + * Decodes a ReadRowsResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.CheckAndMutateRowResponse} CheckAndMutateRowResponse + * @returns {google.bigtable.v2.ReadRowsResponse} ReadRowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckAndMutateRowResponse.decode = function decode(reader, length, error) { + ReadRowsResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.CheckAndMutateRowResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadRowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.predicateMatched = reader.bool(); + if (!(message.chunks && message.chunks.length)) + message.chunks = []; + message.chunks.push($root.google.bigtable.v2.ReadRowsResponse.CellChunk.decode(reader, reader.uint32())); + break; + } + case 2: { + message.lastScannedRowKey = reader.bytes(); + break; + } + case 3: { + message.requestStats = $root.google.bigtable.v2.RequestStats.decode(reader, reader.uint32()); break; } default: @@ -46417,350 +46191,648 @@ }; /** - * Decodes a CheckAndMutateRowResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadRowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.CheckAndMutateRowResponse} CheckAndMutateRowResponse + * @returns {google.bigtable.v2.ReadRowsResponse} ReadRowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckAndMutateRowResponse.decodeDelimited = function decodeDelimited(reader) { + ReadRowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CheckAndMutateRowResponse message. + * Verifies a ReadRowsResponse message. * @function verify - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CheckAndMutateRowResponse.verify = function verify(message) { + ReadRowsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.predicateMatched != null && message.hasOwnProperty("predicateMatched")) - if (typeof message.predicateMatched !== "boolean") - return "predicateMatched: boolean expected"; + if (message.chunks != null && message.hasOwnProperty("chunks")) { + if (!Array.isArray(message.chunks)) + return "chunks: array expected"; + for (var i = 0; i < message.chunks.length; ++i) { + var error = $root.google.bigtable.v2.ReadRowsResponse.CellChunk.verify(message.chunks[i]); + if (error) + return "chunks." + error; + } + } + if (message.lastScannedRowKey != null && message.hasOwnProperty("lastScannedRowKey")) + if (!(message.lastScannedRowKey && typeof message.lastScannedRowKey.length === "number" || $util.isString(message.lastScannedRowKey))) + return "lastScannedRowKey: buffer expected"; + if (message.requestStats != null && message.hasOwnProperty("requestStats")) { + var error = $root.google.bigtable.v2.RequestStats.verify(message.requestStats); + if (error) + return "requestStats." + error; + } return null; }; /** - * Creates a CheckAndMutateRowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadRowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.CheckAndMutateRowResponse} CheckAndMutateRowResponse + * @returns {google.bigtable.v2.ReadRowsResponse} ReadRowsResponse */ - CheckAndMutateRowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.CheckAndMutateRowResponse) + ReadRowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadRowsResponse) return object; - var message = new $root.google.bigtable.v2.CheckAndMutateRowResponse(); - if (object.predicateMatched != null) - message.predicateMatched = Boolean(object.predicateMatched); + var message = new $root.google.bigtable.v2.ReadRowsResponse(); + if (object.chunks) { + if (!Array.isArray(object.chunks)) + throw TypeError(".google.bigtable.v2.ReadRowsResponse.chunks: array expected"); + message.chunks = []; + for (var i = 0; i < object.chunks.length; ++i) { + if (typeof object.chunks[i] !== "object") + throw TypeError(".google.bigtable.v2.ReadRowsResponse.chunks: object expected"); + message.chunks[i] = $root.google.bigtable.v2.ReadRowsResponse.CellChunk.fromObject(object.chunks[i]); + } + } + if (object.lastScannedRowKey != null) + if (typeof object.lastScannedRowKey === "string") + $util.base64.decode(object.lastScannedRowKey, message.lastScannedRowKey = $util.newBuffer($util.base64.length(object.lastScannedRowKey)), 0); + else if (object.lastScannedRowKey.length >= 0) + message.lastScannedRowKey = object.lastScannedRowKey; + if (object.requestStats != null) { + if (typeof object.requestStats !== "object") + throw TypeError(".google.bigtable.v2.ReadRowsResponse.requestStats: object expected"); + message.requestStats = $root.google.bigtable.v2.RequestStats.fromObject(object.requestStats); + } return message; }; /** - * Creates a plain object from a CheckAndMutateRowResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadRowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static - * @param {google.bigtable.v2.CheckAndMutateRowResponse} message CheckAndMutateRowResponse + * @param {google.bigtable.v2.ReadRowsResponse} message ReadRowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CheckAndMutateRowResponse.toObject = function toObject(message, options) { + ReadRowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.predicateMatched = false; - if (message.predicateMatched != null && message.hasOwnProperty("predicateMatched")) - object.predicateMatched = message.predicateMatched; + if (options.arrays || options.defaults) + object.chunks = []; + if (options.defaults) { + if (options.bytes === String) + object.lastScannedRowKey = ""; + else { + object.lastScannedRowKey = []; + if (options.bytes !== Array) + object.lastScannedRowKey = $util.newBuffer(object.lastScannedRowKey); + } + object.requestStats = null; + } + if (message.chunks && message.chunks.length) { + object.chunks = []; + for (var j = 0; j < message.chunks.length; ++j) + object.chunks[j] = $root.google.bigtable.v2.ReadRowsResponse.CellChunk.toObject(message.chunks[j], options); + } + if (message.lastScannedRowKey != null && message.hasOwnProperty("lastScannedRowKey")) + object.lastScannedRowKey = options.bytes === String ? $util.base64.encode(message.lastScannedRowKey, 0, message.lastScannedRowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastScannedRowKey) : message.lastScannedRowKey; + if (message.requestStats != null && message.hasOwnProperty("requestStats")) + object.requestStats = $root.google.bigtable.v2.RequestStats.toObject(message.requestStats, options); return object; }; /** - * Converts this CheckAndMutateRowResponse to JSON. + * Converts this ReadRowsResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @instance * @returns {Object.} JSON object */ - CheckAndMutateRowResponse.prototype.toJSON = function toJSON() { + ReadRowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CheckAndMutateRowResponse + * Gets the default type url for ReadRowsResponse * @function getTypeUrl - * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @memberof google.bigtable.v2.ReadRowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CheckAndMutateRowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadRowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.CheckAndMutateRowResponse"; + return typeUrlPrefix + "/google.bigtable.v2.ReadRowsResponse"; }; - return CheckAndMutateRowResponse; - })(); + ReadRowsResponse.CellChunk = (function() { - v2.PingAndWarmRequest = (function() { + /** + * Properties of a CellChunk. + * @memberof google.bigtable.v2.ReadRowsResponse + * @interface ICellChunk + * @property {Uint8Array|null} [rowKey] CellChunk rowKey + * @property {google.protobuf.IStringValue|null} [familyName] CellChunk familyName + * @property {google.protobuf.IBytesValue|null} [qualifier] CellChunk qualifier + * @property {number|Long|null} [timestampMicros] CellChunk timestampMicros + * @property {Array.|null} [labels] CellChunk labels + * @property {Uint8Array|null} [value] CellChunk value + * @property {number|null} [valueSize] CellChunk valueSize + * @property {boolean|null} [resetRow] CellChunk resetRow + * @property {boolean|null} [commitRow] CellChunk commitRow + */ - /** - * Properties of a PingAndWarmRequest. - * @memberof google.bigtable.v2 - * @interface IPingAndWarmRequest - * @property {string|null} [name] PingAndWarmRequest name - * @property {string|null} [appProfileId] PingAndWarmRequest appProfileId - */ + /** + * Constructs a new CellChunk. + * @memberof google.bigtable.v2.ReadRowsResponse + * @classdesc Represents a CellChunk. + * @implements ICellChunk + * @constructor + * @param {google.bigtable.v2.ReadRowsResponse.ICellChunk=} [properties] Properties to set + */ + function CellChunk(properties) { + this.labels = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new PingAndWarmRequest. - * @memberof google.bigtable.v2 - * @classdesc Represents a PingAndWarmRequest. - * @implements IPingAndWarmRequest - * @constructor - * @param {google.bigtable.v2.IPingAndWarmRequest=} [properties] Properties to set - */ - function PingAndWarmRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * CellChunk rowKey. + * @member {Uint8Array} rowKey + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.rowKey = $util.newBuffer([]); - /** - * PingAndWarmRequest name. - * @member {string} name - * @memberof google.bigtable.v2.PingAndWarmRequest - * @instance - */ - PingAndWarmRequest.prototype.name = ""; + /** + * CellChunk familyName. + * @member {google.protobuf.IStringValue|null|undefined} familyName + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.familyName = null; - /** - * PingAndWarmRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.PingAndWarmRequest - * @instance - */ - PingAndWarmRequest.prototype.appProfileId = ""; + /** + * CellChunk qualifier. + * @member {google.protobuf.IBytesValue|null|undefined} qualifier + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.qualifier = null; - /** - * Creates a new PingAndWarmRequest instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {google.bigtable.v2.IPingAndWarmRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.PingAndWarmRequest} PingAndWarmRequest instance - */ - PingAndWarmRequest.create = function create(properties) { - return new PingAndWarmRequest(properties); - }; + /** + * CellChunk timestampMicros. + * @member {number|Long} timestampMicros + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.timestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Encodes the specified PingAndWarmRequest message. Does not implicitly {@link google.bigtable.v2.PingAndWarmRequest.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {google.bigtable.v2.IPingAndWarmRequest} message PingAndWarmRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PingAndWarmRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); - return writer; - }; + /** + * CellChunk labels. + * @member {Array.} labels + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.labels = $util.emptyArray; - /** - * Encodes the specified PingAndWarmRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.PingAndWarmRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {google.bigtable.v2.IPingAndWarmRequest} message PingAndWarmRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PingAndWarmRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CellChunk value. + * @member {Uint8Array} value + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.value = $util.newBuffer([]); - /** - * Decodes a PingAndWarmRequest message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.PingAndWarmRequest} PingAndWarmRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PingAndWarmRequest.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PingAndWarmRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * CellChunk valueSize. + * @member {number} valueSize + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.valueSize = 0; + + /** + * CellChunk resetRow. + * @member {boolean|null|undefined} resetRow + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.resetRow = null; + + /** + * CellChunk commitRow. + * @member {boolean|null|undefined} commitRow + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + CellChunk.prototype.commitRow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CellChunk rowStatus. + * @member {"resetRow"|"commitRow"|undefined} rowStatus + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + */ + Object.defineProperty(CellChunk.prototype, "rowStatus", { + get: $util.oneOfGetter($oneOfFields = ["resetRow", "commitRow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CellChunk instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {google.bigtable.v2.ReadRowsResponse.ICellChunk=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadRowsResponse.CellChunk} CellChunk instance + */ + CellChunk.create = function create(properties) { + return new CellChunk(properties); + }; + + /** + * Encodes the specified CellChunk message. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.CellChunk.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {google.bigtable.v2.ReadRowsResponse.ICellChunk} message CellChunk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CellChunk.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowKey); + if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) + $root.google.protobuf.StringValue.encode(message.familyName, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.qualifier != null && Object.hasOwnProperty.call(message, "qualifier")) + $root.google.protobuf.BytesValue.encode(message.qualifier, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.timestampMicros != null && Object.hasOwnProperty.call(message, "timestampMicros")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.timestampMicros); + if (message.labels != null && message.labels.length) + for (var i = 0; i < message.labels.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.labels[i]); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.value); + if (message.valueSize != null && Object.hasOwnProperty.call(message, "valueSize")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.valueSize); + if (message.resetRow != null && Object.hasOwnProperty.call(message, "resetRow")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.resetRow); + if (message.commitRow != null && Object.hasOwnProperty.call(message, "commitRow")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.commitRow); + return writer; + }; + + /** + * Encodes the specified CellChunk message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadRowsResponse.CellChunk.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {google.bigtable.v2.ReadRowsResponse.ICellChunk} message CellChunk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CellChunk.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CellChunk message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ReadRowsResponse.CellChunk} CellChunk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CellChunk.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadRowsResponse.CellChunk(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - } - case 2: { - message.appProfileId = reader.string(); + switch (tag >>> 3) { + case 1: { + message.rowKey = reader.bytes(); + break; + } + case 2: { + message.familyName = $root.google.protobuf.StringValue.decode(reader, reader.uint32()); + break; + } + case 3: { + message.qualifier = $root.google.protobuf.BytesValue.decode(reader, reader.uint32()); + break; + } + case 4: { + message.timestampMicros = reader.int64(); + break; + } + case 5: { + if (!(message.labels && message.labels.length)) + message.labels = []; + message.labels.push(reader.string()); + break; + } + case 6: { + message.value = reader.bytes(); + break; + } + case 7: { + message.valueSize = reader.int32(); + break; + } + case 8: { + message.resetRow = reader.bool(); + break; + } + case 9: { + message.commitRow = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a PingAndWarmRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.PingAndWarmRequest} PingAndWarmRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PingAndWarmRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a CellChunk message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ReadRowsResponse.CellChunk} CellChunk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CellChunk.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PingAndWarmRequest message. - * @function verify - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PingAndWarmRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; - return null; - }; + /** + * Verifies a CellChunk message. + * @function verify + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CellChunk.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) + return "rowKey: buffer expected"; + if (message.familyName != null && message.hasOwnProperty("familyName")) { + var error = $root.google.protobuf.StringValue.verify(message.familyName); + if (error) + return "familyName." + error; + } + if (message.qualifier != null && message.hasOwnProperty("qualifier")) { + var error = $root.google.protobuf.BytesValue.verify(message.qualifier); + if (error) + return "qualifier." + error; + } + if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) + if (!$util.isInteger(message.timestampMicros) && !(message.timestampMicros && $util.isInteger(message.timestampMicros.low) && $util.isInteger(message.timestampMicros.high))) + return "timestampMicros: integer|Long expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!Array.isArray(message.labels)) + return "labels: array expected"; + for (var i = 0; i < message.labels.length; ++i) + if (!$util.isString(message.labels[i])) + return "labels: string[] expected"; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.valueSize != null && message.hasOwnProperty("valueSize")) + if (!$util.isInteger(message.valueSize)) + return "valueSize: integer expected"; + if (message.resetRow != null && message.hasOwnProperty("resetRow")) { + properties.rowStatus = 1; + if (typeof message.resetRow !== "boolean") + return "resetRow: boolean expected"; + } + if (message.commitRow != null && message.hasOwnProperty("commitRow")) { + if (properties.rowStatus === 1) + return "rowStatus: multiple values"; + properties.rowStatus = 1; + if (typeof message.commitRow !== "boolean") + return "commitRow: boolean expected"; + } + return null; + }; - /** - * Creates a PingAndWarmRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.PingAndWarmRequest} PingAndWarmRequest - */ - PingAndWarmRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.PingAndWarmRequest) + /** + * Creates a CellChunk message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ReadRowsResponse.CellChunk} CellChunk + */ + CellChunk.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadRowsResponse.CellChunk) + return object; + var message = new $root.google.bigtable.v2.ReadRowsResponse.CellChunk(); + if (object.rowKey != null) + if (typeof object.rowKey === "string") + $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); + else if (object.rowKey.length >= 0) + message.rowKey = object.rowKey; + if (object.familyName != null) { + if (typeof object.familyName !== "object") + throw TypeError(".google.bigtable.v2.ReadRowsResponse.CellChunk.familyName: object expected"); + message.familyName = $root.google.protobuf.StringValue.fromObject(object.familyName); + } + if (object.qualifier != null) { + if (typeof object.qualifier !== "object") + throw TypeError(".google.bigtable.v2.ReadRowsResponse.CellChunk.qualifier: object expected"); + message.qualifier = $root.google.protobuf.BytesValue.fromObject(object.qualifier); + } + if (object.timestampMicros != null) + if ($util.Long) + (message.timestampMicros = $util.Long.fromValue(object.timestampMicros)).unsigned = false; + else if (typeof object.timestampMicros === "string") + message.timestampMicros = parseInt(object.timestampMicros, 10); + else if (typeof object.timestampMicros === "number") + message.timestampMicros = object.timestampMicros; + else if (typeof object.timestampMicros === "object") + message.timestampMicros = new $util.LongBits(object.timestampMicros.low >>> 0, object.timestampMicros.high >>> 0).toNumber(); + if (object.labels) { + if (!Array.isArray(object.labels)) + throw TypeError(".google.bigtable.v2.ReadRowsResponse.CellChunk.labels: array expected"); + message.labels = []; + for (var i = 0; i < object.labels.length; ++i) + message.labels[i] = String(object.labels[i]); + } + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + if (object.valueSize != null) + message.valueSize = object.valueSize | 0; + if (object.resetRow != null) + message.resetRow = Boolean(object.resetRow); + if (object.commitRow != null) + message.commitRow = Boolean(object.commitRow); + return message; + }; + + /** + * Creates a plain object from a CellChunk message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {google.bigtable.v2.ReadRowsResponse.CellChunk} message CellChunk + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CellChunk.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.labels = []; + if (options.defaults) { + if (options.bytes === String) + object.rowKey = ""; + else { + object.rowKey = []; + if (options.bytes !== Array) + object.rowKey = $util.newBuffer(object.rowKey); + } + object.familyName = null; + object.qualifier = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampMicros = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + object.valueSize = 0; + } + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; + if (message.familyName != null && message.hasOwnProperty("familyName")) + object.familyName = $root.google.protobuf.StringValue.toObject(message.familyName, options); + if (message.qualifier != null && message.hasOwnProperty("qualifier")) + object.qualifier = $root.google.protobuf.BytesValue.toObject(message.qualifier, options); + if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) + if (typeof message.timestampMicros === "number") + object.timestampMicros = options.longs === String ? String(message.timestampMicros) : message.timestampMicros; + else + object.timestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMicros) : options.longs === Number ? new $util.LongBits(message.timestampMicros.low >>> 0, message.timestampMicros.high >>> 0).toNumber() : message.timestampMicros; + if (message.labels && message.labels.length) { + object.labels = []; + for (var j = 0; j < message.labels.length; ++j) + object.labels[j] = message.labels[j]; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.valueSize != null && message.hasOwnProperty("valueSize")) + object.valueSize = message.valueSize; + if (message.resetRow != null && message.hasOwnProperty("resetRow")) { + object.resetRow = message.resetRow; + if (options.oneofs) + object.rowStatus = "resetRow"; + } + if (message.commitRow != null && message.hasOwnProperty("commitRow")) { + object.commitRow = message.commitRow; + if (options.oneofs) + object.rowStatus = "commitRow"; + } return object; - var message = new $root.google.bigtable.v2.PingAndWarmRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - return message; - }; + }; - /** - * Creates a plain object from a PingAndWarmRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {google.bigtable.v2.PingAndWarmRequest} message PingAndWarmRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PingAndWarmRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.appProfileId = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - return object; - }; + /** + * Converts this CellChunk to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @instance + * @returns {Object.} JSON object + */ + CellChunk.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PingAndWarmRequest to JSON. - * @function toJSON - * @memberof google.bigtable.v2.PingAndWarmRequest - * @instance - * @returns {Object.} JSON object - */ - PingAndWarmRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for CellChunk + * @function getTypeUrl + * @memberof google.bigtable.v2.ReadRowsResponse.CellChunk + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CellChunk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ReadRowsResponse.CellChunk"; + }; - /** - * Gets the default type url for PingAndWarmRequest - * @function getTypeUrl - * @memberof google.bigtable.v2.PingAndWarmRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PingAndWarmRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.PingAndWarmRequest"; - }; + return CellChunk; + })(); - return PingAndWarmRequest; + return ReadRowsResponse; })(); - v2.PingAndWarmResponse = (function() { + v2.SampleRowKeysRequest = (function() { /** - * Properties of a PingAndWarmResponse. + * Properties of a SampleRowKeysRequest. * @memberof google.bigtable.v2 - * @interface IPingAndWarmResponse + * @interface ISampleRowKeysRequest + * @property {string|null} [tableName] SampleRowKeysRequest tableName + * @property {string|null} [authorizedViewName] SampleRowKeysRequest authorizedViewName + * @property {string|null} [materializedViewName] SampleRowKeysRequest materializedViewName + * @property {string|null} [appProfileId] SampleRowKeysRequest appProfileId */ /** - * Constructs a new PingAndWarmResponse. + * Constructs a new SampleRowKeysRequest. * @memberof google.bigtable.v2 - * @classdesc Represents a PingAndWarmResponse. - * @implements IPingAndWarmResponse + * @classdesc Represents a SampleRowKeysRequest. + * @implements ISampleRowKeysRequest * @constructor - * @param {google.bigtable.v2.IPingAndWarmResponse=} [properties] Properties to set + * @param {google.bigtable.v2.ISampleRowKeysRequest=} [properties] Properties to set */ - function PingAndWarmResponse(properties) { + function SampleRowKeysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46768,65 +46840,121 @@ } /** - * Creates a new PingAndWarmResponse instance using the specified properties. + * SampleRowKeysRequest tableName. + * @member {string} tableName + * @memberof google.bigtable.v2.SampleRowKeysRequest + * @instance + */ + SampleRowKeysRequest.prototype.tableName = ""; + + /** + * SampleRowKeysRequest authorizedViewName. + * @member {string} authorizedViewName + * @memberof google.bigtable.v2.SampleRowKeysRequest + * @instance + */ + SampleRowKeysRequest.prototype.authorizedViewName = ""; + + /** + * SampleRowKeysRequest materializedViewName. + * @member {string} materializedViewName + * @memberof google.bigtable.v2.SampleRowKeysRequest + * @instance + */ + SampleRowKeysRequest.prototype.materializedViewName = ""; + + /** + * SampleRowKeysRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.SampleRowKeysRequest + * @instance + */ + SampleRowKeysRequest.prototype.appProfileId = ""; + + /** + * Creates a new SampleRowKeysRequest instance using the specified properties. * @function create - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static - * @param {google.bigtable.v2.IPingAndWarmResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.PingAndWarmResponse} PingAndWarmResponse instance + * @param {google.bigtable.v2.ISampleRowKeysRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.SampleRowKeysRequest} SampleRowKeysRequest instance */ - PingAndWarmResponse.create = function create(properties) { - return new PingAndWarmResponse(properties); + SampleRowKeysRequest.create = function create(properties) { + return new SampleRowKeysRequest(properties); }; /** - * Encodes the specified PingAndWarmResponse message. Does not implicitly {@link google.bigtable.v2.PingAndWarmResponse.verify|verify} messages. + * Encodes the specified SampleRowKeysRequest message. Does not implicitly {@link google.bigtable.v2.SampleRowKeysRequest.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static - * @param {google.bigtable.v2.IPingAndWarmResponse} message PingAndWarmResponse message or plain object to encode + * @param {google.bigtable.v2.ISampleRowKeysRequest} message SampleRowKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PingAndWarmResponse.encode = function encode(message, writer) { + SampleRowKeysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); + if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.authorizedViewName); + if (message.materializedViewName != null && Object.hasOwnProperty.call(message, "materializedViewName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.materializedViewName); return writer; }; /** - * Encodes the specified PingAndWarmResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.PingAndWarmResponse.verify|verify} messages. + * Encodes the specified SampleRowKeysRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.SampleRowKeysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static - * @param {google.bigtable.v2.IPingAndWarmResponse} message PingAndWarmResponse message or plain object to encode + * @param {google.bigtable.v2.ISampleRowKeysRequest} message SampleRowKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PingAndWarmResponse.encodeDelimited = function encodeDelimited(message, writer) { + SampleRowKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PingAndWarmResponse message from the specified reader or buffer. + * Decodes a SampleRowKeysRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.PingAndWarmResponse} PingAndWarmResponse + * @returns {google.bigtable.v2.SampleRowKeysRequest} SampleRowKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PingAndWarmResponse.decode = function decode(reader, length, error) { + SampleRowKeysRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PingAndWarmResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.SampleRowKeysRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 1: { + message.tableName = reader.string(); + break; + } + case 4: { + message.authorizedViewName = reader.string(); + break; + } + case 5: { + message.materializedViewName = reader.string(); + break; + } + case 2: { + message.appProfileId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -46836,114 +46964,148 @@ }; /** - * Decodes a PingAndWarmResponse message from the specified reader or buffer, length delimited. + * Decodes a SampleRowKeysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.PingAndWarmResponse} PingAndWarmResponse + * @returns {google.bigtable.v2.SampleRowKeysRequest} SampleRowKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PingAndWarmResponse.decodeDelimited = function decodeDelimited(reader) { + SampleRowKeysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PingAndWarmResponse message. + * Verifies a SampleRowKeysRequest message. * @function verify - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PingAndWarmResponse.verify = function verify(message) { + SampleRowKeysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tableName != null && message.hasOwnProperty("tableName")) + if (!$util.isString(message.tableName)) + return "tableName: string expected"; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + if (!$util.isString(message.authorizedViewName)) + return "authorizedViewName: string expected"; + if (message.materializedViewName != null && message.hasOwnProperty("materializedViewName")) + if (!$util.isString(message.materializedViewName)) + return "materializedViewName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; return null; }; /** - * Creates a PingAndWarmResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SampleRowKeysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.PingAndWarmResponse} PingAndWarmResponse + * @returns {google.bigtable.v2.SampleRowKeysRequest} SampleRowKeysRequest */ - PingAndWarmResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.PingAndWarmResponse) + SampleRowKeysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.SampleRowKeysRequest) return object; - return new $root.google.bigtable.v2.PingAndWarmResponse(); + var message = new $root.google.bigtable.v2.SampleRowKeysRequest(); + if (object.tableName != null) + message.tableName = String(object.tableName); + if (object.authorizedViewName != null) + message.authorizedViewName = String(object.authorizedViewName); + if (object.materializedViewName != null) + message.materializedViewName = String(object.materializedViewName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + return message; }; /** - * Creates a plain object from a PingAndWarmResponse message. Also converts values to other types if specified. + * Creates a plain object from a SampleRowKeysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static - * @param {google.bigtable.v2.PingAndWarmResponse} message PingAndWarmResponse + * @param {google.bigtable.v2.SampleRowKeysRequest} message SampleRowKeysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PingAndWarmResponse.toObject = function toObject() { - return {}; + SampleRowKeysRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.tableName = ""; + object.appProfileId = ""; + object.authorizedViewName = ""; + object.materializedViewName = ""; + } + if (message.tableName != null && message.hasOwnProperty("tableName")) + object.tableName = message.tableName; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + object.authorizedViewName = message.authorizedViewName; + if (message.materializedViewName != null && message.hasOwnProperty("materializedViewName")) + object.materializedViewName = message.materializedViewName; + return object; }; /** - * Converts this PingAndWarmResponse to JSON. + * Converts this SampleRowKeysRequest to JSON. * @function toJSON - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @instance * @returns {Object.} JSON object */ - PingAndWarmResponse.prototype.toJSON = function toJSON() { + SampleRowKeysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PingAndWarmResponse + * Gets the default type url for SampleRowKeysRequest * @function getTypeUrl - * @memberof google.bigtable.v2.PingAndWarmResponse + * @memberof google.bigtable.v2.SampleRowKeysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PingAndWarmResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SampleRowKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.PingAndWarmResponse"; + return typeUrlPrefix + "/google.bigtable.v2.SampleRowKeysRequest"; }; - return PingAndWarmResponse; + return SampleRowKeysRequest; })(); - v2.ReadModifyWriteRowRequest = (function() { + v2.SampleRowKeysResponse = (function() { /** - * Properties of a ReadModifyWriteRowRequest. + * Properties of a SampleRowKeysResponse. * @memberof google.bigtable.v2 - * @interface IReadModifyWriteRowRequest - * @property {string|null} [tableName] ReadModifyWriteRowRequest tableName - * @property {string|null} [authorizedViewName] ReadModifyWriteRowRequest authorizedViewName - * @property {string|null} [appProfileId] ReadModifyWriteRowRequest appProfileId - * @property {Uint8Array|null} [rowKey] ReadModifyWriteRowRequest rowKey - * @property {Array.|null} [rules] ReadModifyWriteRowRequest rules + * @interface ISampleRowKeysResponse + * @property {Uint8Array|null} [rowKey] SampleRowKeysResponse rowKey + * @property {number|Long|null} [offsetBytes] SampleRowKeysResponse offsetBytes */ /** - * Constructs a new ReadModifyWriteRowRequest. + * Constructs a new SampleRowKeysResponse. * @memberof google.bigtable.v2 - * @classdesc Represents a ReadModifyWriteRowRequest. - * @implements IReadModifyWriteRowRequest + * @classdesc Represents a SampleRowKeysResponse. + * @implements ISampleRowKeysResponse * @constructor - * @param {google.bigtable.v2.IReadModifyWriteRowRequest=} [properties] Properties to set + * @param {google.bigtable.v2.ISampleRowKeysResponse=} [properties] Properties to set */ - function ReadModifyWriteRowRequest(properties) { - this.rules = []; + function SampleRowKeysResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46951,136 +47113,91 @@ } /** - * ReadModifyWriteRowRequest tableName. - * @member {string} tableName - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest - * @instance - */ - ReadModifyWriteRowRequest.prototype.tableName = ""; - - /** - * ReadModifyWriteRowRequest authorizedViewName. - * @member {string} authorizedViewName - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest - * @instance - */ - ReadModifyWriteRowRequest.prototype.authorizedViewName = ""; - - /** - * ReadModifyWriteRowRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest - * @instance - */ - ReadModifyWriteRowRequest.prototype.appProfileId = ""; - - /** - * ReadModifyWriteRowRequest rowKey. + * SampleRowKeysResponse rowKey. * @member {Uint8Array} rowKey - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @instance */ - ReadModifyWriteRowRequest.prototype.rowKey = $util.newBuffer([]); + SampleRowKeysResponse.prototype.rowKey = $util.newBuffer([]); /** - * ReadModifyWriteRowRequest rules. - * @member {Array.} rules - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * SampleRowKeysResponse offsetBytes. + * @member {number|Long} offsetBytes + * @memberof google.bigtable.v2.SampleRowKeysResponse * @instance */ - ReadModifyWriteRowRequest.prototype.rules = $util.emptyArray; + SampleRowKeysResponse.prototype.offsetBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ReadModifyWriteRowRequest instance using the specified properties. + * Creates a new SampleRowKeysResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static - * @param {google.bigtable.v2.IReadModifyWriteRowRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadModifyWriteRowRequest} ReadModifyWriteRowRequest instance + * @param {google.bigtable.v2.ISampleRowKeysResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.SampleRowKeysResponse} SampleRowKeysResponse instance */ - ReadModifyWriteRowRequest.create = function create(properties) { - return new ReadModifyWriteRowRequest(properties); + SampleRowKeysResponse.create = function create(properties) { + return new SampleRowKeysResponse(properties); }; /** - * Encodes the specified ReadModifyWriteRowRequest message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowRequest.verify|verify} messages. + * Encodes the specified SampleRowKeysResponse message. Does not implicitly {@link google.bigtable.v2.SampleRowKeysResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static - * @param {google.bigtable.v2.IReadModifyWriteRowRequest} message ReadModifyWriteRowRequest message or plain object to encode + * @param {google.bigtable.v2.ISampleRowKeysResponse} message SampleRowKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadModifyWriteRowRequest.encode = function encode(message, writer) { + SampleRowKeysResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rowKey); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.bigtable.v2.ReadModifyWriteRule.encode(message.rules[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.appProfileId); - if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.authorizedViewName); + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowKey); + if (message.offsetBytes != null && Object.hasOwnProperty.call(message, "offsetBytes")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offsetBytes); return writer; }; /** - * Encodes the specified ReadModifyWriteRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowRequest.verify|verify} messages. + * Encodes the specified SampleRowKeysResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.SampleRowKeysResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static - * @param {google.bigtable.v2.IReadModifyWriteRowRequest} message ReadModifyWriteRowRequest message or plain object to encode + * @param {google.bigtable.v2.ISampleRowKeysResponse} message SampleRowKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadModifyWriteRowRequest.encodeDelimited = function encodeDelimited(message, writer) { + SampleRowKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadModifyWriteRowRequest message from the specified reader or buffer. + * Decodes a SampleRowKeysResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadModifyWriteRowRequest} ReadModifyWriteRowRequest + * @returns {google.bigtable.v2.SampleRowKeysResponse} SampleRowKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadModifyWriteRowRequest.decode = function decode(reader, length, error) { + SampleRowKeysResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadModifyWriteRowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.SampleRowKeysResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.tableName = reader.string(); - break; - } - case 6: { - message.authorizedViewName = reader.string(); - break; - } - case 4: { - message.appProfileId = reader.string(); - break; - } - case 2: { message.rowKey = reader.bytes(); break; } - case 3: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.bigtable.v2.ReadModifyWriteRule.decode(reader, reader.uint32())); + case 2: { + message.offsetBytes = reader.int64(); break; } default: @@ -47092,109 +47209,84 @@ }; /** - * Decodes a ReadModifyWriteRowRequest message from the specified reader or buffer, length delimited. + * Decodes a SampleRowKeysResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadModifyWriteRowRequest} ReadModifyWriteRowRequest + * @returns {google.bigtable.v2.SampleRowKeysResponse} SampleRowKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadModifyWriteRowRequest.decodeDelimited = function decodeDelimited(reader) { + SampleRowKeysResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadModifyWriteRowRequest message. + * Verifies a SampleRowKeysResponse message. * @function verify - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadModifyWriteRowRequest.verify = function verify(message) { + SampleRowKeysResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tableName != null && message.hasOwnProperty("tableName")) - if (!$util.isString(message.tableName)) - return "tableName: string expected"; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - if (!$util.isString(message.authorizedViewName)) - return "authorizedViewName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; if (message.rowKey != null && message.hasOwnProperty("rowKey")) if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) return "rowKey: buffer expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.bigtable.v2.ReadModifyWriteRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } + if (message.offsetBytes != null && message.hasOwnProperty("offsetBytes")) + if (!$util.isInteger(message.offsetBytes) && !(message.offsetBytes && $util.isInteger(message.offsetBytes.low) && $util.isInteger(message.offsetBytes.high))) + return "offsetBytes: integer|Long expected"; return null; }; /** - * Creates a ReadModifyWriteRowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SampleRowKeysResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadModifyWriteRowRequest} ReadModifyWriteRowRequest + * @returns {google.bigtable.v2.SampleRowKeysResponse} SampleRowKeysResponse */ - ReadModifyWriteRowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadModifyWriteRowRequest) + SampleRowKeysResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.SampleRowKeysResponse) return object; - var message = new $root.google.bigtable.v2.ReadModifyWriteRowRequest(); - if (object.tableName != null) - message.tableName = String(object.tableName); - if (object.authorizedViewName != null) - message.authorizedViewName = String(object.authorizedViewName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); + var message = new $root.google.bigtable.v2.SampleRowKeysResponse(); if (object.rowKey != null) if (typeof object.rowKey === "string") $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); else if (object.rowKey.length >= 0) message.rowKey = object.rowKey; - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.bigtable.v2.ReadModifyWriteRowRequest.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.bigtable.v2.ReadModifyWriteRowRequest.rules: object expected"); - message.rules[i] = $root.google.bigtable.v2.ReadModifyWriteRule.fromObject(object.rules[i]); - } - } + if (object.offsetBytes != null) + if ($util.Long) + (message.offsetBytes = $util.Long.fromValue(object.offsetBytes)).unsigned = false; + else if (typeof object.offsetBytes === "string") + message.offsetBytes = parseInt(object.offsetBytes, 10); + else if (typeof object.offsetBytes === "number") + message.offsetBytes = object.offsetBytes; + else if (typeof object.offsetBytes === "object") + message.offsetBytes = new $util.LongBits(object.offsetBytes.low >>> 0, object.offsetBytes.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ReadModifyWriteRowRequest message. Also converts values to other types if specified. + * Creates a plain object from a SampleRowKeysResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static - * @param {google.bigtable.v2.ReadModifyWriteRowRequest} message ReadModifyWriteRowRequest + * @param {google.bigtable.v2.SampleRowKeysResponse} message SampleRowKeysResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadModifyWriteRowRequest.toObject = function toObject(message, options) { + SampleRowKeysResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rules = []; if (options.defaults) { - object.tableName = ""; if (options.bytes === String) object.rowKey = ""; else { @@ -47202,72 +47294,75 @@ if (options.bytes !== Array) object.rowKey = $util.newBuffer(object.rowKey); } - object.appProfileId = ""; - object.authorizedViewName = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.offsetBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offsetBytes = options.longs === String ? "0" : 0; } - if (message.tableName != null && message.hasOwnProperty("tableName")) - object.tableName = message.tableName; if (message.rowKey != null && message.hasOwnProperty("rowKey")) object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.bigtable.v2.ReadModifyWriteRule.toObject(message.rules[j], options); - } - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) - object.authorizedViewName = message.authorizedViewName; + if (message.offsetBytes != null && message.hasOwnProperty("offsetBytes")) + if (typeof message.offsetBytes === "number") + object.offsetBytes = options.longs === String ? String(message.offsetBytes) : message.offsetBytes; + else + object.offsetBytes = options.longs === String ? $util.Long.prototype.toString.call(message.offsetBytes) : options.longs === Number ? new $util.LongBits(message.offsetBytes.low >>> 0, message.offsetBytes.high >>> 0).toNumber() : message.offsetBytes; return object; }; /** - * Converts this ReadModifyWriteRowRequest to JSON. + * Converts this SampleRowKeysResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @instance * @returns {Object.} JSON object */ - ReadModifyWriteRowRequest.prototype.toJSON = function toJSON() { + SampleRowKeysResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadModifyWriteRowRequest + * Gets the default type url for SampleRowKeysResponse * @function getTypeUrl - * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @memberof google.bigtable.v2.SampleRowKeysResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadModifyWriteRowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SampleRowKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ReadModifyWriteRowRequest"; + return typeUrlPrefix + "/google.bigtable.v2.SampleRowKeysResponse"; }; - return ReadModifyWriteRowRequest; + return SampleRowKeysResponse; })(); - v2.ReadModifyWriteRowResponse = (function() { + v2.MutateRowRequest = (function() { /** - * Properties of a ReadModifyWriteRowResponse. + * Properties of a MutateRowRequest. * @memberof google.bigtable.v2 - * @interface IReadModifyWriteRowResponse - * @property {google.bigtable.v2.IRow|null} [row] ReadModifyWriteRowResponse row + * @interface IMutateRowRequest + * @property {string|null} [tableName] MutateRowRequest tableName + * @property {string|null} [authorizedViewName] MutateRowRequest authorizedViewName + * @property {string|null} [appProfileId] MutateRowRequest appProfileId + * @property {Uint8Array|null} [rowKey] MutateRowRequest rowKey + * @property {Array.|null} [mutations] MutateRowRequest mutations + * @property {google.bigtable.v2.IIdempotency|null} [idempotency] MutateRowRequest idempotency */ /** - * Constructs a new ReadModifyWriteRowResponse. + * Constructs a new MutateRowRequest. * @memberof google.bigtable.v2 - * @classdesc Represents a ReadModifyWriteRowResponse. - * @implements IReadModifyWriteRowResponse + * @classdesc Represents a MutateRowRequest. + * @implements IMutateRowRequest * @constructor - * @param {google.bigtable.v2.IReadModifyWriteRowResponse=} [properties] Properties to set + * @param {google.bigtable.v2.IMutateRowRequest=} [properties] Properties to set */ - function ReadModifyWriteRowResponse(properties) { + function MutateRowRequest(properties) { + this.mutations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47275,77 +47370,150 @@ } /** - * ReadModifyWriteRowResponse row. - * @member {google.bigtable.v2.IRow|null|undefined} row - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * MutateRowRequest tableName. + * @member {string} tableName + * @memberof google.bigtable.v2.MutateRowRequest * @instance */ - ReadModifyWriteRowResponse.prototype.row = null; + MutateRowRequest.prototype.tableName = ""; /** - * Creates a new ReadModifyWriteRowResponse instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse - * @static - * @param {google.bigtable.v2.IReadModifyWriteRowResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadModifyWriteRowResponse} ReadModifyWriteRowResponse instance + * MutateRowRequest authorizedViewName. + * @member {string} authorizedViewName + * @memberof google.bigtable.v2.MutateRowRequest + * @instance */ - ReadModifyWriteRowResponse.create = function create(properties) { - return new ReadModifyWriteRowResponse(properties); - }; + MutateRowRequest.prototype.authorizedViewName = ""; /** - * Encodes the specified ReadModifyWriteRowResponse message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowResponse.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse - * @static - * @param {google.bigtable.v2.IReadModifyWriteRowResponse} message ReadModifyWriteRowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MutateRowRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.MutateRowRequest + * @instance */ - ReadModifyWriteRowResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.row != null && Object.hasOwnProperty.call(message, "row")) - $root.google.bigtable.v2.Row.encode(message.row, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + MutateRowRequest.prototype.appProfileId = ""; + + /** + * MutateRowRequest rowKey. + * @member {Uint8Array} rowKey + * @memberof google.bigtable.v2.MutateRowRequest + * @instance + */ + MutateRowRequest.prototype.rowKey = $util.newBuffer([]); + + /** + * MutateRowRequest mutations. + * @member {Array.} mutations + * @memberof google.bigtable.v2.MutateRowRequest + * @instance + */ + MutateRowRequest.prototype.mutations = $util.emptyArray; + + /** + * MutateRowRequest idempotency. + * @member {google.bigtable.v2.IIdempotency|null|undefined} idempotency + * @memberof google.bigtable.v2.MutateRowRequest + * @instance + */ + MutateRowRequest.prototype.idempotency = null; + + /** + * Creates a new MutateRowRequest instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.MutateRowRequest + * @static + * @param {google.bigtable.v2.IMutateRowRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.MutateRowRequest} MutateRowRequest instance + */ + MutateRowRequest.create = function create(properties) { + return new MutateRowRequest(properties); + }; + + /** + * Encodes the specified MutateRowRequest message. Does not implicitly {@link google.bigtable.v2.MutateRowRequest.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.MutateRowRequest + * @static + * @param {google.bigtable.v2.IMutateRowRequest} message MutateRowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MutateRowRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); + if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rowKey); + if (message.mutations != null && message.mutations.length) + for (var i = 0; i < message.mutations.length; ++i) + $root.google.bigtable.v2.Mutation.encode(message.mutations[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.appProfileId); + if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.authorizedViewName); + if (message.idempotency != null && Object.hasOwnProperty.call(message, "idempotency")) + $root.google.bigtable.v2.Idempotency.encode(message.idempotency, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadModifyWriteRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowResponse.verify|verify} messages. + * Encodes the specified MutateRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * @memberof google.bigtable.v2.MutateRowRequest * @static - * @param {google.bigtable.v2.IReadModifyWriteRowResponse} message ReadModifyWriteRowResponse message or plain object to encode + * @param {google.bigtable.v2.IMutateRowRequest} message MutateRowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadModifyWriteRowResponse.encodeDelimited = function encodeDelimited(message, writer) { + MutateRowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadModifyWriteRowResponse message from the specified reader or buffer. + * Decodes a MutateRowRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * @memberof google.bigtable.v2.MutateRowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadModifyWriteRowResponse} ReadModifyWriteRowResponse + * @returns {google.bigtable.v2.MutateRowRequest} MutateRowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadModifyWriteRowResponse.decode = function decode(reader, length, error) { + MutateRowRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadModifyWriteRowResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.row = $root.google.bigtable.v2.Row.decode(reader, reader.uint32()); + message.tableName = reader.string(); + break; + } + case 6: { + message.authorizedViewName = reader.string(); + break; + } + case 4: { + message.appProfileId = reader.string(); + break; + } + case 2: { + message.rowKey = reader.bytes(); + break; + } + case 3: { + if (!(message.mutations && message.mutations.length)) + message.mutations = []; + message.mutations.push($root.google.bigtable.v2.Mutation.decode(reader, reader.uint32())); + break; + } + case 8: { + message.idempotency = $root.google.bigtable.v2.Idempotency.decode(reader, reader.uint32()); break; } default: @@ -47357,128 +47525,194 @@ }; /** - * Decodes a ReadModifyWriteRowResponse message from the specified reader or buffer, length delimited. + * Decodes a MutateRowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * @memberof google.bigtable.v2.MutateRowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadModifyWriteRowResponse} ReadModifyWriteRowResponse + * @returns {google.bigtable.v2.MutateRowRequest} MutateRowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadModifyWriteRowResponse.decodeDelimited = function decodeDelimited(reader) { + MutateRowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadModifyWriteRowResponse message. + * Verifies a MutateRowRequest message. * @function verify - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * @memberof google.bigtable.v2.MutateRowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadModifyWriteRowResponse.verify = function verify(message) { + MutateRowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.row != null && message.hasOwnProperty("row")) { - var error = $root.google.bigtable.v2.Row.verify(message.row); + if (message.tableName != null && message.hasOwnProperty("tableName")) + if (!$util.isString(message.tableName)) + return "tableName: string expected"; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + if (!$util.isString(message.authorizedViewName)) + return "authorizedViewName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) + return "rowKey: buffer expected"; + if (message.mutations != null && message.hasOwnProperty("mutations")) { + if (!Array.isArray(message.mutations)) + return "mutations: array expected"; + for (var i = 0; i < message.mutations.length; ++i) { + var error = $root.google.bigtable.v2.Mutation.verify(message.mutations[i]); + if (error) + return "mutations." + error; + } + } + if (message.idempotency != null && message.hasOwnProperty("idempotency")) { + var error = $root.google.bigtable.v2.Idempotency.verify(message.idempotency); if (error) - return "row." + error; + return "idempotency." + error; } return null; }; /** - * Creates a ReadModifyWriteRowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MutateRowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * @memberof google.bigtable.v2.MutateRowRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadModifyWriteRowResponse} ReadModifyWriteRowResponse + * @returns {google.bigtable.v2.MutateRowRequest} MutateRowRequest */ - ReadModifyWriteRowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadModifyWriteRowResponse) + MutateRowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.MutateRowRequest) return object; - var message = new $root.google.bigtable.v2.ReadModifyWriteRowResponse(); - if (object.row != null) { - if (typeof object.row !== "object") - throw TypeError(".google.bigtable.v2.ReadModifyWriteRowResponse.row: object expected"); - message.row = $root.google.bigtable.v2.Row.fromObject(object.row); + var message = new $root.google.bigtable.v2.MutateRowRequest(); + if (object.tableName != null) + message.tableName = String(object.tableName); + if (object.authorizedViewName != null) + message.authorizedViewName = String(object.authorizedViewName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + if (object.rowKey != null) + if (typeof object.rowKey === "string") + $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); + else if (object.rowKey.length >= 0) + message.rowKey = object.rowKey; + if (object.mutations) { + if (!Array.isArray(object.mutations)) + throw TypeError(".google.bigtable.v2.MutateRowRequest.mutations: array expected"); + message.mutations = []; + for (var i = 0; i < object.mutations.length; ++i) { + if (typeof object.mutations[i] !== "object") + throw TypeError(".google.bigtable.v2.MutateRowRequest.mutations: object expected"); + message.mutations[i] = $root.google.bigtable.v2.Mutation.fromObject(object.mutations[i]); + } + } + if (object.idempotency != null) { + if (typeof object.idempotency !== "object") + throw TypeError(".google.bigtable.v2.MutateRowRequest.idempotency: object expected"); + message.idempotency = $root.google.bigtable.v2.Idempotency.fromObject(object.idempotency); } return message; }; /** - * Creates a plain object from a ReadModifyWriteRowResponse message. Also converts values to other types if specified. + * Creates a plain object from a MutateRowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * @memberof google.bigtable.v2.MutateRowRequest * @static - * @param {google.bigtable.v2.ReadModifyWriteRowResponse} message ReadModifyWriteRowResponse + * @param {google.bigtable.v2.MutateRowRequest} message MutateRowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadModifyWriteRowResponse.toObject = function toObject(message, options) { + MutateRowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.row = null; - if (message.row != null && message.hasOwnProperty("row")) - object.row = $root.google.bigtable.v2.Row.toObject(message.row, options); + if (options.arrays || options.defaults) + object.mutations = []; + if (options.defaults) { + object.tableName = ""; + if (options.bytes === String) + object.rowKey = ""; + else { + object.rowKey = []; + if (options.bytes !== Array) + object.rowKey = $util.newBuffer(object.rowKey); + } + object.appProfileId = ""; + object.authorizedViewName = ""; + object.idempotency = null; + } + if (message.tableName != null && message.hasOwnProperty("tableName")) + object.tableName = message.tableName; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; + if (message.mutations && message.mutations.length) { + object.mutations = []; + for (var j = 0; j < message.mutations.length; ++j) + object.mutations[j] = $root.google.bigtable.v2.Mutation.toObject(message.mutations[j], options); + } + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + object.authorizedViewName = message.authorizedViewName; + if (message.idempotency != null && message.hasOwnProperty("idempotency")) + object.idempotency = $root.google.bigtable.v2.Idempotency.toObject(message.idempotency, options); return object; }; /** - * Converts this ReadModifyWriteRowResponse to JSON. + * Converts this MutateRowRequest to JSON. * @function toJSON - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * @memberof google.bigtable.v2.MutateRowRequest * @instance * @returns {Object.} JSON object */ - ReadModifyWriteRowResponse.prototype.toJSON = function toJSON() { + MutateRowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadModifyWriteRowResponse + * Gets the default type url for MutateRowRequest * @function getTypeUrl - * @memberof google.bigtable.v2.ReadModifyWriteRowResponse + * @memberof google.bigtable.v2.MutateRowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadModifyWriteRowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateRowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ReadModifyWriteRowResponse"; + return typeUrlPrefix + "/google.bigtable.v2.MutateRowRequest"; }; - return ReadModifyWriteRowResponse; + return MutateRowRequest; })(); - v2.GenerateInitialChangeStreamPartitionsRequest = (function() { + v2.MutateRowResponse = (function() { /** - * Properties of a GenerateInitialChangeStreamPartitionsRequest. + * Properties of a MutateRowResponse. * @memberof google.bigtable.v2 - * @interface IGenerateInitialChangeStreamPartitionsRequest - * @property {string|null} [tableName] GenerateInitialChangeStreamPartitionsRequest tableName - * @property {string|null} [appProfileId] GenerateInitialChangeStreamPartitionsRequest appProfileId + * @interface IMutateRowResponse */ /** - * Constructs a new GenerateInitialChangeStreamPartitionsRequest. + * Constructs a new MutateRowResponse. * @memberof google.bigtable.v2 - * @classdesc Represents a GenerateInitialChangeStreamPartitionsRequest. - * @implements IGenerateInitialChangeStreamPartitionsRequest + * @classdesc Represents a MutateRowResponse. + * @implements IMutateRowResponse * @constructor - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest=} [properties] Properties to set + * @param {google.bigtable.v2.IMutateRowResponse=} [properties] Properties to set */ - function GenerateInitialChangeStreamPartitionsRequest(properties) { + function MutateRowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47486,93 +47720,65 @@ } /** - * GenerateInitialChangeStreamPartitionsRequest tableName. - * @member {string} tableName - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest - * @instance - */ - GenerateInitialChangeStreamPartitionsRequest.prototype.tableName = ""; - - /** - * GenerateInitialChangeStreamPartitionsRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest - * @instance - */ - GenerateInitialChangeStreamPartitionsRequest.prototype.appProfileId = ""; - - /** - * Creates a new GenerateInitialChangeStreamPartitionsRequest instance using the specified properties. + * Creates a new MutateRowResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} GenerateInitialChangeStreamPartitionsRequest instance + * @param {google.bigtable.v2.IMutateRowResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.MutateRowResponse} MutateRowResponse instance */ - GenerateInitialChangeStreamPartitionsRequest.create = function create(properties) { - return new GenerateInitialChangeStreamPartitionsRequest(properties); + MutateRowResponse.create = function create(properties) { + return new MutateRowResponse(properties); }; /** - * Encodes the specified GenerateInitialChangeStreamPartitionsRequest message. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest.verify|verify} messages. + * Encodes the specified MutateRowResponse message. Does not implicitly {@link google.bigtable.v2.MutateRowResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest} message GenerateInitialChangeStreamPartitionsRequest message or plain object to encode + * @param {google.bigtable.v2.IMutateRowResponse} message MutateRowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerateInitialChangeStreamPartitionsRequest.encode = function encode(message, writer) { + MutateRowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); return writer; }; /** - * Encodes the specified GenerateInitialChangeStreamPartitionsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest.verify|verify} messages. + * Encodes the specified MutateRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest} message GenerateInitialChangeStreamPartitionsRequest message or plain object to encode + * @param {google.bigtable.v2.IMutateRowResponse} message MutateRowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerateInitialChangeStreamPartitionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MutateRowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenerateInitialChangeStreamPartitionsRequest message from the specified reader or buffer. + * Decodes a MutateRowResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} GenerateInitialChangeStreamPartitionsRequest + * @returns {google.bigtable.v2.MutateRowResponse} MutateRowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerateInitialChangeStreamPartitionsRequest.decode = function decode(reader, length, error) { + MutateRowResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 1: { - message.tableName = reader.string(); - break; - } - case 2: { - message.appProfileId = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -47582,131 +47788,113 @@ }; /** - * Decodes a GenerateInitialChangeStreamPartitionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MutateRowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} GenerateInitialChangeStreamPartitionsRequest + * @returns {google.bigtable.v2.MutateRowResponse} MutateRowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerateInitialChangeStreamPartitionsRequest.decodeDelimited = function decodeDelimited(reader) { + MutateRowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenerateInitialChangeStreamPartitionsRequest message. + * Verifies a MutateRowResponse message. * @function verify - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenerateInitialChangeStreamPartitionsRequest.verify = function verify(message) { + MutateRowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tableName != null && message.hasOwnProperty("tableName")) - if (!$util.isString(message.tableName)) - return "tableName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; return null; }; /** - * Creates a GenerateInitialChangeStreamPartitionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MutateRowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} GenerateInitialChangeStreamPartitionsRequest + * @returns {google.bigtable.v2.MutateRowResponse} MutateRowResponse */ - GenerateInitialChangeStreamPartitionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest) + MutateRowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.MutateRowResponse) return object; - var message = new $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest(); - if (object.tableName != null) - message.tableName = String(object.tableName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - return message; + return new $root.google.bigtable.v2.MutateRowResponse(); }; /** - * Creates a plain object from a GenerateInitialChangeStreamPartitionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MutateRowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static - * @param {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} message GenerateInitialChangeStreamPartitionsRequest + * @param {google.bigtable.v2.MutateRowResponse} message MutateRowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenerateInitialChangeStreamPartitionsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tableName = ""; - object.appProfileId = ""; - } - if (message.tableName != null && message.hasOwnProperty("tableName")) - object.tableName = message.tableName; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - return object; + MutateRowResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GenerateInitialChangeStreamPartitionsRequest to JSON. + * Converts this MutateRowResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @instance * @returns {Object.} JSON object */ - GenerateInitialChangeStreamPartitionsRequest.prototype.toJSON = function toJSON() { + MutateRowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GenerateInitialChangeStreamPartitionsRequest + * Gets the default type url for MutateRowResponse * @function getTypeUrl - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + * @memberof google.bigtable.v2.MutateRowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GenerateInitialChangeStreamPartitionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateRowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest"; + return typeUrlPrefix + "/google.bigtable.v2.MutateRowResponse"; }; - return GenerateInitialChangeStreamPartitionsRequest; + return MutateRowResponse; })(); - v2.GenerateInitialChangeStreamPartitionsResponse = (function() { + v2.MutateRowsRequest = (function() { /** - * Properties of a GenerateInitialChangeStreamPartitionsResponse. + * Properties of a MutateRowsRequest. * @memberof google.bigtable.v2 - * @interface IGenerateInitialChangeStreamPartitionsResponse - * @property {google.bigtable.v2.IStreamPartition|null} [partition] GenerateInitialChangeStreamPartitionsResponse partition + * @interface IMutateRowsRequest + * @property {string|null} [tableName] MutateRowsRequest tableName + * @property {string|null} [authorizedViewName] MutateRowsRequest authorizedViewName + * @property {string|null} [appProfileId] MutateRowsRequest appProfileId + * @property {Array.|null} [entries] MutateRowsRequest entries */ /** - * Constructs a new GenerateInitialChangeStreamPartitionsResponse. + * Constructs a new MutateRowsRequest. * @memberof google.bigtable.v2 - * @classdesc Represents a GenerateInitialChangeStreamPartitionsResponse. - * @implements IGenerateInitialChangeStreamPartitionsResponse + * @classdesc Represents a MutateRowsRequest. + * @implements IMutateRowsRequest * @constructor - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse=} [properties] Properties to set + * @param {google.bigtable.v2.IMutateRowsRequest=} [properties] Properties to set */ - function GenerateInitialChangeStreamPartitionsResponse(properties) { + function MutateRowsRequest(properties) { + this.entries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47714,77 +47902,122 @@ } /** - * GenerateInitialChangeStreamPartitionsResponse partition. - * @member {google.bigtable.v2.IStreamPartition|null|undefined} partition - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * MutateRowsRequest tableName. + * @member {string} tableName + * @memberof google.bigtable.v2.MutateRowsRequest * @instance */ - GenerateInitialChangeStreamPartitionsResponse.prototype.partition = null; + MutateRowsRequest.prototype.tableName = ""; /** - * Creates a new GenerateInitialChangeStreamPartitionsResponse instance using the specified properties. + * MutateRowsRequest authorizedViewName. + * @member {string} authorizedViewName + * @memberof google.bigtable.v2.MutateRowsRequest + * @instance + */ + MutateRowsRequest.prototype.authorizedViewName = ""; + + /** + * MutateRowsRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.MutateRowsRequest + * @instance + */ + MutateRowsRequest.prototype.appProfileId = ""; + + /** + * MutateRowsRequest entries. + * @member {Array.} entries + * @memberof google.bigtable.v2.MutateRowsRequest + * @instance + */ + MutateRowsRequest.prototype.entries = $util.emptyArray; + + /** + * Creates a new MutateRowsRequest instance using the specified properties. * @function create - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} GenerateInitialChangeStreamPartitionsResponse instance + * @param {google.bigtable.v2.IMutateRowsRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.MutateRowsRequest} MutateRowsRequest instance */ - GenerateInitialChangeStreamPartitionsResponse.create = function create(properties) { - return new GenerateInitialChangeStreamPartitionsResponse(properties); + MutateRowsRequest.create = function create(properties) { + return new MutateRowsRequest(properties); }; /** - * Encodes the specified GenerateInitialChangeStreamPartitionsResponse message. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.verify|verify} messages. + * Encodes the specified MutateRowsRequest message. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse} message GenerateInitialChangeStreamPartitionsResponse message or plain object to encode + * @param {google.bigtable.v2.IMutateRowsRequest} message MutateRowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerateInitialChangeStreamPartitionsResponse.encode = function encode(message, writer) { + MutateRowsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.partition != null && Object.hasOwnProperty.call(message, "partition")) - $root.google.bigtable.v2.StreamPartition.encode(message.partition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); + if (message.entries != null && message.entries.length) + for (var i = 0; i < message.entries.length; ++i) + $root.google.bigtable.v2.MutateRowsRequest.Entry.encode(message.entries[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.appProfileId); + if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.authorizedViewName); return writer; }; /** - * Encodes the specified GenerateInitialChangeStreamPartitionsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.verify|verify} messages. + * Encodes the specified MutateRowsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static - * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse} message GenerateInitialChangeStreamPartitionsResponse message or plain object to encode + * @param {google.bigtable.v2.IMutateRowsRequest} message MutateRowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerateInitialChangeStreamPartitionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MutateRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenerateInitialChangeStreamPartitionsResponse message from the specified reader or buffer. + * Decodes a MutateRowsRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} GenerateInitialChangeStreamPartitionsResponse + * @returns {google.bigtable.v2.MutateRowsRequest} MutateRowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerateInitialChangeStreamPartitionsResponse.decode = function decode(reader, length, error) { + MutateRowsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.partition = $root.google.bigtable.v2.StreamPartition.decode(reader, reader.uint32()); + message.tableName = reader.string(); + break; + } + case 5: { + message.authorizedViewName = reader.string(); + break; + } + case 3: { + message.appProfileId = reader.string(); + break; + } + case 2: { + if (!(message.entries && message.entries.length)) + message.entries = []; + message.entries.push($root.google.bigtable.v2.MutateRowsRequest.Entry.decode(reader, reader.uint32())); break; } default: @@ -47796,133 +48029,455 @@ }; /** - * Decodes a GenerateInitialChangeStreamPartitionsResponse message from the specified reader or buffer, length delimited. + * Decodes a MutateRowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} GenerateInitialChangeStreamPartitionsResponse + * @returns {google.bigtable.v2.MutateRowsRequest} MutateRowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerateInitialChangeStreamPartitionsResponse.decodeDelimited = function decodeDelimited(reader) { + MutateRowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenerateInitialChangeStreamPartitionsResponse message. + * Verifies a MutateRowsRequest message. * @function verify - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenerateInitialChangeStreamPartitionsResponse.verify = function verify(message) { + MutateRowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.partition != null && message.hasOwnProperty("partition")) { - var error = $root.google.bigtable.v2.StreamPartition.verify(message.partition); - if (error) - return "partition." + error; + if (message.tableName != null && message.hasOwnProperty("tableName")) + if (!$util.isString(message.tableName)) + return "tableName: string expected"; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + if (!$util.isString(message.authorizedViewName)) + return "authorizedViewName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; + if (message.entries != null && message.hasOwnProperty("entries")) { + if (!Array.isArray(message.entries)) + return "entries: array expected"; + for (var i = 0; i < message.entries.length; ++i) { + var error = $root.google.bigtable.v2.MutateRowsRequest.Entry.verify(message.entries[i]); + if (error) + return "entries." + error; + } } return null; }; /** - * Creates a GenerateInitialChangeStreamPartitionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MutateRowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} GenerateInitialChangeStreamPartitionsResponse + * @returns {google.bigtable.v2.MutateRowsRequest} MutateRowsRequest */ - GenerateInitialChangeStreamPartitionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse) + MutateRowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.MutateRowsRequest) return object; - var message = new $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse(); - if (object.partition != null) { - if (typeof object.partition !== "object") - throw TypeError(".google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.partition: object expected"); - message.partition = $root.google.bigtable.v2.StreamPartition.fromObject(object.partition); + var message = new $root.google.bigtable.v2.MutateRowsRequest(); + if (object.tableName != null) + message.tableName = String(object.tableName); + if (object.authorizedViewName != null) + message.authorizedViewName = String(object.authorizedViewName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + if (object.entries) { + if (!Array.isArray(object.entries)) + throw TypeError(".google.bigtable.v2.MutateRowsRequest.entries: array expected"); + message.entries = []; + for (var i = 0; i < object.entries.length; ++i) { + if (typeof object.entries[i] !== "object") + throw TypeError(".google.bigtable.v2.MutateRowsRequest.entries: object expected"); + message.entries[i] = $root.google.bigtable.v2.MutateRowsRequest.Entry.fromObject(object.entries[i]); + } } return message; }; /** - * Creates a plain object from a GenerateInitialChangeStreamPartitionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MutateRowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static - * @param {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} message GenerateInitialChangeStreamPartitionsResponse + * @param {google.bigtable.v2.MutateRowsRequest} message MutateRowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenerateInitialChangeStreamPartitionsResponse.toObject = function toObject(message, options) { + MutateRowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.partition = null; - if (message.partition != null && message.hasOwnProperty("partition")) - object.partition = $root.google.bigtable.v2.StreamPartition.toObject(message.partition, options); + if (options.arrays || options.defaults) + object.entries = []; + if (options.defaults) { + object.tableName = ""; + object.appProfileId = ""; + object.authorizedViewName = ""; + } + if (message.tableName != null && message.hasOwnProperty("tableName")) + object.tableName = message.tableName; + if (message.entries && message.entries.length) { + object.entries = []; + for (var j = 0; j < message.entries.length; ++j) + object.entries[j] = $root.google.bigtable.v2.MutateRowsRequest.Entry.toObject(message.entries[j], options); + } + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + object.authorizedViewName = message.authorizedViewName; return object; }; /** - * Converts this GenerateInitialChangeStreamPartitionsResponse to JSON. + * Converts this MutateRowsRequest to JSON. * @function toJSON - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @instance * @returns {Object.} JSON object */ - GenerateInitialChangeStreamPartitionsResponse.prototype.toJSON = function toJSON() { + MutateRowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GenerateInitialChangeStreamPartitionsResponse + * Gets the default type url for MutateRowsRequest * @function getTypeUrl - * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + * @memberof google.bigtable.v2.MutateRowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GenerateInitialChangeStreamPartitionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateRowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse"; + return typeUrlPrefix + "/google.bigtable.v2.MutateRowsRequest"; }; - return GenerateInitialChangeStreamPartitionsResponse; + MutateRowsRequest.Entry = (function() { + + /** + * Properties of an Entry. + * @memberof google.bigtable.v2.MutateRowsRequest + * @interface IEntry + * @property {Uint8Array|null} [rowKey] Entry rowKey + * @property {Array.|null} [mutations] Entry mutations + * @property {google.bigtable.v2.IIdempotency|null} [idempotency] Entry idempotency + */ + + /** + * Constructs a new Entry. + * @memberof google.bigtable.v2.MutateRowsRequest + * @classdesc Represents an Entry. + * @implements IEntry + * @constructor + * @param {google.bigtable.v2.MutateRowsRequest.IEntry=} [properties] Properties to set + */ + function Entry(properties) { + this.mutations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Entry rowKey. + * @member {Uint8Array} rowKey + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @instance + */ + Entry.prototype.rowKey = $util.newBuffer([]); + + /** + * Entry mutations. + * @member {Array.} mutations + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @instance + */ + Entry.prototype.mutations = $util.emptyArray; + + /** + * Entry idempotency. + * @member {google.bigtable.v2.IIdempotency|null|undefined} idempotency + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @instance + */ + Entry.prototype.idempotency = null; + + /** + * Creates a new Entry instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {google.bigtable.v2.MutateRowsRequest.IEntry=} [properties] Properties to set + * @returns {google.bigtable.v2.MutateRowsRequest.Entry} Entry instance + */ + Entry.create = function create(properties) { + return new Entry(properties); + }; + + /** + * Encodes the specified Entry message. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.Entry.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {google.bigtable.v2.MutateRowsRequest.IEntry} message Entry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Entry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowKey); + if (message.mutations != null && message.mutations.length) + for (var i = 0; i < message.mutations.length; ++i) + $root.google.bigtable.v2.Mutation.encode(message.mutations[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.idempotency != null && Object.hasOwnProperty.call(message, "idempotency")) + $root.google.bigtable.v2.Idempotency.encode(message.idempotency, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsRequest.Entry.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {google.bigtable.v2.MutateRowsRequest.IEntry} message Entry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Entry.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Entry message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.MutateRowsRequest.Entry} Entry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Entry.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowsRequest.Entry(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.rowKey = reader.bytes(); + break; + } + case 2: { + if (!(message.mutations && message.mutations.length)) + message.mutations = []; + message.mutations.push($root.google.bigtable.v2.Mutation.decode(reader, reader.uint32())); + break; + } + case 3: { + message.idempotency = $root.google.bigtable.v2.Idempotency.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Entry message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.MutateRowsRequest.Entry} Entry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Entry.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Entry message. + * @function verify + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Entry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) + return "rowKey: buffer expected"; + if (message.mutations != null && message.hasOwnProperty("mutations")) { + if (!Array.isArray(message.mutations)) + return "mutations: array expected"; + for (var i = 0; i < message.mutations.length; ++i) { + var error = $root.google.bigtable.v2.Mutation.verify(message.mutations[i]); + if (error) + return "mutations." + error; + } + } + if (message.idempotency != null && message.hasOwnProperty("idempotency")) { + var error = $root.google.bigtable.v2.Idempotency.verify(message.idempotency); + if (error) + return "idempotency." + error; + } + return null; + }; + + /** + * Creates an Entry message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.MutateRowsRequest.Entry} Entry + */ + Entry.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.MutateRowsRequest.Entry) + return object; + var message = new $root.google.bigtable.v2.MutateRowsRequest.Entry(); + if (object.rowKey != null) + if (typeof object.rowKey === "string") + $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); + else if (object.rowKey.length >= 0) + message.rowKey = object.rowKey; + if (object.mutations) { + if (!Array.isArray(object.mutations)) + throw TypeError(".google.bigtable.v2.MutateRowsRequest.Entry.mutations: array expected"); + message.mutations = []; + for (var i = 0; i < object.mutations.length; ++i) { + if (typeof object.mutations[i] !== "object") + throw TypeError(".google.bigtable.v2.MutateRowsRequest.Entry.mutations: object expected"); + message.mutations[i] = $root.google.bigtable.v2.Mutation.fromObject(object.mutations[i]); + } + } + if (object.idempotency != null) { + if (typeof object.idempotency !== "object") + throw TypeError(".google.bigtable.v2.MutateRowsRequest.Entry.idempotency: object expected"); + message.idempotency = $root.google.bigtable.v2.Idempotency.fromObject(object.idempotency); + } + return message; + }; + + /** + * Creates a plain object from an Entry message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {google.bigtable.v2.MutateRowsRequest.Entry} message Entry + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Entry.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.mutations = []; + if (options.defaults) { + if (options.bytes === String) + object.rowKey = ""; + else { + object.rowKey = []; + if (options.bytes !== Array) + object.rowKey = $util.newBuffer(object.rowKey); + } + object.idempotency = null; + } + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; + if (message.mutations && message.mutations.length) { + object.mutations = []; + for (var j = 0; j < message.mutations.length; ++j) + object.mutations[j] = $root.google.bigtable.v2.Mutation.toObject(message.mutations[j], options); + } + if (message.idempotency != null && message.hasOwnProperty("idempotency")) + object.idempotency = $root.google.bigtable.v2.Idempotency.toObject(message.idempotency, options); + return object; + }; + + /** + * Converts this Entry to JSON. + * @function toJSON + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @instance + * @returns {Object.} JSON object + */ + Entry.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Entry + * @function getTypeUrl + * @memberof google.bigtable.v2.MutateRowsRequest.Entry + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Entry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.MutateRowsRequest.Entry"; + }; + + return Entry; + })(); + + return MutateRowsRequest; })(); - v2.ReadChangeStreamRequest = (function() { + v2.MutateRowsResponse = (function() { /** - * Properties of a ReadChangeStreamRequest. + * Properties of a MutateRowsResponse. * @memberof google.bigtable.v2 - * @interface IReadChangeStreamRequest - * @property {string|null} [tableName] ReadChangeStreamRequest tableName - * @property {string|null} [appProfileId] ReadChangeStreamRequest appProfileId - * @property {google.bigtable.v2.IStreamPartition|null} [partition] ReadChangeStreamRequest partition - * @property {google.protobuf.ITimestamp|null} [startTime] ReadChangeStreamRequest startTime - * @property {google.bigtable.v2.IStreamContinuationTokens|null} [continuationTokens] ReadChangeStreamRequest continuationTokens - * @property {google.protobuf.ITimestamp|null} [endTime] ReadChangeStreamRequest endTime - * @property {google.protobuf.IDuration|null} [heartbeatDuration] ReadChangeStreamRequest heartbeatDuration + * @interface IMutateRowsResponse + * @property {Array.|null} [entries] MutateRowsResponse entries + * @property {google.bigtable.v2.IRateLimitInfo|null} [rateLimitInfo] MutateRowsResponse rateLimitInfo */ /** - * Constructs a new ReadChangeStreamRequest. + * Constructs a new MutateRowsResponse. * @memberof google.bigtable.v2 - * @classdesc Represents a ReadChangeStreamRequest. - * @implements IReadChangeStreamRequest + * @classdesc Represents a MutateRowsResponse. + * @implements IMutateRowsResponse * @constructor - * @param {google.bigtable.v2.IReadChangeStreamRequest=} [properties] Properties to set + * @param {google.bigtable.v2.IMutateRowsResponse=} [properties] Properties to set */ - function ReadChangeStreamRequest(properties) { + function MutateRowsResponse(properties) { + this.entries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47930,175 +48485,103 @@ } /** - * ReadChangeStreamRequest tableName. - * @member {string} tableName - * @memberof google.bigtable.v2.ReadChangeStreamRequest - * @instance - */ - ReadChangeStreamRequest.prototype.tableName = ""; - - /** - * ReadChangeStreamRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.ReadChangeStreamRequest - * @instance - */ - ReadChangeStreamRequest.prototype.appProfileId = ""; - - /** - * ReadChangeStreamRequest partition. - * @member {google.bigtable.v2.IStreamPartition|null|undefined} partition - * @memberof google.bigtable.v2.ReadChangeStreamRequest - * @instance - */ - ReadChangeStreamRequest.prototype.partition = null; - - /** - * ReadChangeStreamRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.bigtable.v2.ReadChangeStreamRequest - * @instance - */ - ReadChangeStreamRequest.prototype.startTime = null; - - /** - * ReadChangeStreamRequest continuationTokens. - * @member {google.bigtable.v2.IStreamContinuationTokens|null|undefined} continuationTokens - * @memberof google.bigtable.v2.ReadChangeStreamRequest - * @instance - */ - ReadChangeStreamRequest.prototype.continuationTokens = null; - - /** - * ReadChangeStreamRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * MutateRowsResponse entries. + * @member {Array.} entries + * @memberof google.bigtable.v2.MutateRowsResponse * @instance */ - ReadChangeStreamRequest.prototype.endTime = null; + MutateRowsResponse.prototype.entries = $util.emptyArray; /** - * ReadChangeStreamRequest heartbeatDuration. - * @member {google.protobuf.IDuration|null|undefined} heartbeatDuration - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * MutateRowsResponse rateLimitInfo. + * @member {google.bigtable.v2.IRateLimitInfo|null|undefined} rateLimitInfo + * @memberof google.bigtable.v2.MutateRowsResponse * @instance */ - ReadChangeStreamRequest.prototype.heartbeatDuration = null; + MutateRowsResponse.prototype.rateLimitInfo = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * ReadChangeStreamRequest startFrom. - * @member {"startTime"|"continuationTokens"|undefined} startFrom - * @memberof google.bigtable.v2.ReadChangeStreamRequest - * @instance - */ - Object.defineProperty(ReadChangeStreamRequest.prototype, "startFrom", { - get: $util.oneOfGetter($oneOfFields = ["startTime", "continuationTokens"]), + // Virtual OneOf for proto3 optional field + Object.defineProperty(MutateRowsResponse.prototype, "_rateLimitInfo", { + get: $util.oneOfGetter($oneOfFields = ["rateLimitInfo"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ReadChangeStreamRequest instance using the specified properties. + * Creates a new MutateRowsResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static - * @param {google.bigtable.v2.IReadChangeStreamRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadChangeStreamRequest} ReadChangeStreamRequest instance + * @param {google.bigtable.v2.IMutateRowsResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.MutateRowsResponse} MutateRowsResponse instance */ - ReadChangeStreamRequest.create = function create(properties) { - return new ReadChangeStreamRequest(properties); + MutateRowsResponse.create = function create(properties) { + return new MutateRowsResponse(properties); }; /** - * Encodes the specified ReadChangeStreamRequest message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamRequest.verify|verify} messages. + * Encodes the specified MutateRowsResponse message. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static - * @param {google.bigtable.v2.IReadChangeStreamRequest} message ReadChangeStreamRequest message or plain object to encode + * @param {google.bigtable.v2.IMutateRowsResponse} message MutateRowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadChangeStreamRequest.encode = function encode(message, writer) { + MutateRowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); - if (message.partition != null && Object.hasOwnProperty.call(message, "partition")) - $root.google.bigtable.v2.StreamPartition.encode(message.partition, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.continuationTokens != null && Object.hasOwnProperty.call(message, "continuationTokens")) - $root.google.bigtable.v2.StreamContinuationTokens.encode(message.continuationTokens, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.heartbeatDuration != null && Object.hasOwnProperty.call(message, "heartbeatDuration")) - $root.google.protobuf.Duration.encode(message.heartbeatDuration, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.entries != null && message.entries.length) + for (var i = 0; i < message.entries.length; ++i) + $root.google.bigtable.v2.MutateRowsResponse.Entry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rateLimitInfo != null && Object.hasOwnProperty.call(message, "rateLimitInfo")) + $root.google.bigtable.v2.RateLimitInfo.encode(message.rateLimitInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadChangeStreamRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamRequest.verify|verify} messages. + * Encodes the specified MutateRowsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static - * @param {google.bigtable.v2.IReadChangeStreamRequest} message ReadChangeStreamRequest message or plain object to encode + * @param {google.bigtable.v2.IMutateRowsResponse} message MutateRowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadChangeStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + MutateRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadChangeStreamRequest message from the specified reader or buffer. + * Decodes a MutateRowsResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadChangeStreamRequest} ReadChangeStreamRequest + * @returns {google.bigtable.v2.MutateRowsResponse} MutateRowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadChangeStreamRequest.decode = function decode(reader, length, error) { + MutateRowsResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.tableName = reader.string(); - break; - } - case 2: { - message.appProfileId = reader.string(); + if (!(message.entries && message.entries.length)) + message.entries = []; + message.entries.push($root.google.bigtable.v2.MutateRowsResponse.Entry.decode(reader, reader.uint32())); break; } case 3: { - message.partition = $root.google.bigtable.v2.StreamPartition.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.continuationTokens = $root.google.bigtable.v2.StreamContinuationTokens.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - message.heartbeatDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.rateLimitInfo = $root.google.bigtable.v2.RateLimitInfo.decode(reader, reader.uint32()); break; } default: @@ -48110,211 +48593,407 @@ }; /** - * Decodes a ReadChangeStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a MutateRowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadChangeStreamRequest} ReadChangeStreamRequest + * @returns {google.bigtable.v2.MutateRowsResponse} MutateRowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadChangeStreamRequest.decodeDelimited = function decodeDelimited(reader) { + MutateRowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadChangeStreamRequest message. + * Verifies a MutateRowsResponse message. * @function verify - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadChangeStreamRequest.verify = function verify(message) { + MutateRowsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.tableName != null && message.hasOwnProperty("tableName")) - if (!$util.isString(message.tableName)) - return "tableName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; - if (message.partition != null && message.hasOwnProperty("partition")) { - var error = $root.google.bigtable.v2.StreamPartition.verify(message.partition); - if (error) - return "partition." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - properties.startFrom = 1; - { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.entries != null && message.hasOwnProperty("entries")) { + if (!Array.isArray(message.entries)) + return "entries: array expected"; + for (var i = 0; i < message.entries.length; ++i) { + var error = $root.google.bigtable.v2.MutateRowsResponse.Entry.verify(message.entries[i]); if (error) - return "startTime." + error; + return "entries." + error; } } - if (message.continuationTokens != null && message.hasOwnProperty("continuationTokens")) { - if (properties.startFrom === 1) - return "startFrom: multiple values"; - properties.startFrom = 1; + if (message.rateLimitInfo != null && message.hasOwnProperty("rateLimitInfo")) { + properties._rateLimitInfo = 1; { - var error = $root.google.bigtable.v2.StreamContinuationTokens.verify(message.continuationTokens); + var error = $root.google.bigtable.v2.RateLimitInfo.verify(message.rateLimitInfo); if (error) - return "continuationTokens." + error; + return "rateLimitInfo." + error; } } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.heartbeatDuration != null && message.hasOwnProperty("heartbeatDuration")) { - var error = $root.google.protobuf.Duration.verify(message.heartbeatDuration); - if (error) - return "heartbeatDuration." + error; - } return null; }; /** - * Creates a ReadChangeStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MutateRowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadChangeStreamRequest} ReadChangeStreamRequest + * @returns {google.bigtable.v2.MutateRowsResponse} MutateRowsResponse */ - ReadChangeStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadChangeStreamRequest) + MutateRowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.MutateRowsResponse) return object; - var message = new $root.google.bigtable.v2.ReadChangeStreamRequest(); - if (object.tableName != null) - message.tableName = String(object.tableName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - if (object.partition != null) { - if (typeof object.partition !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.partition: object expected"); - message.partition = $root.google.bigtable.v2.StreamPartition.fromObject(object.partition); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.continuationTokens != null) { - if (typeof object.continuationTokens !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.continuationTokens: object expected"); - message.continuationTokens = $root.google.bigtable.v2.StreamContinuationTokens.fromObject(object.continuationTokens); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + var message = new $root.google.bigtable.v2.MutateRowsResponse(); + if (object.entries) { + if (!Array.isArray(object.entries)) + throw TypeError(".google.bigtable.v2.MutateRowsResponse.entries: array expected"); + message.entries = []; + for (var i = 0; i < object.entries.length; ++i) { + if (typeof object.entries[i] !== "object") + throw TypeError(".google.bigtable.v2.MutateRowsResponse.entries: object expected"); + message.entries[i] = $root.google.bigtable.v2.MutateRowsResponse.Entry.fromObject(object.entries[i]); + } } - if (object.heartbeatDuration != null) { - if (typeof object.heartbeatDuration !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.heartbeatDuration: object expected"); - message.heartbeatDuration = $root.google.protobuf.Duration.fromObject(object.heartbeatDuration); + if (object.rateLimitInfo != null) { + if (typeof object.rateLimitInfo !== "object") + throw TypeError(".google.bigtable.v2.MutateRowsResponse.rateLimitInfo: object expected"); + message.rateLimitInfo = $root.google.bigtable.v2.RateLimitInfo.fromObject(object.rateLimitInfo); } return message; }; /** - * Creates a plain object from a ReadChangeStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a MutateRowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static - * @param {google.bigtable.v2.ReadChangeStreamRequest} message ReadChangeStreamRequest + * @param {google.bigtable.v2.MutateRowsResponse} message MutateRowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadChangeStreamRequest.toObject = function toObject(message, options) { + MutateRowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.tableName = ""; - object.appProfileId = ""; - object.partition = null; - object.endTime = null; - object.heartbeatDuration = null; - } - if (message.tableName != null && message.hasOwnProperty("tableName")) - object.tableName = message.tableName; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - if (message.partition != null && message.hasOwnProperty("partition")) - object.partition = $root.google.bigtable.v2.StreamPartition.toObject(message.partition, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) { - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (options.oneofs) - object.startFrom = "startTime"; + if (options.arrays || options.defaults) + object.entries = []; + if (message.entries && message.entries.length) { + object.entries = []; + for (var j = 0; j < message.entries.length; ++j) + object.entries[j] = $root.google.bigtable.v2.MutateRowsResponse.Entry.toObject(message.entries[j], options); } - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.continuationTokens != null && message.hasOwnProperty("continuationTokens")) { - object.continuationTokens = $root.google.bigtable.v2.StreamContinuationTokens.toObject(message.continuationTokens, options); + if (message.rateLimitInfo != null && message.hasOwnProperty("rateLimitInfo")) { + object.rateLimitInfo = $root.google.bigtable.v2.RateLimitInfo.toObject(message.rateLimitInfo, options); if (options.oneofs) - object.startFrom = "continuationTokens"; + object._rateLimitInfo = "rateLimitInfo"; } - if (message.heartbeatDuration != null && message.hasOwnProperty("heartbeatDuration")) - object.heartbeatDuration = $root.google.protobuf.Duration.toObject(message.heartbeatDuration, options); return object; }; /** - * Converts this ReadChangeStreamRequest to JSON. + * Converts this MutateRowsResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @instance * @returns {Object.} JSON object */ - ReadChangeStreamRequest.prototype.toJSON = function toJSON() { + MutateRowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadChangeStreamRequest + * Gets the default type url for MutateRowsResponse * @function getTypeUrl - * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @memberof google.bigtable.v2.MutateRowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadChangeStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateRowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamRequest"; + return typeUrlPrefix + "/google.bigtable.v2.MutateRowsResponse"; }; - return ReadChangeStreamRequest; + MutateRowsResponse.Entry = (function() { + + /** + * Properties of an Entry. + * @memberof google.bigtable.v2.MutateRowsResponse + * @interface IEntry + * @property {number|Long|null} [index] Entry index + * @property {google.rpc.IStatus|null} [status] Entry status + */ + + /** + * Constructs a new Entry. + * @memberof google.bigtable.v2.MutateRowsResponse + * @classdesc Represents an Entry. + * @implements IEntry + * @constructor + * @param {google.bigtable.v2.MutateRowsResponse.IEntry=} [properties] Properties to set + */ + function Entry(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Entry index. + * @member {number|Long} index + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @instance + */ + Entry.prototype.index = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Entry status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @instance + */ + Entry.prototype.status = null; + + /** + * Creates a new Entry instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {google.bigtable.v2.MutateRowsResponse.IEntry=} [properties] Properties to set + * @returns {google.bigtable.v2.MutateRowsResponse.Entry} Entry instance + */ + Entry.create = function create(properties) { + return new Entry(properties); + }; + + /** + * Encodes the specified Entry message. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.Entry.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {google.bigtable.v2.MutateRowsResponse.IEntry} message Entry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Entry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.index); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Entry message, length delimited. Does not implicitly {@link google.bigtable.v2.MutateRowsResponse.Entry.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {google.bigtable.v2.MutateRowsResponse.IEntry} message Entry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Entry.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Entry message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.MutateRowsResponse.Entry} Entry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Entry.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.MutateRowsResponse.Entry(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.index = reader.int64(); + break; + } + case 2: { + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Entry message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.MutateRowsResponse.Entry} Entry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Entry.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Entry message. + * @function verify + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Entry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index) && !(message.index && $util.isInteger(message.index.low) && $util.isInteger(message.index.high))) + return "index: integer|Long expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + return null; + }; + + /** + * Creates an Entry message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.MutateRowsResponse.Entry} Entry + */ + Entry.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.MutateRowsResponse.Entry) + return object; + var message = new $root.google.bigtable.v2.MutateRowsResponse.Entry(); + if (object.index != null) + if ($util.Long) + (message.index = $util.Long.fromValue(object.index)).unsigned = false; + else if (typeof object.index === "string") + message.index = parseInt(object.index, 10); + else if (typeof object.index === "number") + message.index = object.index; + else if (typeof object.index === "object") + message.index = new $util.LongBits(object.index.low >>> 0, object.index.high >>> 0).toNumber(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.bigtable.v2.MutateRowsResponse.Entry.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + return message; + }; + + /** + * Creates a plain object from an Entry message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {google.bigtable.v2.MutateRowsResponse.Entry} message Entry + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Entry.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.index = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.index = options.longs === String ? "0" : 0; + object.status = null; + } + if (message.index != null && message.hasOwnProperty("index")) + if (typeof message.index === "number") + object.index = options.longs === String ? String(message.index) : message.index; + else + object.index = options.longs === String ? $util.Long.prototype.toString.call(message.index) : options.longs === Number ? new $util.LongBits(message.index.low >>> 0, message.index.high >>> 0).toNumber() : message.index; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + return object; + }; + + /** + * Converts this Entry to JSON. + * @function toJSON + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @instance + * @returns {Object.} JSON object + */ + Entry.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Entry + * @function getTypeUrl + * @memberof google.bigtable.v2.MutateRowsResponse.Entry + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Entry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.MutateRowsResponse.Entry"; + }; + + return Entry; + })(); + + return MutateRowsResponse; })(); - v2.ReadChangeStreamResponse = (function() { + v2.RateLimitInfo = (function() { /** - * Properties of a ReadChangeStreamResponse. + * Properties of a RateLimitInfo. * @memberof google.bigtable.v2 - * @interface IReadChangeStreamResponse - * @property {google.bigtable.v2.ReadChangeStreamResponse.IDataChange|null} [dataChange] ReadChangeStreamResponse dataChange - * @property {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat|null} [heartbeat] ReadChangeStreamResponse heartbeat - * @property {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream|null} [closeStream] ReadChangeStreamResponse closeStream + * @interface IRateLimitInfo + * @property {google.protobuf.IDuration|null} [period] RateLimitInfo period + * @property {number|null} [factor] RateLimitInfo factor */ /** - * Constructs a new ReadChangeStreamResponse. + * Constructs a new RateLimitInfo. * @memberof google.bigtable.v2 - * @classdesc Represents a ReadChangeStreamResponse. - * @implements IReadChangeStreamResponse + * @classdesc Represents a RateLimitInfo. + * @implements IRateLimitInfo * @constructor - * @param {google.bigtable.v2.IReadChangeStreamResponse=} [properties] Properties to set + * @param {google.bigtable.v2.IRateLimitInfo=} [properties] Properties to set */ - function ReadChangeStreamResponse(properties) { + function RateLimitInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48322,119 +49001,91 @@ } /** - * ReadChangeStreamResponse dataChange. - * @member {google.bigtable.v2.ReadChangeStreamResponse.IDataChange|null|undefined} dataChange - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * RateLimitInfo period. + * @member {google.protobuf.IDuration|null|undefined} period + * @memberof google.bigtable.v2.RateLimitInfo * @instance */ - ReadChangeStreamResponse.prototype.dataChange = null; + RateLimitInfo.prototype.period = null; /** - * ReadChangeStreamResponse heartbeat. - * @member {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat|null|undefined} heartbeat - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * RateLimitInfo factor. + * @member {number} factor + * @memberof google.bigtable.v2.RateLimitInfo * @instance */ - ReadChangeStreamResponse.prototype.heartbeat = null; + RateLimitInfo.prototype.factor = 0; /** - * ReadChangeStreamResponse closeStream. - * @member {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream|null|undefined} closeStream - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @instance + * Creates a new RateLimitInfo instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.RateLimitInfo + * @static + * @param {google.bigtable.v2.IRateLimitInfo=} [properties] Properties to set + * @returns {google.bigtable.v2.RateLimitInfo} RateLimitInfo instance */ - ReadChangeStreamResponse.prototype.closeStream = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + RateLimitInfo.create = function create(properties) { + return new RateLimitInfo(properties); + }; /** - * ReadChangeStreamResponse streamRecord. - * @member {"dataChange"|"heartbeat"|"closeStream"|undefined} streamRecord - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @instance - */ - Object.defineProperty(ReadChangeStreamResponse.prototype, "streamRecord", { - get: $util.oneOfGetter($oneOfFields = ["dataChange", "heartbeat", "closeStream"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ReadChangeStreamResponse instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @static - * @param {google.bigtable.v2.IReadChangeStreamResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadChangeStreamResponse} ReadChangeStreamResponse instance - */ - ReadChangeStreamResponse.create = function create(properties) { - return new ReadChangeStreamResponse(properties); - }; - - /** - * Encodes the specified ReadChangeStreamResponse message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.verify|verify} messages. + * Encodes the specified RateLimitInfo message. Does not implicitly {@link google.bigtable.v2.RateLimitInfo.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @static - * @param {google.bigtable.v2.IReadChangeStreamResponse} message ReadChangeStreamResponse message or plain object to encode + * @param {google.bigtable.v2.IRateLimitInfo} message RateLimitInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadChangeStreamResponse.encode = function encode(message, writer) { + RateLimitInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataChange != null && Object.hasOwnProperty.call(message, "dataChange")) - $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.encode(message.dataChange, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.heartbeat != null && Object.hasOwnProperty.call(message, "heartbeat")) - $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.encode(message.heartbeat, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.closeStream != null && Object.hasOwnProperty.call(message, "closeStream")) - $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.encode(message.closeStream, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.period != null && Object.hasOwnProperty.call(message, "period")) + $root.google.protobuf.Duration.encode(message.period, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.factor != null && Object.hasOwnProperty.call(message, "factor")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.factor); return writer; }; /** - * Encodes the specified ReadChangeStreamResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.verify|verify} messages. + * Encodes the specified RateLimitInfo message, length delimited. Does not implicitly {@link google.bigtable.v2.RateLimitInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @static - * @param {google.bigtable.v2.IReadChangeStreamResponse} message ReadChangeStreamResponse message or plain object to encode + * @param {google.bigtable.v2.IRateLimitInfo} message RateLimitInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadChangeStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { + RateLimitInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadChangeStreamResponse message from the specified reader or buffer. + * Decodes a RateLimitInfo message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadChangeStreamResponse} ReadChangeStreamResponse + * @returns {google.bigtable.v2.RateLimitInfo} RateLimitInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadChangeStreamResponse.decode = function decode(reader, length, error) { + RateLimitInfo.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RateLimitInfo(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.dataChange = $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.decode(reader, reader.uint32()); + message.period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } case 2: { - message.heartbeat = $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.decode(reader, reader.uint32()); - break; - } - case 3: { - message.closeStream = $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.decode(reader, reader.uint32()); + message.factor = reader.double(); break; } default: @@ -48446,1687 +49097,1478 @@ }; /** - * Decodes a ReadChangeStreamResponse message from the specified reader or buffer, length delimited. + * Decodes a RateLimitInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadChangeStreamResponse} ReadChangeStreamResponse + * @returns {google.bigtable.v2.RateLimitInfo} RateLimitInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadChangeStreamResponse.decodeDelimited = function decodeDelimited(reader) { + RateLimitInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadChangeStreamResponse message. + * Verifies a RateLimitInfo message. * @function verify - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadChangeStreamResponse.verify = function verify(message) { + RateLimitInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dataChange != null && message.hasOwnProperty("dataChange")) { - properties.streamRecord = 1; - { - var error = $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify(message.dataChange); - if (error) - return "dataChange." + error; - } - } - if (message.heartbeat != null && message.hasOwnProperty("heartbeat")) { - if (properties.streamRecord === 1) - return "streamRecord: multiple values"; - properties.streamRecord = 1; - { - var error = $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify(message.heartbeat); - if (error) - return "heartbeat." + error; - } - } - if (message.closeStream != null && message.hasOwnProperty("closeStream")) { - if (properties.streamRecord === 1) - return "streamRecord: multiple values"; - properties.streamRecord = 1; - { - var error = $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify(message.closeStream); - if (error) - return "closeStream." + error; - } + if (message.period != null && message.hasOwnProperty("period")) { + var error = $root.google.protobuf.Duration.verify(message.period); + if (error) + return "period." + error; } + if (message.factor != null && message.hasOwnProperty("factor")) + if (typeof message.factor !== "number") + return "factor: number expected"; return null; }; /** - * Creates a ReadChangeStreamResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RateLimitInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadChangeStreamResponse} ReadChangeStreamResponse + * @returns {google.bigtable.v2.RateLimitInfo} RateLimitInfo */ - ReadChangeStreamResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse) + RateLimitInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.RateLimitInfo) return object; - var message = new $root.google.bigtable.v2.ReadChangeStreamResponse(); - if (object.dataChange != null) { - if (typeof object.dataChange !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.dataChange: object expected"); - message.dataChange = $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.fromObject(object.dataChange); - } - if (object.heartbeat != null) { - if (typeof object.heartbeat !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.heartbeat: object expected"); - message.heartbeat = $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.fromObject(object.heartbeat); - } - if (object.closeStream != null) { - if (typeof object.closeStream !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.closeStream: object expected"); - message.closeStream = $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.fromObject(object.closeStream); + var message = new $root.google.bigtable.v2.RateLimitInfo(); + if (object.period != null) { + if (typeof object.period !== "object") + throw TypeError(".google.bigtable.v2.RateLimitInfo.period: object expected"); + message.period = $root.google.protobuf.Duration.fromObject(object.period); } + if (object.factor != null) + message.factor = Number(object.factor); return message; }; /** - * Creates a plain object from a ReadChangeStreamResponse message. Also converts values to other types if specified. + * Creates a plain object from a RateLimitInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse} message ReadChangeStreamResponse + * @param {google.bigtable.v2.RateLimitInfo} message RateLimitInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadChangeStreamResponse.toObject = function toObject(message, options) { + RateLimitInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.dataChange != null && message.hasOwnProperty("dataChange")) { - object.dataChange = $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.toObject(message.dataChange, options); - if (options.oneofs) - object.streamRecord = "dataChange"; - } - if (message.heartbeat != null && message.hasOwnProperty("heartbeat")) { - object.heartbeat = $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.toObject(message.heartbeat, options); - if (options.oneofs) - object.streamRecord = "heartbeat"; - } - if (message.closeStream != null && message.hasOwnProperty("closeStream")) { - object.closeStream = $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.toObject(message.closeStream, options); - if (options.oneofs) - object.streamRecord = "closeStream"; + if (options.defaults) { + object.period = null; + object.factor = 0; } + if (message.period != null && message.hasOwnProperty("period")) + object.period = $root.google.protobuf.Duration.toObject(message.period, options); + if (message.factor != null && message.hasOwnProperty("factor")) + object.factor = options.json && !isFinite(message.factor) ? String(message.factor) : message.factor; return object; }; /** - * Converts this ReadChangeStreamResponse to JSON. + * Converts this RateLimitInfo to JSON. * @function toJSON - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @instance * @returns {Object.} JSON object */ - ReadChangeStreamResponse.prototype.toJSON = function toJSON() { + RateLimitInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadChangeStreamResponse + * Gets the default type url for RateLimitInfo * @function getTypeUrl - * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @memberof google.bigtable.v2.RateLimitInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadChangeStreamResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RateLimitInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse"; + return typeUrlPrefix + "/google.bigtable.v2.RateLimitInfo"; }; - ReadChangeStreamResponse.MutationChunk = (function() { + return RateLimitInfo; + })(); - /** - * Properties of a MutationChunk. - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @interface IMutationChunk - * @property {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo|null} [chunkInfo] MutationChunk chunkInfo - * @property {google.bigtable.v2.IMutation|null} [mutation] MutationChunk mutation - */ + v2.CheckAndMutateRowRequest = (function() { - /** - * Constructs a new MutationChunk. - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @classdesc Represents a MutationChunk. - * @implements IMutationChunk - * @constructor - * @param {google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk=} [properties] Properties to set - */ - function MutationChunk(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a CheckAndMutateRowRequest. + * @memberof google.bigtable.v2 + * @interface ICheckAndMutateRowRequest + * @property {string|null} [tableName] CheckAndMutateRowRequest tableName + * @property {string|null} [authorizedViewName] CheckAndMutateRowRequest authorizedViewName + * @property {string|null} [appProfileId] CheckAndMutateRowRequest appProfileId + * @property {Uint8Array|null} [rowKey] CheckAndMutateRowRequest rowKey + * @property {google.bigtable.v2.IRowFilter|null} [predicateFilter] CheckAndMutateRowRequest predicateFilter + * @property {Array.|null} [trueMutations] CheckAndMutateRowRequest trueMutations + * @property {Array.|null} [falseMutations] CheckAndMutateRowRequest falseMutations + */ - /** - * MutationChunk chunkInfo. - * @member {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo|null|undefined} chunkInfo - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @instance - */ - MutationChunk.prototype.chunkInfo = null; + /** + * Constructs a new CheckAndMutateRowRequest. + * @memberof google.bigtable.v2 + * @classdesc Represents a CheckAndMutateRowRequest. + * @implements ICheckAndMutateRowRequest + * @constructor + * @param {google.bigtable.v2.ICheckAndMutateRowRequest=} [properties] Properties to set + */ + function CheckAndMutateRowRequest(properties) { + this.trueMutations = []; + this.falseMutations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MutationChunk mutation. - * @member {google.bigtable.v2.IMutation|null|undefined} mutation - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @instance - */ - MutationChunk.prototype.mutation = null; + /** + * CheckAndMutateRowRequest tableName. + * @member {string} tableName + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @instance + */ + CheckAndMutateRowRequest.prototype.tableName = ""; - /** - * Creates a new MutationChunk instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} MutationChunk instance - */ - MutationChunk.create = function create(properties) { - return new MutationChunk(properties); - }; + /** + * CheckAndMutateRowRequest authorizedViewName. + * @member {string} authorizedViewName + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @instance + */ + CheckAndMutateRowRequest.prototype.authorizedViewName = ""; - /** - * Encodes the specified MutationChunk message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk} message MutationChunk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutationChunk.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.chunkInfo != null && Object.hasOwnProperty.call(message, "chunkInfo")) - $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.encode(message.chunkInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.mutation != null && Object.hasOwnProperty.call(message, "mutation")) - $root.google.bigtable.v2.Mutation.encode(message.mutation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * CheckAndMutateRowRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @instance + */ + CheckAndMutateRowRequest.prototype.appProfileId = ""; - /** - * Encodes the specified MutationChunk message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk} message MutationChunk message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutationChunk.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CheckAndMutateRowRequest rowKey. + * @member {Uint8Array} rowKey + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @instance + */ + CheckAndMutateRowRequest.prototype.rowKey = $util.newBuffer([]); - /** - * Decodes a MutationChunk message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} MutationChunk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutationChunk.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.chunkInfo = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.decode(reader, reader.uint32()); - break; - } - case 2: { - message.mutation = $root.google.bigtable.v2.Mutation.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * CheckAndMutateRowRequest predicateFilter. + * @member {google.bigtable.v2.IRowFilter|null|undefined} predicateFilter + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @instance + */ + CheckAndMutateRowRequest.prototype.predicateFilter = null; - /** - * Decodes a MutationChunk message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} MutationChunk - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutationChunk.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * CheckAndMutateRowRequest trueMutations. + * @member {Array.} trueMutations + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @instance + */ + CheckAndMutateRowRequest.prototype.trueMutations = $util.emptyArray; - /** - * Verifies a MutationChunk message. - * @function verify - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MutationChunk.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.chunkInfo != null && message.hasOwnProperty("chunkInfo")) { - var error = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify(message.chunkInfo); - if (error) - return "chunkInfo." + error; - } - if (message.mutation != null && message.hasOwnProperty("mutation")) { - var error = $root.google.bigtable.v2.Mutation.verify(message.mutation); - if (error) - return "mutation." + error; - } - return null; - }; + /** + * CheckAndMutateRowRequest falseMutations. + * @member {Array.} falseMutations + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @instance + */ + CheckAndMutateRowRequest.prototype.falseMutations = $util.emptyArray; - /** - * Creates a MutationChunk message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} MutationChunk - */ - MutationChunk.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk) - return object; - var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk(); - if (object.chunkInfo != null) { - if (typeof object.chunkInfo !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.chunkInfo: object expected"); - message.chunkInfo = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.fromObject(object.chunkInfo); - } - if (object.mutation != null) { - if (typeof object.mutation !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.mutation: object expected"); - message.mutation = $root.google.bigtable.v2.Mutation.fromObject(object.mutation); - } - return message; - }; + /** + * Creates a new CheckAndMutateRowRequest instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {google.bigtable.v2.ICheckAndMutateRowRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.CheckAndMutateRowRequest} CheckAndMutateRowRequest instance + */ + CheckAndMutateRowRequest.create = function create(properties) { + return new CheckAndMutateRowRequest(properties); + }; - /** - * Creates a plain object from a MutationChunk message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} message MutationChunk - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MutationChunk.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.chunkInfo = null; - object.mutation = null; - } - if (message.chunkInfo != null && message.hasOwnProperty("chunkInfo")) - object.chunkInfo = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.toObject(message.chunkInfo, options); - if (message.mutation != null && message.hasOwnProperty("mutation")) - object.mutation = $root.google.bigtable.v2.Mutation.toObject(message.mutation, options); - return object; - }; + /** + * Encodes the specified CheckAndMutateRowRequest message. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowRequest.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {google.bigtable.v2.ICheckAndMutateRowRequest} message CheckAndMutateRowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckAndMutateRowRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); + if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rowKey); + if (message.trueMutations != null && message.trueMutations.length) + for (var i = 0; i < message.trueMutations.length; ++i) + $root.google.bigtable.v2.Mutation.encode(message.trueMutations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.falseMutations != null && message.falseMutations.length) + for (var i = 0; i < message.falseMutations.length; ++i) + $root.google.bigtable.v2.Mutation.encode(message.falseMutations[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.predicateFilter != null && Object.hasOwnProperty.call(message, "predicateFilter")) + $root.google.bigtable.v2.RowFilter.encode(message.predicateFilter, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.appProfileId); + if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.authorizedViewName); + return writer; + }; - /** - * Converts this MutationChunk to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @instance - * @returns {Object.} JSON object - */ - MutationChunk.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified CheckAndMutateRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {google.bigtable.v2.ICheckAndMutateRowRequest} message CheckAndMutateRowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckAndMutateRowRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for MutationChunk - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MutationChunk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Decodes a CheckAndMutateRowRequest message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.CheckAndMutateRowRequest} CheckAndMutateRowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckAndMutateRowRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.CheckAndMutateRowRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.tableName = reader.string(); + break; + } + case 9: { + message.authorizedViewName = reader.string(); + break; + } + case 7: { + message.appProfileId = reader.string(); + break; + } + case 2: { + message.rowKey = reader.bytes(); + break; + } + case 6: { + message.predicateFilter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.trueMutations && message.trueMutations.length)) + message.trueMutations = []; + message.trueMutations.push($root.google.bigtable.v2.Mutation.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.falseMutations && message.falseMutations.length)) + message.falseMutations = []; + message.falseMutations.push($root.google.bigtable.v2.Mutation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.MutationChunk"; - }; - - MutationChunk.ChunkInfo = (function() { + } + return message; + }; - /** - * Properties of a ChunkInfo. - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @interface IChunkInfo - * @property {number|null} [chunkedValueSize] ChunkInfo chunkedValueSize - * @property {number|null} [chunkedValueOffset] ChunkInfo chunkedValueOffset - * @property {boolean|null} [lastChunk] ChunkInfo lastChunk - */ + /** + * Decodes a CheckAndMutateRowRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.CheckAndMutateRowRequest} CheckAndMutateRowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckAndMutateRowRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new ChunkInfo. - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - * @classdesc Represents a ChunkInfo. - * @implements IChunkInfo - * @constructor - * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo=} [properties] Properties to set - */ - function ChunkInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Verifies a CheckAndMutateRowRequest message. + * @function verify + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CheckAndMutateRowRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tableName != null && message.hasOwnProperty("tableName")) + if (!$util.isString(message.tableName)) + return "tableName: string expected"; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + if (!$util.isString(message.authorizedViewName)) + return "authorizedViewName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) + return "rowKey: buffer expected"; + if (message.predicateFilter != null && message.hasOwnProperty("predicateFilter")) { + var error = $root.google.bigtable.v2.RowFilter.verify(message.predicateFilter); + if (error) + return "predicateFilter." + error; + } + if (message.trueMutations != null && message.hasOwnProperty("trueMutations")) { + if (!Array.isArray(message.trueMutations)) + return "trueMutations: array expected"; + for (var i = 0; i < message.trueMutations.length; ++i) { + var error = $root.google.bigtable.v2.Mutation.verify(message.trueMutations[i]); + if (error) + return "trueMutations." + error; + } + } + if (message.falseMutations != null && message.hasOwnProperty("falseMutations")) { + if (!Array.isArray(message.falseMutations)) + return "falseMutations: array expected"; + for (var i = 0; i < message.falseMutations.length; ++i) { + var error = $root.google.bigtable.v2.Mutation.verify(message.falseMutations[i]); + if (error) + return "falseMutations." + error; } + } + return null; + }; - /** - * ChunkInfo chunkedValueSize. - * @member {number} chunkedValueSize - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @instance - */ - ChunkInfo.prototype.chunkedValueSize = 0; + /** + * Creates a CheckAndMutateRowRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.CheckAndMutateRowRequest} CheckAndMutateRowRequest + */ + CheckAndMutateRowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.CheckAndMutateRowRequest) + return object; + var message = new $root.google.bigtable.v2.CheckAndMutateRowRequest(); + if (object.tableName != null) + message.tableName = String(object.tableName); + if (object.authorizedViewName != null) + message.authorizedViewName = String(object.authorizedViewName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + if (object.rowKey != null) + if (typeof object.rowKey === "string") + $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); + else if (object.rowKey.length >= 0) + message.rowKey = object.rowKey; + if (object.predicateFilter != null) { + if (typeof object.predicateFilter !== "object") + throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.predicateFilter: object expected"); + message.predicateFilter = $root.google.bigtable.v2.RowFilter.fromObject(object.predicateFilter); + } + if (object.trueMutations) { + if (!Array.isArray(object.trueMutations)) + throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.trueMutations: array expected"); + message.trueMutations = []; + for (var i = 0; i < object.trueMutations.length; ++i) { + if (typeof object.trueMutations[i] !== "object") + throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.trueMutations: object expected"); + message.trueMutations[i] = $root.google.bigtable.v2.Mutation.fromObject(object.trueMutations[i]); + } + } + if (object.falseMutations) { + if (!Array.isArray(object.falseMutations)) + throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.falseMutations: array expected"); + message.falseMutations = []; + for (var i = 0; i < object.falseMutations.length; ++i) { + if (typeof object.falseMutations[i] !== "object") + throw TypeError(".google.bigtable.v2.CheckAndMutateRowRequest.falseMutations: object expected"); + message.falseMutations[i] = $root.google.bigtable.v2.Mutation.fromObject(object.falseMutations[i]); + } + } + return message; + }; - /** - * ChunkInfo chunkedValueOffset. - * @member {number} chunkedValueOffset - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @instance - */ - ChunkInfo.prototype.chunkedValueOffset = 0; + /** + * Creates a plain object from a CheckAndMutateRowRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {google.bigtable.v2.CheckAndMutateRowRequest} message CheckAndMutateRowRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CheckAndMutateRowRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.trueMutations = []; + object.falseMutations = []; + } + if (options.defaults) { + object.tableName = ""; + if (options.bytes === String) + object.rowKey = ""; + else { + object.rowKey = []; + if (options.bytes !== Array) + object.rowKey = $util.newBuffer(object.rowKey); + } + object.predicateFilter = null; + object.appProfileId = ""; + object.authorizedViewName = ""; + } + if (message.tableName != null && message.hasOwnProperty("tableName")) + object.tableName = message.tableName; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; + if (message.trueMutations && message.trueMutations.length) { + object.trueMutations = []; + for (var j = 0; j < message.trueMutations.length; ++j) + object.trueMutations[j] = $root.google.bigtable.v2.Mutation.toObject(message.trueMutations[j], options); + } + if (message.falseMutations && message.falseMutations.length) { + object.falseMutations = []; + for (var j = 0; j < message.falseMutations.length; ++j) + object.falseMutations[j] = $root.google.bigtable.v2.Mutation.toObject(message.falseMutations[j], options); + } + if (message.predicateFilter != null && message.hasOwnProperty("predicateFilter")) + object.predicateFilter = $root.google.bigtable.v2.RowFilter.toObject(message.predicateFilter, options); + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + object.authorizedViewName = message.authorizedViewName; + return object; + }; - /** - * ChunkInfo lastChunk. - * @member {boolean} lastChunk - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @instance - */ - ChunkInfo.prototype.lastChunk = false; + /** + * Converts this CheckAndMutateRowRequest to JSON. + * @function toJSON + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @instance + * @returns {Object.} JSON object + */ + CheckAndMutateRowRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new ChunkInfo instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} ChunkInfo instance - */ - ChunkInfo.create = function create(properties) { - return new ChunkInfo(properties); - }; + /** + * Gets the default type url for CheckAndMutateRowRequest + * @function getTypeUrl + * @memberof google.bigtable.v2.CheckAndMutateRowRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CheckAndMutateRowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.CheckAndMutateRowRequest"; + }; - /** - * Encodes the specified ChunkInfo message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo} message ChunkInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChunkInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.chunkedValueSize != null && Object.hasOwnProperty.call(message, "chunkedValueSize")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.chunkedValueSize); - if (message.chunkedValueOffset != null && Object.hasOwnProperty.call(message, "chunkedValueOffset")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.chunkedValueOffset); - if (message.lastChunk != null && Object.hasOwnProperty.call(message, "lastChunk")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.lastChunk); - return writer; - }; + return CheckAndMutateRowRequest; + })(); - /** - * Encodes the specified ChunkInfo message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo} message ChunkInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ChunkInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v2.CheckAndMutateRowResponse = (function() { - /** - * Decodes a ChunkInfo message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} ChunkInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChunkInfo.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.chunkedValueSize = reader.int32(); - break; - } - case 2: { - message.chunkedValueOffset = reader.int32(); - break; - } - case 3: { - message.lastChunk = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a CheckAndMutateRowResponse. + * @memberof google.bigtable.v2 + * @interface ICheckAndMutateRowResponse + * @property {boolean|null} [predicateMatched] CheckAndMutateRowResponse predicateMatched + */ - /** - * Decodes a ChunkInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} ChunkInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ChunkInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new CheckAndMutateRowResponse. + * @memberof google.bigtable.v2 + * @classdesc Represents a CheckAndMutateRowResponse. + * @implements ICheckAndMutateRowResponse + * @constructor + * @param {google.bigtable.v2.ICheckAndMutateRowResponse=} [properties] Properties to set + */ + function CheckAndMutateRowResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a ChunkInfo message. - * @function verify - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ChunkInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.chunkedValueSize != null && message.hasOwnProperty("chunkedValueSize")) - if (!$util.isInteger(message.chunkedValueSize)) - return "chunkedValueSize: integer expected"; - if (message.chunkedValueOffset != null && message.hasOwnProperty("chunkedValueOffset")) - if (!$util.isInteger(message.chunkedValueOffset)) - return "chunkedValueOffset: integer expected"; - if (message.lastChunk != null && message.hasOwnProperty("lastChunk")) - if (typeof message.lastChunk !== "boolean") - return "lastChunk: boolean expected"; - return null; - }; + /** + * CheckAndMutateRowResponse predicateMatched. + * @member {boolean} predicateMatched + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @instance + */ + CheckAndMutateRowResponse.prototype.predicateMatched = false; - /** - * Creates a ChunkInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} ChunkInfo - */ - ChunkInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo) - return object; - var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo(); - if (object.chunkedValueSize != null) - message.chunkedValueSize = object.chunkedValueSize | 0; - if (object.chunkedValueOffset != null) - message.chunkedValueOffset = object.chunkedValueOffset | 0; - if (object.lastChunk != null) - message.lastChunk = Boolean(object.lastChunk); - return message; - }; + /** + * Creates a new CheckAndMutateRowResponse instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {google.bigtable.v2.ICheckAndMutateRowResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.CheckAndMutateRowResponse} CheckAndMutateRowResponse instance + */ + CheckAndMutateRowResponse.create = function create(properties) { + return new CheckAndMutateRowResponse(properties); + }; - /** - * Creates a plain object from a ChunkInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} message ChunkInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ChunkInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.chunkedValueSize = 0; - object.chunkedValueOffset = 0; - object.lastChunk = false; - } - if (message.chunkedValueSize != null && message.hasOwnProperty("chunkedValueSize")) - object.chunkedValueSize = message.chunkedValueSize; - if (message.chunkedValueOffset != null && message.hasOwnProperty("chunkedValueOffset")) - object.chunkedValueOffset = message.chunkedValueOffset; - if (message.lastChunk != null && message.hasOwnProperty("lastChunk")) - object.lastChunk = message.lastChunk; - return object; - }; + /** + * Encodes the specified CheckAndMutateRowResponse message. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowResponse.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {google.bigtable.v2.ICheckAndMutateRowResponse} message CheckAndMutateRowResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckAndMutateRowResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.predicateMatched != null && Object.hasOwnProperty.call(message, "predicateMatched")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.predicateMatched); + return writer; + }; - /** - * Converts this ChunkInfo to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @instance - * @returns {Object.} JSON object - */ - ChunkInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified CheckAndMutateRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.CheckAndMutateRowResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {google.bigtable.v2.ICheckAndMutateRowResponse} message CheckAndMutateRowResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckAndMutateRowResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for ChunkInfo - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChunkInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Decodes a CheckAndMutateRowResponse message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.CheckAndMutateRowResponse} CheckAndMutateRowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckAndMutateRowResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.CheckAndMutateRowResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.predicateMatched = reader.bool(); + break; } - return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo"; - }; - - return ChunkInfo; - })(); - - return MutationChunk; - })(); + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - ReadChangeStreamResponse.DataChange = (function() { + /** + * Decodes a CheckAndMutateRowResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.CheckAndMutateRowResponse} CheckAndMutateRowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckAndMutateRowResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a DataChange. - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @interface IDataChange - * @property {google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type|null} [type] DataChange type - * @property {string|null} [sourceClusterId] DataChange sourceClusterId - * @property {Uint8Array|null} [rowKey] DataChange rowKey - * @property {google.protobuf.ITimestamp|null} [commitTimestamp] DataChange commitTimestamp - * @property {number|null} [tiebreaker] DataChange tiebreaker - * @property {Array.|null} [chunks] DataChange chunks - * @property {boolean|null} [done] DataChange done - * @property {string|null} [token] DataChange token - * @property {google.protobuf.ITimestamp|null} [estimatedLowWatermark] DataChange estimatedLowWatermark - */ + /** + * Verifies a CheckAndMutateRowResponse message. + * @function verify + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CheckAndMutateRowResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.predicateMatched != null && message.hasOwnProperty("predicateMatched")) + if (typeof message.predicateMatched !== "boolean") + return "predicateMatched: boolean expected"; + return null; + }; - /** - * Constructs a new DataChange. - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @classdesc Represents a DataChange. - * @implements IDataChange - * @constructor - * @param {google.bigtable.v2.ReadChangeStreamResponse.IDataChange=} [properties] Properties to set - */ - function DataChange(properties) { - this.chunks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a CheckAndMutateRowResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.CheckAndMutateRowResponse} CheckAndMutateRowResponse + */ + CheckAndMutateRowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.CheckAndMutateRowResponse) + return object; + var message = new $root.google.bigtable.v2.CheckAndMutateRowResponse(); + if (object.predicateMatched != null) + message.predicateMatched = Boolean(object.predicateMatched); + return message; + }; - /** - * DataChange type. - * @member {google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type} type - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.type = 0; + /** + * Creates a plain object from a CheckAndMutateRowResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {google.bigtable.v2.CheckAndMutateRowResponse} message CheckAndMutateRowResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CheckAndMutateRowResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.predicateMatched = false; + if (message.predicateMatched != null && message.hasOwnProperty("predicateMatched")) + object.predicateMatched = message.predicateMatched; + return object; + }; - /** - * DataChange sourceClusterId. - * @member {string} sourceClusterId - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.sourceClusterId = ""; + /** + * Converts this CheckAndMutateRowResponse to JSON. + * @function toJSON + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @instance + * @returns {Object.} JSON object + */ + CheckAndMutateRowResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * DataChange rowKey. - * @member {Uint8Array} rowKey - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.rowKey = $util.newBuffer([]); + /** + * Gets the default type url for CheckAndMutateRowResponse + * @function getTypeUrl + * @memberof google.bigtable.v2.CheckAndMutateRowResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CheckAndMutateRowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.CheckAndMutateRowResponse"; + }; - /** - * DataChange commitTimestamp. - * @member {google.protobuf.ITimestamp|null|undefined} commitTimestamp - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.commitTimestamp = null; + return CheckAndMutateRowResponse; + })(); - /** - * DataChange tiebreaker. - * @member {number} tiebreaker - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.tiebreaker = 0; + v2.PingAndWarmRequest = (function() { - /** - * DataChange chunks. - * @member {Array.} chunks - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.chunks = $util.emptyArray; + /** + * Properties of a PingAndWarmRequest. + * @memberof google.bigtable.v2 + * @interface IPingAndWarmRequest + * @property {string|null} [name] PingAndWarmRequest name + * @property {string|null} [appProfileId] PingAndWarmRequest appProfileId + */ - /** - * DataChange done. - * @member {boolean} done - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.done = false; + /** + * Constructs a new PingAndWarmRequest. + * @memberof google.bigtable.v2 + * @classdesc Represents a PingAndWarmRequest. + * @implements IPingAndWarmRequest + * @constructor + * @param {google.bigtable.v2.IPingAndWarmRequest=} [properties] Properties to set + */ + function PingAndWarmRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * DataChange token. - * @member {string} token - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.token = ""; + /** + * PingAndWarmRequest name. + * @member {string} name + * @memberof google.bigtable.v2.PingAndWarmRequest + * @instance + */ + PingAndWarmRequest.prototype.name = ""; - /** - * DataChange estimatedLowWatermark. - * @member {google.protobuf.ITimestamp|null|undefined} estimatedLowWatermark - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - */ - DataChange.prototype.estimatedLowWatermark = null; + /** + * PingAndWarmRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.PingAndWarmRequest + * @instance + */ + PingAndWarmRequest.prototype.appProfileId = ""; - /** - * Creates a new DataChange instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IDataChange=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadChangeStreamResponse.DataChange} DataChange instance - */ - DataChange.create = function create(properties) { - return new DataChange(properties); - }; + /** + * Creates a new PingAndWarmRequest instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {google.bigtable.v2.IPingAndWarmRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.PingAndWarmRequest} PingAndWarmRequest instance + */ + PingAndWarmRequest.create = function create(properties) { + return new PingAndWarmRequest(properties); + }; - /** - * Encodes the specified DataChange message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IDataChange} message DataChange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataChange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.sourceClusterId != null && Object.hasOwnProperty.call(message, "sourceClusterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceClusterId); - if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.rowKey); - if (message.commitTimestamp != null && Object.hasOwnProperty.call(message, "commitTimestamp")) - $root.google.protobuf.Timestamp.encode(message.commitTimestamp, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tiebreaker != null && Object.hasOwnProperty.call(message, "tiebreaker")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.tiebreaker); - if (message.chunks != null && message.chunks.length) - for (var i = 0; i < message.chunks.length; ++i) - $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.encode(message.chunks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.done != null && Object.hasOwnProperty.call(message, "done")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.done); - if (message.token != null && Object.hasOwnProperty.call(message, "token")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.token); - if (message.estimatedLowWatermark != null && Object.hasOwnProperty.call(message, "estimatedLowWatermark")) - $root.google.protobuf.Timestamp.encode(message.estimatedLowWatermark, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified PingAndWarmRequest message. Does not implicitly {@link google.bigtable.v2.PingAndWarmRequest.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {google.bigtable.v2.IPingAndWarmRequest} message PingAndWarmRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PingAndWarmRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); + return writer; + }; - /** - * Encodes the specified DataChange message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IDataChange} message DataChange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataChange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified PingAndWarmRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.PingAndWarmRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {google.bigtable.v2.IPingAndWarmRequest} message PingAndWarmRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PingAndWarmRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DataChange message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadChangeStreamResponse.DataChange} DataChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataChange.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) + /** + * Decodes a PingAndWarmRequest message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.PingAndWarmRequest} PingAndWarmRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PingAndWarmRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PingAndWarmRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 2: { - message.sourceClusterId = reader.string(); - break; - } - case 3: { - message.rowKey = reader.bytes(); - break; - } - case 4: { - message.commitTimestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.tiebreaker = reader.int32(); - break; - } - case 6: { - if (!(message.chunks && message.chunks.length)) - message.chunks = []; - message.chunks.push($root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.decode(reader, reader.uint32())); - break; - } - case 8: { - message.done = reader.bool(); - break; - } - case 9: { - message.token = reader.string(); - break; - } - case 10: { - message.estimatedLowWatermark = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + } + case 2: { + message.appProfileId = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a DataChange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadChangeStreamResponse.DataChange} DataChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataChange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataChange message. - * @function verify - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataChange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.sourceClusterId != null && message.hasOwnProperty("sourceClusterId")) - if (!$util.isString(message.sourceClusterId)) - return "sourceClusterId: string expected"; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) - return "rowKey: buffer expected"; - if (message.commitTimestamp != null && message.hasOwnProperty("commitTimestamp")) { - var error = $root.google.protobuf.Timestamp.verify(message.commitTimestamp); - if (error) - return "commitTimestamp." + error; - } - if (message.tiebreaker != null && message.hasOwnProperty("tiebreaker")) - if (!$util.isInteger(message.tiebreaker)) - return "tiebreaker: integer expected"; - if (message.chunks != null && message.hasOwnProperty("chunks")) { - if (!Array.isArray(message.chunks)) - return "chunks: array expected"; - for (var i = 0; i < message.chunks.length; ++i) { - var error = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify(message.chunks[i]); - if (error) - return "chunks." + error; - } - } - if (message.done != null && message.hasOwnProperty("done")) - if (typeof message.done !== "boolean") - return "done: boolean expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.estimatedLowWatermark != null && message.hasOwnProperty("estimatedLowWatermark")) { - var error = $root.google.protobuf.Timestamp.verify(message.estimatedLowWatermark); - if (error) - return "estimatedLowWatermark." + error; - } - return null; - }; + /** + * Decodes a PingAndWarmRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.PingAndWarmRequest} PingAndWarmRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PingAndWarmRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a DataChange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadChangeStreamResponse.DataChange} DataChange - */ - DataChange.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange) - return object; - var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "USER": - case 1: - message.type = 1; - break; - case "GARBAGE_COLLECTION": - case 2: - message.type = 2; - break; - case "CONTINUATION": - case 3: - message.type = 3; - break; - } - if (object.sourceClusterId != null) - message.sourceClusterId = String(object.sourceClusterId); - if (object.rowKey != null) - if (typeof object.rowKey === "string") - $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); - else if (object.rowKey.length >= 0) - message.rowKey = object.rowKey; - if (object.commitTimestamp != null) { - if (typeof object.commitTimestamp !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.DataChange.commitTimestamp: object expected"); - message.commitTimestamp = $root.google.protobuf.Timestamp.fromObject(object.commitTimestamp); - } - if (object.tiebreaker != null) - message.tiebreaker = object.tiebreaker | 0; - if (object.chunks) { - if (!Array.isArray(object.chunks)) - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.DataChange.chunks: array expected"); - message.chunks = []; - for (var i = 0; i < object.chunks.length; ++i) { - if (typeof object.chunks[i] !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.DataChange.chunks: object expected"); - message.chunks[i] = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.fromObject(object.chunks[i]); - } - } - if (object.done != null) - message.done = Boolean(object.done); - if (object.token != null) - message.token = String(object.token); - if (object.estimatedLowWatermark != null) { - if (typeof object.estimatedLowWatermark !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.DataChange.estimatedLowWatermark: object expected"); - message.estimatedLowWatermark = $root.google.protobuf.Timestamp.fromObject(object.estimatedLowWatermark); - } - return message; - }; + /** + * Verifies a PingAndWarmRequest message. + * @function verify + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PingAndWarmRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; + return null; + }; - /** - * Creates a plain object from a DataChange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.DataChange} message DataChange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataChange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.chunks = []; - if (options.defaults) { - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.sourceClusterId = ""; - if (options.bytes === String) - object.rowKey = ""; - else { - object.rowKey = []; - if (options.bytes !== Array) - object.rowKey = $util.newBuffer(object.rowKey); - } - object.commitTimestamp = null; - object.tiebreaker = 0; - object.done = false; - object.token = ""; - object.estimatedLowWatermark = null; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type[message.type] === undefined ? message.type : $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type[message.type] : message.type; - if (message.sourceClusterId != null && message.hasOwnProperty("sourceClusterId")) - object.sourceClusterId = message.sourceClusterId; - if (message.rowKey != null && message.hasOwnProperty("rowKey")) - object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; - if (message.commitTimestamp != null && message.hasOwnProperty("commitTimestamp")) - object.commitTimestamp = $root.google.protobuf.Timestamp.toObject(message.commitTimestamp, options); - if (message.tiebreaker != null && message.hasOwnProperty("tiebreaker")) - object.tiebreaker = message.tiebreaker; - if (message.chunks && message.chunks.length) { - object.chunks = []; - for (var j = 0; j < message.chunks.length; ++j) - object.chunks[j] = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.toObject(message.chunks[j], options); - } - if (message.done != null && message.hasOwnProperty("done")) - object.done = message.done; - if (message.token != null && message.hasOwnProperty("token")) - object.token = message.token; - if (message.estimatedLowWatermark != null && message.hasOwnProperty("estimatedLowWatermark")) - object.estimatedLowWatermark = $root.google.protobuf.Timestamp.toObject(message.estimatedLowWatermark, options); + /** + * Creates a PingAndWarmRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.PingAndWarmRequest} PingAndWarmRequest + */ + PingAndWarmRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.PingAndWarmRequest) return object; - }; - - /** - * Converts this DataChange to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @instance - * @returns {Object.} JSON object - */ - DataChange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.google.bigtable.v2.PingAndWarmRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + return message; + }; - /** - * Gets the default type url for DataChange - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.DataChange"; - }; + /** + * Creates a plain object from a PingAndWarmRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {google.bigtable.v2.PingAndWarmRequest} message PingAndWarmRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PingAndWarmRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.appProfileId = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + return object; + }; - /** - * Type enum. - * @name google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} USER=1 USER value - * @property {number} GARBAGE_COLLECTION=2 GARBAGE_COLLECTION value - * @property {number} CONTINUATION=3 CONTINUATION value - */ - DataChange.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "GARBAGE_COLLECTION"] = 2; - values[valuesById[3] = "CONTINUATION"] = 3; - return values; - })(); + /** + * Converts this PingAndWarmRequest to JSON. + * @function toJSON + * @memberof google.bigtable.v2.PingAndWarmRequest + * @instance + * @returns {Object.} JSON object + */ + PingAndWarmRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return DataChange; - })(); + /** + * Gets the default type url for PingAndWarmRequest + * @function getTypeUrl + * @memberof google.bigtable.v2.PingAndWarmRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PingAndWarmRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.PingAndWarmRequest"; + }; - ReadChangeStreamResponse.Heartbeat = (function() { + return PingAndWarmRequest; + })(); - /** - * Properties of a Heartbeat. - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @interface IHeartbeat - * @property {google.bigtable.v2.IStreamContinuationToken|null} [continuationToken] Heartbeat continuationToken - * @property {google.protobuf.ITimestamp|null} [estimatedLowWatermark] Heartbeat estimatedLowWatermark - */ + v2.PingAndWarmResponse = (function() { - /** - * Constructs a new Heartbeat. - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @classdesc Represents a Heartbeat. - * @implements IHeartbeat - * @constructor - * @param {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat=} [properties] Properties to set - */ - function Heartbeat(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a PingAndWarmResponse. + * @memberof google.bigtable.v2 + * @interface IPingAndWarmResponse + */ - /** - * Heartbeat continuationToken. - * @member {google.bigtable.v2.IStreamContinuationToken|null|undefined} continuationToken - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @instance - */ - Heartbeat.prototype.continuationToken = null; + /** + * Constructs a new PingAndWarmResponse. + * @memberof google.bigtable.v2 + * @classdesc Represents a PingAndWarmResponse. + * @implements IPingAndWarmResponse + * @constructor + * @param {google.bigtable.v2.IPingAndWarmResponse=} [properties] Properties to set + */ + function PingAndWarmResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Heartbeat estimatedLowWatermark. - * @member {google.protobuf.ITimestamp|null|undefined} estimatedLowWatermark - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @instance - */ - Heartbeat.prototype.estimatedLowWatermark = null; + /** + * Creates a new PingAndWarmResponse instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {google.bigtable.v2.IPingAndWarmResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.PingAndWarmResponse} PingAndWarmResponse instance + */ + PingAndWarmResponse.create = function create(properties) { + return new PingAndWarmResponse(properties); + }; - /** - * Creates a new Heartbeat instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} Heartbeat instance - */ - Heartbeat.create = function create(properties) { - return new Heartbeat(properties); - }; + /** + * Encodes the specified PingAndWarmResponse message. Does not implicitly {@link google.bigtable.v2.PingAndWarmResponse.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {google.bigtable.v2.IPingAndWarmResponse} message PingAndWarmResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PingAndWarmResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Encodes the specified Heartbeat message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat} message Heartbeat message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Heartbeat.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - $root.google.bigtable.v2.StreamContinuationToken.encode(message.continuationToken, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.estimatedLowWatermark != null && Object.hasOwnProperty.call(message, "estimatedLowWatermark")) - $root.google.protobuf.Timestamp.encode(message.estimatedLowWatermark, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified PingAndWarmResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.PingAndWarmResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {google.bigtable.v2.IPingAndWarmResponse} message PingAndWarmResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PingAndWarmResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified Heartbeat message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat} message Heartbeat message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Heartbeat.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a PingAndWarmResponse message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.PingAndWarmResponse} PingAndWarmResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PingAndWarmResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PingAndWarmResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a Heartbeat message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} Heartbeat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Heartbeat.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.continuationToken = $root.google.bigtable.v2.StreamContinuationToken.decode(reader, reader.uint32()); - break; - } - case 2: { - message.estimatedLowWatermark = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a PingAndWarmResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.PingAndWarmResponse} PingAndWarmResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PingAndWarmResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a Heartbeat message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} Heartbeat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Heartbeat.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a PingAndWarmResponse message. + * @function verify + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PingAndWarmResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Verifies a Heartbeat message. - * @function verify - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Heartbeat.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) { - var error = $root.google.bigtable.v2.StreamContinuationToken.verify(message.continuationToken); - if (error) - return "continuationToken." + error; - } - if (message.estimatedLowWatermark != null && message.hasOwnProperty("estimatedLowWatermark")) { - var error = $root.google.protobuf.Timestamp.verify(message.estimatedLowWatermark); - if (error) - return "estimatedLowWatermark." + error; - } - return null; - }; + /** + * Creates a PingAndWarmResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.PingAndWarmResponse} PingAndWarmResponse + */ + PingAndWarmResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.PingAndWarmResponse) + return object; + return new $root.google.bigtable.v2.PingAndWarmResponse(); + }; - /** - * Creates a Heartbeat message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} Heartbeat - */ - Heartbeat.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat) - return object; - var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat(); - if (object.continuationToken != null) { - if (typeof object.continuationToken !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.continuationToken: object expected"); - message.continuationToken = $root.google.bigtable.v2.StreamContinuationToken.fromObject(object.continuationToken); - } - if (object.estimatedLowWatermark != null) { - if (typeof object.estimatedLowWatermark !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.estimatedLowWatermark: object expected"); - message.estimatedLowWatermark = $root.google.protobuf.Timestamp.fromObject(object.estimatedLowWatermark); - } - return message; - }; + /** + * Creates a plain object from a PingAndWarmResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {google.bigtable.v2.PingAndWarmResponse} message PingAndWarmResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PingAndWarmResponse.toObject = function toObject() { + return {}; + }; - /** - * Creates a plain object from a Heartbeat message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} message Heartbeat - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Heartbeat.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.continuationToken = null; - object.estimatedLowWatermark = null; - } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = $root.google.bigtable.v2.StreamContinuationToken.toObject(message.continuationToken, options); - if (message.estimatedLowWatermark != null && message.hasOwnProperty("estimatedLowWatermark")) - object.estimatedLowWatermark = $root.google.protobuf.Timestamp.toObject(message.estimatedLowWatermark, options); - return object; - }; + /** + * Converts this PingAndWarmResponse to JSON. + * @function toJSON + * @memberof google.bigtable.v2.PingAndWarmResponse + * @instance + * @returns {Object.} JSON object + */ + PingAndWarmResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this Heartbeat to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @instance - * @returns {Object.} JSON object - */ - Heartbeat.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for PingAndWarmResponse + * @function getTypeUrl + * @memberof google.bigtable.v2.PingAndWarmResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PingAndWarmResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.PingAndWarmResponse"; + }; - /** - * Gets the default type url for Heartbeat - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Heartbeat.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.Heartbeat"; - }; + return PingAndWarmResponse; + })(); - return Heartbeat; - })(); + v2.ReadModifyWriteRowRequest = (function() { - ReadChangeStreamResponse.CloseStream = (function() { + /** + * Properties of a ReadModifyWriteRowRequest. + * @memberof google.bigtable.v2 + * @interface IReadModifyWriteRowRequest + * @property {string|null} [tableName] ReadModifyWriteRowRequest tableName + * @property {string|null} [authorizedViewName] ReadModifyWriteRowRequest authorizedViewName + * @property {string|null} [appProfileId] ReadModifyWriteRowRequest appProfileId + * @property {Uint8Array|null} [rowKey] ReadModifyWriteRowRequest rowKey + * @property {Array.|null} [rules] ReadModifyWriteRowRequest rules + */ - /** - * Properties of a CloseStream. - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @interface ICloseStream - * @property {google.rpc.IStatus|null} [status] CloseStream status - * @property {Array.|null} [continuationTokens] CloseStream continuationTokens - * @property {Array.|null} [newPartitions] CloseStream newPartitions - */ + /** + * Constructs a new ReadModifyWriteRowRequest. + * @memberof google.bigtable.v2 + * @classdesc Represents a ReadModifyWriteRowRequest. + * @implements IReadModifyWriteRowRequest + * @constructor + * @param {google.bigtable.v2.IReadModifyWriteRowRequest=} [properties] Properties to set + */ + function ReadModifyWriteRowRequest(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new CloseStream. - * @memberof google.bigtable.v2.ReadChangeStreamResponse - * @classdesc Represents a CloseStream. - * @implements ICloseStream - * @constructor - * @param {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream=} [properties] Properties to set - */ - function CloseStream(properties) { - this.continuationTokens = []; - this.newPartitions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ReadModifyWriteRowRequest tableName. + * @member {string} tableName + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @instance + */ + ReadModifyWriteRowRequest.prototype.tableName = ""; - /** - * CloseStream status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @instance - */ - CloseStream.prototype.status = null; + /** + * ReadModifyWriteRowRequest authorizedViewName. + * @member {string} authorizedViewName + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @instance + */ + ReadModifyWriteRowRequest.prototype.authorizedViewName = ""; - /** - * CloseStream continuationTokens. - * @member {Array.} continuationTokens - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @instance - */ - CloseStream.prototype.continuationTokens = $util.emptyArray; + /** + * ReadModifyWriteRowRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @instance + */ + ReadModifyWriteRowRequest.prototype.appProfileId = ""; - /** - * CloseStream newPartitions. - * @member {Array.} newPartitions - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @instance - */ - CloseStream.prototype.newPartitions = $util.emptyArray; + /** + * ReadModifyWriteRowRequest rowKey. + * @member {Uint8Array} rowKey + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @instance + */ + ReadModifyWriteRowRequest.prototype.rowKey = $util.newBuffer([]); - /** - * Creates a new CloseStream instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} CloseStream instance - */ - CloseStream.create = function create(properties) { - return new CloseStream(properties); - }; + /** + * ReadModifyWriteRowRequest rules. + * @member {Array.} rules + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @instance + */ + ReadModifyWriteRowRequest.prototype.rules = $util.emptyArray; - /** - * Encodes the specified CloseStream message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream} message CloseStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloseStream.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.continuationTokens != null && message.continuationTokens.length) - for (var i = 0; i < message.continuationTokens.length; ++i) - $root.google.bigtable.v2.StreamContinuationToken.encode(message.continuationTokens[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.newPartitions != null && message.newPartitions.length) - for (var i = 0; i < message.newPartitions.length; ++i) - $root.google.bigtable.v2.StreamPartition.encode(message.newPartitions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ReadModifyWriteRowRequest instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {google.bigtable.v2.IReadModifyWriteRowRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadModifyWriteRowRequest} ReadModifyWriteRowRequest instance + */ + ReadModifyWriteRowRequest.create = function create(properties) { + return new ReadModifyWriteRowRequest(properties); + }; - /** - * Encodes the specified CloseStream message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream} message CloseStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloseStream.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ReadModifyWriteRowRequest message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowRequest.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {google.bigtable.v2.IReadModifyWriteRowRequest} message ReadModifyWriteRowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReadModifyWriteRowRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); + if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rowKey); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.bigtable.v2.ReadModifyWriteRule.encode(message.rules[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.appProfileId); + if (message.authorizedViewName != null && Object.hasOwnProperty.call(message, "authorizedViewName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.authorizedViewName); + return writer; + }; - /** - * Decodes a CloseStream message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} CloseStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloseStream.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) + /** + * Encodes the specified ReadModifyWriteRowRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {google.bigtable.v2.IReadModifyWriteRowRequest} message ReadModifyWriteRowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReadModifyWriteRowRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReadModifyWriteRowRequest message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ReadModifyWriteRowRequest} ReadModifyWriteRowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReadModifyWriteRowRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadModifyWriteRowRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.tableName = reader.string(); break; - switch (tag >>> 3) { - case 1: { - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 2: { - if (!(message.continuationTokens && message.continuationTokens.length)) - message.continuationTokens = []; - message.continuationTokens.push($root.google.bigtable.v2.StreamContinuationToken.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.newPartitions && message.newPartitions.length)) - message.newPartitions = []; - message.newPartitions.push($root.google.bigtable.v2.StreamPartition.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + } + case 6: { + message.authorizedViewName = reader.string(); + break; + } + case 4: { + message.appProfileId = reader.string(); + break; + } + case 2: { + message.rowKey = reader.bytes(); + break; + } + case 3: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.bigtable.v2.ReadModifyWriteRule.decode(reader, reader.uint32())); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a CloseStream message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} CloseStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloseStream.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ReadModifyWriteRowRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ReadModifyWriteRowRequest} ReadModifyWriteRowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReadModifyWriteRowRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CloseStream message. - * @function verify - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloseStream.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); + /** + * Verifies a ReadModifyWriteRowRequest message. + * @function verify + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReadModifyWriteRowRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tableName != null && message.hasOwnProperty("tableName")) + if (!$util.isString(message.tableName)) + return "tableName: string expected"; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + if (!$util.isString(message.authorizedViewName)) + return "authorizedViewName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) + return "rowKey: buffer expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.bigtable.v2.ReadModifyWriteRule.verify(message.rules[i]); if (error) - return "status." + error; - } - if (message.continuationTokens != null && message.hasOwnProperty("continuationTokens")) { - if (!Array.isArray(message.continuationTokens)) - return "continuationTokens: array expected"; - for (var i = 0; i < message.continuationTokens.length; ++i) { - var error = $root.google.bigtable.v2.StreamContinuationToken.verify(message.continuationTokens[i]); - if (error) - return "continuationTokens." + error; - } - } - if (message.newPartitions != null && message.hasOwnProperty("newPartitions")) { - if (!Array.isArray(message.newPartitions)) - return "newPartitions: array expected"; - for (var i = 0; i < message.newPartitions.length; ++i) { - var error = $root.google.bigtable.v2.StreamPartition.verify(message.newPartitions[i]); - if (error) - return "newPartitions." + error; - } + return "rules." + error; } - return null; - }; + } + return null; + }; - /** - * Creates a CloseStream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} CloseStream - */ - CloseStream.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream) - return object; - var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - if (object.continuationTokens) { - if (!Array.isArray(object.continuationTokens)) - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.continuationTokens: array expected"); - message.continuationTokens = []; - for (var i = 0; i < object.continuationTokens.length; ++i) { - if (typeof object.continuationTokens[i] !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.continuationTokens: object expected"); - message.continuationTokens[i] = $root.google.bigtable.v2.StreamContinuationToken.fromObject(object.continuationTokens[i]); - } - } - if (object.newPartitions) { - if (!Array.isArray(object.newPartitions)) - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.newPartitions: array expected"); - message.newPartitions = []; - for (var i = 0; i < object.newPartitions.length; ++i) { - if (typeof object.newPartitions[i] !== "object") - throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.newPartitions: object expected"); - message.newPartitions[i] = $root.google.bigtable.v2.StreamPartition.fromObject(object.newPartitions[i]); - } + /** + * Creates a ReadModifyWriteRowRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ReadModifyWriteRowRequest} ReadModifyWriteRowRequest + */ + ReadModifyWriteRowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadModifyWriteRowRequest) + return object; + var message = new $root.google.bigtable.v2.ReadModifyWriteRowRequest(); + if (object.tableName != null) + message.tableName = String(object.tableName); + if (object.authorizedViewName != null) + message.authorizedViewName = String(object.authorizedViewName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + if (object.rowKey != null) + if (typeof object.rowKey === "string") + $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); + else if (object.rowKey.length >= 0) + message.rowKey = object.rowKey; + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.bigtable.v2.ReadModifyWriteRowRequest.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.bigtable.v2.ReadModifyWriteRowRequest.rules: object expected"); + message.rules[i] = $root.google.bigtable.v2.ReadModifyWriteRule.fromObject(object.rules[i]); } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a CloseStream message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} message CloseStream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CloseStream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.continuationTokens = []; - object.newPartitions = []; - } - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - if (message.continuationTokens && message.continuationTokens.length) { - object.continuationTokens = []; - for (var j = 0; j < message.continuationTokens.length; ++j) - object.continuationTokens[j] = $root.google.bigtable.v2.StreamContinuationToken.toObject(message.continuationTokens[j], options); - } - if (message.newPartitions && message.newPartitions.length) { - object.newPartitions = []; - for (var j = 0; j < message.newPartitions.length; ++j) - object.newPartitions[j] = $root.google.bigtable.v2.StreamPartition.toObject(message.newPartitions[j], options); + /** + * Creates a plain object from a ReadModifyWriteRowRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {google.bigtable.v2.ReadModifyWriteRowRequest} message ReadModifyWriteRowRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReadModifyWriteRowRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) { + object.tableName = ""; + if (options.bytes === String) + object.rowKey = ""; + else { + object.rowKey = []; + if (options.bytes !== Array) + object.rowKey = $util.newBuffer(object.rowKey); } - return object; - }; - - /** - * Converts this CloseStream to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @instance - * @returns {Object.} JSON object - */ - CloseStream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + object.appProfileId = ""; + object.authorizedViewName = ""; + } + if (message.tableName != null && message.hasOwnProperty("tableName")) + object.tableName = message.tableName; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.bigtable.v2.ReadModifyWriteRule.toObject(message.rules[j], options); + } + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + if (message.authorizedViewName != null && message.hasOwnProperty("authorizedViewName")) + object.authorizedViewName = message.authorizedViewName; + return object; + }; - /** - * Gets the default type url for CloseStream - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CloseStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.CloseStream"; - }; + /** + * Converts this ReadModifyWriteRowRequest to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @instance + * @returns {Object.} JSON object + */ + ReadModifyWriteRowRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CloseStream; - })(); + /** + * Gets the default type url for ReadModifyWriteRowRequest + * @function getTypeUrl + * @memberof google.bigtable.v2.ReadModifyWriteRowRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadModifyWriteRowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ReadModifyWriteRowRequest"; + }; - return ReadChangeStreamResponse; + return ReadModifyWriteRowRequest; })(); - v2.ExecuteQueryRequest = (function() { + v2.ReadModifyWriteRowResponse = (function() { /** - * Properties of an ExecuteQueryRequest. + * Properties of a ReadModifyWriteRowResponse. * @memberof google.bigtable.v2 - * @interface IExecuteQueryRequest - * @property {string|null} [instanceName] ExecuteQueryRequest instanceName - * @property {string|null} [appProfileId] ExecuteQueryRequest appProfileId - * @property {string|null} [query] ExecuteQueryRequest query - * @property {Uint8Array|null} [preparedQuery] ExecuteQueryRequest preparedQuery - * @property {google.bigtable.v2.IProtoFormat|null} [protoFormat] ExecuteQueryRequest protoFormat - * @property {Uint8Array|null} [resumeToken] ExecuteQueryRequest resumeToken - * @property {Object.|null} [params] ExecuteQueryRequest params + * @interface IReadModifyWriteRowResponse + * @property {google.bigtable.v2.IRow|null} [row] ReadModifyWriteRowResponse row */ /** - * Constructs a new ExecuteQueryRequest. + * Constructs a new ReadModifyWriteRowResponse. * @memberof google.bigtable.v2 - * @classdesc Represents an ExecuteQueryRequest. - * @implements IExecuteQueryRequest + * @classdesc Represents a ReadModifyWriteRowResponse. + * @implements IReadModifyWriteRowResponse * @constructor - * @param {google.bigtable.v2.IExecuteQueryRequest=} [properties] Properties to set + * @param {google.bigtable.v2.IReadModifyWriteRowResponse=} [properties] Properties to set */ - function ExecuteQueryRequest(properties) { - this.params = {}; + function ReadModifyWriteRowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50134,197 +50576,77 @@ } /** - * ExecuteQueryRequest instanceName. - * @member {string} instanceName - * @memberof google.bigtable.v2.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.instanceName = ""; - - /** - * ExecuteQueryRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.appProfileId = ""; - - /** - * ExecuteQueryRequest query. - * @member {string} query - * @memberof google.bigtable.v2.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.query = ""; - - /** - * ExecuteQueryRequest preparedQuery. - * @member {Uint8Array} preparedQuery - * @memberof google.bigtable.v2.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.preparedQuery = $util.newBuffer([]); - - /** - * ExecuteQueryRequest protoFormat. - * @member {google.bigtable.v2.IProtoFormat|null|undefined} protoFormat - * @memberof google.bigtable.v2.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.protoFormat = null; - - /** - * ExecuteQueryRequest resumeToken. - * @member {Uint8Array} resumeToken - * @memberof google.bigtable.v2.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.resumeToken = $util.newBuffer([]); - - /** - * ExecuteQueryRequest params. - * @member {Object.} params - * @memberof google.bigtable.v2.ExecuteQueryRequest - * @instance - */ - ExecuteQueryRequest.prototype.params = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExecuteQueryRequest dataFormat. - * @member {"protoFormat"|undefined} dataFormat - * @memberof google.bigtable.v2.ExecuteQueryRequest + * ReadModifyWriteRowResponse row. + * @member {google.bigtable.v2.IRow|null|undefined} row + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @instance */ - Object.defineProperty(ExecuteQueryRequest.prototype, "dataFormat", { - get: $util.oneOfGetter($oneOfFields = ["protoFormat"]), - set: $util.oneOfSetter($oneOfFields) - }); + ReadModifyWriteRowResponse.prototype.row = null; /** - * Creates a new ExecuteQueryRequest instance using the specified properties. + * Creates a new ReadModifyWriteRowResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static - * @param {google.bigtable.v2.IExecuteQueryRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.ExecuteQueryRequest} ExecuteQueryRequest instance + * @param {google.bigtable.v2.IReadModifyWriteRowResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadModifyWriteRowResponse} ReadModifyWriteRowResponse instance */ - ExecuteQueryRequest.create = function create(properties) { - return new ExecuteQueryRequest(properties); + ReadModifyWriteRowResponse.create = function create(properties) { + return new ReadModifyWriteRowResponse(properties); }; /** - * Encodes the specified ExecuteQueryRequest message. Does not implicitly {@link google.bigtable.v2.ExecuteQueryRequest.verify|verify} messages. + * Encodes the specified ReadModifyWriteRowResponse message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static - * @param {google.bigtable.v2.IExecuteQueryRequest} message ExecuteQueryRequest message or plain object to encode + * @param {google.bigtable.v2.IReadModifyWriteRowResponse} message ReadModifyWriteRowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteQueryRequest.encode = function encode(message, writer) { + ReadModifyWriteRowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.instanceName != null && Object.hasOwnProperty.call(message, "instanceName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.instanceName); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.query); - if (message.protoFormat != null && Object.hasOwnProperty.call(message, "protoFormat")) - $root.google.bigtable.v2.ProtoFormat.encode(message.protoFormat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.bigtable.v2.Value.encode(message.params[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.resumeToken != null && Object.hasOwnProperty.call(message, "resumeToken")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.resumeToken); - if (message.preparedQuery != null && Object.hasOwnProperty.call(message, "preparedQuery")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.preparedQuery); + if (message.row != null && Object.hasOwnProperty.call(message, "row")) + $root.google.bigtable.v2.Row.encode(message.row, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteQueryRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ExecuteQueryRequest.verify|verify} messages. + * Encodes the specified ReadModifyWriteRowResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static - * @param {google.bigtable.v2.IExecuteQueryRequest} message ExecuteQueryRequest message or plain object to encode + * @param {google.bigtable.v2.IReadModifyWriteRowResponse} message ReadModifyWriteRowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadModifyWriteRowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteQueryRequest message from the specified reader or buffer. + * Decodes a ReadModifyWriteRowResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ExecuteQueryRequest} ExecuteQueryRequest + * @returns {google.bigtable.v2.ReadModifyWriteRowResponse} ReadModifyWriteRowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteQueryRequest.decode = function decode(reader, length, error) { + ReadModifyWriteRowResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ExecuteQueryRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadModifyWriteRowResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.instanceName = reader.string(); - break; - } - case 2: { - message.appProfileId = reader.string(); - break; - } - case 3: { - message.query = reader.string(); - break; - } - case 9: { - message.preparedQuery = reader.bytes(); - break; - } - case 4: { - message.protoFormat = $root.google.bigtable.v2.ProtoFormat.decode(reader, reader.uint32()); - break; - } - case 8: { - message.resumeToken = reader.bytes(); - break; - } - case 7: { - if (message.params === $util.emptyObject) - message.params = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.params[key] = value; + message.row = $root.google.bigtable.v2.Row.decode(reader, reader.uint32()); break; } default: @@ -50336,221 +50658,128 @@ }; /** - * Decodes an ExecuteQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadModifyWriteRowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ExecuteQueryRequest} ExecuteQueryRequest + * @returns {google.bigtable.v2.ReadModifyWriteRowResponse} ReadModifyWriteRowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteQueryRequest.decodeDelimited = function decodeDelimited(reader) { + ReadModifyWriteRowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteQueryRequest message. + * Verifies a ReadModifyWriteRowResponse message. * @function verify - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteQueryRequest.verify = function verify(message) { + ReadModifyWriteRowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.instanceName != null && message.hasOwnProperty("instanceName")) - if (!$util.isString(message.instanceName)) - return "instanceName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.preparedQuery != null && message.hasOwnProperty("preparedQuery")) - if (!(message.preparedQuery && typeof message.preparedQuery.length === "number" || $util.isString(message.preparedQuery))) - return "preparedQuery: buffer expected"; - if (message.protoFormat != null && message.hasOwnProperty("protoFormat")) { - properties.dataFormat = 1; - { - var error = $root.google.bigtable.v2.ProtoFormat.verify(message.protoFormat); - if (error) - return "protoFormat." + error; - } - } - if (message.resumeToken != null && message.hasOwnProperty("resumeToken")) - if (!(message.resumeToken && typeof message.resumeToken.length === "number" || $util.isString(message.resumeToken))) - return "resumeToken: buffer expected"; - if (message.params != null && message.hasOwnProperty("params")) { - if (!$util.isObject(message.params)) - return "params: object expected"; - var key = Object.keys(message.params); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.bigtable.v2.Value.verify(message.params[key[i]]); - if (error) - return "params." + error; - } + if (message.row != null && message.hasOwnProperty("row")) { + var error = $root.google.bigtable.v2.Row.verify(message.row); + if (error) + return "row." + error; } return null; }; /** - * Creates an ExecuteQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadModifyWriteRowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ExecuteQueryRequest} ExecuteQueryRequest + * @returns {google.bigtable.v2.ReadModifyWriteRowResponse} ReadModifyWriteRowResponse */ - ExecuteQueryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ExecuteQueryRequest) + ReadModifyWriteRowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadModifyWriteRowResponse) return object; - var message = new $root.google.bigtable.v2.ExecuteQueryRequest(); - if (object.instanceName != null) - message.instanceName = String(object.instanceName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - if (object.query != null) - message.query = String(object.query); - if (object.preparedQuery != null) - if (typeof object.preparedQuery === "string") - $util.base64.decode(object.preparedQuery, message.preparedQuery = $util.newBuffer($util.base64.length(object.preparedQuery)), 0); - else if (object.preparedQuery.length >= 0) - message.preparedQuery = object.preparedQuery; - if (object.protoFormat != null) { - if (typeof object.protoFormat !== "object") - throw TypeError(".google.bigtable.v2.ExecuteQueryRequest.protoFormat: object expected"); - message.protoFormat = $root.google.bigtable.v2.ProtoFormat.fromObject(object.protoFormat); - } - if (object.resumeToken != null) - if (typeof object.resumeToken === "string") - $util.base64.decode(object.resumeToken, message.resumeToken = $util.newBuffer($util.base64.length(object.resumeToken)), 0); - else if (object.resumeToken.length >= 0) - message.resumeToken = object.resumeToken; - if (object.params) { - if (typeof object.params !== "object") - throw TypeError(".google.bigtable.v2.ExecuteQueryRequest.params: object expected"); - message.params = {}; - for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i) { - if (typeof object.params[keys[i]] !== "object") - throw TypeError(".google.bigtable.v2.ExecuteQueryRequest.params: object expected"); - message.params[keys[i]] = $root.google.bigtable.v2.Value.fromObject(object.params[keys[i]]); - } + var message = new $root.google.bigtable.v2.ReadModifyWriteRowResponse(); + if (object.row != null) { + if (typeof object.row !== "object") + throw TypeError(".google.bigtable.v2.ReadModifyWriteRowResponse.row: object expected"); + message.row = $root.google.bigtable.v2.Row.fromObject(object.row); } return message; }; /** - * Creates a plain object from an ExecuteQueryRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadModifyWriteRowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static - * @param {google.bigtable.v2.ExecuteQueryRequest} message ExecuteQueryRequest + * @param {google.bigtable.v2.ReadModifyWriteRowResponse} message ReadModifyWriteRowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteQueryRequest.toObject = function toObject(message, options) { + ReadModifyWriteRowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.params = {}; - if (options.defaults) { - object.instanceName = ""; - object.appProfileId = ""; - object.query = ""; - if (options.bytes === String) - object.resumeToken = ""; - else { - object.resumeToken = []; - if (options.bytes !== Array) - object.resumeToken = $util.newBuffer(object.resumeToken); - } - if (options.bytes === String) - object.preparedQuery = ""; - else { - object.preparedQuery = []; - if (options.bytes !== Array) - object.preparedQuery = $util.newBuffer(object.preparedQuery); - } - } - if (message.instanceName != null && message.hasOwnProperty("instanceName")) - object.instanceName = message.instanceName; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.protoFormat != null && message.hasOwnProperty("protoFormat")) { - object.protoFormat = $root.google.bigtable.v2.ProtoFormat.toObject(message.protoFormat, options); - if (options.oneofs) - object.dataFormat = "protoFormat"; - } - var keys2; - if (message.params && (keys2 = Object.keys(message.params)).length) { - object.params = {}; - for (var j = 0; j < keys2.length; ++j) - object.params[keys2[j]] = $root.google.bigtable.v2.Value.toObject(message.params[keys2[j]], options); - } - if (message.resumeToken != null && message.hasOwnProperty("resumeToken")) - object.resumeToken = options.bytes === String ? $util.base64.encode(message.resumeToken, 0, message.resumeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.resumeToken) : message.resumeToken; - if (message.preparedQuery != null && message.hasOwnProperty("preparedQuery")) - object.preparedQuery = options.bytes === String ? $util.base64.encode(message.preparedQuery, 0, message.preparedQuery.length) : options.bytes === Array ? Array.prototype.slice.call(message.preparedQuery) : message.preparedQuery; + if (options.defaults) + object.row = null; + if (message.row != null && message.hasOwnProperty("row")) + object.row = $root.google.bigtable.v2.Row.toObject(message.row, options); return object; }; /** - * Converts this ExecuteQueryRequest to JSON. + * Converts this ReadModifyWriteRowResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @instance * @returns {Object.} JSON object */ - ExecuteQueryRequest.prototype.toJSON = function toJSON() { + ReadModifyWriteRowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteQueryRequest + * Gets the default type url for ReadModifyWriteRowResponse * @function getTypeUrl - * @memberof google.bigtable.v2.ExecuteQueryRequest + * @memberof google.bigtable.v2.ReadModifyWriteRowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteQueryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadModifyWriteRowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ExecuteQueryRequest"; + return typeUrlPrefix + "/google.bigtable.v2.ReadModifyWriteRowResponse"; }; - return ExecuteQueryRequest; + return ReadModifyWriteRowResponse; })(); - v2.ExecuteQueryResponse = (function() { + v2.GenerateInitialChangeStreamPartitionsRequest = (function() { /** - * Properties of an ExecuteQueryResponse. + * Properties of a GenerateInitialChangeStreamPartitionsRequest. * @memberof google.bigtable.v2 - * @interface IExecuteQueryResponse - * @property {google.bigtable.v2.IResultSetMetadata|null} [metadata] ExecuteQueryResponse metadata - * @property {google.bigtable.v2.IPartialResultSet|null} [results] ExecuteQueryResponse results + * @interface IGenerateInitialChangeStreamPartitionsRequest + * @property {string|null} [tableName] GenerateInitialChangeStreamPartitionsRequest tableName + * @property {string|null} [appProfileId] GenerateInitialChangeStreamPartitionsRequest appProfileId */ /** - * Constructs a new ExecuteQueryResponse. + * Constructs a new GenerateInitialChangeStreamPartitionsRequest. * @memberof google.bigtable.v2 - * @classdesc Represents an ExecuteQueryResponse. - * @implements IExecuteQueryResponse + * @classdesc Represents a GenerateInitialChangeStreamPartitionsRequest. + * @implements IGenerateInitialChangeStreamPartitionsRequest * @constructor - * @param {google.bigtable.v2.IExecuteQueryResponse=} [properties] Properties to set + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest=} [properties] Properties to set */ - function ExecuteQueryResponse(properties) { + function GenerateInitialChangeStreamPartitionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50558,105 +50787,91 @@ } /** - * ExecuteQueryResponse metadata. - * @member {google.bigtable.v2.IResultSetMetadata|null|undefined} metadata - * @memberof google.bigtable.v2.ExecuteQueryResponse - * @instance - */ - ExecuteQueryResponse.prototype.metadata = null; - - /** - * ExecuteQueryResponse results. - * @member {google.bigtable.v2.IPartialResultSet|null|undefined} results - * @memberof google.bigtable.v2.ExecuteQueryResponse + * GenerateInitialChangeStreamPartitionsRequest tableName. + * @member {string} tableName + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @instance */ - ExecuteQueryResponse.prototype.results = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + GenerateInitialChangeStreamPartitionsRequest.prototype.tableName = ""; /** - * ExecuteQueryResponse response. - * @member {"metadata"|"results"|undefined} response - * @memberof google.bigtable.v2.ExecuteQueryResponse + * GenerateInitialChangeStreamPartitionsRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @instance */ - Object.defineProperty(ExecuteQueryResponse.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["metadata", "results"]), - set: $util.oneOfSetter($oneOfFields) - }); + GenerateInitialChangeStreamPartitionsRequest.prototype.appProfileId = ""; /** - * Creates a new ExecuteQueryResponse instance using the specified properties. + * Creates a new GenerateInitialChangeStreamPartitionsRequest instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static - * @param {google.bigtable.v2.IExecuteQueryResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.ExecuteQueryResponse} ExecuteQueryResponse instance + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} GenerateInitialChangeStreamPartitionsRequest instance */ - ExecuteQueryResponse.create = function create(properties) { - return new ExecuteQueryResponse(properties); + GenerateInitialChangeStreamPartitionsRequest.create = function create(properties) { + return new GenerateInitialChangeStreamPartitionsRequest(properties); }; /** - * Encodes the specified ExecuteQueryResponse message. Does not implicitly {@link google.bigtable.v2.ExecuteQueryResponse.verify|verify} messages. + * Encodes the specified GenerateInitialChangeStreamPartitionsRequest message. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static - * @param {google.bigtable.v2.IExecuteQueryResponse} message ExecuteQueryResponse message or plain object to encode + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest} message GenerateInitialChangeStreamPartitionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteQueryResponse.encode = function encode(message, writer) { + GenerateInitialChangeStreamPartitionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.bigtable.v2.ResultSetMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.results != null && Object.hasOwnProperty.call(message, "results")) - $root.google.bigtable.v2.PartialResultSet.encode(message.results, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); return writer; }; /** - * Encodes the specified ExecuteQueryResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ExecuteQueryResponse.verify|verify} messages. + * Encodes the specified GenerateInitialChangeStreamPartitionsRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static - * @param {google.bigtable.v2.IExecuteQueryResponse} message ExecuteQueryResponse message or plain object to encode + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsRequest} message GenerateInitialChangeStreamPartitionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { + GenerateInitialChangeStreamPartitionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteQueryResponse message from the specified reader or buffer. + * Decodes a GenerateInitialChangeStreamPartitionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ExecuteQueryResponse} ExecuteQueryResponse + * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} GenerateInitialChangeStreamPartitionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteQueryResponse.decode = function decode(reader, length, error) { + GenerateInitialChangeStreamPartitionsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ExecuteQueryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.metadata = $root.google.bigtable.v2.ResultSetMetadata.decode(reader, reader.uint32()); + message.tableName = reader.string(); break; } case 2: { - message.results = $root.google.bigtable.v2.PartialResultSet.decode(reader, reader.uint32()); + message.appProfileId = reader.string(); break; } default: @@ -50668,157 +50883,131 @@ }; /** - * Decodes an ExecuteQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a GenerateInitialChangeStreamPartitionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ExecuteQueryResponse} ExecuteQueryResponse + * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} GenerateInitialChangeStreamPartitionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteQueryResponse.decodeDelimited = function decodeDelimited(reader) { + GenerateInitialChangeStreamPartitionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteQueryResponse message. + * Verifies a GenerateInitialChangeStreamPartitionsRequest message. * @function verify - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteQueryResponse.verify = function verify(message) { + GenerateInitialChangeStreamPartitionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - properties.response = 1; - { - var error = $root.google.bigtable.v2.ResultSetMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - } - if (message.results != null && message.hasOwnProperty("results")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - var error = $root.google.bigtable.v2.PartialResultSet.verify(message.results); - if (error) - return "results." + error; - } - } + if (message.tableName != null && message.hasOwnProperty("tableName")) + if (!$util.isString(message.tableName)) + return "tableName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; return null; }; /** - * Creates an ExecuteQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GenerateInitialChangeStreamPartitionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ExecuteQueryResponse} ExecuteQueryResponse + * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} GenerateInitialChangeStreamPartitionsRequest */ - ExecuteQueryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ExecuteQueryResponse) + GenerateInitialChangeStreamPartitionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest) return object; - var message = new $root.google.bigtable.v2.ExecuteQueryResponse(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.bigtable.v2.ExecuteQueryResponse.metadata: object expected"); - message.metadata = $root.google.bigtable.v2.ResultSetMetadata.fromObject(object.metadata); - } - if (object.results != null) { - if (typeof object.results !== "object") - throw TypeError(".google.bigtable.v2.ExecuteQueryResponse.results: object expected"); - message.results = $root.google.bigtable.v2.PartialResultSet.fromObject(object.results); - } + var message = new $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest(); + if (object.tableName != null) + message.tableName = String(object.tableName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); return message; }; /** - * Creates a plain object from an ExecuteQueryResponse message. Also converts values to other types if specified. + * Creates a plain object from a GenerateInitialChangeStreamPartitionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static - * @param {google.bigtable.v2.ExecuteQueryResponse} message ExecuteQueryResponse + * @param {google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest} message GenerateInitialChangeStreamPartitionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteQueryResponse.toObject = function toObject(message, options) { + GenerateInitialChangeStreamPartitionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - object.metadata = $root.google.bigtable.v2.ResultSetMetadata.toObject(message.metadata, options); - if (options.oneofs) - object.response = "metadata"; - } - if (message.results != null && message.hasOwnProperty("results")) { - object.results = $root.google.bigtable.v2.PartialResultSet.toObject(message.results, options); - if (options.oneofs) - object.response = "results"; + if (options.defaults) { + object.tableName = ""; + object.appProfileId = ""; } + if (message.tableName != null && message.hasOwnProperty("tableName")) + object.tableName = message.tableName; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; return object; }; /** - * Converts this ExecuteQueryResponse to JSON. + * Converts this GenerateInitialChangeStreamPartitionsRequest to JSON. * @function toJSON - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @instance * @returns {Object.} JSON object */ - ExecuteQueryResponse.prototype.toJSON = function toJSON() { + GenerateInitialChangeStreamPartitionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExecuteQueryResponse + * Gets the default type url for GenerateInitialChangeStreamPartitionsRequest * @function getTypeUrl - * @memberof google.bigtable.v2.ExecuteQueryResponse + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExecuteQueryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GenerateInitialChangeStreamPartitionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ExecuteQueryResponse"; + return typeUrlPrefix + "/google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest"; }; - return ExecuteQueryResponse; + return GenerateInitialChangeStreamPartitionsRequest; })(); - v2.PrepareQueryRequest = (function() { + v2.GenerateInitialChangeStreamPartitionsResponse = (function() { /** - * Properties of a PrepareQueryRequest. + * Properties of a GenerateInitialChangeStreamPartitionsResponse. * @memberof google.bigtable.v2 - * @interface IPrepareQueryRequest - * @property {string|null} [instanceName] PrepareQueryRequest instanceName - * @property {string|null} [appProfileId] PrepareQueryRequest appProfileId - * @property {string|null} [query] PrepareQueryRequest query - * @property {google.bigtable.v2.IProtoFormat|null} [protoFormat] PrepareQueryRequest protoFormat - * @property {Object.|null} [paramTypes] PrepareQueryRequest paramTypes + * @interface IGenerateInitialChangeStreamPartitionsResponse + * @property {google.bigtable.v2.IStreamPartition|null} [partition] GenerateInitialChangeStreamPartitionsResponse partition */ /** - * Constructs a new PrepareQueryRequest. + * Constructs a new GenerateInitialChangeStreamPartitionsResponse. * @memberof google.bigtable.v2 - * @classdesc Represents a PrepareQueryRequest. - * @implements IPrepareQueryRequest + * @classdesc Represents a GenerateInitialChangeStreamPartitionsResponse. + * @implements IGenerateInitialChangeStreamPartitionsResponse * @constructor - * @param {google.bigtable.v2.IPrepareQueryRequest=} [properties] Properties to set + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse=} [properties] Properties to set */ - function PrepareQueryRequest(properties) { - this.paramTypes = {}; + function GenerateInitialChangeStreamPartitionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50826,169 +51015,77 @@ } /** - * PrepareQueryRequest instanceName. - * @member {string} instanceName - * @memberof google.bigtable.v2.PrepareQueryRequest - * @instance - */ - PrepareQueryRequest.prototype.instanceName = ""; - - /** - * PrepareQueryRequest appProfileId. - * @member {string} appProfileId - * @memberof google.bigtable.v2.PrepareQueryRequest - * @instance - */ - PrepareQueryRequest.prototype.appProfileId = ""; - - /** - * PrepareQueryRequest query. - * @member {string} query - * @memberof google.bigtable.v2.PrepareQueryRequest - * @instance - */ - PrepareQueryRequest.prototype.query = ""; - - /** - * PrepareQueryRequest protoFormat. - * @member {google.bigtable.v2.IProtoFormat|null|undefined} protoFormat - * @memberof google.bigtable.v2.PrepareQueryRequest - * @instance - */ - PrepareQueryRequest.prototype.protoFormat = null; - - /** - * PrepareQueryRequest paramTypes. - * @member {Object.} paramTypes - * @memberof google.bigtable.v2.PrepareQueryRequest - * @instance - */ - PrepareQueryRequest.prototype.paramTypes = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * PrepareQueryRequest dataFormat. - * @member {"protoFormat"|undefined} dataFormat - * @memberof google.bigtable.v2.PrepareQueryRequest + * GenerateInitialChangeStreamPartitionsResponse partition. + * @member {google.bigtable.v2.IStreamPartition|null|undefined} partition + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @instance */ - Object.defineProperty(PrepareQueryRequest.prototype, "dataFormat", { - get: $util.oneOfGetter($oneOfFields = ["protoFormat"]), - set: $util.oneOfSetter($oneOfFields) - }); + GenerateInitialChangeStreamPartitionsResponse.prototype.partition = null; /** - * Creates a new PrepareQueryRequest instance using the specified properties. + * Creates a new GenerateInitialChangeStreamPartitionsResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static - * @param {google.bigtable.v2.IPrepareQueryRequest=} [properties] Properties to set - * @returns {google.bigtable.v2.PrepareQueryRequest} PrepareQueryRequest instance + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} GenerateInitialChangeStreamPartitionsResponse instance */ - PrepareQueryRequest.create = function create(properties) { - return new PrepareQueryRequest(properties); + GenerateInitialChangeStreamPartitionsResponse.create = function create(properties) { + return new GenerateInitialChangeStreamPartitionsResponse(properties); }; /** - * Encodes the specified PrepareQueryRequest message. Does not implicitly {@link google.bigtable.v2.PrepareQueryRequest.verify|verify} messages. + * Encodes the specified GenerateInitialChangeStreamPartitionsResponse message. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static - * @param {google.bigtable.v2.IPrepareQueryRequest} message PrepareQueryRequest message or plain object to encode + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse} message GenerateInitialChangeStreamPartitionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareQueryRequest.encode = function encode(message, writer) { + GenerateInitialChangeStreamPartitionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.instanceName != null && Object.hasOwnProperty.call(message, "instanceName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.instanceName); - if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.query); - if (message.protoFormat != null && Object.hasOwnProperty.call(message, "protoFormat")) - $root.google.bigtable.v2.ProtoFormat.encode(message.protoFormat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.paramTypes != null && Object.hasOwnProperty.call(message, "paramTypes")) - for (var keys = Object.keys(message.paramTypes), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.bigtable.v2.Type.encode(message.paramTypes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.partition != null && Object.hasOwnProperty.call(message, "partition")) + $root.google.bigtable.v2.StreamPartition.encode(message.partition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PrepareQueryRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.PrepareQueryRequest.verify|verify} messages. + * Encodes the specified GenerateInitialChangeStreamPartitionsResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static - * @param {google.bigtable.v2.IPrepareQueryRequest} message PrepareQueryRequest message or plain object to encode + * @param {google.bigtable.v2.IGenerateInitialChangeStreamPartitionsResponse} message GenerateInitialChangeStreamPartitionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { + GenerateInitialChangeStreamPartitionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrepareQueryRequest message from the specified reader or buffer. + * Decodes a GenerateInitialChangeStreamPartitionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.PrepareQueryRequest} PrepareQueryRequest + * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} GenerateInitialChangeStreamPartitionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareQueryRequest.decode = function decode(reader, length, error) { + GenerateInitialChangeStreamPartitionsResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PrepareQueryRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.instanceName = reader.string(); - break; - } - case 2: { - message.appProfileId = reader.string(); - break; - } - case 3: { - message.query = reader.string(); - break; - } - case 4: { - message.protoFormat = $root.google.bigtable.v2.ProtoFormat.decode(reader, reader.uint32()); - break; - } - case 6: { - if (message.paramTypes === $util.emptyObject) - message.paramTypes = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.bigtable.v2.Type.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.paramTypes[key] = value; + message.partition = $root.google.bigtable.v2.StreamPartition.decode(reader, reader.uint32()); break; } default: @@ -51000,188 +51097,133 @@ }; /** - * Decodes a PrepareQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a GenerateInitialChangeStreamPartitionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.PrepareQueryRequest} PrepareQueryRequest + * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} GenerateInitialChangeStreamPartitionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareQueryRequest.decodeDelimited = function decodeDelimited(reader) { + GenerateInitialChangeStreamPartitionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrepareQueryRequest message. + * Verifies a GenerateInitialChangeStreamPartitionsResponse message. * @function verify - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrepareQueryRequest.verify = function verify(message) { + GenerateInitialChangeStreamPartitionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.instanceName != null && message.hasOwnProperty("instanceName")) - if (!$util.isString(message.instanceName)) - return "instanceName: string expected"; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - if (!$util.isString(message.appProfileId)) - return "appProfileId: string expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.protoFormat != null && message.hasOwnProperty("protoFormat")) { - properties.dataFormat = 1; - { - var error = $root.google.bigtable.v2.ProtoFormat.verify(message.protoFormat); - if (error) - return "protoFormat." + error; - } - } - if (message.paramTypes != null && message.hasOwnProperty("paramTypes")) { - if (!$util.isObject(message.paramTypes)) - return "paramTypes: object expected"; - var key = Object.keys(message.paramTypes); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.bigtable.v2.Type.verify(message.paramTypes[key[i]]); - if (error) - return "paramTypes." + error; - } + if (message.partition != null && message.hasOwnProperty("partition")) { + var error = $root.google.bigtable.v2.StreamPartition.verify(message.partition); + if (error) + return "partition." + error; } return null; }; /** - * Creates a PrepareQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GenerateInitialChangeStreamPartitionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.PrepareQueryRequest} PrepareQueryRequest + * @returns {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} GenerateInitialChangeStreamPartitionsResponse */ - PrepareQueryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.PrepareQueryRequest) + GenerateInitialChangeStreamPartitionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse) return object; - var message = new $root.google.bigtable.v2.PrepareQueryRequest(); - if (object.instanceName != null) - message.instanceName = String(object.instanceName); - if (object.appProfileId != null) - message.appProfileId = String(object.appProfileId); - if (object.query != null) - message.query = String(object.query); - if (object.protoFormat != null) { - if (typeof object.protoFormat !== "object") - throw TypeError(".google.bigtable.v2.PrepareQueryRequest.protoFormat: object expected"); - message.protoFormat = $root.google.bigtable.v2.ProtoFormat.fromObject(object.protoFormat); - } - if (object.paramTypes) { - if (typeof object.paramTypes !== "object") - throw TypeError(".google.bigtable.v2.PrepareQueryRequest.paramTypes: object expected"); - message.paramTypes = {}; - for (var keys = Object.keys(object.paramTypes), i = 0; i < keys.length; ++i) { - if (typeof object.paramTypes[keys[i]] !== "object") - throw TypeError(".google.bigtable.v2.PrepareQueryRequest.paramTypes: object expected"); - message.paramTypes[keys[i]] = $root.google.bigtable.v2.Type.fromObject(object.paramTypes[keys[i]]); - } + var message = new $root.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse(); + if (object.partition != null) { + if (typeof object.partition !== "object") + throw TypeError(".google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse.partition: object expected"); + message.partition = $root.google.bigtable.v2.StreamPartition.fromObject(object.partition); } return message; }; /** - * Creates a plain object from a PrepareQueryRequest message. Also converts values to other types if specified. + * Creates a plain object from a GenerateInitialChangeStreamPartitionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static - * @param {google.bigtable.v2.PrepareQueryRequest} message PrepareQueryRequest + * @param {google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse} message GenerateInitialChangeStreamPartitionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrepareQueryRequest.toObject = function toObject(message, options) { + GenerateInitialChangeStreamPartitionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.paramTypes = {}; - if (options.defaults) { - object.instanceName = ""; - object.appProfileId = ""; - object.query = ""; - } - if (message.instanceName != null && message.hasOwnProperty("instanceName")) - object.instanceName = message.instanceName; - if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) - object.appProfileId = message.appProfileId; - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.protoFormat != null && message.hasOwnProperty("protoFormat")) { - object.protoFormat = $root.google.bigtable.v2.ProtoFormat.toObject(message.protoFormat, options); - if (options.oneofs) - object.dataFormat = "protoFormat"; - } - var keys2; - if (message.paramTypes && (keys2 = Object.keys(message.paramTypes)).length) { - object.paramTypes = {}; - for (var j = 0; j < keys2.length; ++j) - object.paramTypes[keys2[j]] = $root.google.bigtable.v2.Type.toObject(message.paramTypes[keys2[j]], options); - } + if (options.defaults) + object.partition = null; + if (message.partition != null && message.hasOwnProperty("partition")) + object.partition = $root.google.bigtable.v2.StreamPartition.toObject(message.partition, options); return object; }; /** - * Converts this PrepareQueryRequest to JSON. + * Converts this GenerateInitialChangeStreamPartitionsResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @instance * @returns {Object.} JSON object */ - PrepareQueryRequest.prototype.toJSON = function toJSON() { + GenerateInitialChangeStreamPartitionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrepareQueryRequest + * Gets the default type url for GenerateInitialChangeStreamPartitionsResponse * @function getTypeUrl - * @memberof google.bigtable.v2.PrepareQueryRequest + * @memberof google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrepareQueryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GenerateInitialChangeStreamPartitionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.PrepareQueryRequest"; + return typeUrlPrefix + "/google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse"; }; - return PrepareQueryRequest; + return GenerateInitialChangeStreamPartitionsResponse; })(); - v2.PrepareQueryResponse = (function() { + v2.ReadChangeStreamRequest = (function() { /** - * Properties of a PrepareQueryResponse. + * Properties of a ReadChangeStreamRequest. * @memberof google.bigtable.v2 - * @interface IPrepareQueryResponse - * @property {google.bigtable.v2.IResultSetMetadata|null} [metadata] PrepareQueryResponse metadata - * @property {Uint8Array|null} [preparedQuery] PrepareQueryResponse preparedQuery - * @property {google.protobuf.ITimestamp|null} [validUntil] PrepareQueryResponse validUntil + * @interface IReadChangeStreamRequest + * @property {string|null} [tableName] ReadChangeStreamRequest tableName + * @property {string|null} [appProfileId] ReadChangeStreamRequest appProfileId + * @property {google.bigtable.v2.IStreamPartition|null} [partition] ReadChangeStreamRequest partition + * @property {google.protobuf.ITimestamp|null} [startTime] ReadChangeStreamRequest startTime + * @property {google.bigtable.v2.IStreamContinuationTokens|null} [continuationTokens] ReadChangeStreamRequest continuationTokens + * @property {google.protobuf.ITimestamp|null} [endTime] ReadChangeStreamRequest endTime + * @property {google.protobuf.IDuration|null} [heartbeatDuration] ReadChangeStreamRequest heartbeatDuration */ /** - * Constructs a new PrepareQueryResponse. + * Constructs a new ReadChangeStreamRequest. * @memberof google.bigtable.v2 - * @classdesc Represents a PrepareQueryResponse. - * @implements IPrepareQueryResponse + * @classdesc Represents a ReadChangeStreamRequest. + * @implements IReadChangeStreamRequest * @constructor - * @param {google.bigtable.v2.IPrepareQueryResponse=} [properties] Properties to set + * @param {google.bigtable.v2.IReadChangeStreamRequest=} [properties] Properties to set */ - function PrepareQueryResponse(properties) { + function ReadChangeStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51189,105 +51231,175 @@ } /** - * PrepareQueryResponse metadata. - * @member {google.bigtable.v2.IResultSetMetadata|null|undefined} metadata - * @memberof google.bigtable.v2.PrepareQueryResponse + * ReadChangeStreamRequest tableName. + * @member {string} tableName + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @instance */ - PrepareQueryResponse.prototype.metadata = null; + ReadChangeStreamRequest.prototype.tableName = ""; /** - * PrepareQueryResponse preparedQuery. - * @member {Uint8Array} preparedQuery - * @memberof google.bigtable.v2.PrepareQueryResponse + * ReadChangeStreamRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @instance */ - PrepareQueryResponse.prototype.preparedQuery = $util.newBuffer([]); + ReadChangeStreamRequest.prototype.appProfileId = ""; /** - * PrepareQueryResponse validUntil. - * @member {google.protobuf.ITimestamp|null|undefined} validUntil - * @memberof google.bigtable.v2.PrepareQueryResponse + * ReadChangeStreamRequest partition. + * @member {google.bigtable.v2.IStreamPartition|null|undefined} partition + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @instance */ - PrepareQueryResponse.prototype.validUntil = null; + ReadChangeStreamRequest.prototype.partition = null; /** - * Creates a new PrepareQueryResponse instance using the specified properties. + * ReadChangeStreamRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @instance + */ + ReadChangeStreamRequest.prototype.startTime = null; + + /** + * ReadChangeStreamRequest continuationTokens. + * @member {google.bigtable.v2.IStreamContinuationTokens|null|undefined} continuationTokens + * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @instance + */ + ReadChangeStreamRequest.prototype.continuationTokens = null; + + /** + * ReadChangeStreamRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @instance + */ + ReadChangeStreamRequest.prototype.endTime = null; + + /** + * ReadChangeStreamRequest heartbeatDuration. + * @member {google.protobuf.IDuration|null|undefined} heartbeatDuration + * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @instance + */ + ReadChangeStreamRequest.prototype.heartbeatDuration = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ReadChangeStreamRequest startFrom. + * @member {"startTime"|"continuationTokens"|undefined} startFrom + * @memberof google.bigtable.v2.ReadChangeStreamRequest + * @instance + */ + Object.defineProperty(ReadChangeStreamRequest.prototype, "startFrom", { + get: $util.oneOfGetter($oneOfFields = ["startTime", "continuationTokens"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReadChangeStreamRequest instance using the specified properties. * @function create - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static - * @param {google.bigtable.v2.IPrepareQueryResponse=} [properties] Properties to set - * @returns {google.bigtable.v2.PrepareQueryResponse} PrepareQueryResponse instance + * @param {google.bigtable.v2.IReadChangeStreamRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadChangeStreamRequest} ReadChangeStreamRequest instance */ - PrepareQueryResponse.create = function create(properties) { - return new PrepareQueryResponse(properties); + ReadChangeStreamRequest.create = function create(properties) { + return new ReadChangeStreamRequest(properties); }; /** - * Encodes the specified PrepareQueryResponse message. Does not implicitly {@link google.bigtable.v2.PrepareQueryResponse.verify|verify} messages. + * Encodes the specified ReadChangeStreamRequest message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamRequest.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static - * @param {google.bigtable.v2.IPrepareQueryResponse} message PrepareQueryResponse message or plain object to encode + * @param {google.bigtable.v2.IReadChangeStreamRequest} message ReadChangeStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareQueryResponse.encode = function encode(message, writer) { + ReadChangeStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.bigtable.v2.ResultSetMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.preparedQuery != null && Object.hasOwnProperty.call(message, "preparedQuery")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.preparedQuery); - if (message.validUntil != null && Object.hasOwnProperty.call(message, "validUntil")) - $root.google.protobuf.Timestamp.encode(message.validUntil, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.tableName != null && Object.hasOwnProperty.call(message, "tableName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tableName); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); + if (message.partition != null && Object.hasOwnProperty.call(message, "partition")) + $root.google.bigtable.v2.StreamPartition.encode(message.partition, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.continuationTokens != null && Object.hasOwnProperty.call(message, "continuationTokens")) + $root.google.bigtable.v2.StreamContinuationTokens.encode(message.continuationTokens, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.heartbeatDuration != null && Object.hasOwnProperty.call(message, "heartbeatDuration")) + $root.google.protobuf.Duration.encode(message.heartbeatDuration, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified PrepareQueryResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.PrepareQueryResponse.verify|verify} messages. + * Encodes the specified ReadChangeStreamRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static - * @param {google.bigtable.v2.IPrepareQueryResponse} message PrepareQueryResponse message or plain object to encode + * @param {google.bigtable.v2.IReadChangeStreamRequest} message ReadChangeStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadChangeStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrepareQueryResponse message from the specified reader or buffer. + * Decodes a ReadChangeStreamRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.PrepareQueryResponse} PrepareQueryResponse + * @returns {google.bigtable.v2.ReadChangeStreamRequest} ReadChangeStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareQueryResponse.decode = function decode(reader, length, error) { + ReadChangeStreamRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PrepareQueryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.metadata = $root.google.bigtable.v2.ResultSetMetadata.decode(reader, reader.uint32()); + message.tableName = reader.string(); break; } case 2: { - message.preparedQuery = reader.bytes(); + message.appProfileId = reader.string(); break; } case 3: { - message.validUntil = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.partition = $root.google.bigtable.v2.StreamPartition.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.continuationTokens = $root.google.bigtable.v2.StreamContinuationTokens.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.heartbeatDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -51299,160 +51411,211 @@ }; /** - * Decodes a PrepareQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadChangeStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.PrepareQueryResponse} PrepareQueryResponse + * @returns {google.bigtable.v2.ReadChangeStreamRequest} ReadChangeStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareQueryResponse.decodeDelimited = function decodeDelimited(reader) { + ReadChangeStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrepareQueryResponse message. + * Verifies a ReadChangeStreamRequest message. * @function verify - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrepareQueryResponse.verify = function verify(message) { + ReadChangeStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.bigtable.v2.ResultSetMetadata.verify(message.metadata); + var properties = {}; + if (message.tableName != null && message.hasOwnProperty("tableName")) + if (!$util.isString(message.tableName)) + return "tableName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; + if (message.partition != null && message.hasOwnProperty("partition")) { + var error = $root.google.bigtable.v2.StreamPartition.verify(message.partition); if (error) - return "metadata." + error; + return "partition." + error; } - if (message.preparedQuery != null && message.hasOwnProperty("preparedQuery")) - if (!(message.preparedQuery && typeof message.preparedQuery.length === "number" || $util.isString(message.preparedQuery))) - return "preparedQuery: buffer expected"; - if (message.validUntil != null && message.hasOwnProperty("validUntil")) { - var error = $root.google.protobuf.Timestamp.verify(message.validUntil); + if (message.startTime != null && message.hasOwnProperty("startTime")) { + properties.startFrom = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + } + if (message.continuationTokens != null && message.hasOwnProperty("continuationTokens")) { + if (properties.startFrom === 1) + return "startFrom: multiple values"; + properties.startFrom = 1; + { + var error = $root.google.bigtable.v2.StreamContinuationTokens.verify(message.continuationTokens); + if (error) + return "continuationTokens." + error; + } + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); if (error) - return "validUntil." + error; + return "endTime." + error; + } + if (message.heartbeatDuration != null && message.hasOwnProperty("heartbeatDuration")) { + var error = $root.google.protobuf.Duration.verify(message.heartbeatDuration); + if (error) + return "heartbeatDuration." + error; } return null; }; /** - * Creates a PrepareQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadChangeStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.PrepareQueryResponse} PrepareQueryResponse + * @returns {google.bigtable.v2.ReadChangeStreamRequest} ReadChangeStreamRequest */ - PrepareQueryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.PrepareQueryResponse) + ReadChangeStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadChangeStreamRequest) return object; - var message = new $root.google.bigtable.v2.PrepareQueryResponse(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.bigtable.v2.PrepareQueryResponse.metadata: object expected"); - message.metadata = $root.google.bigtable.v2.ResultSetMetadata.fromObject(object.metadata); + var message = new $root.google.bigtable.v2.ReadChangeStreamRequest(); + if (object.tableName != null) + message.tableName = String(object.tableName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + if (object.partition != null) { + if (typeof object.partition !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.partition: object expected"); + message.partition = $root.google.bigtable.v2.StreamPartition.fromObject(object.partition); } - if (object.preparedQuery != null) - if (typeof object.preparedQuery === "string") - $util.base64.decode(object.preparedQuery, message.preparedQuery = $util.newBuffer($util.base64.length(object.preparedQuery)), 0); - else if (object.preparedQuery.length >= 0) - message.preparedQuery = object.preparedQuery; - if (object.validUntil != null) { - if (typeof object.validUntil !== "object") - throw TypeError(".google.bigtable.v2.PrepareQueryResponse.validUntil: object expected"); - message.validUntil = $root.google.protobuf.Timestamp.fromObject(object.validUntil); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.continuationTokens != null) { + if (typeof object.continuationTokens !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.continuationTokens: object expected"); + message.continuationTokens = $root.google.bigtable.v2.StreamContinuationTokens.fromObject(object.continuationTokens); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.heartbeatDuration != null) { + if (typeof object.heartbeatDuration !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamRequest.heartbeatDuration: object expected"); + message.heartbeatDuration = $root.google.protobuf.Duration.fromObject(object.heartbeatDuration); } return message; }; /** - * Creates a plain object from a PrepareQueryResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadChangeStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static - * @param {google.bigtable.v2.PrepareQueryResponse} message PrepareQueryResponse + * @param {google.bigtable.v2.ReadChangeStreamRequest} message ReadChangeStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrepareQueryResponse.toObject = function toObject(message, options) { + ReadChangeStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.metadata = null; - if (options.bytes === String) - object.preparedQuery = ""; - else { - object.preparedQuery = []; - if (options.bytes !== Array) - object.preparedQuery = $util.newBuffer(object.preparedQuery); - } - object.validUntil = null; + object.tableName = ""; + object.appProfileId = ""; + object.partition = null; + object.endTime = null; + object.heartbeatDuration = null; } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.bigtable.v2.ResultSetMetadata.toObject(message.metadata, options); - if (message.preparedQuery != null && message.hasOwnProperty("preparedQuery")) - object.preparedQuery = options.bytes === String ? $util.base64.encode(message.preparedQuery, 0, message.preparedQuery.length) : options.bytes === Array ? Array.prototype.slice.call(message.preparedQuery) : message.preparedQuery; - if (message.validUntil != null && message.hasOwnProperty("validUntil")) - object.validUntil = $root.google.protobuf.Timestamp.toObject(message.validUntil, options); + if (message.tableName != null && message.hasOwnProperty("tableName")) + object.tableName = message.tableName; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + if (message.partition != null && message.hasOwnProperty("partition")) + object.partition = $root.google.bigtable.v2.StreamPartition.toObject(message.partition, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) { + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (options.oneofs) + object.startFrom = "startTime"; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.continuationTokens != null && message.hasOwnProperty("continuationTokens")) { + object.continuationTokens = $root.google.bigtable.v2.StreamContinuationTokens.toObject(message.continuationTokens, options); + if (options.oneofs) + object.startFrom = "continuationTokens"; + } + if (message.heartbeatDuration != null && message.hasOwnProperty("heartbeatDuration")) + object.heartbeatDuration = $root.google.protobuf.Duration.toObject(message.heartbeatDuration, options); return object; }; /** - * Converts this PrepareQueryResponse to JSON. + * Converts this ReadChangeStreamRequest to JSON. * @function toJSON - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @instance * @returns {Object.} JSON object */ - PrepareQueryResponse.prototype.toJSON = function toJSON() { + ReadChangeStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrepareQueryResponse + * Gets the default type url for ReadChangeStreamRequest * @function getTypeUrl - * @memberof google.bigtable.v2.PrepareQueryResponse + * @memberof google.bigtable.v2.ReadChangeStreamRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrepareQueryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadChangeStreamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.PrepareQueryResponse"; + return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamRequest"; }; - return PrepareQueryResponse; + return ReadChangeStreamRequest; })(); - v2.Row = (function() { + v2.ReadChangeStreamResponse = (function() { /** - * Properties of a Row. + * Properties of a ReadChangeStreamResponse. * @memberof google.bigtable.v2 - * @interface IRow - * @property {Uint8Array|null} [key] Row key - * @property {Array.|null} [families] Row families + * @interface IReadChangeStreamResponse + * @property {google.bigtable.v2.ReadChangeStreamResponse.IDataChange|null} [dataChange] ReadChangeStreamResponse dataChange + * @property {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat|null} [heartbeat] ReadChangeStreamResponse heartbeat + * @property {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream|null} [closeStream] ReadChangeStreamResponse closeStream */ /** - * Constructs a new Row. + * Constructs a new ReadChangeStreamResponse. * @memberof google.bigtable.v2 - * @classdesc Represents a Row. - * @implements IRow + * @classdesc Represents a ReadChangeStreamResponse. + * @implements IReadChangeStreamResponse * @constructor - * @param {google.bigtable.v2.IRow=} [properties] Properties to set + * @param {google.bigtable.v2.IReadChangeStreamResponse=} [properties] Properties to set */ - function Row(properties) { - this.families = []; + function ReadChangeStreamResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51460,94 +51623,119 @@ } /** - * Row key. - * @member {Uint8Array} key - * @memberof google.bigtable.v2.Row + * ReadChangeStreamResponse dataChange. + * @member {google.bigtable.v2.ReadChangeStreamResponse.IDataChange|null|undefined} dataChange + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @instance */ - Row.prototype.key = $util.newBuffer([]); + ReadChangeStreamResponse.prototype.dataChange = null; /** - * Row families. - * @member {Array.} families - * @memberof google.bigtable.v2.Row - * @instance - */ - Row.prototype.families = $util.emptyArray; + * ReadChangeStreamResponse heartbeat. + * @member {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat|null|undefined} heartbeat + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @instance + */ + ReadChangeStreamResponse.prototype.heartbeat = null; /** - * Creates a new Row instance using the specified properties. + * ReadChangeStreamResponse closeStream. + * @member {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream|null|undefined} closeStream + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @instance + */ + ReadChangeStreamResponse.prototype.closeStream = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ReadChangeStreamResponse streamRecord. + * @member {"dataChange"|"heartbeat"|"closeStream"|undefined} streamRecord + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @instance + */ + Object.defineProperty(ReadChangeStreamResponse.prototype, "streamRecord", { + get: $util.oneOfGetter($oneOfFields = ["dataChange", "heartbeat", "closeStream"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReadChangeStreamResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static - * @param {google.bigtable.v2.IRow=} [properties] Properties to set - * @returns {google.bigtable.v2.Row} Row instance + * @param {google.bigtable.v2.IReadChangeStreamResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadChangeStreamResponse} ReadChangeStreamResponse instance */ - Row.create = function create(properties) { - return new Row(properties); + ReadChangeStreamResponse.create = function create(properties) { + return new ReadChangeStreamResponse(properties); }; /** - * Encodes the specified Row message. Does not implicitly {@link google.bigtable.v2.Row.verify|verify} messages. + * Encodes the specified ReadChangeStreamResponse message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static - * @param {google.bigtable.v2.IRow} message Row message or plain object to encode + * @param {google.bigtable.v2.IReadChangeStreamResponse} message ReadChangeStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Row.encode = function encode(message, writer) { + ReadChangeStreamResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.families != null && message.families.length) - for (var i = 0; i < message.families.length; ++i) - $root.google.bigtable.v2.Family.encode(message.families[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dataChange != null && Object.hasOwnProperty.call(message, "dataChange")) + $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.encode(message.dataChange, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.heartbeat != null && Object.hasOwnProperty.call(message, "heartbeat")) + $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.encode(message.heartbeat, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.closeStream != null && Object.hasOwnProperty.call(message, "closeStream")) + $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.encode(message.closeStream, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Row message, length delimited. Does not implicitly {@link google.bigtable.v2.Row.verify|verify} messages. + * Encodes the specified ReadChangeStreamResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static - * @param {google.bigtable.v2.IRow} message Row message or plain object to encode + * @param {google.bigtable.v2.IReadChangeStreamResponse} message ReadChangeStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Row.encodeDelimited = function encodeDelimited(message, writer) { + ReadChangeStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Row message from the specified reader or buffer. + * Decodes a ReadChangeStreamResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Row} Row + * @returns {google.bigtable.v2.ReadChangeStreamResponse} ReadChangeStreamResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Row.decode = function decode(reader, length, error) { + ReadChangeStreamResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Row(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.key = reader.bytes(); + message.dataChange = $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.families && message.families.length)) - message.families = []; - message.families.push($root.google.bigtable.v2.Family.decode(reader, reader.uint32())); + message.heartbeat = $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.decode(reader, reader.uint32()); + break; + } + case 3: { + message.closeStream = $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.decode(reader, reader.uint32()); break; } default: @@ -51559,1516 +51747,1687 @@ }; /** - * Decodes a Row message from the specified reader or buffer, length delimited. + * Decodes a ReadChangeStreamResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Row} Row + * @returns {google.bigtable.v2.ReadChangeStreamResponse} ReadChangeStreamResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Row.decodeDelimited = function decodeDelimited(reader) { + ReadChangeStreamResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Row message. + * Verifies a ReadChangeStreamResponse message. * @function verify - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Row.verify = function verify(message) { + ReadChangeStreamResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.families != null && message.hasOwnProperty("families")) { - if (!Array.isArray(message.families)) - return "families: array expected"; - for (var i = 0; i < message.families.length; ++i) { - var error = $root.google.bigtable.v2.Family.verify(message.families[i]); + var properties = {}; + if (message.dataChange != null && message.hasOwnProperty("dataChange")) { + properties.streamRecord = 1; + { + var error = $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify(message.dataChange); if (error) - return "families." + error; + return "dataChange." + error; + } + } + if (message.heartbeat != null && message.hasOwnProperty("heartbeat")) { + if (properties.streamRecord === 1) + return "streamRecord: multiple values"; + properties.streamRecord = 1; + { + var error = $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify(message.heartbeat); + if (error) + return "heartbeat." + error; + } + } + if (message.closeStream != null && message.hasOwnProperty("closeStream")) { + if (properties.streamRecord === 1) + return "streamRecord: multiple values"; + properties.streamRecord = 1; + { + var error = $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify(message.closeStream); + if (error) + return "closeStream." + error; } } return null; }; /** - * Creates a Row message from a plain object. Also converts values to their respective internal types. + * Creates a ReadChangeStreamResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Row} Row + * @returns {google.bigtable.v2.ReadChangeStreamResponse} ReadChangeStreamResponse */ - Row.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Row) + ReadChangeStreamResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse) return object; - var message = new $root.google.bigtable.v2.Row(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; - if (object.families) { - if (!Array.isArray(object.families)) - throw TypeError(".google.bigtable.v2.Row.families: array expected"); - message.families = []; - for (var i = 0; i < object.families.length; ++i) { - if (typeof object.families[i] !== "object") - throw TypeError(".google.bigtable.v2.Row.families: object expected"); - message.families[i] = $root.google.bigtable.v2.Family.fromObject(object.families[i]); - } + var message = new $root.google.bigtable.v2.ReadChangeStreamResponse(); + if (object.dataChange != null) { + if (typeof object.dataChange !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.dataChange: object expected"); + message.dataChange = $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.fromObject(object.dataChange); + } + if (object.heartbeat != null) { + if (typeof object.heartbeat !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.heartbeat: object expected"); + message.heartbeat = $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.fromObject(object.heartbeat); + } + if (object.closeStream != null) { + if (typeof object.closeStream !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.closeStream: object expected"); + message.closeStream = $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.fromObject(object.closeStream); } return message; }; /** - * Creates a plain object from a Row message. Also converts values to other types if specified. + * Creates a plain object from a ReadChangeStreamResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static - * @param {google.bigtable.v2.Row} message Row + * @param {google.bigtable.v2.ReadChangeStreamResponse} message ReadChangeStreamResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Row.toObject = function toObject(message, options) { + ReadChangeStreamResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.families = []; - if (options.defaults) - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.families && message.families.length) { - object.families = []; - for (var j = 0; j < message.families.length; ++j) - object.families[j] = $root.google.bigtable.v2.Family.toObject(message.families[j], options); + if (message.dataChange != null && message.hasOwnProperty("dataChange")) { + object.dataChange = $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.toObject(message.dataChange, options); + if (options.oneofs) + object.streamRecord = "dataChange"; + } + if (message.heartbeat != null && message.hasOwnProperty("heartbeat")) { + object.heartbeat = $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.toObject(message.heartbeat, options); + if (options.oneofs) + object.streamRecord = "heartbeat"; + } + if (message.closeStream != null && message.hasOwnProperty("closeStream")) { + object.closeStream = $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream.toObject(message.closeStream, options); + if (options.oneofs) + object.streamRecord = "closeStream"; } return object; }; /** - * Converts this Row to JSON. + * Converts this ReadChangeStreamResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @instance * @returns {Object.} JSON object */ - Row.prototype.toJSON = function toJSON() { + ReadChangeStreamResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Row + * Gets the default type url for ReadChangeStreamResponse * @function getTypeUrl - * @memberof google.bigtable.v2.Row + * @memberof google.bigtable.v2.ReadChangeStreamResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Row.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadChangeStreamResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Row"; + return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse"; }; - return Row; - })(); - - v2.Family = (function() { + ReadChangeStreamResponse.MutationChunk = (function() { - /** - * Properties of a Family. - * @memberof google.bigtable.v2 - * @interface IFamily - * @property {string|null} [name] Family name - * @property {Array.|null} [columns] Family columns - */ + /** + * Properties of a MutationChunk. + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @interface IMutationChunk + * @property {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo|null} [chunkInfo] MutationChunk chunkInfo + * @property {google.bigtable.v2.IMutation|null} [mutation] MutationChunk mutation + */ - /** - * Constructs a new Family. - * @memberof google.bigtable.v2 - * @classdesc Represents a Family. - * @implements IFamily - * @constructor - * @param {google.bigtable.v2.IFamily=} [properties] Properties to set - */ - function Family(properties) { - this.columns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new MutationChunk. + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @classdesc Represents a MutationChunk. + * @implements IMutationChunk + * @constructor + * @param {google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk=} [properties] Properties to set + */ + function MutationChunk(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Family name. - * @member {string} name - * @memberof google.bigtable.v2.Family - * @instance - */ - Family.prototype.name = ""; + /** + * MutationChunk chunkInfo. + * @member {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo|null|undefined} chunkInfo + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @instance + */ + MutationChunk.prototype.chunkInfo = null; - /** - * Family columns. - * @member {Array.} columns - * @memberof google.bigtable.v2.Family - * @instance - */ - Family.prototype.columns = $util.emptyArray; + /** + * MutationChunk mutation. + * @member {google.bigtable.v2.IMutation|null|undefined} mutation + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @instance + */ + MutationChunk.prototype.mutation = null; - /** - * Creates a new Family instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Family - * @static - * @param {google.bigtable.v2.IFamily=} [properties] Properties to set - * @returns {google.bigtable.v2.Family} Family instance - */ - Family.create = function create(properties) { - return new Family(properties); - }; + /** + * Creates a new MutationChunk instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} MutationChunk instance + */ + MutationChunk.create = function create(properties) { + return new MutationChunk(properties); + }; - /** - * Encodes the specified Family message. Does not implicitly {@link google.bigtable.v2.Family.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Family - * @static - * @param {google.bigtable.v2.IFamily} message Family message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Family.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.google.bigtable.v2.Column.encode(message.columns[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified MutationChunk message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk} message MutationChunk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MutationChunk.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.chunkInfo != null && Object.hasOwnProperty.call(message, "chunkInfo")) + $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.encode(message.chunkInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.mutation != null && Object.hasOwnProperty.call(message, "mutation")) + $root.google.bigtable.v2.Mutation.encode(message.mutation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified Family message, length delimited. Does not implicitly {@link google.bigtable.v2.Family.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Family - * @static - * @param {google.bigtable.v2.IFamily} message Family message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Family.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MutationChunk message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IMutationChunk} message MutationChunk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MutationChunk.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Family message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Family - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Family} Family - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Family.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Family(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Decodes a MutationChunk message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} MutationChunk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MutationChunk.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - } - case 2: { - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.google.bigtable.v2.Column.decode(reader, reader.uint32())); + switch (tag >>> 3) { + case 1: { + message.chunkInfo = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.decode(reader, reader.uint32()); + break; + } + case 2: { + message.mutation = $root.google.bigtable.v2.Mutation.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a Family message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Family - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Family} Family - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Family.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies a Family message. - * @function verify - * @memberof google.bigtable.v2.Family - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Family.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.google.bigtable.v2.Column.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - return null; - }; + /** + * Decodes a MutationChunk message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} MutationChunk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MutationChunk.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Family message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Family - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Family} Family - */ - Family.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Family) - return object; - var message = new $root.google.bigtable.v2.Family(); - if (object.name != null) - message.name = String(object.name); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".google.bigtable.v2.Family.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) { - if (typeof object.columns[i] !== "object") - throw TypeError(".google.bigtable.v2.Family.columns: object expected"); - message.columns[i] = $root.google.bigtable.v2.Column.fromObject(object.columns[i]); + /** + * Verifies a MutationChunk message. + * @function verify + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MutationChunk.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.chunkInfo != null && message.hasOwnProperty("chunkInfo")) { + var error = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify(message.chunkInfo); + if (error) + return "chunkInfo." + error; } - } - return message; - }; + if (message.mutation != null && message.hasOwnProperty("mutation")) { + var error = $root.google.bigtable.v2.Mutation.verify(message.mutation); + if (error) + return "mutation." + error; + } + return null; + }; - /** - * Creates a plain object from a Family message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Family - * @static - * @param {google.bigtable.v2.Family} message Family - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Family.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.columns = []; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.google.bigtable.v2.Column.toObject(message.columns[j], options); - } - return object; - }; + /** + * Creates a MutationChunk message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} MutationChunk + */ + MutationChunk.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk) + return object; + var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk(); + if (object.chunkInfo != null) { + if (typeof object.chunkInfo !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.chunkInfo: object expected"); + message.chunkInfo = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.fromObject(object.chunkInfo); + } + if (object.mutation != null) { + if (typeof object.mutation !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.mutation: object expected"); + message.mutation = $root.google.bigtable.v2.Mutation.fromObject(object.mutation); + } + return message; + }; - /** - * Converts this Family to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Family - * @instance - * @returns {Object.} JSON object - */ - Family.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a MutationChunk message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk} message MutationChunk + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MutationChunk.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.chunkInfo = null; + object.mutation = null; + } + if (message.chunkInfo != null && message.hasOwnProperty("chunkInfo")) + object.chunkInfo = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.toObject(message.chunkInfo, options); + if (message.mutation != null && message.hasOwnProperty("mutation")) + object.mutation = $root.google.bigtable.v2.Mutation.toObject(message.mutation, options); + return object; + }; - /** - * Gets the default type url for Family - * @function getTypeUrl - * @memberof google.bigtable.v2.Family - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Family.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Family"; - }; + /** + * Converts this MutationChunk to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @instance + * @returns {Object.} JSON object + */ + MutationChunk.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Family; - })(); + /** + * Gets the default type url for MutationChunk + * @function getTypeUrl + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MutationChunk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.MutationChunk"; + }; - v2.Column = (function() { + MutationChunk.ChunkInfo = (function() { - /** - * Properties of a Column. - * @memberof google.bigtable.v2 - * @interface IColumn - * @property {Uint8Array|null} [qualifier] Column qualifier - * @property {Array.|null} [cells] Column cells - */ + /** + * Properties of a ChunkInfo. + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @interface IChunkInfo + * @property {number|null} [chunkedValueSize] ChunkInfo chunkedValueSize + * @property {number|null} [chunkedValueOffset] ChunkInfo chunkedValueOffset + * @property {boolean|null} [lastChunk] ChunkInfo lastChunk + */ - /** - * Constructs a new Column. - * @memberof google.bigtable.v2 - * @classdesc Represents a Column. - * @implements IColumn - * @constructor - * @param {google.bigtable.v2.IColumn=} [properties] Properties to set - */ - function Column(properties) { - this.cells = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new ChunkInfo. + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + * @classdesc Represents a ChunkInfo. + * @implements IChunkInfo + * @constructor + * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo=} [properties] Properties to set + */ + function ChunkInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Column qualifier. - * @member {Uint8Array} qualifier - * @memberof google.bigtable.v2.Column - * @instance - */ - Column.prototype.qualifier = $util.newBuffer([]); + /** + * ChunkInfo chunkedValueSize. + * @member {number} chunkedValueSize + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @instance + */ + ChunkInfo.prototype.chunkedValueSize = 0; - /** - * Column cells. - * @member {Array.} cells - * @memberof google.bigtable.v2.Column - * @instance - */ - Column.prototype.cells = $util.emptyArray; + /** + * ChunkInfo chunkedValueOffset. + * @member {number} chunkedValueOffset + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @instance + */ + ChunkInfo.prototype.chunkedValueOffset = 0; - /** - * Creates a new Column instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Column - * @static - * @param {google.bigtable.v2.IColumn=} [properties] Properties to set - * @returns {google.bigtable.v2.Column} Column instance - */ - Column.create = function create(properties) { - return new Column(properties); - }; + /** + * ChunkInfo lastChunk. + * @member {boolean} lastChunk + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @instance + */ + ChunkInfo.prototype.lastChunk = false; - /** - * Encodes the specified Column message. Does not implicitly {@link google.bigtable.v2.Column.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Column - * @static - * @param {google.bigtable.v2.IColumn} message Column message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Column.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.qualifier != null && Object.hasOwnProperty.call(message, "qualifier")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.qualifier); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - $root.google.bigtable.v2.Cell.encode(message.cells[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ChunkInfo instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} ChunkInfo instance + */ + ChunkInfo.create = function create(properties) { + return new ChunkInfo(properties); + }; - /** - * Encodes the specified Column message, length delimited. Does not implicitly {@link google.bigtable.v2.Column.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Column - * @static - * @param {google.bigtable.v2.IColumn} message Column message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Column.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ChunkInfo message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo} message ChunkInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChunkInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.chunkedValueSize != null && Object.hasOwnProperty.call(message, "chunkedValueSize")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.chunkedValueSize); + if (message.chunkedValueOffset != null && Object.hasOwnProperty.call(message, "chunkedValueOffset")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.chunkedValueOffset); + if (message.lastChunk != null && Object.hasOwnProperty.call(message, "lastChunk")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.lastChunk); + return writer; + }; - /** - * Decodes a Column message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Column - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Column} Column - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Column.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Column(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.qualifier = reader.bytes(); - break; - } - case 2: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push($root.google.bigtable.v2.Cell.decode(reader, reader.uint32())); - break; + /** + * Encodes the specified ChunkInfo message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.IChunkInfo} message ChunkInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChunkInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChunkInfo message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} ChunkInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChunkInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.chunkedValueSize = reader.int32(); + break; + } + case 2: { + message.chunkedValueOffset = reader.int32(); + break; + } + case 3: { + message.lastChunk = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return message; + }; - /** - * Decodes a Column message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Column - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Column} Column - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Column.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ChunkInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} ChunkInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChunkInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Column message. - * @function verify - * @memberof google.bigtable.v2.Column - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Column.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.qualifier != null && message.hasOwnProperty("qualifier")) - if (!(message.qualifier && typeof message.qualifier.length === "number" || $util.isString(message.qualifier))) - return "qualifier: buffer expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (var i = 0; i < message.cells.length; ++i) { - var error = $root.google.bigtable.v2.Cell.verify(message.cells[i]); - if (error) - return "cells." + error; - } - } - return null; - }; + /** + * Verifies a ChunkInfo message. + * @function verify + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChunkInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.chunkedValueSize != null && message.hasOwnProperty("chunkedValueSize")) + if (!$util.isInteger(message.chunkedValueSize)) + return "chunkedValueSize: integer expected"; + if (message.chunkedValueOffset != null && message.hasOwnProperty("chunkedValueOffset")) + if (!$util.isInteger(message.chunkedValueOffset)) + return "chunkedValueOffset: integer expected"; + if (message.lastChunk != null && message.hasOwnProperty("lastChunk")) + if (typeof message.lastChunk !== "boolean") + return "lastChunk: boolean expected"; + return null; + }; - /** - * Creates a Column message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Column - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Column} Column - */ - Column.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Column) - return object; - var message = new $root.google.bigtable.v2.Column(); - if (object.qualifier != null) - if (typeof object.qualifier === "string") - $util.base64.decode(object.qualifier, message.qualifier = $util.newBuffer($util.base64.length(object.qualifier)), 0); - else if (object.qualifier.length >= 0) - message.qualifier = object.qualifier; - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".google.bigtable.v2.Column.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) { - if (typeof object.cells[i] !== "object") - throw TypeError(".google.bigtable.v2.Column.cells: object expected"); - message.cells[i] = $root.google.bigtable.v2.Cell.fromObject(object.cells[i]); - } - } - return message; - }; + /** + * Creates a ChunkInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} ChunkInfo + */ + ChunkInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo) + return object; + var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo(); + if (object.chunkedValueSize != null) + message.chunkedValueSize = object.chunkedValueSize | 0; + if (object.chunkedValueOffset != null) + message.chunkedValueOffset = object.chunkedValueOffset | 0; + if (object.lastChunk != null) + message.lastChunk = Boolean(object.lastChunk); + return message; + }; - /** - * Creates a plain object from a Column message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Column - * @static - * @param {google.bigtable.v2.Column} message Column - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Column.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.cells = []; - if (options.defaults) - if (options.bytes === String) - object.qualifier = ""; - else { - object.qualifier = []; - if (options.bytes !== Array) - object.qualifier = $util.newBuffer(object.qualifier); - } - if (message.qualifier != null && message.hasOwnProperty("qualifier")) - object.qualifier = options.bytes === String ? $util.base64.encode(message.qualifier, 0, message.qualifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.qualifier) : message.qualifier; - if (message.cells && message.cells.length) { - object.cells = []; - for (var j = 0; j < message.cells.length; ++j) - object.cells[j] = $root.google.bigtable.v2.Cell.toObject(message.cells[j], options); - } - return object; - }; + /** + * Creates a plain object from a ChunkInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo} message ChunkInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChunkInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.chunkedValueSize = 0; + object.chunkedValueOffset = 0; + object.lastChunk = false; + } + if (message.chunkedValueSize != null && message.hasOwnProperty("chunkedValueSize")) + object.chunkedValueSize = message.chunkedValueSize; + if (message.chunkedValueOffset != null && message.hasOwnProperty("chunkedValueOffset")) + object.chunkedValueOffset = message.chunkedValueOffset; + if (message.lastChunk != null && message.hasOwnProperty("lastChunk")) + object.lastChunk = message.lastChunk; + return object; + }; - /** - * Converts this Column to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Column - * @instance - * @returns {Object.} JSON object - */ - Column.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ChunkInfo to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @instance + * @returns {Object.} JSON object + */ + ChunkInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Column - * @function getTypeUrl - * @memberof google.bigtable.v2.Column - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Column.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Gets the default type url for ChunkInfo + * @function getTypeUrl + * @memberof google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChunkInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo"; + }; + + return ChunkInfo; + })(); + + return MutationChunk; + })(); + + ReadChangeStreamResponse.DataChange = (function() { + + /** + * Properties of a DataChange. + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @interface IDataChange + * @property {google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type|null} [type] DataChange type + * @property {string|null} [sourceClusterId] DataChange sourceClusterId + * @property {Uint8Array|null} [rowKey] DataChange rowKey + * @property {google.protobuf.ITimestamp|null} [commitTimestamp] DataChange commitTimestamp + * @property {number|null} [tiebreaker] DataChange tiebreaker + * @property {Array.|null} [chunks] DataChange chunks + * @property {boolean|null} [done] DataChange done + * @property {string|null} [token] DataChange token + * @property {google.protobuf.ITimestamp|null} [estimatedLowWatermark] DataChange estimatedLowWatermark + */ + + /** + * Constructs a new DataChange. + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @classdesc Represents a DataChange. + * @implements IDataChange + * @constructor + * @param {google.bigtable.v2.ReadChangeStreamResponse.IDataChange=} [properties] Properties to set + */ + function DataChange(properties) { + this.chunks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.bigtable.v2.Column"; - }; - return Column; - })(); + /** + * DataChange type. + * @member {google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type} type + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.type = 0; - v2.Cell = (function() { + /** + * DataChange sourceClusterId. + * @member {string} sourceClusterId + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.sourceClusterId = ""; - /** - * Properties of a Cell. - * @memberof google.bigtable.v2 - * @interface ICell - * @property {number|Long|null} [timestampMicros] Cell timestampMicros - * @property {Uint8Array|null} [value] Cell value - * @property {Array.|null} [labels] Cell labels - */ + /** + * DataChange rowKey. + * @member {Uint8Array} rowKey + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.rowKey = $util.newBuffer([]); - /** - * Constructs a new Cell. - * @memberof google.bigtable.v2 - * @classdesc Represents a Cell. - * @implements ICell - * @constructor - * @param {google.bigtable.v2.ICell=} [properties] Properties to set - */ - function Cell(properties) { - this.labels = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * DataChange commitTimestamp. + * @member {google.protobuf.ITimestamp|null|undefined} commitTimestamp + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.commitTimestamp = null; - /** - * Cell timestampMicros. - * @member {number|Long} timestampMicros - * @memberof google.bigtable.v2.Cell - * @instance - */ - Cell.prototype.timestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * DataChange tiebreaker. + * @member {number} tiebreaker + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.tiebreaker = 0; - /** - * Cell value. - * @member {Uint8Array} value - * @memberof google.bigtable.v2.Cell - * @instance - */ - Cell.prototype.value = $util.newBuffer([]); + /** + * DataChange chunks. + * @member {Array.} chunks + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.chunks = $util.emptyArray; - /** - * Cell labels. - * @member {Array.} labels - * @memberof google.bigtable.v2.Cell - * @instance - */ - Cell.prototype.labels = $util.emptyArray; + /** + * DataChange done. + * @member {boolean} done + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.done = false; - /** - * Creates a new Cell instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Cell - * @static - * @param {google.bigtable.v2.ICell=} [properties] Properties to set - * @returns {google.bigtable.v2.Cell} Cell instance - */ - Cell.create = function create(properties) { - return new Cell(properties); - }; + /** + * DataChange token. + * @member {string} token + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.token = ""; - /** - * Encodes the specified Cell message. Does not implicitly {@link google.bigtable.v2.Cell.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Cell - * @static - * @param {google.bigtable.v2.ICell} message Cell message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Cell.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.timestampMicros != null && Object.hasOwnProperty.call(message, "timestampMicros")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestampMicros); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.labels != null && message.labels.length) - for (var i = 0; i < message.labels.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.labels[i]); - return writer; - }; + /** + * DataChange estimatedLowWatermark. + * @member {google.protobuf.ITimestamp|null|undefined} estimatedLowWatermark + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + */ + DataChange.prototype.estimatedLowWatermark = null; - /** - * Encodes the specified Cell message, length delimited. Does not implicitly {@link google.bigtable.v2.Cell.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Cell - * @static - * @param {google.bigtable.v2.ICell} message Cell message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Cell.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new DataChange instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IDataChange=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadChangeStreamResponse.DataChange} DataChange instance + */ + DataChange.create = function create(properties) { + return new DataChange(properties); + }; - /** - * Decodes a Cell message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Cell - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Cell} Cell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Cell.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Cell(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.timestampMicros = reader.int64(); - break; - } - case 2: { - message.value = reader.bytes(); + /** + * Encodes the specified DataChange message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IDataChange} message DataChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataChange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.sourceClusterId != null && Object.hasOwnProperty.call(message, "sourceClusterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceClusterId); + if (message.rowKey != null && Object.hasOwnProperty.call(message, "rowKey")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.rowKey); + if (message.commitTimestamp != null && Object.hasOwnProperty.call(message, "commitTimestamp")) + $root.google.protobuf.Timestamp.encode(message.commitTimestamp, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tiebreaker != null && Object.hasOwnProperty.call(message, "tiebreaker")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.tiebreaker); + if (message.chunks != null && message.chunks.length) + for (var i = 0; i < message.chunks.length; ++i) + $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.encode(message.chunks[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.done != null && Object.hasOwnProperty.call(message, "done")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.done); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.token); + if (message.estimatedLowWatermark != null && Object.hasOwnProperty.call(message, "estimatedLowWatermark")) + $root.google.protobuf.Timestamp.encode(message.estimatedLowWatermark, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DataChange message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.DataChange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IDataChange} message DataChange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataChange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataChange message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ReadChangeStreamResponse.DataChange} DataChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataChange.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - } - case 3: { - if (!(message.labels && message.labels.length)) - message.labels = []; - message.labels.push(reader.string()); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 2: { + message.sourceClusterId = reader.string(); + break; + } + case 3: { + message.rowKey = reader.bytes(); + break; + } + case 4: { + message.commitTimestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.tiebreaker = reader.int32(); + break; + } + case 6: { + if (!(message.chunks && message.chunks.length)) + message.chunks = []; + message.chunks.push($root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.decode(reader, reader.uint32())); + break; + } + case 8: { + message.done = reader.bool(); + break; + } + case 9: { + message.token = reader.string(); + break; + } + case 10: { + message.estimatedLowWatermark = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Cell message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Cell - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Cell} Cell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Cell.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a DataChange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ReadChangeStreamResponse.DataChange} DataChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataChange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Cell message. - * @function verify - * @memberof google.bigtable.v2.Cell - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Cell.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) - if (!$util.isInteger(message.timestampMicros) && !(message.timestampMicros && $util.isInteger(message.timestampMicros.low) && $util.isInteger(message.timestampMicros.high))) - return "timestampMicros: integer|Long expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!Array.isArray(message.labels)) - return "labels: array expected"; - for (var i = 0; i < message.labels.length; ++i) - if (!$util.isString(message.labels[i])) - return "labels: string[] expected"; - } - return null; - }; - - /** - * Creates a Cell message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Cell - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Cell} Cell - */ - Cell.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Cell) - return object; - var message = new $root.google.bigtable.v2.Cell(); - if (object.timestampMicros != null) - if ($util.Long) - (message.timestampMicros = $util.Long.fromValue(object.timestampMicros)).unsigned = false; - else if (typeof object.timestampMicros === "string") - message.timestampMicros = parseInt(object.timestampMicros, 10); - else if (typeof object.timestampMicros === "number") - message.timestampMicros = object.timestampMicros; - else if (typeof object.timestampMicros === "object") - message.timestampMicros = new $util.LongBits(object.timestampMicros.low >>> 0, object.timestampMicros.high >>> 0).toNumber(); - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; - if (object.labels) { - if (!Array.isArray(object.labels)) - throw TypeError(".google.bigtable.v2.Cell.labels: array expected"); - message.labels = []; - for (var i = 0; i < object.labels.length; ++i) - message.labels[i] = String(object.labels[i]); - } - return message; - }; - - /** - * Creates a plain object from a Cell message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Cell - * @static - * @param {google.bigtable.v2.Cell} message Cell - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Cell.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.labels = []; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestampMicros = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); + /** + * Verifies a DataChange message. + * @function verify + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataChange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.sourceClusterId != null && message.hasOwnProperty("sourceClusterId")) + if (!$util.isString(message.sourceClusterId)) + return "sourceClusterId: string expected"; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + if (!(message.rowKey && typeof message.rowKey.length === "number" || $util.isString(message.rowKey))) + return "rowKey: buffer expected"; + if (message.commitTimestamp != null && message.hasOwnProperty("commitTimestamp")) { + var error = $root.google.protobuf.Timestamp.verify(message.commitTimestamp); + if (error) + return "commitTimestamp." + error; } - } - if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) - if (typeof message.timestampMicros === "number") - object.timestampMicros = options.longs === String ? String(message.timestampMicros) : message.timestampMicros; - else - object.timestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMicros) : options.longs === Number ? new $util.LongBits(message.timestampMicros.low >>> 0, message.timestampMicros.high >>> 0).toNumber() : message.timestampMicros; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.labels && message.labels.length) { - object.labels = []; - for (var j = 0; j < message.labels.length; ++j) - object.labels[j] = message.labels[j]; - } - return object; - }; + if (message.tiebreaker != null && message.hasOwnProperty("tiebreaker")) + if (!$util.isInteger(message.tiebreaker)) + return "tiebreaker: integer expected"; + if (message.chunks != null && message.hasOwnProperty("chunks")) { + if (!Array.isArray(message.chunks)) + return "chunks: array expected"; + for (var i = 0; i < message.chunks.length; ++i) { + var error = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.verify(message.chunks[i]); + if (error) + return "chunks." + error; + } + } + if (message.done != null && message.hasOwnProperty("done")) + if (typeof message.done !== "boolean") + return "done: boolean expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.estimatedLowWatermark != null && message.hasOwnProperty("estimatedLowWatermark")) { + var error = $root.google.protobuf.Timestamp.verify(message.estimatedLowWatermark); + if (error) + return "estimatedLowWatermark." + error; + } + return null; + }; - /** - * Converts this Cell to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Cell - * @instance - * @returns {Object.} JSON object - */ - Cell.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a DataChange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ReadChangeStreamResponse.DataChange} DataChange + */ + DataChange.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange) + return object; + var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "USER": + case 1: + message.type = 1; + break; + case "GARBAGE_COLLECTION": + case 2: + message.type = 2; + break; + case "CONTINUATION": + case 3: + message.type = 3; + break; + } + if (object.sourceClusterId != null) + message.sourceClusterId = String(object.sourceClusterId); + if (object.rowKey != null) + if (typeof object.rowKey === "string") + $util.base64.decode(object.rowKey, message.rowKey = $util.newBuffer($util.base64.length(object.rowKey)), 0); + else if (object.rowKey.length >= 0) + message.rowKey = object.rowKey; + if (object.commitTimestamp != null) { + if (typeof object.commitTimestamp !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.DataChange.commitTimestamp: object expected"); + message.commitTimestamp = $root.google.protobuf.Timestamp.fromObject(object.commitTimestamp); + } + if (object.tiebreaker != null) + message.tiebreaker = object.tiebreaker | 0; + if (object.chunks) { + if (!Array.isArray(object.chunks)) + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.DataChange.chunks: array expected"); + message.chunks = []; + for (var i = 0; i < object.chunks.length; ++i) { + if (typeof object.chunks[i] !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.DataChange.chunks: object expected"); + message.chunks[i] = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.fromObject(object.chunks[i]); + } + } + if (object.done != null) + message.done = Boolean(object.done); + if (object.token != null) + message.token = String(object.token); + if (object.estimatedLowWatermark != null) { + if (typeof object.estimatedLowWatermark !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.DataChange.estimatedLowWatermark: object expected"); + message.estimatedLowWatermark = $root.google.protobuf.Timestamp.fromObject(object.estimatedLowWatermark); + } + return message; + }; - /** - * Gets the default type url for Cell - * @function getTypeUrl - * @memberof google.bigtable.v2.Cell - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Cell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Cell"; - }; + /** + * Creates a plain object from a DataChange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.DataChange} message DataChange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataChange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.chunks = []; + if (options.defaults) { + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.sourceClusterId = ""; + if (options.bytes === String) + object.rowKey = ""; + else { + object.rowKey = []; + if (options.bytes !== Array) + object.rowKey = $util.newBuffer(object.rowKey); + } + object.commitTimestamp = null; + object.tiebreaker = 0; + object.done = false; + object.token = ""; + object.estimatedLowWatermark = null; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type[message.type] === undefined ? message.type : $root.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type[message.type] : message.type; + if (message.sourceClusterId != null && message.hasOwnProperty("sourceClusterId")) + object.sourceClusterId = message.sourceClusterId; + if (message.rowKey != null && message.hasOwnProperty("rowKey")) + object.rowKey = options.bytes === String ? $util.base64.encode(message.rowKey, 0, message.rowKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKey) : message.rowKey; + if (message.commitTimestamp != null && message.hasOwnProperty("commitTimestamp")) + object.commitTimestamp = $root.google.protobuf.Timestamp.toObject(message.commitTimestamp, options); + if (message.tiebreaker != null && message.hasOwnProperty("tiebreaker")) + object.tiebreaker = message.tiebreaker; + if (message.chunks && message.chunks.length) { + object.chunks = []; + for (var j = 0; j < message.chunks.length; ++j) + object.chunks[j] = $root.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.toObject(message.chunks[j], options); + } + if (message.done != null && message.hasOwnProperty("done")) + object.done = message.done; + if (message.token != null && message.hasOwnProperty("token")) + object.token = message.token; + if (message.estimatedLowWatermark != null && message.hasOwnProperty("estimatedLowWatermark")) + object.estimatedLowWatermark = $root.google.protobuf.Timestamp.toObject(message.estimatedLowWatermark, options); + return object; + }; - return Cell; - })(); + /** + * Converts this DataChange to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @instance + * @returns {Object.} JSON object + */ + DataChange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v2.Value = (function() { + /** + * Gets the default type url for DataChange + * @function getTypeUrl + * @memberof google.bigtable.v2.ReadChangeStreamResponse.DataChange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.DataChange"; + }; - /** - * Properties of a Value. - * @memberof google.bigtable.v2 - * @interface IValue - * @property {google.bigtable.v2.IType|null} [type] Value type - * @property {Uint8Array|null} [rawValue] Value rawValue - * @property {number|Long|null} [rawTimestampMicros] Value rawTimestampMicros - * @property {Uint8Array|null} [bytesValue] Value bytesValue - * @property {string|null} [stringValue] Value stringValue - * @property {number|Long|null} [intValue] Value intValue - * @property {boolean|null} [boolValue] Value boolValue - * @property {number|null} [floatValue] Value floatValue - * @property {google.protobuf.ITimestamp|null} [timestampValue] Value timestampValue - * @property {google.type.IDate|null} [dateValue] Value dateValue - * @property {google.bigtable.v2.IArrayValue|null} [arrayValue] Value arrayValue - */ + /** + * Type enum. + * @name google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} USER=1 USER value + * @property {number} GARBAGE_COLLECTION=2 GARBAGE_COLLECTION value + * @property {number} CONTINUATION=3 CONTINUATION value + */ + DataChange.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "GARBAGE_COLLECTION"] = 2; + values[valuesById[3] = "CONTINUATION"] = 3; + return values; + })(); - /** - * Constructs a new Value. - * @memberof google.bigtable.v2 - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.bigtable.v2.IValue=} [properties] Properties to set - */ - function Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return DataChange; + })(); - /** - * Value type. - * @member {google.bigtable.v2.IType|null|undefined} type - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.type = null; + ReadChangeStreamResponse.Heartbeat = (function() { - /** - * Value rawValue. - * @member {Uint8Array|null|undefined} rawValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.rawValue = null; + /** + * Properties of a Heartbeat. + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @interface IHeartbeat + * @property {google.bigtable.v2.IStreamContinuationToken|null} [continuationToken] Heartbeat continuationToken + * @property {google.protobuf.ITimestamp|null} [estimatedLowWatermark] Heartbeat estimatedLowWatermark + */ - /** - * Value rawTimestampMicros. - * @member {number|Long|null|undefined} rawTimestampMicros - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.rawTimestampMicros = null; + /** + * Constructs a new Heartbeat. + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @classdesc Represents a Heartbeat. + * @implements IHeartbeat + * @constructor + * @param {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat=} [properties] Properties to set + */ + function Heartbeat(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Value bytesValue. - * @member {Uint8Array|null|undefined} bytesValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.bytesValue = null; + /** + * Heartbeat continuationToken. + * @member {google.bigtable.v2.IStreamContinuationToken|null|undefined} continuationToken + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @instance + */ + Heartbeat.prototype.continuationToken = null; - /** - * Value stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.stringValue = null; + /** + * Heartbeat estimatedLowWatermark. + * @member {google.protobuf.ITimestamp|null|undefined} estimatedLowWatermark + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @instance + */ + Heartbeat.prototype.estimatedLowWatermark = null; - /** - * Value intValue. - * @member {number|Long|null|undefined} intValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.intValue = null; + /** + * Creates a new Heartbeat instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} Heartbeat instance + */ + Heartbeat.create = function create(properties) { + return new Heartbeat(properties); + }; - /** - * Value boolValue. - * @member {boolean|null|undefined} boolValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.boolValue = null; + /** + * Encodes the specified Heartbeat message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat} message Heartbeat message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Heartbeat.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) + $root.google.bigtable.v2.StreamContinuationToken.encode(message.continuationToken, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.estimatedLowWatermark != null && Object.hasOwnProperty.call(message, "estimatedLowWatermark")) + $root.google.protobuf.Timestamp.encode(message.estimatedLowWatermark, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Value floatValue. - * @member {number|null|undefined} floatValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.floatValue = null; + /** + * Encodes the specified Heartbeat message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.IHeartbeat} message Heartbeat message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Heartbeat.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Value timestampValue. - * @member {google.protobuf.ITimestamp|null|undefined} timestampValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.timestampValue = null; - - /** - * Value dateValue. - * @member {google.type.IDate|null|undefined} dateValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.dateValue = null; - - /** - * Value arrayValue. - * @member {google.bigtable.v2.IArrayValue|null|undefined} arrayValue - * @memberof google.bigtable.v2.Value - * @instance - */ - Value.prototype.arrayValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Value kind. - * @member {"rawValue"|"rawTimestampMicros"|"bytesValue"|"stringValue"|"intValue"|"boolValue"|"floatValue"|"timestampValue"|"dateValue"|"arrayValue"|undefined} kind - * @memberof google.bigtable.v2.Value - * @instance - */ - Object.defineProperty(Value.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["rawValue", "rawTimestampMicros", "bytesValue", "stringValue", "intValue", "boolValue", "floatValue", "timestampValue", "dateValue", "arrayValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Value instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Value - * @static - * @param {google.bigtable.v2.IValue=} [properties] Properties to set - * @returns {google.bigtable.v2.Value} Value instance - */ - Value.create = function create(properties) { - return new Value(properties); - }; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.bigtable.v2.Value.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Value - * @static - * @param {google.bigtable.v2.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bytesValue != null && Object.hasOwnProperty.call(message, "bytesValue")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.bytesValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.arrayValue != null && Object.hasOwnProperty.call(message, "arrayValue")) - $root.google.bigtable.v2.ArrayValue.encode(message.arrayValue, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.intValue); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - $root.google.bigtable.v2.Type.encode(message.type, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.rawValue != null && Object.hasOwnProperty.call(message, "rawValue")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.rawValue); - if (message.rawTimestampMicros != null && Object.hasOwnProperty.call(message, "rawTimestampMicros")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.rawTimestampMicros); - if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.boolValue); - if (message.floatValue != null && Object.hasOwnProperty.call(message, "floatValue")) - writer.uint32(/* id 11, wireType 1 =*/89).double(message.floatValue); - if (message.timestampValue != null && Object.hasOwnProperty.call(message, "timestampValue")) - $root.google.protobuf.Timestamp.encode(message.timestampValue, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.dateValue != null && Object.hasOwnProperty.call(message, "dateValue")) - $root.google.type.Date.encode(message.dateValue, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.bigtable.v2.Value.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Value - * @static - * @param {google.bigtable.v2.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Value message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 7: { - message.type = $root.google.bigtable.v2.Type.decode(reader, reader.uint32()); - break; - } - case 8: { - message.rawValue = reader.bytes(); - break; - } - case 9: { - message.rawTimestampMicros = reader.int64(); - break; - } - case 2: { - message.bytesValue = reader.bytes(); - break; - } - case 3: { - message.stringValue = reader.string(); - break; - } - case 6: { - message.intValue = reader.int64(); - break; - } - case 10: { - message.boolValue = reader.bool(); - break; - } - case 11: { - message.floatValue = reader.double(); - break; - } - case 12: { - message.timestampValue = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.dateValue = $root.google.type.Date.decode(reader, reader.uint32()); + /** + * Decodes a Heartbeat message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} Heartbeat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Heartbeat.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - } - case 4: { - message.arrayValue = $root.google.bigtable.v2.ArrayValue.decode(reader, reader.uint32()); + switch (tag >>> 3) { + case 1: { + message.continuationToken = $root.google.bigtable.v2.StreamContinuationToken.decode(reader, reader.uint32()); + break; + } + case 2: { + message.estimatedLowWatermark = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Heartbeat message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} Heartbeat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Heartbeat.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Value message. - * @function verify - * @memberof google.bigtable.v2.Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.google.bigtable.v2.Type.verify(message.type); - if (error) - return "type." + error; - } - if (message.rawValue != null && message.hasOwnProperty("rawValue")) { - properties.kind = 1; - if (!(message.rawValue && typeof message.rawValue.length === "number" || $util.isString(message.rawValue))) - return "rawValue: buffer expected"; - } - if (message.rawTimestampMicros != null && message.hasOwnProperty("rawTimestampMicros")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (!$util.isInteger(message.rawTimestampMicros) && !(message.rawTimestampMicros && $util.isInteger(message.rawTimestampMicros.low) && $util.isInteger(message.rawTimestampMicros.high))) - return "rawTimestampMicros: integer|Long expected"; - } - if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (!(message.bytesValue && typeof message.bytesValue.length === "number" || $util.isString(message.bytesValue))) - return "bytesValue: buffer expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) - return "intValue: integer|Long expected"; - } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.boolValue !== "boolean") - return "boolValue: boolean expected"; - } - if (message.floatValue != null && message.hasOwnProperty("floatValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.floatValue !== "number") - return "floatValue: number expected"; - } - if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.Timestamp.verify(message.timestampValue); + /** + * Verifies a Heartbeat message. + * @function verify + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Heartbeat.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) { + var error = $root.google.bigtable.v2.StreamContinuationToken.verify(message.continuationToken); if (error) - return "timestampValue." + error; + return "continuationToken." + error; } - } - if (message.dateValue != null && message.hasOwnProperty("dateValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.type.Date.verify(message.dateValue); + if (message.estimatedLowWatermark != null && message.hasOwnProperty("estimatedLowWatermark")) { + var error = $root.google.protobuf.Timestamp.verify(message.estimatedLowWatermark); if (error) - return "dateValue." + error; + return "estimatedLowWatermark." + error; } - } - if (message.arrayValue != null && message.hasOwnProperty("arrayValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.ArrayValue.verify(message.arrayValue); - if (error) - return "arrayValue." + error; + return null; + }; + + /** + * Creates a Heartbeat message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} Heartbeat + */ + Heartbeat.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat) + return object; + var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.Heartbeat(); + if (object.continuationToken != null) { + if (typeof object.continuationToken !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.continuationToken: object expected"); + message.continuationToken = $root.google.bigtable.v2.StreamContinuationToken.fromObject(object.continuationToken); } - } - return null; - }; + if (object.estimatedLowWatermark != null) { + if (typeof object.estimatedLowWatermark !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.Heartbeat.estimatedLowWatermark: object expected"); + message.estimatedLowWatermark = $root.google.protobuf.Timestamp.fromObject(object.estimatedLowWatermark); + } + return message; + }; - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Value - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Value} Value - */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Value) + /** + * Creates a plain object from a Heartbeat message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.Heartbeat} message Heartbeat + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Heartbeat.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.continuationToken = null; + object.estimatedLowWatermark = null; + } + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + object.continuationToken = $root.google.bigtable.v2.StreamContinuationToken.toObject(message.continuationToken, options); + if (message.estimatedLowWatermark != null && message.hasOwnProperty("estimatedLowWatermark")) + object.estimatedLowWatermark = $root.google.protobuf.Timestamp.toObject(message.estimatedLowWatermark, options); return object; - var message = new $root.google.bigtable.v2.Value(); - if (object.type != null) { - if (typeof object.type !== "object") - throw TypeError(".google.bigtable.v2.Value.type: object expected"); - message.type = $root.google.bigtable.v2.Type.fromObject(object.type); - } - if (object.rawValue != null) - if (typeof object.rawValue === "string") - $util.base64.decode(object.rawValue, message.rawValue = $util.newBuffer($util.base64.length(object.rawValue)), 0); - else if (object.rawValue.length >= 0) - message.rawValue = object.rawValue; - if (object.rawTimestampMicros != null) - if ($util.Long) - (message.rawTimestampMicros = $util.Long.fromValue(object.rawTimestampMicros)).unsigned = false; - else if (typeof object.rawTimestampMicros === "string") - message.rawTimestampMicros = parseInt(object.rawTimestampMicros, 10); - else if (typeof object.rawTimestampMicros === "number") - message.rawTimestampMicros = object.rawTimestampMicros; - else if (typeof object.rawTimestampMicros === "object") - message.rawTimestampMicros = new $util.LongBits(object.rawTimestampMicros.low >>> 0, object.rawTimestampMicros.high >>> 0).toNumber(); - if (object.bytesValue != null) - if (typeof object.bytesValue === "string") - $util.base64.decode(object.bytesValue, message.bytesValue = $util.newBuffer($util.base64.length(object.bytesValue)), 0); - else if (object.bytesValue.length >= 0) - message.bytesValue = object.bytesValue; - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - if (object.intValue != null) - if ($util.Long) - (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; - else if (typeof object.intValue === "string") - message.intValue = parseInt(object.intValue, 10); - else if (typeof object.intValue === "number") - message.intValue = object.intValue; - else if (typeof object.intValue === "object") - message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); - if (object.boolValue != null) - message.boolValue = Boolean(object.boolValue); - if (object.floatValue != null) - message.floatValue = Number(object.floatValue); - if (object.timestampValue != null) { - if (typeof object.timestampValue !== "object") - throw TypeError(".google.bigtable.v2.Value.timestampValue: object expected"); - message.timestampValue = $root.google.protobuf.Timestamp.fromObject(object.timestampValue); - } - if (object.dateValue != null) { - if (typeof object.dateValue !== "object") - throw TypeError(".google.bigtable.v2.Value.dateValue: object expected"); - message.dateValue = $root.google.type.Date.fromObject(object.dateValue); - } - if (object.arrayValue != null) { - if (typeof object.arrayValue !== "object") - throw TypeError(".google.bigtable.v2.Value.arrayValue: object expected"); - message.arrayValue = $root.google.bigtable.v2.ArrayValue.fromObject(object.arrayValue); + }; + + /** + * Converts this Heartbeat to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @instance + * @returns {Object.} JSON object + */ + Heartbeat.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Heartbeat + * @function getTypeUrl + * @memberof google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Heartbeat.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.Heartbeat"; + }; + + return Heartbeat; + })(); + + ReadChangeStreamResponse.CloseStream = (function() { + + /** + * Properties of a CloseStream. + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @interface ICloseStream + * @property {google.rpc.IStatus|null} [status] CloseStream status + * @property {Array.|null} [continuationTokens] CloseStream continuationTokens + * @property {Array.|null} [newPartitions] CloseStream newPartitions + */ + + /** + * Constructs a new CloseStream. + * @memberof google.bigtable.v2.ReadChangeStreamResponse + * @classdesc Represents a CloseStream. + * @implements ICloseStream + * @constructor + * @param {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream=} [properties] Properties to set + */ + function CloseStream(properties) { + this.continuationTokens = []; + this.newPartitions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Value - * @static - * @param {google.bigtable.v2.Value} message Value - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Value.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.type = null; - if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { - object.bytesValue = options.bytes === String ? $util.base64.encode(message.bytesValue, 0, message.bytesValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesValue) : message.bytesValue; - if (options.oneofs) - object.kind = "bytesValue"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.kind = "stringValue"; - } - if (message.arrayValue != null && message.hasOwnProperty("arrayValue")) { - object.arrayValue = $root.google.bigtable.v2.ArrayValue.toObject(message.arrayValue, options); - if (options.oneofs) - object.kind = "arrayValue"; - } - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (typeof message.intValue === "number") - object.intValue = options.longs === String ? String(message.intValue) : message.intValue; - else - object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; - if (options.oneofs) - object.kind = "intValue"; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = $root.google.bigtable.v2.Type.toObject(message.type, options); - if (message.rawValue != null && message.hasOwnProperty("rawValue")) { - object.rawValue = options.bytes === String ? $util.base64.encode(message.rawValue, 0, message.rawValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.rawValue) : message.rawValue; - if (options.oneofs) - object.kind = "rawValue"; - } - if (message.rawTimestampMicros != null && message.hasOwnProperty("rawTimestampMicros")) { - if (typeof message.rawTimestampMicros === "number") - object.rawTimestampMicros = options.longs === String ? String(message.rawTimestampMicros) : message.rawTimestampMicros; - else - object.rawTimestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.rawTimestampMicros) : options.longs === Number ? new $util.LongBits(message.rawTimestampMicros.low >>> 0, message.rawTimestampMicros.high >>> 0).toNumber() : message.rawTimestampMicros; - if (options.oneofs) - object.kind = "rawTimestampMicros"; - } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - object.boolValue = message.boolValue; - if (options.oneofs) - object.kind = "boolValue"; - } - if (message.floatValue != null && message.hasOwnProperty("floatValue")) { - object.floatValue = options.json && !isFinite(message.floatValue) ? String(message.floatValue) : message.floatValue; - if (options.oneofs) - object.kind = "floatValue"; - } - if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) { - object.timestampValue = $root.google.protobuf.Timestamp.toObject(message.timestampValue, options); - if (options.oneofs) - object.kind = "timestampValue"; - } - if (message.dateValue != null && message.hasOwnProperty("dateValue")) { - object.dateValue = $root.google.type.Date.toObject(message.dateValue, options); - if (options.oneofs) - object.kind = "dateValue"; - } - return object; - }; + /** + * CloseStream status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @instance + */ + CloseStream.prototype.status = null; - /** - * Converts this Value to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Value - * @instance - * @returns {Object.} JSON object - */ - Value.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * CloseStream continuationTokens. + * @member {Array.} continuationTokens + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @instance + */ + CloseStream.prototype.continuationTokens = $util.emptyArray; - /** - * Gets the default type url for Value - * @function getTypeUrl - * @memberof google.bigtable.v2.Value - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Value"; - }; + /** + * CloseStream newPartitions. + * @member {Array.} newPartitions + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @instance + */ + CloseStream.prototype.newPartitions = $util.emptyArray; - return Value; + /** + * Creates a new CloseStream instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} CloseStream instance + */ + CloseStream.create = function create(properties) { + return new CloseStream(properties); + }; + + /** + * Encodes the specified CloseStream message. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream} message CloseStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloseStream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.continuationTokens != null && message.continuationTokens.length) + for (var i = 0; i < message.continuationTokens.length; ++i) + $root.google.bigtable.v2.StreamContinuationToken.encode(message.continuationTokens[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.newPartitions != null && message.newPartitions.length) + for (var i = 0; i < message.newPartitions.length; ++i) + $root.google.bigtable.v2.StreamPartition.encode(message.newPartitions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CloseStream message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadChangeStreamResponse.CloseStream.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.ICloseStream} message CloseStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloseStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CloseStream message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} CloseStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloseStream.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.continuationTokens && message.continuationTokens.length)) + message.continuationTokens = []; + message.continuationTokens.push($root.google.bigtable.v2.StreamContinuationToken.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.newPartitions && message.newPartitions.length)) + message.newPartitions = []; + message.newPartitions.push($root.google.bigtable.v2.StreamPartition.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CloseStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} CloseStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloseStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CloseStream message. + * @function verify + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CloseStream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + if (message.continuationTokens != null && message.hasOwnProperty("continuationTokens")) { + if (!Array.isArray(message.continuationTokens)) + return "continuationTokens: array expected"; + for (var i = 0; i < message.continuationTokens.length; ++i) { + var error = $root.google.bigtable.v2.StreamContinuationToken.verify(message.continuationTokens[i]); + if (error) + return "continuationTokens." + error; + } + } + if (message.newPartitions != null && message.hasOwnProperty("newPartitions")) { + if (!Array.isArray(message.newPartitions)) + return "newPartitions: array expected"; + for (var i = 0; i < message.newPartitions.length; ++i) { + var error = $root.google.bigtable.v2.StreamPartition.verify(message.newPartitions[i]); + if (error) + return "newPartitions." + error; + } + } + return null; + }; + + /** + * Creates a CloseStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} CloseStream + */ + CloseStream.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream) + return object; + var message = new $root.google.bigtable.v2.ReadChangeStreamResponse.CloseStream(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + if (object.continuationTokens) { + if (!Array.isArray(object.continuationTokens)) + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.continuationTokens: array expected"); + message.continuationTokens = []; + for (var i = 0; i < object.continuationTokens.length; ++i) { + if (typeof object.continuationTokens[i] !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.continuationTokens: object expected"); + message.continuationTokens[i] = $root.google.bigtable.v2.StreamContinuationToken.fromObject(object.continuationTokens[i]); + } + } + if (object.newPartitions) { + if (!Array.isArray(object.newPartitions)) + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.newPartitions: array expected"); + message.newPartitions = []; + for (var i = 0; i < object.newPartitions.length; ++i) { + if (typeof object.newPartitions[i] !== "object") + throw TypeError(".google.bigtable.v2.ReadChangeStreamResponse.CloseStream.newPartitions: object expected"); + message.newPartitions[i] = $root.google.bigtable.v2.StreamPartition.fromObject(object.newPartitions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a CloseStream message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {google.bigtable.v2.ReadChangeStreamResponse.CloseStream} message CloseStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CloseStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.continuationTokens = []; + object.newPartitions = []; + } + if (options.defaults) + object.status = null; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + if (message.continuationTokens && message.continuationTokens.length) { + object.continuationTokens = []; + for (var j = 0; j < message.continuationTokens.length; ++j) + object.continuationTokens[j] = $root.google.bigtable.v2.StreamContinuationToken.toObject(message.continuationTokens[j], options); + } + if (message.newPartitions && message.newPartitions.length) { + object.newPartitions = []; + for (var j = 0; j < message.newPartitions.length; ++j) + object.newPartitions[j] = $root.google.bigtable.v2.StreamPartition.toObject(message.newPartitions[j], options); + } + return object; + }; + + /** + * Converts this CloseStream to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @instance + * @returns {Object.} JSON object + */ + CloseStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CloseStream + * @function getTypeUrl + * @memberof google.bigtable.v2.ReadChangeStreamResponse.CloseStream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CloseStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ReadChangeStreamResponse.CloseStream"; + }; + + return CloseStream; + })(); + + return ReadChangeStreamResponse; })(); - v2.ArrayValue = (function() { + v2.ExecuteQueryRequest = (function() { /** - * Properties of an ArrayValue. + * Properties of an ExecuteQueryRequest. * @memberof google.bigtable.v2 - * @interface IArrayValue - * @property {Array.|null} [values] ArrayValue values + * @interface IExecuteQueryRequest + * @property {string|null} [instanceName] ExecuteQueryRequest instanceName + * @property {string|null} [appProfileId] ExecuteQueryRequest appProfileId + * @property {string|null} [query] ExecuteQueryRequest query + * @property {Uint8Array|null} [preparedQuery] ExecuteQueryRequest preparedQuery + * @property {google.bigtable.v2.IProtoFormat|null} [protoFormat] ExecuteQueryRequest protoFormat + * @property {Uint8Array|null} [resumeToken] ExecuteQueryRequest resumeToken + * @property {Object.|null} [params] ExecuteQueryRequest params */ /** - * Constructs a new ArrayValue. + * Constructs a new ExecuteQueryRequest. * @memberof google.bigtable.v2 - * @classdesc Represents an ArrayValue. - * @implements IArrayValue + * @classdesc Represents an ExecuteQueryRequest. + * @implements IExecuteQueryRequest * @constructor - * @param {google.bigtable.v2.IArrayValue=} [properties] Properties to set + * @param {google.bigtable.v2.IExecuteQueryRequest=} [properties] Properties to set */ - function ArrayValue(properties) { - this.values = []; + function ExecuteQueryRequest(properties) { + this.params = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53076,80 +53435,197 @@ } /** - * ArrayValue values. - * @member {Array.} values - * @memberof google.bigtable.v2.ArrayValue + * ExecuteQueryRequest instanceName. + * @member {string} instanceName + * @memberof google.bigtable.v2.ExecuteQueryRequest * @instance */ - ArrayValue.prototype.values = $util.emptyArray; + ExecuteQueryRequest.prototype.instanceName = ""; /** - * Creates a new ArrayValue instance using the specified properties. + * ExecuteQueryRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.ExecuteQueryRequest + * @instance + */ + ExecuteQueryRequest.prototype.appProfileId = ""; + + /** + * ExecuteQueryRequest query. + * @member {string} query + * @memberof google.bigtable.v2.ExecuteQueryRequest + * @instance + */ + ExecuteQueryRequest.prototype.query = ""; + + /** + * ExecuteQueryRequest preparedQuery. + * @member {Uint8Array} preparedQuery + * @memberof google.bigtable.v2.ExecuteQueryRequest + * @instance + */ + ExecuteQueryRequest.prototype.preparedQuery = $util.newBuffer([]); + + /** + * ExecuteQueryRequest protoFormat. + * @member {google.bigtable.v2.IProtoFormat|null|undefined} protoFormat + * @memberof google.bigtable.v2.ExecuteQueryRequest + * @instance + */ + ExecuteQueryRequest.prototype.protoFormat = null; + + /** + * ExecuteQueryRequest resumeToken. + * @member {Uint8Array} resumeToken + * @memberof google.bigtable.v2.ExecuteQueryRequest + * @instance + */ + ExecuteQueryRequest.prototype.resumeToken = $util.newBuffer([]); + + /** + * ExecuteQueryRequest params. + * @member {Object.} params + * @memberof google.bigtable.v2.ExecuteQueryRequest + * @instance + */ + ExecuteQueryRequest.prototype.params = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExecuteQueryRequest dataFormat. + * @member {"protoFormat"|undefined} dataFormat + * @memberof google.bigtable.v2.ExecuteQueryRequest + * @instance + */ + Object.defineProperty(ExecuteQueryRequest.prototype, "dataFormat", { + get: $util.oneOfGetter($oneOfFields = ["protoFormat"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecuteQueryRequest instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static - * @param {google.bigtable.v2.IArrayValue=} [properties] Properties to set - * @returns {google.bigtable.v2.ArrayValue} ArrayValue instance + * @param {google.bigtable.v2.IExecuteQueryRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.ExecuteQueryRequest} ExecuteQueryRequest instance */ - ArrayValue.create = function create(properties) { - return new ArrayValue(properties); + ExecuteQueryRequest.create = function create(properties) { + return new ExecuteQueryRequest(properties); }; /** - * Encodes the specified ArrayValue message. Does not implicitly {@link google.bigtable.v2.ArrayValue.verify|verify} messages. + * Encodes the specified ExecuteQueryRequest message. Does not implicitly {@link google.bigtable.v2.ExecuteQueryRequest.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static - * @param {google.bigtable.v2.IArrayValue} message ArrayValue message or plain object to encode + * @param {google.bigtable.v2.IExecuteQueryRequest} message ExecuteQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArrayValue.encode = function encode(message, writer) { + ExecuteQueryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.google.bigtable.v2.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instanceName != null && Object.hasOwnProperty.call(message, "instanceName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.instanceName); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.query); + if (message.protoFormat != null && Object.hasOwnProperty.call(message, "protoFormat")) + $root.google.bigtable.v2.ProtoFormat.encode(message.protoFormat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.bigtable.v2.Value.encode(message.params[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.resumeToken != null && Object.hasOwnProperty.call(message, "resumeToken")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.resumeToken); + if (message.preparedQuery != null && Object.hasOwnProperty.call(message, "preparedQuery")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.preparedQuery); return writer; }; /** - * Encodes the specified ArrayValue message, length delimited. Does not implicitly {@link google.bigtable.v2.ArrayValue.verify|verify} messages. + * Encodes the specified ExecuteQueryRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.ExecuteQueryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static - * @param {google.bigtable.v2.IArrayValue} message ArrayValue message or plain object to encode + * @param {google.bigtable.v2.IExecuteQueryRequest} message ExecuteQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ArrayValue.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ArrayValue message from the specified reader or buffer. + * Decodes an ExecuteQueryRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ArrayValue} ArrayValue + * @returns {google.bigtable.v2.ExecuteQueryRequest} ExecuteQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArrayValue.decode = function decode(reader, length, error) { + ExecuteQueryRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ArrayValue(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ExecuteQueryRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.bigtable.v2.Value.decode(reader, reader.uint32())); + message.instanceName = reader.string(); + break; + } + case 2: { + message.appProfileId = reader.string(); + break; + } + case 3: { + message.query = reader.string(); + break; + } + case 9: { + message.preparedQuery = reader.bytes(); + break; + } + case 4: { + message.protoFormat = $root.google.bigtable.v2.ProtoFormat.decode(reader, reader.uint32()); + break; + } + case 8: { + message.resumeToken = reader.bytes(); + break; + } + case 7: { + if (message.params === $util.emptyObject) + message.params = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; } default: @@ -53161,142 +53637,221 @@ }; /** - * Decodes an ArrayValue message from the specified reader or buffer, length delimited. + * Decodes an ExecuteQueryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ArrayValue} ArrayValue + * @returns {google.bigtable.v2.ExecuteQueryRequest} ExecuteQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ArrayValue.decodeDelimited = function decodeDelimited(reader) { + ExecuteQueryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ArrayValue message. + * Verifies an ExecuteQueryRequest message. * @function verify - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ArrayValue.verify = function verify(message) { + ExecuteQueryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.google.bigtable.v2.Value.verify(message.values[i]); + var properties = {}; + if (message.instanceName != null && message.hasOwnProperty("instanceName")) + if (!$util.isString(message.instanceName)) + return "instanceName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; + if (message.preparedQuery != null && message.hasOwnProperty("preparedQuery")) + if (!(message.preparedQuery && typeof message.preparedQuery.length === "number" || $util.isString(message.preparedQuery))) + return "preparedQuery: buffer expected"; + if (message.protoFormat != null && message.hasOwnProperty("protoFormat")) { + properties.dataFormat = 1; + { + var error = $root.google.bigtable.v2.ProtoFormat.verify(message.protoFormat); if (error) - return "values." + error; + return "protoFormat." + error; + } + } + if (message.resumeToken != null && message.hasOwnProperty("resumeToken")) + if (!(message.resumeToken && typeof message.resumeToken.length === "number" || $util.isString(message.resumeToken))) + return "resumeToken: buffer expected"; + if (message.params != null && message.hasOwnProperty("params")) { + if (!$util.isObject(message.params)) + return "params: object expected"; + var key = Object.keys(message.params); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.bigtable.v2.Value.verify(message.params[key[i]]); + if (error) + return "params." + error; } } return null; }; /** - * Creates an ArrayValue message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteQueryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ArrayValue} ArrayValue + * @returns {google.bigtable.v2.ExecuteQueryRequest} ExecuteQueryRequest */ - ArrayValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ArrayValue) + ExecuteQueryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ExecuteQueryRequest) return object; - var message = new $root.google.bigtable.v2.ArrayValue(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.bigtable.v2.ArrayValue.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".google.bigtable.v2.ArrayValue.values: object expected"); - message.values[i] = $root.google.bigtable.v2.Value.fromObject(object.values[i]); + var message = new $root.google.bigtable.v2.ExecuteQueryRequest(); + if (object.instanceName != null) + message.instanceName = String(object.instanceName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + if (object.query != null) + message.query = String(object.query); + if (object.preparedQuery != null) + if (typeof object.preparedQuery === "string") + $util.base64.decode(object.preparedQuery, message.preparedQuery = $util.newBuffer($util.base64.length(object.preparedQuery)), 0); + else if (object.preparedQuery.length >= 0) + message.preparedQuery = object.preparedQuery; + if (object.protoFormat != null) { + if (typeof object.protoFormat !== "object") + throw TypeError(".google.bigtable.v2.ExecuteQueryRequest.protoFormat: object expected"); + message.protoFormat = $root.google.bigtable.v2.ProtoFormat.fromObject(object.protoFormat); + } + if (object.resumeToken != null) + if (typeof object.resumeToken === "string") + $util.base64.decode(object.resumeToken, message.resumeToken = $util.newBuffer($util.base64.length(object.resumeToken)), 0); + else if (object.resumeToken.length >= 0) + message.resumeToken = object.resumeToken; + if (object.params) { + if (typeof object.params !== "object") + throw TypeError(".google.bigtable.v2.ExecuteQueryRequest.params: object expected"); + message.params = {}; + for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i) { + if (typeof object.params[keys[i]] !== "object") + throw TypeError(".google.bigtable.v2.ExecuteQueryRequest.params: object expected"); + message.params[keys[i]] = $root.google.bigtable.v2.Value.fromObject(object.params[keys[i]]); } } return message; }; /** - * Creates a plain object from an ArrayValue message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteQueryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static - * @param {google.bigtable.v2.ArrayValue} message ArrayValue + * @param {google.bigtable.v2.ExecuteQueryRequest} message ExecuteQueryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ArrayValue.toObject = function toObject(message, options) { + ExecuteQueryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = $root.google.bigtable.v2.Value.toObject(message.values[j], options); + if (options.objects || options.defaults) + object.params = {}; + if (options.defaults) { + object.instanceName = ""; + object.appProfileId = ""; + object.query = ""; + if (options.bytes === String) + object.resumeToken = ""; + else { + object.resumeToken = []; + if (options.bytes !== Array) + object.resumeToken = $util.newBuffer(object.resumeToken); + } + if (options.bytes === String) + object.preparedQuery = ""; + else { + object.preparedQuery = []; + if (options.bytes !== Array) + object.preparedQuery = $util.newBuffer(object.preparedQuery); + } + } + if (message.instanceName != null && message.hasOwnProperty("instanceName")) + object.instanceName = message.instanceName; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + if (message.query != null && message.hasOwnProperty("query")) + object.query = message.query; + if (message.protoFormat != null && message.hasOwnProperty("protoFormat")) { + object.protoFormat = $root.google.bigtable.v2.ProtoFormat.toObject(message.protoFormat, options); + if (options.oneofs) + object.dataFormat = "protoFormat"; + } + var keys2; + if (message.params && (keys2 = Object.keys(message.params)).length) { + object.params = {}; + for (var j = 0; j < keys2.length; ++j) + object.params[keys2[j]] = $root.google.bigtable.v2.Value.toObject(message.params[keys2[j]], options); } + if (message.resumeToken != null && message.hasOwnProperty("resumeToken")) + object.resumeToken = options.bytes === String ? $util.base64.encode(message.resumeToken, 0, message.resumeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.resumeToken) : message.resumeToken; + if (message.preparedQuery != null && message.hasOwnProperty("preparedQuery")) + object.preparedQuery = options.bytes === String ? $util.base64.encode(message.preparedQuery, 0, message.preparedQuery.length) : options.bytes === Array ? Array.prototype.slice.call(message.preparedQuery) : message.preparedQuery; return object; }; /** - * Converts this ArrayValue to JSON. + * Converts this ExecuteQueryRequest to JSON. * @function toJSON - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @instance * @returns {Object.} JSON object */ - ArrayValue.prototype.toJSON = function toJSON() { + ExecuteQueryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ArrayValue + * Gets the default type url for ExecuteQueryRequest * @function getTypeUrl - * @memberof google.bigtable.v2.ArrayValue + * @memberof google.bigtable.v2.ExecuteQueryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ArrayValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteQueryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ArrayValue"; + return typeUrlPrefix + "/google.bigtable.v2.ExecuteQueryRequest"; }; - return ArrayValue; + return ExecuteQueryRequest; })(); - v2.RowRange = (function() { + v2.ExecuteQueryResponse = (function() { /** - * Properties of a RowRange. + * Properties of an ExecuteQueryResponse. * @memberof google.bigtable.v2 - * @interface IRowRange - * @property {Uint8Array|null} [startKeyClosed] RowRange startKeyClosed - * @property {Uint8Array|null} [startKeyOpen] RowRange startKeyOpen - * @property {Uint8Array|null} [endKeyOpen] RowRange endKeyOpen - * @property {Uint8Array|null} [endKeyClosed] RowRange endKeyClosed + * @interface IExecuteQueryResponse + * @property {google.bigtable.v2.IResultSetMetadata|null} [metadata] ExecuteQueryResponse metadata + * @property {google.bigtable.v2.IPartialResultSet|null} [results] ExecuteQueryResponse results */ /** - * Constructs a new RowRange. + * Constructs a new ExecuteQueryResponse. * @memberof google.bigtable.v2 - * @classdesc Represents a RowRange. - * @implements IRowRange + * @classdesc Represents an ExecuteQueryResponse. + * @implements IExecuteQueryResponse * @constructor - * @param {google.bigtable.v2.IRowRange=} [properties] Properties to set + * @param {google.bigtable.v2.IExecuteQueryResponse=} [properties] Properties to set */ - function RowRange(properties) { + function ExecuteQueryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53304,144 +53859,105 @@ } /** - * RowRange startKeyClosed. - * @member {Uint8Array|null|undefined} startKeyClosed - * @memberof google.bigtable.v2.RowRange - * @instance - */ - RowRange.prototype.startKeyClosed = null; - - /** - * RowRange startKeyOpen. - * @member {Uint8Array|null|undefined} startKeyOpen - * @memberof google.bigtable.v2.RowRange - * @instance - */ - RowRange.prototype.startKeyOpen = null; - - /** - * RowRange endKeyOpen. - * @member {Uint8Array|null|undefined} endKeyOpen - * @memberof google.bigtable.v2.RowRange + * ExecuteQueryResponse metadata. + * @member {google.bigtable.v2.IResultSetMetadata|null|undefined} metadata + * @memberof google.bigtable.v2.ExecuteQueryResponse * @instance */ - RowRange.prototype.endKeyOpen = null; + ExecuteQueryResponse.prototype.metadata = null; /** - * RowRange endKeyClosed. - * @member {Uint8Array|null|undefined} endKeyClosed - * @memberof google.bigtable.v2.RowRange + * ExecuteQueryResponse results. + * @member {google.bigtable.v2.IPartialResultSet|null|undefined} results + * @memberof google.bigtable.v2.ExecuteQueryResponse * @instance */ - RowRange.prototype.endKeyClosed = null; + ExecuteQueryResponse.prototype.results = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * RowRange startKey. - * @member {"startKeyClosed"|"startKeyOpen"|undefined} startKey - * @memberof google.bigtable.v2.RowRange - * @instance - */ - Object.defineProperty(RowRange.prototype, "startKey", { - get: $util.oneOfGetter($oneOfFields = ["startKeyClosed", "startKeyOpen"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * RowRange endKey. - * @member {"endKeyOpen"|"endKeyClosed"|undefined} endKey - * @memberof google.bigtable.v2.RowRange + * ExecuteQueryResponse response. + * @member {"metadata"|"results"|undefined} response + * @memberof google.bigtable.v2.ExecuteQueryResponse * @instance */ - Object.defineProperty(RowRange.prototype, "endKey", { - get: $util.oneOfGetter($oneOfFields = ["endKeyOpen", "endKeyClosed"]), + Object.defineProperty(ExecuteQueryResponse.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["metadata", "results"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new RowRange instance using the specified properties. + * Creates a new ExecuteQueryResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static - * @param {google.bigtable.v2.IRowRange=} [properties] Properties to set - * @returns {google.bigtable.v2.RowRange} RowRange instance + * @param {google.bigtable.v2.IExecuteQueryResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.ExecuteQueryResponse} ExecuteQueryResponse instance */ - RowRange.create = function create(properties) { - return new RowRange(properties); + ExecuteQueryResponse.create = function create(properties) { + return new ExecuteQueryResponse(properties); }; /** - * Encodes the specified RowRange message. Does not implicitly {@link google.bigtable.v2.RowRange.verify|verify} messages. + * Encodes the specified ExecuteQueryResponse message. Does not implicitly {@link google.bigtable.v2.ExecuteQueryResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static - * @param {google.bigtable.v2.IRowRange} message RowRange message or plain object to encode + * @param {google.bigtable.v2.IExecuteQueryResponse} message ExecuteQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowRange.encode = function encode(message, writer) { + ExecuteQueryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startKeyClosed != null && Object.hasOwnProperty.call(message, "startKeyClosed")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.startKeyClosed); - if (message.startKeyOpen != null && Object.hasOwnProperty.call(message, "startKeyOpen")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.startKeyOpen); - if (message.endKeyOpen != null && Object.hasOwnProperty.call(message, "endKeyOpen")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.endKeyOpen); - if (message.endKeyClosed != null && Object.hasOwnProperty.call(message, "endKeyClosed")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.endKeyClosed); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.bigtable.v2.ResultSetMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.results != null && Object.hasOwnProperty.call(message, "results")) + $root.google.bigtable.v2.PartialResultSet.encode(message.results, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RowRange message, length delimited. Does not implicitly {@link google.bigtable.v2.RowRange.verify|verify} messages. + * Encodes the specified ExecuteQueryResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.ExecuteQueryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static - * @param {google.bigtable.v2.IRowRange} message RowRange message or plain object to encode + * @param {google.bigtable.v2.IExecuteQueryResponse} message ExecuteQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowRange.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowRange message from the specified reader or buffer. + * Decodes an ExecuteQueryResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.RowRange} RowRange + * @returns {google.bigtable.v2.ExecuteQueryResponse} ExecuteQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowRange.decode = function decode(reader, length, error) { + ExecuteQueryResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowRange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ExecuteQueryResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.startKeyClosed = reader.bytes(); + message.metadata = $root.google.bigtable.v2.ResultSetMetadata.decode(reader, reader.uint32()); break; } case 2: { - message.startKeyOpen = reader.bytes(); - break; - } - case 3: { - message.endKeyOpen = reader.bytes(); - break; - } - case 4: { - message.endKeyClosed = reader.bytes(); + message.results = $root.google.bigtable.v2.PartialResultSet.decode(reader, reader.uint32()); break; } default: @@ -53453,181 +53969,157 @@ }; /** - * Decodes a RowRange message from the specified reader or buffer, length delimited. + * Decodes an ExecuteQueryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.RowRange} RowRange + * @returns {google.bigtable.v2.ExecuteQueryResponse} ExecuteQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowRange.decodeDelimited = function decodeDelimited(reader) { + ExecuteQueryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RowRange message. + * Verifies an ExecuteQueryResponse message. * @function verify - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RowRange.verify = function verify(message) { + ExecuteQueryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.startKeyClosed != null && message.hasOwnProperty("startKeyClosed")) { - properties.startKey = 1; - if (!(message.startKeyClosed && typeof message.startKeyClosed.length === "number" || $util.isString(message.startKeyClosed))) - return "startKeyClosed: buffer expected"; - } - if (message.startKeyOpen != null && message.hasOwnProperty("startKeyOpen")) { - if (properties.startKey === 1) - return "startKey: multiple values"; - properties.startKey = 1; - if (!(message.startKeyOpen && typeof message.startKeyOpen.length === "number" || $util.isString(message.startKeyOpen))) - return "startKeyOpen: buffer expected"; - } - if (message.endKeyOpen != null && message.hasOwnProperty("endKeyOpen")) { - properties.endKey = 1; - if (!(message.endKeyOpen && typeof message.endKeyOpen.length === "number" || $util.isString(message.endKeyOpen))) - return "endKeyOpen: buffer expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + properties.response = 1; + { + var error = $root.google.bigtable.v2.ResultSetMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } } - if (message.endKeyClosed != null && message.hasOwnProperty("endKeyClosed")) { - if (properties.endKey === 1) - return "endKey: multiple values"; - properties.endKey = 1; - if (!(message.endKeyClosed && typeof message.endKeyClosed.length === "number" || $util.isString(message.endKeyClosed))) - return "endKeyClosed: buffer expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + { + var error = $root.google.bigtable.v2.PartialResultSet.verify(message.results); + if (error) + return "results." + error; + } } return null; }; /** - * Creates a RowRange message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteQueryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.RowRange} RowRange + * @returns {google.bigtable.v2.ExecuteQueryResponse} ExecuteQueryResponse */ - RowRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.RowRange) + ExecuteQueryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ExecuteQueryResponse) return object; - var message = new $root.google.bigtable.v2.RowRange(); - if (object.startKeyClosed != null) - if (typeof object.startKeyClosed === "string") - $util.base64.decode(object.startKeyClosed, message.startKeyClosed = $util.newBuffer($util.base64.length(object.startKeyClosed)), 0); - else if (object.startKeyClosed.length >= 0) - message.startKeyClosed = object.startKeyClosed; - if (object.startKeyOpen != null) - if (typeof object.startKeyOpen === "string") - $util.base64.decode(object.startKeyOpen, message.startKeyOpen = $util.newBuffer($util.base64.length(object.startKeyOpen)), 0); - else if (object.startKeyOpen.length >= 0) - message.startKeyOpen = object.startKeyOpen; - if (object.endKeyOpen != null) - if (typeof object.endKeyOpen === "string") - $util.base64.decode(object.endKeyOpen, message.endKeyOpen = $util.newBuffer($util.base64.length(object.endKeyOpen)), 0); - else if (object.endKeyOpen.length >= 0) - message.endKeyOpen = object.endKeyOpen; - if (object.endKeyClosed != null) - if (typeof object.endKeyClosed === "string") - $util.base64.decode(object.endKeyClosed, message.endKeyClosed = $util.newBuffer($util.base64.length(object.endKeyClosed)), 0); - else if (object.endKeyClosed.length >= 0) - message.endKeyClosed = object.endKeyClosed; + var message = new $root.google.bigtable.v2.ExecuteQueryResponse(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.bigtable.v2.ExecuteQueryResponse.metadata: object expected"); + message.metadata = $root.google.bigtable.v2.ResultSetMetadata.fromObject(object.metadata); + } + if (object.results != null) { + if (typeof object.results !== "object") + throw TypeError(".google.bigtable.v2.ExecuteQueryResponse.results: object expected"); + message.results = $root.google.bigtable.v2.PartialResultSet.fromObject(object.results); + } return message; }; /** - * Creates a plain object from a RowRange message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteQueryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static - * @param {google.bigtable.v2.RowRange} message RowRange + * @param {google.bigtable.v2.ExecuteQueryResponse} message ExecuteQueryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowRange.toObject = function toObject(message, options) { + ExecuteQueryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.startKeyClosed != null && message.hasOwnProperty("startKeyClosed")) { - object.startKeyClosed = options.bytes === String ? $util.base64.encode(message.startKeyClosed, 0, message.startKeyClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.startKeyClosed) : message.startKeyClosed; - if (options.oneofs) - object.startKey = "startKeyClosed"; - } - if (message.startKeyOpen != null && message.hasOwnProperty("startKeyOpen")) { - object.startKeyOpen = options.bytes === String ? $util.base64.encode(message.startKeyOpen, 0, message.startKeyOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.startKeyOpen) : message.startKeyOpen; - if (options.oneofs) - object.startKey = "startKeyOpen"; - } - if (message.endKeyOpen != null && message.hasOwnProperty("endKeyOpen")) { - object.endKeyOpen = options.bytes === String ? $util.base64.encode(message.endKeyOpen, 0, message.endKeyOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.endKeyOpen) : message.endKeyOpen; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + object.metadata = $root.google.bigtable.v2.ResultSetMetadata.toObject(message.metadata, options); if (options.oneofs) - object.endKey = "endKeyOpen"; + object.response = "metadata"; } - if (message.endKeyClosed != null && message.hasOwnProperty("endKeyClosed")) { - object.endKeyClosed = options.bytes === String ? $util.base64.encode(message.endKeyClosed, 0, message.endKeyClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.endKeyClosed) : message.endKeyClosed; + if (message.results != null && message.hasOwnProperty("results")) { + object.results = $root.google.bigtable.v2.PartialResultSet.toObject(message.results, options); if (options.oneofs) - object.endKey = "endKeyClosed"; + object.response = "results"; } return object; }; /** - * Converts this RowRange to JSON. + * Converts this ExecuteQueryResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @instance * @returns {Object.} JSON object */ - RowRange.prototype.toJSON = function toJSON() { + ExecuteQueryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RowRange + * Gets the default type url for ExecuteQueryResponse * @function getTypeUrl - * @memberof google.bigtable.v2.RowRange + * @memberof google.bigtable.v2.ExecuteQueryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RowRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExecuteQueryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.RowRange"; + return typeUrlPrefix + "/google.bigtable.v2.ExecuteQueryResponse"; }; - return RowRange; + return ExecuteQueryResponse; })(); - v2.RowSet = (function() { - - /** - * Properties of a RowSet. - * @memberof google.bigtable.v2 - * @interface IRowSet - * @property {Array.|null} [rowKeys] RowSet rowKeys - * @property {Array.|null} [rowRanges] RowSet rowRanges - */ + v2.PrepareQueryRequest = (function() { /** - * Constructs a new RowSet. + * Properties of a PrepareQueryRequest. * @memberof google.bigtable.v2 - * @classdesc Represents a RowSet. - * @implements IRowSet + * @interface IPrepareQueryRequest + * @property {string|null} [instanceName] PrepareQueryRequest instanceName + * @property {string|null} [appProfileId] PrepareQueryRequest appProfileId + * @property {string|null} [query] PrepareQueryRequest query + * @property {google.bigtable.v2.IProtoFormat|null} [protoFormat] PrepareQueryRequest protoFormat + * @property {Object.|null} [paramTypes] PrepareQueryRequest paramTypes + */ + + /** + * Constructs a new PrepareQueryRequest. + * @memberof google.bigtable.v2 + * @classdesc Represents a PrepareQueryRequest. + * @implements IPrepareQueryRequest * @constructor - * @param {google.bigtable.v2.IRowSet=} [properties] Properties to set + * @param {google.bigtable.v2.IPrepareQueryRequest=} [properties] Properties to set */ - function RowSet(properties) { - this.rowKeys = []; - this.rowRanges = []; + function PrepareQueryRequest(properties) { + this.paramTypes = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53635,97 +54127,169 @@ } /** - * RowSet rowKeys. - * @member {Array.} rowKeys - * @memberof google.bigtable.v2.RowSet + * PrepareQueryRequest instanceName. + * @member {string} instanceName + * @memberof google.bigtable.v2.PrepareQueryRequest * @instance */ - RowSet.prototype.rowKeys = $util.emptyArray; + PrepareQueryRequest.prototype.instanceName = ""; /** - * RowSet rowRanges. - * @member {Array.} rowRanges - * @memberof google.bigtable.v2.RowSet + * PrepareQueryRequest appProfileId. + * @member {string} appProfileId + * @memberof google.bigtable.v2.PrepareQueryRequest * @instance */ - RowSet.prototype.rowRanges = $util.emptyArray; + PrepareQueryRequest.prototype.appProfileId = ""; /** - * Creates a new RowSet instance using the specified properties. + * PrepareQueryRequest query. + * @member {string} query + * @memberof google.bigtable.v2.PrepareQueryRequest + * @instance + */ + PrepareQueryRequest.prototype.query = ""; + + /** + * PrepareQueryRequest protoFormat. + * @member {google.bigtable.v2.IProtoFormat|null|undefined} protoFormat + * @memberof google.bigtable.v2.PrepareQueryRequest + * @instance + */ + PrepareQueryRequest.prototype.protoFormat = null; + + /** + * PrepareQueryRequest paramTypes. + * @member {Object.} paramTypes + * @memberof google.bigtable.v2.PrepareQueryRequest + * @instance + */ + PrepareQueryRequest.prototype.paramTypes = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PrepareQueryRequest dataFormat. + * @member {"protoFormat"|undefined} dataFormat + * @memberof google.bigtable.v2.PrepareQueryRequest + * @instance + */ + Object.defineProperty(PrepareQueryRequest.prototype, "dataFormat", { + get: $util.oneOfGetter($oneOfFields = ["protoFormat"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PrepareQueryRequest instance using the specified properties. * @function create - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static - * @param {google.bigtable.v2.IRowSet=} [properties] Properties to set - * @returns {google.bigtable.v2.RowSet} RowSet instance + * @param {google.bigtable.v2.IPrepareQueryRequest=} [properties] Properties to set + * @returns {google.bigtable.v2.PrepareQueryRequest} PrepareQueryRequest instance */ - RowSet.create = function create(properties) { - return new RowSet(properties); + PrepareQueryRequest.create = function create(properties) { + return new PrepareQueryRequest(properties); }; /** - * Encodes the specified RowSet message. Does not implicitly {@link google.bigtable.v2.RowSet.verify|verify} messages. + * Encodes the specified PrepareQueryRequest message. Does not implicitly {@link google.bigtable.v2.PrepareQueryRequest.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static - * @param {google.bigtable.v2.IRowSet} message RowSet message or plain object to encode + * @param {google.bigtable.v2.IPrepareQueryRequest} message PrepareQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowSet.encode = function encode(message, writer) { + PrepareQueryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rowKeys != null && message.rowKeys.length) - for (var i = 0; i < message.rowKeys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowKeys[i]); - if (message.rowRanges != null && message.rowRanges.length) - for (var i = 0; i < message.rowRanges.length; ++i) - $root.google.bigtable.v2.RowRange.encode(message.rowRanges[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.instanceName != null && Object.hasOwnProperty.call(message, "instanceName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.instanceName); + if (message.appProfileId != null && Object.hasOwnProperty.call(message, "appProfileId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.appProfileId); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.query); + if (message.protoFormat != null && Object.hasOwnProperty.call(message, "protoFormat")) + $root.google.bigtable.v2.ProtoFormat.encode(message.protoFormat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.paramTypes != null && Object.hasOwnProperty.call(message, "paramTypes")) + for (var keys = Object.keys(message.paramTypes), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.bigtable.v2.Type.encode(message.paramTypes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified RowSet message, length delimited. Does not implicitly {@link google.bigtable.v2.RowSet.verify|verify} messages. + * Encodes the specified PrepareQueryRequest message, length delimited. Does not implicitly {@link google.bigtable.v2.PrepareQueryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static - * @param {google.bigtable.v2.IRowSet} message RowSet message or plain object to encode + * @param {google.bigtable.v2.IPrepareQueryRequest} message PrepareQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowSet.encodeDelimited = function encodeDelimited(message, writer) { + PrepareQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowSet message from the specified reader or buffer. + * Decodes a PrepareQueryRequest message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.RowSet} RowSet + * @returns {google.bigtable.v2.PrepareQueryRequest} PrepareQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowSet.decode = function decode(reader, length, error) { + PrepareQueryRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowSet(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PrepareQueryRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - if (!(message.rowKeys && message.rowKeys.length)) - message.rowKeys = []; - message.rowKeys.push(reader.bytes()); + message.instanceName = reader.string(); break; } case 2: { - if (!(message.rowRanges && message.rowRanges.length)) - message.rowRanges = []; - message.rowRanges.push($root.google.bigtable.v2.RowRange.decode(reader, reader.uint32())); + message.appProfileId = reader.string(); + break; + } + case 3: { + message.query = reader.string(); + break; + } + case 4: { + message.protoFormat = $root.google.bigtable.v2.ProtoFormat.decode(reader, reader.uint32()); + break; + } + case 6: { + if (message.paramTypes === $util.emptyObject) + message.paramTypes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.bigtable.v2.Type.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.paramTypes[key] = value; break; } default: @@ -53737,167 +54301,188 @@ }; /** - * Decodes a RowSet message from the specified reader or buffer, length delimited. + * Decodes a PrepareQueryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.RowSet} RowSet + * @returns {google.bigtable.v2.PrepareQueryRequest} PrepareQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowSet.decodeDelimited = function decodeDelimited(reader) { + PrepareQueryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RowSet message. + * Verifies a PrepareQueryRequest message. * @function verify - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RowSet.verify = function verify(message) { + PrepareQueryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rowKeys != null && message.hasOwnProperty("rowKeys")) { - if (!Array.isArray(message.rowKeys)) - return "rowKeys: array expected"; - for (var i = 0; i < message.rowKeys.length; ++i) - if (!(message.rowKeys[i] && typeof message.rowKeys[i].length === "number" || $util.isString(message.rowKeys[i]))) - return "rowKeys: buffer[] expected"; + var properties = {}; + if (message.instanceName != null && message.hasOwnProperty("instanceName")) + if (!$util.isString(message.instanceName)) + return "instanceName: string expected"; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + if (!$util.isString(message.appProfileId)) + return "appProfileId: string expected"; + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; + if (message.protoFormat != null && message.hasOwnProperty("protoFormat")) { + properties.dataFormat = 1; + { + var error = $root.google.bigtable.v2.ProtoFormat.verify(message.protoFormat); + if (error) + return "protoFormat." + error; + } } - if (message.rowRanges != null && message.hasOwnProperty("rowRanges")) { - if (!Array.isArray(message.rowRanges)) - return "rowRanges: array expected"; - for (var i = 0; i < message.rowRanges.length; ++i) { - var error = $root.google.bigtable.v2.RowRange.verify(message.rowRanges[i]); + if (message.paramTypes != null && message.hasOwnProperty("paramTypes")) { + if (!$util.isObject(message.paramTypes)) + return "paramTypes: object expected"; + var key = Object.keys(message.paramTypes); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.bigtable.v2.Type.verify(message.paramTypes[key[i]]); if (error) - return "rowRanges." + error; + return "paramTypes." + error; } } return null; }; /** - * Creates a RowSet message from a plain object. Also converts values to their respective internal types. + * Creates a PrepareQueryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.RowSet} RowSet + * @returns {google.bigtable.v2.PrepareQueryRequest} PrepareQueryRequest */ - RowSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.RowSet) + PrepareQueryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.PrepareQueryRequest) return object; - var message = new $root.google.bigtable.v2.RowSet(); - if (object.rowKeys) { - if (!Array.isArray(object.rowKeys)) - throw TypeError(".google.bigtable.v2.RowSet.rowKeys: array expected"); - message.rowKeys = []; - for (var i = 0; i < object.rowKeys.length; ++i) - if (typeof object.rowKeys[i] === "string") - $util.base64.decode(object.rowKeys[i], message.rowKeys[i] = $util.newBuffer($util.base64.length(object.rowKeys[i])), 0); - else if (object.rowKeys[i].length >= 0) - message.rowKeys[i] = object.rowKeys[i]; + var message = new $root.google.bigtable.v2.PrepareQueryRequest(); + if (object.instanceName != null) + message.instanceName = String(object.instanceName); + if (object.appProfileId != null) + message.appProfileId = String(object.appProfileId); + if (object.query != null) + message.query = String(object.query); + if (object.protoFormat != null) { + if (typeof object.protoFormat !== "object") + throw TypeError(".google.bigtable.v2.PrepareQueryRequest.protoFormat: object expected"); + message.protoFormat = $root.google.bigtable.v2.ProtoFormat.fromObject(object.protoFormat); } - if (object.rowRanges) { - if (!Array.isArray(object.rowRanges)) - throw TypeError(".google.bigtable.v2.RowSet.rowRanges: array expected"); - message.rowRanges = []; - for (var i = 0; i < object.rowRanges.length; ++i) { - if (typeof object.rowRanges[i] !== "object") - throw TypeError(".google.bigtable.v2.RowSet.rowRanges: object expected"); - message.rowRanges[i] = $root.google.bigtable.v2.RowRange.fromObject(object.rowRanges[i]); + if (object.paramTypes) { + if (typeof object.paramTypes !== "object") + throw TypeError(".google.bigtable.v2.PrepareQueryRequest.paramTypes: object expected"); + message.paramTypes = {}; + for (var keys = Object.keys(object.paramTypes), i = 0; i < keys.length; ++i) { + if (typeof object.paramTypes[keys[i]] !== "object") + throw TypeError(".google.bigtable.v2.PrepareQueryRequest.paramTypes: object expected"); + message.paramTypes[keys[i]] = $root.google.bigtable.v2.Type.fromObject(object.paramTypes[keys[i]]); } } return message; }; /** - * Creates a plain object from a RowSet message. Also converts values to other types if specified. + * Creates a plain object from a PrepareQueryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static - * @param {google.bigtable.v2.RowSet} message RowSet + * @param {google.bigtable.v2.PrepareQueryRequest} message PrepareQueryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowSet.toObject = function toObject(message, options) { + PrepareQueryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.rowKeys = []; - object.rowRanges = []; + if (options.objects || options.defaults) + object.paramTypes = {}; + if (options.defaults) { + object.instanceName = ""; + object.appProfileId = ""; + object.query = ""; } - if (message.rowKeys && message.rowKeys.length) { - object.rowKeys = []; - for (var j = 0; j < message.rowKeys.length; ++j) - object.rowKeys[j] = options.bytes === String ? $util.base64.encode(message.rowKeys[j], 0, message.rowKeys[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKeys[j]) : message.rowKeys[j]; + if (message.instanceName != null && message.hasOwnProperty("instanceName")) + object.instanceName = message.instanceName; + if (message.appProfileId != null && message.hasOwnProperty("appProfileId")) + object.appProfileId = message.appProfileId; + if (message.query != null && message.hasOwnProperty("query")) + object.query = message.query; + if (message.protoFormat != null && message.hasOwnProperty("protoFormat")) { + object.protoFormat = $root.google.bigtable.v2.ProtoFormat.toObject(message.protoFormat, options); + if (options.oneofs) + object.dataFormat = "protoFormat"; } - if (message.rowRanges && message.rowRanges.length) { - object.rowRanges = []; - for (var j = 0; j < message.rowRanges.length; ++j) - object.rowRanges[j] = $root.google.bigtable.v2.RowRange.toObject(message.rowRanges[j], options); + var keys2; + if (message.paramTypes && (keys2 = Object.keys(message.paramTypes)).length) { + object.paramTypes = {}; + for (var j = 0; j < keys2.length; ++j) + object.paramTypes[keys2[j]] = $root.google.bigtable.v2.Type.toObject(message.paramTypes[keys2[j]], options); } return object; }; /** - * Converts this RowSet to JSON. + * Converts this PrepareQueryRequest to JSON. * @function toJSON - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @instance * @returns {Object.} JSON object */ - RowSet.prototype.toJSON = function toJSON() { + PrepareQueryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RowSet + * Gets the default type url for PrepareQueryRequest * @function getTypeUrl - * @memberof google.bigtable.v2.RowSet + * @memberof google.bigtable.v2.PrepareQueryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RowSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrepareQueryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.RowSet"; + return typeUrlPrefix + "/google.bigtable.v2.PrepareQueryRequest"; }; - return RowSet; + return PrepareQueryRequest; })(); - v2.ColumnRange = (function() { + v2.PrepareQueryResponse = (function() { /** - * Properties of a ColumnRange. + * Properties of a PrepareQueryResponse. * @memberof google.bigtable.v2 - * @interface IColumnRange - * @property {string|null} [familyName] ColumnRange familyName - * @property {Uint8Array|null} [startQualifierClosed] ColumnRange startQualifierClosed - * @property {Uint8Array|null} [startQualifierOpen] ColumnRange startQualifierOpen - * @property {Uint8Array|null} [endQualifierClosed] ColumnRange endQualifierClosed - * @property {Uint8Array|null} [endQualifierOpen] ColumnRange endQualifierOpen + * @interface IPrepareQueryResponse + * @property {google.bigtable.v2.IResultSetMetadata|null} [metadata] PrepareQueryResponse metadata + * @property {Uint8Array|null} [preparedQuery] PrepareQueryResponse preparedQuery + * @property {google.protobuf.ITimestamp|null} [validUntil] PrepareQueryResponse validUntil */ /** - * Constructs a new ColumnRange. + * Constructs a new PrepareQueryResponse. * @memberof google.bigtable.v2 - * @classdesc Represents a ColumnRange. - * @implements IColumnRange + * @classdesc Represents a PrepareQueryResponse. + * @implements IPrepareQueryResponse * @constructor - * @param {google.bigtable.v2.IColumnRange=} [properties] Properties to set + * @param {google.bigtable.v2.IPrepareQueryResponse=} [properties] Properties to set */ - function ColumnRange(properties) { + function PrepareQueryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53905,158 +54490,105 @@ } /** - * ColumnRange familyName. - * @member {string} familyName - * @memberof google.bigtable.v2.ColumnRange - * @instance - */ - ColumnRange.prototype.familyName = ""; - - /** - * ColumnRange startQualifierClosed. - * @member {Uint8Array|null|undefined} startQualifierClosed - * @memberof google.bigtable.v2.ColumnRange - * @instance - */ - ColumnRange.prototype.startQualifierClosed = null; - - /** - * ColumnRange startQualifierOpen. - * @member {Uint8Array|null|undefined} startQualifierOpen - * @memberof google.bigtable.v2.ColumnRange - * @instance - */ - ColumnRange.prototype.startQualifierOpen = null; - - /** - * ColumnRange endQualifierClosed. - * @member {Uint8Array|null|undefined} endQualifierClosed - * @memberof google.bigtable.v2.ColumnRange - * @instance - */ - ColumnRange.prototype.endQualifierClosed = null; - - /** - * ColumnRange endQualifierOpen. - * @member {Uint8Array|null|undefined} endQualifierOpen - * @memberof google.bigtable.v2.ColumnRange + * PrepareQueryResponse metadata. + * @member {google.bigtable.v2.IResultSetMetadata|null|undefined} metadata + * @memberof google.bigtable.v2.PrepareQueryResponse * @instance */ - ColumnRange.prototype.endQualifierOpen = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + PrepareQueryResponse.prototype.metadata = null; /** - * ColumnRange startQualifier. - * @member {"startQualifierClosed"|"startQualifierOpen"|undefined} startQualifier - * @memberof google.bigtable.v2.ColumnRange + * PrepareQueryResponse preparedQuery. + * @member {Uint8Array} preparedQuery + * @memberof google.bigtable.v2.PrepareQueryResponse * @instance */ - Object.defineProperty(ColumnRange.prototype, "startQualifier", { - get: $util.oneOfGetter($oneOfFields = ["startQualifierClosed", "startQualifierOpen"]), - set: $util.oneOfSetter($oneOfFields) - }); + PrepareQueryResponse.prototype.preparedQuery = $util.newBuffer([]); /** - * ColumnRange endQualifier. - * @member {"endQualifierClosed"|"endQualifierOpen"|undefined} endQualifier - * @memberof google.bigtable.v2.ColumnRange + * PrepareQueryResponse validUntil. + * @member {google.protobuf.ITimestamp|null|undefined} validUntil + * @memberof google.bigtable.v2.PrepareQueryResponse * @instance */ - Object.defineProperty(ColumnRange.prototype, "endQualifier", { - get: $util.oneOfGetter($oneOfFields = ["endQualifierClosed", "endQualifierOpen"]), - set: $util.oneOfSetter($oneOfFields) - }); + PrepareQueryResponse.prototype.validUntil = null; /** - * Creates a new ColumnRange instance using the specified properties. + * Creates a new PrepareQueryResponse instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static - * @param {google.bigtable.v2.IColumnRange=} [properties] Properties to set - * @returns {google.bigtable.v2.ColumnRange} ColumnRange instance + * @param {google.bigtable.v2.IPrepareQueryResponse=} [properties] Properties to set + * @returns {google.bigtable.v2.PrepareQueryResponse} PrepareQueryResponse instance */ - ColumnRange.create = function create(properties) { - return new ColumnRange(properties); + PrepareQueryResponse.create = function create(properties) { + return new PrepareQueryResponse(properties); }; /** - * Encodes the specified ColumnRange message. Does not implicitly {@link google.bigtable.v2.ColumnRange.verify|verify} messages. + * Encodes the specified PrepareQueryResponse message. Does not implicitly {@link google.bigtable.v2.PrepareQueryResponse.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static - * @param {google.bigtable.v2.IColumnRange} message ColumnRange message or plain object to encode + * @param {google.bigtable.v2.IPrepareQueryResponse} message PrepareQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ColumnRange.encode = function encode(message, writer) { + PrepareQueryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); - if (message.startQualifierClosed != null && Object.hasOwnProperty.call(message, "startQualifierClosed")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.startQualifierClosed); - if (message.startQualifierOpen != null && Object.hasOwnProperty.call(message, "startQualifierOpen")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.startQualifierOpen); - if (message.endQualifierClosed != null && Object.hasOwnProperty.call(message, "endQualifierClosed")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.endQualifierClosed); - if (message.endQualifierOpen != null && Object.hasOwnProperty.call(message, "endQualifierOpen")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.endQualifierOpen); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.bigtable.v2.ResultSetMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.preparedQuery != null && Object.hasOwnProperty.call(message, "preparedQuery")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.preparedQuery); + if (message.validUntil != null && Object.hasOwnProperty.call(message, "validUntil")) + $root.google.protobuf.Timestamp.encode(message.validUntil, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ColumnRange message, length delimited. Does not implicitly {@link google.bigtable.v2.ColumnRange.verify|verify} messages. + * Encodes the specified PrepareQueryResponse message, length delimited. Does not implicitly {@link google.bigtable.v2.PrepareQueryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static - * @param {google.bigtable.v2.IColumnRange} message ColumnRange message or plain object to encode + * @param {google.bigtable.v2.IPrepareQueryResponse} message PrepareQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ColumnRange.encodeDelimited = function encodeDelimited(message, writer) { + PrepareQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ColumnRange message from the specified reader or buffer. + * Decodes a PrepareQueryResponse message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ColumnRange} ColumnRange + * @returns {google.bigtable.v2.PrepareQueryResponse} PrepareQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnRange.decode = function decode(reader, length, error) { + PrepareQueryResponse.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ColumnRange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PrepareQueryResponse(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.familyName = reader.string(); + message.metadata = $root.google.bigtable.v2.ResultSetMetadata.decode(reader, reader.uint32()); break; } case 2: { - message.startQualifierClosed = reader.bytes(); + message.preparedQuery = reader.bytes(); break; } case 3: { - message.startQualifierOpen = reader.bytes(); - break; - } - case 4: { - message.endQualifierClosed = reader.bytes(); - break; - } - case 5: { - message.endQualifierOpen = reader.bytes(); + message.validUntil = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -54068,188 +54600,160 @@ }; /** - * Decodes a ColumnRange message from the specified reader or buffer, length delimited. + * Decodes a PrepareQueryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ColumnRange} ColumnRange + * @returns {google.bigtable.v2.PrepareQueryResponse} PrepareQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnRange.decodeDelimited = function decodeDelimited(reader) { + PrepareQueryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ColumnRange message. + * Verifies a PrepareQueryResponse message. * @function verify - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ColumnRange.verify = function verify(message) { + PrepareQueryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - if (message.startQualifierClosed != null && message.hasOwnProperty("startQualifierClosed")) { - properties.startQualifier = 1; - if (!(message.startQualifierClosed && typeof message.startQualifierClosed.length === "number" || $util.isString(message.startQualifierClosed))) - return "startQualifierClosed: buffer expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.bigtable.v2.ResultSetMetadata.verify(message.metadata); + if (error) + return "metadata." + error; } - if (message.startQualifierOpen != null && message.hasOwnProperty("startQualifierOpen")) { - if (properties.startQualifier === 1) - return "startQualifier: multiple values"; - properties.startQualifier = 1; - if (!(message.startQualifierOpen && typeof message.startQualifierOpen.length === "number" || $util.isString(message.startQualifierOpen))) - return "startQualifierOpen: buffer expected"; - } - if (message.endQualifierClosed != null && message.hasOwnProperty("endQualifierClosed")) { - properties.endQualifier = 1; - if (!(message.endQualifierClosed && typeof message.endQualifierClosed.length === "number" || $util.isString(message.endQualifierClosed))) - return "endQualifierClosed: buffer expected"; - } - if (message.endQualifierOpen != null && message.hasOwnProperty("endQualifierOpen")) { - if (properties.endQualifier === 1) - return "endQualifier: multiple values"; - properties.endQualifier = 1; - if (!(message.endQualifierOpen && typeof message.endQualifierOpen.length === "number" || $util.isString(message.endQualifierOpen))) - return "endQualifierOpen: buffer expected"; + if (message.preparedQuery != null && message.hasOwnProperty("preparedQuery")) + if (!(message.preparedQuery && typeof message.preparedQuery.length === "number" || $util.isString(message.preparedQuery))) + return "preparedQuery: buffer expected"; + if (message.validUntil != null && message.hasOwnProperty("validUntil")) { + var error = $root.google.protobuf.Timestamp.verify(message.validUntil); + if (error) + return "validUntil." + error; } return null; }; /** - * Creates a ColumnRange message from a plain object. Also converts values to their respective internal types. + * Creates a PrepareQueryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ColumnRange} ColumnRange + * @returns {google.bigtable.v2.PrepareQueryResponse} PrepareQueryResponse */ - ColumnRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ColumnRange) + PrepareQueryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.PrepareQueryResponse) return object; - var message = new $root.google.bigtable.v2.ColumnRange(); - if (object.familyName != null) - message.familyName = String(object.familyName); - if (object.startQualifierClosed != null) - if (typeof object.startQualifierClosed === "string") - $util.base64.decode(object.startQualifierClosed, message.startQualifierClosed = $util.newBuffer($util.base64.length(object.startQualifierClosed)), 0); - else if (object.startQualifierClosed.length >= 0) - message.startQualifierClosed = object.startQualifierClosed; - if (object.startQualifierOpen != null) - if (typeof object.startQualifierOpen === "string") - $util.base64.decode(object.startQualifierOpen, message.startQualifierOpen = $util.newBuffer($util.base64.length(object.startQualifierOpen)), 0); - else if (object.startQualifierOpen.length >= 0) - message.startQualifierOpen = object.startQualifierOpen; - if (object.endQualifierClosed != null) - if (typeof object.endQualifierClosed === "string") - $util.base64.decode(object.endQualifierClosed, message.endQualifierClosed = $util.newBuffer($util.base64.length(object.endQualifierClosed)), 0); - else if (object.endQualifierClosed.length >= 0) - message.endQualifierClosed = object.endQualifierClosed; - if (object.endQualifierOpen != null) - if (typeof object.endQualifierOpen === "string") - $util.base64.decode(object.endQualifierOpen, message.endQualifierOpen = $util.newBuffer($util.base64.length(object.endQualifierOpen)), 0); - else if (object.endQualifierOpen.length >= 0) - message.endQualifierOpen = object.endQualifierOpen; + var message = new $root.google.bigtable.v2.PrepareQueryResponse(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.bigtable.v2.PrepareQueryResponse.metadata: object expected"); + message.metadata = $root.google.bigtable.v2.ResultSetMetadata.fromObject(object.metadata); + } + if (object.preparedQuery != null) + if (typeof object.preparedQuery === "string") + $util.base64.decode(object.preparedQuery, message.preparedQuery = $util.newBuffer($util.base64.length(object.preparedQuery)), 0); + else if (object.preparedQuery.length >= 0) + message.preparedQuery = object.preparedQuery; + if (object.validUntil != null) { + if (typeof object.validUntil !== "object") + throw TypeError(".google.bigtable.v2.PrepareQueryResponse.validUntil: object expected"); + message.validUntil = $root.google.protobuf.Timestamp.fromObject(object.validUntil); + } return message; }; /** - * Creates a plain object from a ColumnRange message. Also converts values to other types if specified. + * Creates a plain object from a PrepareQueryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static - * @param {google.bigtable.v2.ColumnRange} message ColumnRange + * @param {google.bigtable.v2.PrepareQueryResponse} message PrepareQueryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ColumnRange.toObject = function toObject(message, options) { + PrepareQueryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.familyName = ""; - if (message.familyName != null && message.hasOwnProperty("familyName")) - object.familyName = message.familyName; - if (message.startQualifierClosed != null && message.hasOwnProperty("startQualifierClosed")) { - object.startQualifierClosed = options.bytes === String ? $util.base64.encode(message.startQualifierClosed, 0, message.startQualifierClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.startQualifierClosed) : message.startQualifierClosed; - if (options.oneofs) - object.startQualifier = "startQualifierClosed"; - } - if (message.startQualifierOpen != null && message.hasOwnProperty("startQualifierOpen")) { - object.startQualifierOpen = options.bytes === String ? $util.base64.encode(message.startQualifierOpen, 0, message.startQualifierOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.startQualifierOpen) : message.startQualifierOpen; - if (options.oneofs) - object.startQualifier = "startQualifierOpen"; - } - if (message.endQualifierClosed != null && message.hasOwnProperty("endQualifierClosed")) { - object.endQualifierClosed = options.bytes === String ? $util.base64.encode(message.endQualifierClosed, 0, message.endQualifierClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.endQualifierClosed) : message.endQualifierClosed; - if (options.oneofs) - object.endQualifier = "endQualifierClosed"; - } - if (message.endQualifierOpen != null && message.hasOwnProperty("endQualifierOpen")) { - object.endQualifierOpen = options.bytes === String ? $util.base64.encode(message.endQualifierOpen, 0, message.endQualifierOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.endQualifierOpen) : message.endQualifierOpen; - if (options.oneofs) - object.endQualifier = "endQualifierOpen"; + if (options.defaults) { + object.metadata = null; + if (options.bytes === String) + object.preparedQuery = ""; + else { + object.preparedQuery = []; + if (options.bytes !== Array) + object.preparedQuery = $util.newBuffer(object.preparedQuery); + } + object.validUntil = null; } + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.bigtable.v2.ResultSetMetadata.toObject(message.metadata, options); + if (message.preparedQuery != null && message.hasOwnProperty("preparedQuery")) + object.preparedQuery = options.bytes === String ? $util.base64.encode(message.preparedQuery, 0, message.preparedQuery.length) : options.bytes === Array ? Array.prototype.slice.call(message.preparedQuery) : message.preparedQuery; + if (message.validUntil != null && message.hasOwnProperty("validUntil")) + object.validUntil = $root.google.protobuf.Timestamp.toObject(message.validUntil, options); return object; }; /** - * Converts this ColumnRange to JSON. + * Converts this PrepareQueryResponse to JSON. * @function toJSON - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @instance * @returns {Object.} JSON object */ - ColumnRange.prototype.toJSON = function toJSON() { + PrepareQueryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ColumnRange + * Gets the default type url for PrepareQueryResponse * @function getTypeUrl - * @memberof google.bigtable.v2.ColumnRange + * @memberof google.bigtable.v2.PrepareQueryResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ColumnRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PrepareQueryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ColumnRange"; + return typeUrlPrefix + "/google.bigtable.v2.PrepareQueryResponse"; }; - return ColumnRange; + return PrepareQueryResponse; })(); - v2.TimestampRange = (function() { + v2.Row = (function() { /** - * Properties of a TimestampRange. + * Properties of a Row. * @memberof google.bigtable.v2 - * @interface ITimestampRange - * @property {number|Long|null} [startTimestampMicros] TimestampRange startTimestampMicros - * @property {number|Long|null} [endTimestampMicros] TimestampRange endTimestampMicros + * @interface IRow + * @property {Uint8Array|null} [key] Row key + * @property {Array.|null} [families] Row families */ /** - * Constructs a new TimestampRange. + * Constructs a new Row. * @memberof google.bigtable.v2 - * @classdesc Represents a TimestampRange. - * @implements ITimestampRange + * @classdesc Represents a Row. + * @implements IRow * @constructor - * @param {google.bigtable.v2.ITimestampRange=} [properties] Properties to set + * @param {google.bigtable.v2.IRow=} [properties] Properties to set */ - function TimestampRange(properties) { + function Row(properties) { + this.families = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54257,91 +54761,94 @@ } /** - * TimestampRange startTimestampMicros. - * @member {number|Long} startTimestampMicros - * @memberof google.bigtable.v2.TimestampRange + * Row key. + * @member {Uint8Array} key + * @memberof google.bigtable.v2.Row * @instance */ - TimestampRange.prototype.startTimestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Row.prototype.key = $util.newBuffer([]); /** - * TimestampRange endTimestampMicros. - * @member {number|Long} endTimestampMicros - * @memberof google.bigtable.v2.TimestampRange + * Row families. + * @member {Array.} families + * @memberof google.bigtable.v2.Row * @instance */ - TimestampRange.prototype.endTimestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Row.prototype.families = $util.emptyArray; /** - * Creates a new TimestampRange instance using the specified properties. + * Creates a new Row instance using the specified properties. * @function create - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static - * @param {google.bigtable.v2.ITimestampRange=} [properties] Properties to set - * @returns {google.bigtable.v2.TimestampRange} TimestampRange instance + * @param {google.bigtable.v2.IRow=} [properties] Properties to set + * @returns {google.bigtable.v2.Row} Row instance */ - TimestampRange.create = function create(properties) { - return new TimestampRange(properties); + Row.create = function create(properties) { + return new Row(properties); }; /** - * Encodes the specified TimestampRange message. Does not implicitly {@link google.bigtable.v2.TimestampRange.verify|verify} messages. + * Encodes the specified Row message. Does not implicitly {@link google.bigtable.v2.Row.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static - * @param {google.bigtable.v2.ITimestampRange} message TimestampRange message or plain object to encode + * @param {google.bigtable.v2.IRow} message Row message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampRange.encode = function encode(message, writer) { + Row.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTimestampMicros != null && Object.hasOwnProperty.call(message, "startTimestampMicros")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.startTimestampMicros); - if (message.endTimestampMicros != null && Object.hasOwnProperty.call(message, "endTimestampMicros")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.endTimestampMicros); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.families != null && message.families.length) + for (var i = 0; i < message.families.length; ++i) + $root.google.bigtable.v2.Family.encode(message.families[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified TimestampRange message, length delimited. Does not implicitly {@link google.bigtable.v2.TimestampRange.verify|verify} messages. + * Encodes the specified Row message, length delimited. Does not implicitly {@link google.bigtable.v2.Row.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static - * @param {google.bigtable.v2.ITimestampRange} message TimestampRange message or plain object to encode + * @param {google.bigtable.v2.IRow} message Row message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampRange.encodeDelimited = function encodeDelimited(message, writer) { + Row.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampRange message from the specified reader or buffer. + * Decodes a Row message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.TimestampRange} TimestampRange + * @returns {google.bigtable.v2.Row} Row * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampRange.decode = function decode(reader, length, error) { + Row.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.TimestampRange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Row(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.startTimestampMicros = reader.int64(); + message.key = reader.bytes(); break; } case 2: { - message.endTimestampMicros = reader.int64(); + if (!(message.families && message.families.length)) + message.families = []; + message.families.push($root.google.bigtable.v2.Family.decode(reader, reader.uint32())); break; } default: @@ -54353,162 +54860,159 @@ }; /** - * Decodes a TimestampRange message from the specified reader or buffer, length delimited. + * Decodes a Row message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.TimestampRange} TimestampRange + * @returns {google.bigtable.v2.Row} Row * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampRange.decodeDelimited = function decodeDelimited(reader) { + Row.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampRange message. + * Verifies a Row message. * @function verify - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampRange.verify = function verify(message) { + Row.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.startTimestampMicros != null && message.hasOwnProperty("startTimestampMicros")) - if (!$util.isInteger(message.startTimestampMicros) && !(message.startTimestampMicros && $util.isInteger(message.startTimestampMicros.low) && $util.isInteger(message.startTimestampMicros.high))) - return "startTimestampMicros: integer|Long expected"; - if (message.endTimestampMicros != null && message.hasOwnProperty("endTimestampMicros")) - if (!$util.isInteger(message.endTimestampMicros) && !(message.endTimestampMicros && $util.isInteger(message.endTimestampMicros.low) && $util.isInteger(message.endTimestampMicros.high))) - return "endTimestampMicros: integer|Long expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.families != null && message.hasOwnProperty("families")) { + if (!Array.isArray(message.families)) + return "families: array expected"; + for (var i = 0; i < message.families.length; ++i) { + var error = $root.google.bigtable.v2.Family.verify(message.families[i]); + if (error) + return "families." + error; + } + } return null; }; /** - * Creates a TimestampRange message from a plain object. Also converts values to their respective internal types. + * Creates a Row message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.TimestampRange} TimestampRange + * @returns {google.bigtable.v2.Row} Row */ - TimestampRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.TimestampRange) + Row.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Row) return object; - var message = new $root.google.bigtable.v2.TimestampRange(); - if (object.startTimestampMicros != null) - if ($util.Long) - (message.startTimestampMicros = $util.Long.fromValue(object.startTimestampMicros)).unsigned = false; - else if (typeof object.startTimestampMicros === "string") - message.startTimestampMicros = parseInt(object.startTimestampMicros, 10); - else if (typeof object.startTimestampMicros === "number") - message.startTimestampMicros = object.startTimestampMicros; - else if (typeof object.startTimestampMicros === "object") - message.startTimestampMicros = new $util.LongBits(object.startTimestampMicros.low >>> 0, object.startTimestampMicros.high >>> 0).toNumber(); - if (object.endTimestampMicros != null) - if ($util.Long) - (message.endTimestampMicros = $util.Long.fromValue(object.endTimestampMicros)).unsigned = false; - else if (typeof object.endTimestampMicros === "string") - message.endTimestampMicros = parseInt(object.endTimestampMicros, 10); - else if (typeof object.endTimestampMicros === "number") - message.endTimestampMicros = object.endTimestampMicros; - else if (typeof object.endTimestampMicros === "object") - message.endTimestampMicros = new $util.LongBits(object.endTimestampMicros.low >>> 0, object.endTimestampMicros.high >>> 0).toNumber(); + var message = new $root.google.bigtable.v2.Row(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length >= 0) + message.key = object.key; + if (object.families) { + if (!Array.isArray(object.families)) + throw TypeError(".google.bigtable.v2.Row.families: array expected"); + message.families = []; + for (var i = 0; i < object.families.length; ++i) { + if (typeof object.families[i] !== "object") + throw TypeError(".google.bigtable.v2.Row.families: object expected"); + message.families[i] = $root.google.bigtable.v2.Family.fromObject(object.families[i]); + } + } return message; }; /** - * Creates a plain object from a TimestampRange message. Also converts values to other types if specified. + * Creates a plain object from a Row message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static - * @param {google.bigtable.v2.TimestampRange} message TimestampRange + * @param {google.bigtable.v2.Row} message Row * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampRange.toObject = function toObject(message, options) { + Row.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.startTimestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startTimestampMicros = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.endTimestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.endTimestampMicros = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.families = []; + if (options.defaults) + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.families && message.families.length) { + object.families = []; + for (var j = 0; j < message.families.length; ++j) + object.families[j] = $root.google.bigtable.v2.Family.toObject(message.families[j], options); } - if (message.startTimestampMicros != null && message.hasOwnProperty("startTimestampMicros")) - if (typeof message.startTimestampMicros === "number") - object.startTimestampMicros = options.longs === String ? String(message.startTimestampMicros) : message.startTimestampMicros; - else - object.startTimestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.startTimestampMicros) : options.longs === Number ? new $util.LongBits(message.startTimestampMicros.low >>> 0, message.startTimestampMicros.high >>> 0).toNumber() : message.startTimestampMicros; - if (message.endTimestampMicros != null && message.hasOwnProperty("endTimestampMicros")) - if (typeof message.endTimestampMicros === "number") - object.endTimestampMicros = options.longs === String ? String(message.endTimestampMicros) : message.endTimestampMicros; - else - object.endTimestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.endTimestampMicros) : options.longs === Number ? new $util.LongBits(message.endTimestampMicros.low >>> 0, message.endTimestampMicros.high >>> 0).toNumber() : message.endTimestampMicros; return object; }; /** - * Converts this TimestampRange to JSON. + * Converts this Row to JSON. * @function toJSON - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @instance * @returns {Object.} JSON object */ - TimestampRange.prototype.toJSON = function toJSON() { + Row.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimestampRange + * Gets the default type url for Row * @function getTypeUrl - * @memberof google.bigtable.v2.TimestampRange + * @memberof google.bigtable.v2.Row * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimestampRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Row.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.TimestampRange"; + return typeUrlPrefix + "/google.bigtable.v2.Row"; }; - return TimestampRange; + return Row; })(); - v2.ValueRange = (function() { + v2.Family = (function() { /** - * Properties of a ValueRange. + * Properties of a Family. * @memberof google.bigtable.v2 - * @interface IValueRange - * @property {Uint8Array|null} [startValueClosed] ValueRange startValueClosed - * @property {Uint8Array|null} [startValueOpen] ValueRange startValueOpen - * @property {Uint8Array|null} [endValueClosed] ValueRange endValueClosed - * @property {Uint8Array|null} [endValueOpen] ValueRange endValueOpen + * @interface IFamily + * @property {string|null} [name] Family name + * @property {Array.|null} [columns] Family columns */ /** - * Constructs a new ValueRange. + * Constructs a new Family. * @memberof google.bigtable.v2 - * @classdesc Represents a ValueRange. - * @implements IValueRange + * @classdesc Represents a Family. + * @implements IFamily * @constructor - * @param {google.bigtable.v2.IValueRange=} [properties] Properties to set + * @param {google.bigtable.v2.IFamily=} [properties] Properties to set */ - function ValueRange(properties) { + function Family(properties) { + this.columns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54516,144 +55020,94 @@ } /** - * ValueRange startValueClosed. - * @member {Uint8Array|null|undefined} startValueClosed - * @memberof google.bigtable.v2.ValueRange - * @instance - */ - ValueRange.prototype.startValueClosed = null; - - /** - * ValueRange startValueOpen. - * @member {Uint8Array|null|undefined} startValueOpen - * @memberof google.bigtable.v2.ValueRange - * @instance - */ - ValueRange.prototype.startValueOpen = null; - - /** - * ValueRange endValueClosed. - * @member {Uint8Array|null|undefined} endValueClosed - * @memberof google.bigtable.v2.ValueRange - * @instance - */ - ValueRange.prototype.endValueClosed = null; - - /** - * ValueRange endValueOpen. - * @member {Uint8Array|null|undefined} endValueOpen - * @memberof google.bigtable.v2.ValueRange - * @instance - */ - ValueRange.prototype.endValueOpen = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ValueRange startValue. - * @member {"startValueClosed"|"startValueOpen"|undefined} startValue - * @memberof google.bigtable.v2.ValueRange + * Family name. + * @member {string} name + * @memberof google.bigtable.v2.Family * @instance */ - Object.defineProperty(ValueRange.prototype, "startValue", { - get: $util.oneOfGetter($oneOfFields = ["startValueClosed", "startValueOpen"]), - set: $util.oneOfSetter($oneOfFields) - }); + Family.prototype.name = ""; /** - * ValueRange endValue. - * @member {"endValueClosed"|"endValueOpen"|undefined} endValue - * @memberof google.bigtable.v2.ValueRange + * Family columns. + * @member {Array.} columns + * @memberof google.bigtable.v2.Family * @instance */ - Object.defineProperty(ValueRange.prototype, "endValue", { - get: $util.oneOfGetter($oneOfFields = ["endValueClosed", "endValueOpen"]), - set: $util.oneOfSetter($oneOfFields) - }); + Family.prototype.columns = $util.emptyArray; /** - * Creates a new ValueRange instance using the specified properties. + * Creates a new Family instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static - * @param {google.bigtable.v2.IValueRange=} [properties] Properties to set - * @returns {google.bigtable.v2.ValueRange} ValueRange instance + * @param {google.bigtable.v2.IFamily=} [properties] Properties to set + * @returns {google.bigtable.v2.Family} Family instance */ - ValueRange.create = function create(properties) { - return new ValueRange(properties); + Family.create = function create(properties) { + return new Family(properties); }; /** - * Encodes the specified ValueRange message. Does not implicitly {@link google.bigtable.v2.ValueRange.verify|verify} messages. + * Encodes the specified Family message. Does not implicitly {@link google.bigtable.v2.Family.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static - * @param {google.bigtable.v2.IValueRange} message ValueRange message or plain object to encode + * @param {google.bigtable.v2.IFamily} message Family message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValueRange.encode = function encode(message, writer) { + Family.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startValueClosed != null && Object.hasOwnProperty.call(message, "startValueClosed")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.startValueClosed); - if (message.startValueOpen != null && Object.hasOwnProperty.call(message, "startValueOpen")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.startValueOpen); - if (message.endValueClosed != null && Object.hasOwnProperty.call(message, "endValueClosed")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.endValueClosed); - if (message.endValueOpen != null && Object.hasOwnProperty.call(message, "endValueOpen")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.endValueOpen); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.google.bigtable.v2.Column.encode(message.columns[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ValueRange message, length delimited. Does not implicitly {@link google.bigtable.v2.ValueRange.verify|verify} messages. + * Encodes the specified Family message, length delimited. Does not implicitly {@link google.bigtable.v2.Family.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static - * @param {google.bigtable.v2.IValueRange} message ValueRange message or plain object to encode + * @param {google.bigtable.v2.IFamily} message Family message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValueRange.encodeDelimited = function encodeDelimited(message, writer) { + Family.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValueRange message from the specified reader or buffer. + * Decodes a Family message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ValueRange} ValueRange + * @returns {google.bigtable.v2.Family} Family * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValueRange.decode = function decode(reader, length, error) { + Family.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ValueRange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Family(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.startValueClosed = reader.bytes(); + message.name = reader.string(); break; } case 2: { - message.startValueOpen = reader.bytes(); - break; - } - case 3: { - message.endValueClosed = reader.bytes(); - break; - } - case 4: { - message.endValueOpen = reader.bytes(); + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.google.bigtable.v2.Column.decode(reader, reader.uint32())); break; } default: @@ -54665,196 +55119,150 @@ }; /** - * Decodes a ValueRange message from the specified reader or buffer, length delimited. + * Decodes a Family message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ValueRange} ValueRange + * @returns {google.bigtable.v2.Family} Family * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValueRange.decodeDelimited = function decodeDelimited(reader) { + Family.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValueRange message. + * Verifies a Family message. * @function verify - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValueRange.verify = function verify(message) { + Family.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.startValueClosed != null && message.hasOwnProperty("startValueClosed")) { - properties.startValue = 1; - if (!(message.startValueClosed && typeof message.startValueClosed.length === "number" || $util.isString(message.startValueClosed))) - return "startValueClosed: buffer expected"; - } - if (message.startValueOpen != null && message.hasOwnProperty("startValueOpen")) { - if (properties.startValue === 1) - return "startValue: multiple values"; - properties.startValue = 1; - if (!(message.startValueOpen && typeof message.startValueOpen.length === "number" || $util.isString(message.startValueOpen))) - return "startValueOpen: buffer expected"; - } - if (message.endValueClosed != null && message.hasOwnProperty("endValueClosed")) { - properties.endValue = 1; - if (!(message.endValueClosed && typeof message.endValueClosed.length === "number" || $util.isString(message.endValueClosed))) - return "endValueClosed: buffer expected"; - } - if (message.endValueOpen != null && message.hasOwnProperty("endValueOpen")) { - if (properties.endValue === 1) - return "endValue: multiple values"; - properties.endValue = 1; - if (!(message.endValueOpen && typeof message.endValueOpen.length === "number" || $util.isString(message.endValueOpen))) - return "endValueOpen: buffer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.google.bigtable.v2.Column.verify(message.columns[i]); + if (error) + return "columns." + error; + } } return null; }; /** - * Creates a ValueRange message from a plain object. Also converts values to their respective internal types. + * Creates a Family message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ValueRange} ValueRange + * @returns {google.bigtable.v2.Family} Family */ - ValueRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ValueRange) + Family.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Family) return object; - var message = new $root.google.bigtable.v2.ValueRange(); - if (object.startValueClosed != null) - if (typeof object.startValueClosed === "string") - $util.base64.decode(object.startValueClosed, message.startValueClosed = $util.newBuffer($util.base64.length(object.startValueClosed)), 0); - else if (object.startValueClosed.length >= 0) - message.startValueClosed = object.startValueClosed; - if (object.startValueOpen != null) - if (typeof object.startValueOpen === "string") - $util.base64.decode(object.startValueOpen, message.startValueOpen = $util.newBuffer($util.base64.length(object.startValueOpen)), 0); - else if (object.startValueOpen.length >= 0) - message.startValueOpen = object.startValueOpen; - if (object.endValueClosed != null) - if (typeof object.endValueClosed === "string") - $util.base64.decode(object.endValueClosed, message.endValueClosed = $util.newBuffer($util.base64.length(object.endValueClosed)), 0); - else if (object.endValueClosed.length >= 0) - message.endValueClosed = object.endValueClosed; - if (object.endValueOpen != null) - if (typeof object.endValueOpen === "string") - $util.base64.decode(object.endValueOpen, message.endValueOpen = $util.newBuffer($util.base64.length(object.endValueOpen)), 0); - else if (object.endValueOpen.length >= 0) - message.endValueOpen = object.endValueOpen; + var message = new $root.google.bigtable.v2.Family(); + if (object.name != null) + message.name = String(object.name); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".google.bigtable.v2.Family.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) { + if (typeof object.columns[i] !== "object") + throw TypeError(".google.bigtable.v2.Family.columns: object expected"); + message.columns[i] = $root.google.bigtable.v2.Column.fromObject(object.columns[i]); + } + } return message; }; /** - * Creates a plain object from a ValueRange message. Also converts values to other types if specified. + * Creates a plain object from a Family message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static - * @param {google.bigtable.v2.ValueRange} message ValueRange + * @param {google.bigtable.v2.Family} message Family * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValueRange.toObject = function toObject(message, options) { + Family.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.startValueClosed != null && message.hasOwnProperty("startValueClosed")) { - object.startValueClosed = options.bytes === String ? $util.base64.encode(message.startValueClosed, 0, message.startValueClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.startValueClosed) : message.startValueClosed; - if (options.oneofs) - object.startValue = "startValueClosed"; - } - if (message.startValueOpen != null && message.hasOwnProperty("startValueOpen")) { - object.startValueOpen = options.bytes === String ? $util.base64.encode(message.startValueOpen, 0, message.startValueOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.startValueOpen) : message.startValueOpen; - if (options.oneofs) - object.startValue = "startValueOpen"; - } - if (message.endValueClosed != null && message.hasOwnProperty("endValueClosed")) { - object.endValueClosed = options.bytes === String ? $util.base64.encode(message.endValueClosed, 0, message.endValueClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.endValueClosed) : message.endValueClosed; - if (options.oneofs) - object.endValue = "endValueClosed"; - } - if (message.endValueOpen != null && message.hasOwnProperty("endValueOpen")) { - object.endValueOpen = options.bytes === String ? $util.base64.encode(message.endValueOpen, 0, message.endValueOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.endValueOpen) : message.endValueOpen; - if (options.oneofs) - object.endValue = "endValueOpen"; + if (options.arrays || options.defaults) + object.columns = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = $root.google.bigtable.v2.Column.toObject(message.columns[j], options); } return object; }; /** - * Converts this ValueRange to JSON. + * Converts this Family to JSON. * @function toJSON - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @instance * @returns {Object.} JSON object */ - ValueRange.prototype.toJSON = function toJSON() { + Family.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValueRange + * Gets the default type url for Family * @function getTypeUrl - * @memberof google.bigtable.v2.ValueRange + * @memberof google.bigtable.v2.Family * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValueRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Family.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ValueRange"; + return typeUrlPrefix + "/google.bigtable.v2.Family"; }; - return ValueRange; + return Family; })(); - v2.RowFilter = (function() { + v2.Column = (function() { /** - * Properties of a RowFilter. + * Properties of a Column. * @memberof google.bigtable.v2 - * @interface IRowFilter - * @property {google.bigtable.v2.RowFilter.IChain|null} [chain] RowFilter chain - * @property {google.bigtable.v2.RowFilter.IInterleave|null} [interleave] RowFilter interleave - * @property {google.bigtable.v2.RowFilter.ICondition|null} [condition] RowFilter condition - * @property {boolean|null} [sink] RowFilter sink - * @property {boolean|null} [passAllFilter] RowFilter passAllFilter - * @property {boolean|null} [blockAllFilter] RowFilter blockAllFilter - * @property {Uint8Array|null} [rowKeyRegexFilter] RowFilter rowKeyRegexFilter - * @property {number|null} [rowSampleFilter] RowFilter rowSampleFilter - * @property {string|null} [familyNameRegexFilter] RowFilter familyNameRegexFilter - * @property {Uint8Array|null} [columnQualifierRegexFilter] RowFilter columnQualifierRegexFilter - * @property {google.bigtable.v2.IColumnRange|null} [columnRangeFilter] RowFilter columnRangeFilter - * @property {google.bigtable.v2.ITimestampRange|null} [timestampRangeFilter] RowFilter timestampRangeFilter - * @property {Uint8Array|null} [valueRegexFilter] RowFilter valueRegexFilter - * @property {google.bigtable.v2.IValueRange|null} [valueRangeFilter] RowFilter valueRangeFilter - * @property {number|null} [cellsPerRowOffsetFilter] RowFilter cellsPerRowOffsetFilter - * @property {number|null} [cellsPerRowLimitFilter] RowFilter cellsPerRowLimitFilter - * @property {number|null} [cellsPerColumnLimitFilter] RowFilter cellsPerColumnLimitFilter - * @property {boolean|null} [stripValueTransformer] RowFilter stripValueTransformer - * @property {string|null} [applyLabelTransformer] RowFilter applyLabelTransformer + * @interface IColumn + * @property {Uint8Array|null} [qualifier] Column qualifier + * @property {Array.|null} [cells] Column cells */ /** - * Constructs a new RowFilter. + * Constructs a new Column. * @memberof google.bigtable.v2 - * @classdesc Represents a RowFilter. - * @implements IRowFilter + * @classdesc Represents a Column. + * @implements IColumn * @constructor - * @param {google.bigtable.v2.IRowFilter=} [properties] Properties to set + * @param {google.bigtable.v2.IColumn=} [properties] Properties to set */ - function RowFilter(properties) { + function Column(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54862,343 +55270,94 @@ } /** - * RowFilter chain. - * @member {google.bigtable.v2.RowFilter.IChain|null|undefined} chain - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.chain = null; - - /** - * RowFilter interleave. - * @member {google.bigtable.v2.RowFilter.IInterleave|null|undefined} interleave - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.interleave = null; - - /** - * RowFilter condition. - * @member {google.bigtable.v2.RowFilter.ICondition|null|undefined} condition - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.condition = null; - - /** - * RowFilter sink. - * @member {boolean|null|undefined} sink - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.sink = null; - - /** - * RowFilter passAllFilter. - * @member {boolean|null|undefined} passAllFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.passAllFilter = null; - - /** - * RowFilter blockAllFilter. - * @member {boolean|null|undefined} blockAllFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.blockAllFilter = null; - - /** - * RowFilter rowKeyRegexFilter. - * @member {Uint8Array|null|undefined} rowKeyRegexFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.rowKeyRegexFilter = null; - - /** - * RowFilter rowSampleFilter. - * @member {number|null|undefined} rowSampleFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.rowSampleFilter = null; - - /** - * RowFilter familyNameRegexFilter. - * @member {string|null|undefined} familyNameRegexFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.familyNameRegexFilter = null; - - /** - * RowFilter columnQualifierRegexFilter. - * @member {Uint8Array|null|undefined} columnQualifierRegexFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.columnQualifierRegexFilter = null; - - /** - * RowFilter columnRangeFilter. - * @member {google.bigtable.v2.IColumnRange|null|undefined} columnRangeFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.columnRangeFilter = null; - - /** - * RowFilter timestampRangeFilter. - * @member {google.bigtable.v2.ITimestampRange|null|undefined} timestampRangeFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.timestampRangeFilter = null; - - /** - * RowFilter valueRegexFilter. - * @member {Uint8Array|null|undefined} valueRegexFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.valueRegexFilter = null; - - /** - * RowFilter valueRangeFilter. - * @member {google.bigtable.v2.IValueRange|null|undefined} valueRangeFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.valueRangeFilter = null; - - /** - * RowFilter cellsPerRowOffsetFilter. - * @member {number|null|undefined} cellsPerRowOffsetFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.cellsPerRowOffsetFilter = null; - - /** - * RowFilter cellsPerRowLimitFilter. - * @member {number|null|undefined} cellsPerRowLimitFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.cellsPerRowLimitFilter = null; - - /** - * RowFilter cellsPerColumnLimitFilter. - * @member {number|null|undefined} cellsPerColumnLimitFilter - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.cellsPerColumnLimitFilter = null; - - /** - * RowFilter stripValueTransformer. - * @member {boolean|null|undefined} stripValueTransformer - * @memberof google.bigtable.v2.RowFilter - * @instance - */ - RowFilter.prototype.stripValueTransformer = null; - - /** - * RowFilter applyLabelTransformer. - * @member {string|null|undefined} applyLabelTransformer - * @memberof google.bigtable.v2.RowFilter + * Column qualifier. + * @member {Uint8Array} qualifier + * @memberof google.bigtable.v2.Column * @instance */ - RowFilter.prototype.applyLabelTransformer = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Column.prototype.qualifier = $util.newBuffer([]); /** - * RowFilter filter. - * @member {"chain"|"interleave"|"condition"|"sink"|"passAllFilter"|"blockAllFilter"|"rowKeyRegexFilter"|"rowSampleFilter"|"familyNameRegexFilter"|"columnQualifierRegexFilter"|"columnRangeFilter"|"timestampRangeFilter"|"valueRegexFilter"|"valueRangeFilter"|"cellsPerRowOffsetFilter"|"cellsPerRowLimitFilter"|"cellsPerColumnLimitFilter"|"stripValueTransformer"|"applyLabelTransformer"|undefined} filter - * @memberof google.bigtable.v2.RowFilter + * Column cells. + * @member {Array.} cells + * @memberof google.bigtable.v2.Column * @instance */ - Object.defineProperty(RowFilter.prototype, "filter", { - get: $util.oneOfGetter($oneOfFields = ["chain", "interleave", "condition", "sink", "passAllFilter", "blockAllFilter", "rowKeyRegexFilter", "rowSampleFilter", "familyNameRegexFilter", "columnQualifierRegexFilter", "columnRangeFilter", "timestampRangeFilter", "valueRegexFilter", "valueRangeFilter", "cellsPerRowOffsetFilter", "cellsPerRowLimitFilter", "cellsPerColumnLimitFilter", "stripValueTransformer", "applyLabelTransformer"]), - set: $util.oneOfSetter($oneOfFields) - }); + Column.prototype.cells = $util.emptyArray; /** - * Creates a new RowFilter instance using the specified properties. + * Creates a new Column instance using the specified properties. * @function create - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static - * @param {google.bigtable.v2.IRowFilter=} [properties] Properties to set - * @returns {google.bigtable.v2.RowFilter} RowFilter instance + * @param {google.bigtable.v2.IColumn=} [properties] Properties to set + * @returns {google.bigtable.v2.Column} Column instance */ - RowFilter.create = function create(properties) { - return new RowFilter(properties); + Column.create = function create(properties) { + return new Column(properties); }; /** - * Encodes the specified RowFilter message. Does not implicitly {@link google.bigtable.v2.RowFilter.verify|verify} messages. + * Encodes the specified Column message. Does not implicitly {@link google.bigtable.v2.Column.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static - * @param {google.bigtable.v2.IRowFilter} message RowFilter message or plain object to encode + * @param {google.bigtable.v2.IColumn} message Column message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowFilter.encode = function encode(message, writer) { + Column.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.chain != null && Object.hasOwnProperty.call(message, "chain")) - $root.google.bigtable.v2.RowFilter.Chain.encode(message.chain, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.interleave != null && Object.hasOwnProperty.call(message, "interleave")) - $root.google.bigtable.v2.RowFilter.Interleave.encode(message.interleave, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) - $root.google.bigtable.v2.RowFilter.Condition.encode(message.condition, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.rowKeyRegexFilter != null && Object.hasOwnProperty.call(message, "rowKeyRegexFilter")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.rowKeyRegexFilter); - if (message.familyNameRegexFilter != null && Object.hasOwnProperty.call(message, "familyNameRegexFilter")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.familyNameRegexFilter); - if (message.columnQualifierRegexFilter != null && Object.hasOwnProperty.call(message, "columnQualifierRegexFilter")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.columnQualifierRegexFilter); - if (message.columnRangeFilter != null && Object.hasOwnProperty.call(message, "columnRangeFilter")) - $root.google.bigtable.v2.ColumnRange.encode(message.columnRangeFilter, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.timestampRangeFilter != null && Object.hasOwnProperty.call(message, "timestampRangeFilter")) - $root.google.bigtable.v2.TimestampRange.encode(message.timestampRangeFilter, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.valueRegexFilter != null && Object.hasOwnProperty.call(message, "valueRegexFilter")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.valueRegexFilter); - if (message.cellsPerRowOffsetFilter != null && Object.hasOwnProperty.call(message, "cellsPerRowOffsetFilter")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.cellsPerRowOffsetFilter); - if (message.cellsPerRowLimitFilter != null && Object.hasOwnProperty.call(message, "cellsPerRowLimitFilter")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.cellsPerRowLimitFilter); - if (message.cellsPerColumnLimitFilter != null && Object.hasOwnProperty.call(message, "cellsPerColumnLimitFilter")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cellsPerColumnLimitFilter); - if (message.stripValueTransformer != null && Object.hasOwnProperty.call(message, "stripValueTransformer")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.stripValueTransformer); - if (message.rowSampleFilter != null && Object.hasOwnProperty.call(message, "rowSampleFilter")) - writer.uint32(/* id 14, wireType 1 =*/113).double(message.rowSampleFilter); - if (message.valueRangeFilter != null && Object.hasOwnProperty.call(message, "valueRangeFilter")) - $root.google.bigtable.v2.ValueRange.encode(message.valueRangeFilter, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.sink != null && Object.hasOwnProperty.call(message, "sink")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.sink); - if (message.passAllFilter != null && Object.hasOwnProperty.call(message, "passAllFilter")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.passAllFilter); - if (message.blockAllFilter != null && Object.hasOwnProperty.call(message, "blockAllFilter")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.blockAllFilter); - if (message.applyLabelTransformer != null && Object.hasOwnProperty.call(message, "applyLabelTransformer")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.applyLabelTransformer); + if (message.qualifier != null && Object.hasOwnProperty.call(message, "qualifier")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.qualifier); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + $root.google.bigtable.v2.Cell.encode(message.cells[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RowFilter message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.verify|verify} messages. + * Encodes the specified Column message, length delimited. Does not implicitly {@link google.bigtable.v2.Column.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static - * @param {google.bigtable.v2.IRowFilter} message RowFilter message or plain object to encode + * @param {google.bigtable.v2.IColumn} message Column message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RowFilter.encodeDelimited = function encodeDelimited(message, writer) { + Column.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowFilter message from the specified reader or buffer. + * Decodes a Column message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.RowFilter} RowFilter + * @returns {google.bigtable.v2.Column} Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowFilter.decode = function decode(reader, length, error) { + Column.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Column(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.chain = $root.google.bigtable.v2.RowFilter.Chain.decode(reader, reader.uint32()); + message.qualifier = reader.bytes(); break; } case 2: { - message.interleave = $root.google.bigtable.v2.RowFilter.Interleave.decode(reader, reader.uint32()); - break; - } - case 3: { - message.condition = $root.google.bigtable.v2.RowFilter.Condition.decode(reader, reader.uint32()); - break; - } - case 16: { - message.sink = reader.bool(); - break; - } - case 17: { - message.passAllFilter = reader.bool(); - break; - } - case 18: { - message.blockAllFilter = reader.bool(); - break; - } - case 4: { - message.rowKeyRegexFilter = reader.bytes(); - break; - } - case 14: { - message.rowSampleFilter = reader.double(); - break; - } - case 5: { - message.familyNameRegexFilter = reader.string(); - break; - } - case 6: { - message.columnQualifierRegexFilter = reader.bytes(); - break; - } - case 7: { - message.columnRangeFilter = $root.google.bigtable.v2.ColumnRange.decode(reader, reader.uint32()); - break; - } - case 8: { - message.timestampRangeFilter = $root.google.bigtable.v2.TimestampRange.decode(reader, reader.uint32()); - break; - } - case 9: { - message.valueRegexFilter = reader.bytes(); - break; - } - case 15: { - message.valueRangeFilter = $root.google.bigtable.v2.ValueRange.decode(reader, reader.uint32()); - break; - } - case 10: { - message.cellsPerRowOffsetFilter = reader.int32(); - break; - } - case 11: { - message.cellsPerRowLimitFilter = reader.int32(); - break; - } - case 12: { - message.cellsPerColumnLimitFilter = reader.int32(); - break; - } - case 13: { - message.stripValueTransformer = reader.bool(); - break; - } - case 19: { - message.applyLabelTransformer = reader.string(); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push($root.google.bigtable.v2.Cell.decode(reader, reader.uint32())); break; } default: @@ -55210,1309 +55369,691 @@ }; /** - * Decodes a RowFilter message from the specified reader or buffer, length delimited. + * Decodes a Column message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.RowFilter} RowFilter + * @returns {google.bigtable.v2.Column} Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RowFilter.decodeDelimited = function decodeDelimited(reader) { + Column.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RowFilter message. + * Verifies a Column message. * @function verify - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RowFilter.verify = function verify(message) { + Column.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.chain != null && message.hasOwnProperty("chain")) { - properties.filter = 1; - { - var error = $root.google.bigtable.v2.RowFilter.Chain.verify(message.chain); - if (error) - return "chain." + error; - } - } - if (message.interleave != null && message.hasOwnProperty("interleave")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - { - var error = $root.google.bigtable.v2.RowFilter.Interleave.verify(message.interleave); - if (error) - return "interleave." + error; - } - } - if (message.condition != null && message.hasOwnProperty("condition")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - { - var error = $root.google.bigtable.v2.RowFilter.Condition.verify(message.condition); - if (error) - return "condition." + error; - } - } - if (message.sink != null && message.hasOwnProperty("sink")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (typeof message.sink !== "boolean") - return "sink: boolean expected"; - } - if (message.passAllFilter != null && message.hasOwnProperty("passAllFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (typeof message.passAllFilter !== "boolean") - return "passAllFilter: boolean expected"; - } - if (message.blockAllFilter != null && message.hasOwnProperty("blockAllFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (typeof message.blockAllFilter !== "boolean") - return "blockAllFilter: boolean expected"; - } - if (message.rowKeyRegexFilter != null && message.hasOwnProperty("rowKeyRegexFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (!(message.rowKeyRegexFilter && typeof message.rowKeyRegexFilter.length === "number" || $util.isString(message.rowKeyRegexFilter))) - return "rowKeyRegexFilter: buffer expected"; - } - if (message.rowSampleFilter != null && message.hasOwnProperty("rowSampleFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (typeof message.rowSampleFilter !== "number") - return "rowSampleFilter: number expected"; - } - if (message.familyNameRegexFilter != null && message.hasOwnProperty("familyNameRegexFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (!$util.isString(message.familyNameRegexFilter)) - return "familyNameRegexFilter: string expected"; - } - if (message.columnQualifierRegexFilter != null && message.hasOwnProperty("columnQualifierRegexFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (!(message.columnQualifierRegexFilter && typeof message.columnQualifierRegexFilter.length === "number" || $util.isString(message.columnQualifierRegexFilter))) - return "columnQualifierRegexFilter: buffer expected"; - } - if (message.columnRangeFilter != null && message.hasOwnProperty("columnRangeFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - { - var error = $root.google.bigtable.v2.ColumnRange.verify(message.columnRangeFilter); - if (error) - return "columnRangeFilter." + error; - } - } - if (message.timestampRangeFilter != null && message.hasOwnProperty("timestampRangeFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - { - var error = $root.google.bigtable.v2.TimestampRange.verify(message.timestampRangeFilter); - if (error) - return "timestampRangeFilter." + error; - } - } - if (message.valueRegexFilter != null && message.hasOwnProperty("valueRegexFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (!(message.valueRegexFilter && typeof message.valueRegexFilter.length === "number" || $util.isString(message.valueRegexFilter))) - return "valueRegexFilter: buffer expected"; - } - if (message.valueRangeFilter != null && message.hasOwnProperty("valueRangeFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - { - var error = $root.google.bigtable.v2.ValueRange.verify(message.valueRangeFilter); + if (message.qualifier != null && message.hasOwnProperty("qualifier")) + if (!(message.qualifier && typeof message.qualifier.length === "number" || $util.isString(message.qualifier))) + return "qualifier: buffer expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) { + var error = $root.google.bigtable.v2.Cell.verify(message.cells[i]); if (error) - return "valueRangeFilter." + error; + return "cells." + error; } } - if (message.cellsPerRowOffsetFilter != null && message.hasOwnProperty("cellsPerRowOffsetFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (!$util.isInteger(message.cellsPerRowOffsetFilter)) - return "cellsPerRowOffsetFilter: integer expected"; - } - if (message.cellsPerRowLimitFilter != null && message.hasOwnProperty("cellsPerRowLimitFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (!$util.isInteger(message.cellsPerRowLimitFilter)) - return "cellsPerRowLimitFilter: integer expected"; - } - if (message.cellsPerColumnLimitFilter != null && message.hasOwnProperty("cellsPerColumnLimitFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (!$util.isInteger(message.cellsPerColumnLimitFilter)) - return "cellsPerColumnLimitFilter: integer expected"; - } - if (message.stripValueTransformer != null && message.hasOwnProperty("stripValueTransformer")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (typeof message.stripValueTransformer !== "boolean") - return "stripValueTransformer: boolean expected"; - } - if (message.applyLabelTransformer != null && message.hasOwnProperty("applyLabelTransformer")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - if (!$util.isString(message.applyLabelTransformer)) - return "applyLabelTransformer: string expected"; - } return null; }; /** - * Creates a RowFilter message from a plain object. Also converts values to their respective internal types. + * Creates a Column message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.RowFilter} RowFilter + * @returns {google.bigtable.v2.Column} Column */ - RowFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.RowFilter) + Column.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Column) return object; - var message = new $root.google.bigtable.v2.RowFilter(); - if (object.chain != null) { - if (typeof object.chain !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.chain: object expected"); - message.chain = $root.google.bigtable.v2.RowFilter.Chain.fromObject(object.chain); - } - if (object.interleave != null) { - if (typeof object.interleave !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.interleave: object expected"); - message.interleave = $root.google.bigtable.v2.RowFilter.Interleave.fromObject(object.interleave); - } - if (object.condition != null) { - if (typeof object.condition !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.condition: object expected"); - message.condition = $root.google.bigtable.v2.RowFilter.Condition.fromObject(object.condition); - } - if (object.sink != null) - message.sink = Boolean(object.sink); - if (object.passAllFilter != null) - message.passAllFilter = Boolean(object.passAllFilter); - if (object.blockAllFilter != null) - message.blockAllFilter = Boolean(object.blockAllFilter); - if (object.rowKeyRegexFilter != null) - if (typeof object.rowKeyRegexFilter === "string") - $util.base64.decode(object.rowKeyRegexFilter, message.rowKeyRegexFilter = $util.newBuffer($util.base64.length(object.rowKeyRegexFilter)), 0); - else if (object.rowKeyRegexFilter.length >= 0) - message.rowKeyRegexFilter = object.rowKeyRegexFilter; - if (object.rowSampleFilter != null) - message.rowSampleFilter = Number(object.rowSampleFilter); - if (object.familyNameRegexFilter != null) - message.familyNameRegexFilter = String(object.familyNameRegexFilter); - if (object.columnQualifierRegexFilter != null) - if (typeof object.columnQualifierRegexFilter === "string") - $util.base64.decode(object.columnQualifierRegexFilter, message.columnQualifierRegexFilter = $util.newBuffer($util.base64.length(object.columnQualifierRegexFilter)), 0); - else if (object.columnQualifierRegexFilter.length >= 0) - message.columnQualifierRegexFilter = object.columnQualifierRegexFilter; - if (object.columnRangeFilter != null) { - if (typeof object.columnRangeFilter !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.columnRangeFilter: object expected"); - message.columnRangeFilter = $root.google.bigtable.v2.ColumnRange.fromObject(object.columnRangeFilter); - } - if (object.timestampRangeFilter != null) { - if (typeof object.timestampRangeFilter !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.timestampRangeFilter: object expected"); - message.timestampRangeFilter = $root.google.bigtable.v2.TimestampRange.fromObject(object.timestampRangeFilter); - } - if (object.valueRegexFilter != null) - if (typeof object.valueRegexFilter === "string") - $util.base64.decode(object.valueRegexFilter, message.valueRegexFilter = $util.newBuffer($util.base64.length(object.valueRegexFilter)), 0); - else if (object.valueRegexFilter.length >= 0) - message.valueRegexFilter = object.valueRegexFilter; - if (object.valueRangeFilter != null) { - if (typeof object.valueRangeFilter !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.valueRangeFilter: object expected"); - message.valueRangeFilter = $root.google.bigtable.v2.ValueRange.fromObject(object.valueRangeFilter); + var message = new $root.google.bigtable.v2.Column(); + if (object.qualifier != null) + if (typeof object.qualifier === "string") + $util.base64.decode(object.qualifier, message.qualifier = $util.newBuffer($util.base64.length(object.qualifier)), 0); + else if (object.qualifier.length >= 0) + message.qualifier = object.qualifier; + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".google.bigtable.v2.Column.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) { + if (typeof object.cells[i] !== "object") + throw TypeError(".google.bigtable.v2.Column.cells: object expected"); + message.cells[i] = $root.google.bigtable.v2.Cell.fromObject(object.cells[i]); + } } - if (object.cellsPerRowOffsetFilter != null) - message.cellsPerRowOffsetFilter = object.cellsPerRowOffsetFilter | 0; - if (object.cellsPerRowLimitFilter != null) - message.cellsPerRowLimitFilter = object.cellsPerRowLimitFilter | 0; - if (object.cellsPerColumnLimitFilter != null) - message.cellsPerColumnLimitFilter = object.cellsPerColumnLimitFilter | 0; - if (object.stripValueTransformer != null) - message.stripValueTransformer = Boolean(object.stripValueTransformer); - if (object.applyLabelTransformer != null) - message.applyLabelTransformer = String(object.applyLabelTransformer); return message; }; /** - * Creates a plain object from a RowFilter message. Also converts values to other types if specified. + * Creates a plain object from a Column message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static - * @param {google.bigtable.v2.RowFilter} message RowFilter + * @param {google.bigtable.v2.Column} message Column * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowFilter.toObject = function toObject(message, options) { + Column.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.chain != null && message.hasOwnProperty("chain")) { - object.chain = $root.google.bigtable.v2.RowFilter.Chain.toObject(message.chain, options); - if (options.oneofs) - object.filter = "chain"; - } - if (message.interleave != null && message.hasOwnProperty("interleave")) { - object.interleave = $root.google.bigtable.v2.RowFilter.Interleave.toObject(message.interleave, options); - if (options.oneofs) - object.filter = "interleave"; - } - if (message.condition != null && message.hasOwnProperty("condition")) { - object.condition = $root.google.bigtable.v2.RowFilter.Condition.toObject(message.condition, options); - if (options.oneofs) - object.filter = "condition"; - } - if (message.rowKeyRegexFilter != null && message.hasOwnProperty("rowKeyRegexFilter")) { - object.rowKeyRegexFilter = options.bytes === String ? $util.base64.encode(message.rowKeyRegexFilter, 0, message.rowKeyRegexFilter.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKeyRegexFilter) : message.rowKeyRegexFilter; - if (options.oneofs) - object.filter = "rowKeyRegexFilter"; - } - if (message.familyNameRegexFilter != null && message.hasOwnProperty("familyNameRegexFilter")) { - object.familyNameRegexFilter = message.familyNameRegexFilter; - if (options.oneofs) - object.filter = "familyNameRegexFilter"; - } - if (message.columnQualifierRegexFilter != null && message.hasOwnProperty("columnQualifierRegexFilter")) { - object.columnQualifierRegexFilter = options.bytes === String ? $util.base64.encode(message.columnQualifierRegexFilter, 0, message.columnQualifierRegexFilter.length) : options.bytes === Array ? Array.prototype.slice.call(message.columnQualifierRegexFilter) : message.columnQualifierRegexFilter; - if (options.oneofs) - object.filter = "columnQualifierRegexFilter"; - } - if (message.columnRangeFilter != null && message.hasOwnProperty("columnRangeFilter")) { - object.columnRangeFilter = $root.google.bigtable.v2.ColumnRange.toObject(message.columnRangeFilter, options); - if (options.oneofs) - object.filter = "columnRangeFilter"; - } - if (message.timestampRangeFilter != null && message.hasOwnProperty("timestampRangeFilter")) { - object.timestampRangeFilter = $root.google.bigtable.v2.TimestampRange.toObject(message.timestampRangeFilter, options); - if (options.oneofs) - object.filter = "timestampRangeFilter"; - } - if (message.valueRegexFilter != null && message.hasOwnProperty("valueRegexFilter")) { - object.valueRegexFilter = options.bytes === String ? $util.base64.encode(message.valueRegexFilter, 0, message.valueRegexFilter.length) : options.bytes === Array ? Array.prototype.slice.call(message.valueRegexFilter) : message.valueRegexFilter; - if (options.oneofs) - object.filter = "valueRegexFilter"; - } - if (message.cellsPerRowOffsetFilter != null && message.hasOwnProperty("cellsPerRowOffsetFilter")) { - object.cellsPerRowOffsetFilter = message.cellsPerRowOffsetFilter; - if (options.oneofs) - object.filter = "cellsPerRowOffsetFilter"; - } - if (message.cellsPerRowLimitFilter != null && message.hasOwnProperty("cellsPerRowLimitFilter")) { - object.cellsPerRowLimitFilter = message.cellsPerRowLimitFilter; - if (options.oneofs) - object.filter = "cellsPerRowLimitFilter"; - } - if (message.cellsPerColumnLimitFilter != null && message.hasOwnProperty("cellsPerColumnLimitFilter")) { - object.cellsPerColumnLimitFilter = message.cellsPerColumnLimitFilter; - if (options.oneofs) - object.filter = "cellsPerColumnLimitFilter"; - } - if (message.stripValueTransformer != null && message.hasOwnProperty("stripValueTransformer")) { - object.stripValueTransformer = message.stripValueTransformer; - if (options.oneofs) - object.filter = "stripValueTransformer"; - } - if (message.rowSampleFilter != null && message.hasOwnProperty("rowSampleFilter")) { - object.rowSampleFilter = options.json && !isFinite(message.rowSampleFilter) ? String(message.rowSampleFilter) : message.rowSampleFilter; - if (options.oneofs) - object.filter = "rowSampleFilter"; - } - if (message.valueRangeFilter != null && message.hasOwnProperty("valueRangeFilter")) { - object.valueRangeFilter = $root.google.bigtable.v2.ValueRange.toObject(message.valueRangeFilter, options); - if (options.oneofs) - object.filter = "valueRangeFilter"; - } - if (message.sink != null && message.hasOwnProperty("sink")) { - object.sink = message.sink; - if (options.oneofs) - object.filter = "sink"; - } - if (message.passAllFilter != null && message.hasOwnProperty("passAllFilter")) { - object.passAllFilter = message.passAllFilter; - if (options.oneofs) - object.filter = "passAllFilter"; - } - if (message.blockAllFilter != null && message.hasOwnProperty("blockAllFilter")) { - object.blockAllFilter = message.blockAllFilter; - if (options.oneofs) - object.filter = "blockAllFilter"; - } - if (message.applyLabelTransformer != null && message.hasOwnProperty("applyLabelTransformer")) { - object.applyLabelTransformer = message.applyLabelTransformer; - if (options.oneofs) - object.filter = "applyLabelTransformer"; + if (options.arrays || options.defaults) + object.cells = []; + if (options.defaults) + if (options.bytes === String) + object.qualifier = ""; + else { + object.qualifier = []; + if (options.bytes !== Array) + object.qualifier = $util.newBuffer(object.qualifier); + } + if (message.qualifier != null && message.hasOwnProperty("qualifier")) + object.qualifier = options.bytes === String ? $util.base64.encode(message.qualifier, 0, message.qualifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.qualifier) : message.qualifier; + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = $root.google.bigtable.v2.Cell.toObject(message.cells[j], options); } return object; }; /** - * Converts this RowFilter to JSON. + * Converts this Column to JSON. * @function toJSON - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @instance * @returns {Object.} JSON object */ - RowFilter.prototype.toJSON = function toJSON() { + Column.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RowFilter + * Gets the default type url for Column * @function getTypeUrl - * @memberof google.bigtable.v2.RowFilter + * @memberof google.bigtable.v2.Column * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RowFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Column.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.RowFilter"; + return typeUrlPrefix + "/google.bigtable.v2.Column"; }; - RowFilter.Chain = (function() { + return Column; + })(); - /** - * Properties of a Chain. - * @memberof google.bigtable.v2.RowFilter - * @interface IChain - * @property {Array.|null} [filters] Chain filters - */ + v2.Cell = (function() { - /** - * Constructs a new Chain. - * @memberof google.bigtable.v2.RowFilter - * @classdesc Represents a Chain. - * @implements IChain - * @constructor - * @param {google.bigtable.v2.RowFilter.IChain=} [properties] Properties to set - */ - function Chain(properties) { - this.filters = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a Cell. + * @memberof google.bigtable.v2 + * @interface ICell + * @property {number|Long|null} [timestampMicros] Cell timestampMicros + * @property {Uint8Array|null} [value] Cell value + * @property {Array.|null} [labels] Cell labels + */ - /** - * Chain filters. - * @member {Array.} filters - * @memberof google.bigtable.v2.RowFilter.Chain - * @instance - */ - Chain.prototype.filters = $util.emptyArray; + /** + * Constructs a new Cell. + * @memberof google.bigtable.v2 + * @classdesc Represents a Cell. + * @implements ICell + * @constructor + * @param {google.bigtable.v2.ICell=} [properties] Properties to set + */ + function Cell(properties) { + this.labels = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new Chain instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {google.bigtable.v2.RowFilter.IChain=} [properties] Properties to set - * @returns {google.bigtable.v2.RowFilter.Chain} Chain instance - */ - Chain.create = function create(properties) { - return new Chain(properties); - }; + /** + * Cell timestampMicros. + * @member {number|Long} timestampMicros + * @memberof google.bigtable.v2.Cell + * @instance + */ + Cell.prototype.timestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Encodes the specified Chain message. Does not implicitly {@link google.bigtable.v2.RowFilter.Chain.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {google.bigtable.v2.RowFilter.IChain} message Chain message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Chain.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.filters != null && message.filters.length) - for (var i = 0; i < message.filters.length; ++i) - $root.google.bigtable.v2.RowFilter.encode(message.filters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Cell value. + * @member {Uint8Array} value + * @memberof google.bigtable.v2.Cell + * @instance + */ + Cell.prototype.value = $util.newBuffer([]); - /** - * Encodes the specified Chain message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Chain.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {google.bigtable.v2.RowFilter.IChain} message Chain message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Chain.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Cell labels. + * @member {Array.} labels + * @memberof google.bigtable.v2.Cell + * @instance + */ + Cell.prototype.labels = $util.emptyArray; - /** - * Decodes a Chain message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.RowFilter.Chain} Chain - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Chain.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowFilter.Chain(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) + /** + * Creates a new Cell instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Cell + * @static + * @param {google.bigtable.v2.ICell=} [properties] Properties to set + * @returns {google.bigtable.v2.Cell} Cell instance + */ + Cell.create = function create(properties) { + return new Cell(properties); + }; + + /** + * Encodes the specified Cell message. Does not implicitly {@link google.bigtable.v2.Cell.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Cell + * @static + * @param {google.bigtable.v2.ICell} message Cell message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Cell.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestampMicros != null && Object.hasOwnProperty.call(message, "timestampMicros")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestampMicros); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.labels != null && message.labels.length) + for (var i = 0; i < message.labels.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.labels[i]); + return writer; + }; + + /** + * Encodes the specified Cell message, length delimited. Does not implicitly {@link google.bigtable.v2.Cell.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Cell + * @static + * @param {google.bigtable.v2.ICell} message Cell message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Cell.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Cell message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Cell + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Cell} Cell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Cell.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Cell(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.timestampMicros = reader.int64(); break; - switch (tag >>> 3) { - case 1: { - if (!(message.filters && message.filters.length)) - message.filters = []; - message.filters.push($root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + } + case 2: { + message.value = reader.bytes(); break; } - } - return message; - }; - - /** - * Decodes a Chain message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.RowFilter.Chain} Chain - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Chain.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Chain message. - * @function verify - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Chain.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.filters != null && message.hasOwnProperty("filters")) { - if (!Array.isArray(message.filters)) - return "filters: array expected"; - for (var i = 0; i < message.filters.length; ++i) { - var error = $root.google.bigtable.v2.RowFilter.verify(message.filters[i]); - if (error) - return "filters." + error; + case 3: { + if (!(message.labels && message.labels.length)) + message.labels = []; + message.labels.push(reader.string()); + break; } + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a Chain message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.RowFilter.Chain} Chain - */ - Chain.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.RowFilter.Chain) - return object; - var message = new $root.google.bigtable.v2.RowFilter.Chain(); - if (object.filters) { - if (!Array.isArray(object.filters)) - throw TypeError(".google.bigtable.v2.RowFilter.Chain.filters: array expected"); - message.filters = []; - for (var i = 0; i < object.filters.length; ++i) { - if (typeof object.filters[i] !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.Chain.filters: object expected"); - message.filters[i] = $root.google.bigtable.v2.RowFilter.fromObject(object.filters[i]); - } - } - return message; - }; + /** + * Decodes a Cell message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Cell + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Cell} Cell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Cell.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Chain message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {google.bigtable.v2.RowFilter.Chain} message Chain - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Chain.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.filters = []; - if (message.filters && message.filters.length) { - object.filters = []; - for (var j = 0; j < message.filters.length; ++j) - object.filters[j] = $root.google.bigtable.v2.RowFilter.toObject(message.filters[j], options); - } - return object; - }; + /** + * Verifies a Cell message. + * @function verify + * @memberof google.bigtable.v2.Cell + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Cell.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) + if (!$util.isInteger(message.timestampMicros) && !(message.timestampMicros && $util.isInteger(message.timestampMicros.low) && $util.isInteger(message.timestampMicros.high))) + return "timestampMicros: integer|Long expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!Array.isArray(message.labels)) + return "labels: array expected"; + for (var i = 0; i < message.labels.length; ++i) + if (!$util.isString(message.labels[i])) + return "labels: string[] expected"; + } + return null; + }; - /** - * Converts this Chain to JSON. - * @function toJSON - * @memberof google.bigtable.v2.RowFilter.Chain - * @instance - * @returns {Object.} JSON object - */ - Chain.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a Cell message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Cell + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Cell} Cell + */ + Cell.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Cell) + return object; + var message = new $root.google.bigtable.v2.Cell(); + if (object.timestampMicros != null) + if ($util.Long) + (message.timestampMicros = $util.Long.fromValue(object.timestampMicros)).unsigned = false; + else if (typeof object.timestampMicros === "string") + message.timestampMicros = parseInt(object.timestampMicros, 10); + else if (typeof object.timestampMicros === "number") + message.timestampMicros = object.timestampMicros; + else if (typeof object.timestampMicros === "object") + message.timestampMicros = new $util.LongBits(object.timestampMicros.low >>> 0, object.timestampMicros.high >>> 0).toNumber(); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + if (object.labels) { + if (!Array.isArray(object.labels)) + throw TypeError(".google.bigtable.v2.Cell.labels: array expected"); + message.labels = []; + for (var i = 0; i < object.labels.length; ++i) + message.labels[i] = String(object.labels[i]); + } + return message; + }; - /** - * Gets the default type url for Chain - * @function getTypeUrl - * @memberof google.bigtable.v2.RowFilter.Chain - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Chain.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Creates a plain object from a Cell message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Cell + * @static + * @param {google.bigtable.v2.Cell} message Cell + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Cell.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.labels = []; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampMicros = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); } - return typeUrlPrefix + "/google.bigtable.v2.RowFilter.Chain"; - }; - - return Chain; - })(); - - RowFilter.Interleave = (function() { + } + if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) + if (typeof message.timestampMicros === "number") + object.timestampMicros = options.longs === String ? String(message.timestampMicros) : message.timestampMicros; + else + object.timestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMicros) : options.longs === Number ? new $util.LongBits(message.timestampMicros.low >>> 0, message.timestampMicros.high >>> 0).toNumber() : message.timestampMicros; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.labels && message.labels.length) { + object.labels = []; + for (var j = 0; j < message.labels.length; ++j) + object.labels[j] = message.labels[j]; + } + return object; + }; - /** - * Properties of an Interleave. - * @memberof google.bigtable.v2.RowFilter - * @interface IInterleave - * @property {Array.|null} [filters] Interleave filters - */ + /** + * Converts this Cell to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Cell + * @instance + * @returns {Object.} JSON object + */ + Cell.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Interleave. - * @memberof google.bigtable.v2.RowFilter - * @classdesc Represents an Interleave. - * @implements IInterleave - * @constructor - * @param {google.bigtable.v2.RowFilter.IInterleave=} [properties] Properties to set - */ - function Interleave(properties) { - this.filters = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Gets the default type url for Cell + * @function getTypeUrl + * @memberof google.bigtable.v2.Cell + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Cell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.bigtable.v2.Cell"; + }; - /** - * Interleave filters. - * @member {Array.} filters - * @memberof google.bigtable.v2.RowFilter.Interleave - * @instance - */ - Interleave.prototype.filters = $util.emptyArray; + return Cell; + })(); - /** - * Creates a new Interleave instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {google.bigtable.v2.RowFilter.IInterleave=} [properties] Properties to set - * @returns {google.bigtable.v2.RowFilter.Interleave} Interleave instance - */ - Interleave.create = function create(properties) { - return new Interleave(properties); - }; + v2.Value = (function() { - /** - * Encodes the specified Interleave message. Does not implicitly {@link google.bigtable.v2.RowFilter.Interleave.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {google.bigtable.v2.RowFilter.IInterleave} message Interleave message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Interleave.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.filters != null && message.filters.length) - for (var i = 0; i < message.filters.length; ++i) - $root.google.bigtable.v2.RowFilter.encode(message.filters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Properties of a Value. + * @memberof google.bigtable.v2 + * @interface IValue + * @property {google.bigtable.v2.IType|null} [type] Value type + * @property {Uint8Array|null} [rawValue] Value rawValue + * @property {number|Long|null} [rawTimestampMicros] Value rawTimestampMicros + * @property {Uint8Array|null} [bytesValue] Value bytesValue + * @property {string|null} [stringValue] Value stringValue + * @property {number|Long|null} [intValue] Value intValue + * @property {boolean|null} [boolValue] Value boolValue + * @property {number|null} [floatValue] Value floatValue + * @property {google.protobuf.ITimestamp|null} [timestampValue] Value timestampValue + * @property {google.type.IDate|null} [dateValue] Value dateValue + * @property {google.bigtable.v2.IArrayValue|null} [arrayValue] Value arrayValue + */ - /** - * Encodes the specified Interleave message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Interleave.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {google.bigtable.v2.RowFilter.IInterleave} message Interleave message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Interleave.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new Value. + * @memberof google.bigtable.v2 + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.bigtable.v2.IValue=} [properties] Properties to set + */ + function Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes an Interleave message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.RowFilter.Interleave} Interleave - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Interleave.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowFilter.Interleave(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - if (!(message.filters && message.filters.length)) - message.filters = []; - message.filters.push($root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Value type. + * @member {google.bigtable.v2.IType|null|undefined} type + * @memberof google.bigtable.v2.Value + * @instance + */ + Value.prototype.type = null; - /** - * Decodes an Interleave message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.RowFilter.Interleave} Interleave - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Interleave.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Value rawValue. + * @member {Uint8Array|null|undefined} rawValue + * @memberof google.bigtable.v2.Value + * @instance + */ + Value.prototype.rawValue = null; - /** - * Verifies an Interleave message. - * @function verify - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Interleave.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.filters != null && message.hasOwnProperty("filters")) { - if (!Array.isArray(message.filters)) - return "filters: array expected"; - for (var i = 0; i < message.filters.length; ++i) { - var error = $root.google.bigtable.v2.RowFilter.verify(message.filters[i]); - if (error) - return "filters." + error; - } - } - return null; - }; - - /** - * Creates an Interleave message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.RowFilter.Interleave} Interleave - */ - Interleave.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.RowFilter.Interleave) - return object; - var message = new $root.google.bigtable.v2.RowFilter.Interleave(); - if (object.filters) { - if (!Array.isArray(object.filters)) - throw TypeError(".google.bigtable.v2.RowFilter.Interleave.filters: array expected"); - message.filters = []; - for (var i = 0; i < object.filters.length; ++i) { - if (typeof object.filters[i] !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.Interleave.filters: object expected"); - message.filters[i] = $root.google.bigtable.v2.RowFilter.fromObject(object.filters[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an Interleave message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {google.bigtable.v2.RowFilter.Interleave} message Interleave - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Interleave.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.filters = []; - if (message.filters && message.filters.length) { - object.filters = []; - for (var j = 0; j < message.filters.length; ++j) - object.filters[j] = $root.google.bigtable.v2.RowFilter.toObject(message.filters[j], options); - } - return object; - }; - - /** - * Converts this Interleave to JSON. - * @function toJSON - * @memberof google.bigtable.v2.RowFilter.Interleave - * @instance - * @returns {Object.} JSON object - */ - Interleave.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Interleave - * @function getTypeUrl - * @memberof google.bigtable.v2.RowFilter.Interleave - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Interleave.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.RowFilter.Interleave"; - }; - - return Interleave; - })(); - - RowFilter.Condition = (function() { - - /** - * Properties of a Condition. - * @memberof google.bigtable.v2.RowFilter - * @interface ICondition - * @property {google.bigtable.v2.IRowFilter|null} [predicateFilter] Condition predicateFilter - * @property {google.bigtable.v2.IRowFilter|null} [trueFilter] Condition trueFilter - * @property {google.bigtable.v2.IRowFilter|null} [falseFilter] Condition falseFilter - */ - - /** - * Constructs a new Condition. - * @memberof google.bigtable.v2.RowFilter - * @classdesc Represents a Condition. - * @implements ICondition - * @constructor - * @param {google.bigtable.v2.RowFilter.ICondition=} [properties] Properties to set - */ - function Condition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Condition predicateFilter. - * @member {google.bigtable.v2.IRowFilter|null|undefined} predicateFilter - * @memberof google.bigtable.v2.RowFilter.Condition - * @instance - */ - Condition.prototype.predicateFilter = null; - - /** - * Condition trueFilter. - * @member {google.bigtable.v2.IRowFilter|null|undefined} trueFilter - * @memberof google.bigtable.v2.RowFilter.Condition - * @instance - */ - Condition.prototype.trueFilter = null; - - /** - * Condition falseFilter. - * @member {google.bigtable.v2.IRowFilter|null|undefined} falseFilter - * @memberof google.bigtable.v2.RowFilter.Condition - * @instance - */ - Condition.prototype.falseFilter = null; - - /** - * Creates a new Condition instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {google.bigtable.v2.RowFilter.ICondition=} [properties] Properties to set - * @returns {google.bigtable.v2.RowFilter.Condition} Condition instance - */ - Condition.create = function create(properties) { - return new Condition(properties); - }; - - /** - * Encodes the specified Condition message. Does not implicitly {@link google.bigtable.v2.RowFilter.Condition.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {google.bigtable.v2.RowFilter.ICondition} message Condition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Condition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.predicateFilter != null && Object.hasOwnProperty.call(message, "predicateFilter")) - $root.google.bigtable.v2.RowFilter.encode(message.predicateFilter, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.trueFilter != null && Object.hasOwnProperty.call(message, "trueFilter")) - $root.google.bigtable.v2.RowFilter.encode(message.trueFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.falseFilter != null && Object.hasOwnProperty.call(message, "falseFilter")) - $root.google.bigtable.v2.RowFilter.encode(message.falseFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Condition message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Condition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {google.bigtable.v2.RowFilter.ICondition} message Condition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Condition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Condition message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.RowFilter.Condition} Condition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Condition.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowFilter.Condition(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.predicateFilter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); - break; - } - case 2: { - message.trueFilter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); - break; - } - case 3: { - message.falseFilter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Condition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.RowFilter.Condition} Condition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Condition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Condition message. - * @function verify - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Condition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.predicateFilter != null && message.hasOwnProperty("predicateFilter")) { - var error = $root.google.bigtable.v2.RowFilter.verify(message.predicateFilter); - if (error) - return "predicateFilter." + error; - } - if (message.trueFilter != null && message.hasOwnProperty("trueFilter")) { - var error = $root.google.bigtable.v2.RowFilter.verify(message.trueFilter); - if (error) - return "trueFilter." + error; - } - if (message.falseFilter != null && message.hasOwnProperty("falseFilter")) { - var error = $root.google.bigtable.v2.RowFilter.verify(message.falseFilter); - if (error) - return "falseFilter." + error; - } - return null; - }; - - /** - * Creates a Condition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.RowFilter.Condition} Condition - */ - Condition.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.RowFilter.Condition) - return object; - var message = new $root.google.bigtable.v2.RowFilter.Condition(); - if (object.predicateFilter != null) { - if (typeof object.predicateFilter !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.Condition.predicateFilter: object expected"); - message.predicateFilter = $root.google.bigtable.v2.RowFilter.fromObject(object.predicateFilter); - } - if (object.trueFilter != null) { - if (typeof object.trueFilter !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.Condition.trueFilter: object expected"); - message.trueFilter = $root.google.bigtable.v2.RowFilter.fromObject(object.trueFilter); - } - if (object.falseFilter != null) { - if (typeof object.falseFilter !== "object") - throw TypeError(".google.bigtable.v2.RowFilter.Condition.falseFilter: object expected"); - message.falseFilter = $root.google.bigtable.v2.RowFilter.fromObject(object.falseFilter); - } - return message; - }; - - /** - * Creates a plain object from a Condition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {google.bigtable.v2.RowFilter.Condition} message Condition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Condition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.predicateFilter = null; - object.trueFilter = null; - object.falseFilter = null; - } - if (message.predicateFilter != null && message.hasOwnProperty("predicateFilter")) - object.predicateFilter = $root.google.bigtable.v2.RowFilter.toObject(message.predicateFilter, options); - if (message.trueFilter != null && message.hasOwnProperty("trueFilter")) - object.trueFilter = $root.google.bigtable.v2.RowFilter.toObject(message.trueFilter, options); - if (message.falseFilter != null && message.hasOwnProperty("falseFilter")) - object.falseFilter = $root.google.bigtable.v2.RowFilter.toObject(message.falseFilter, options); - return object; - }; - - /** - * Converts this Condition to JSON. - * @function toJSON - * @memberof google.bigtable.v2.RowFilter.Condition - * @instance - * @returns {Object.} JSON object - */ - Condition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Condition - * @function getTypeUrl - * @memberof google.bigtable.v2.RowFilter.Condition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Condition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.RowFilter.Condition"; - }; - - return Condition; - })(); - - return RowFilter; - })(); - - v2.Mutation = (function() { + /** + * Value rawTimestampMicros. + * @member {number|Long|null|undefined} rawTimestampMicros + * @memberof google.bigtable.v2.Value + * @instance + */ + Value.prototype.rawTimestampMicros = null; /** - * Properties of a Mutation. - * @memberof google.bigtable.v2 - * @interface IMutation - * @property {google.bigtable.v2.Mutation.ISetCell|null} [setCell] Mutation setCell - * @property {google.bigtable.v2.Mutation.IAddToCell|null} [addToCell] Mutation addToCell - * @property {google.bigtable.v2.Mutation.IMergeToCell|null} [mergeToCell] Mutation mergeToCell - * @property {google.bigtable.v2.Mutation.IDeleteFromColumn|null} [deleteFromColumn] Mutation deleteFromColumn - * @property {google.bigtable.v2.Mutation.IDeleteFromFamily|null} [deleteFromFamily] Mutation deleteFromFamily - * @property {google.bigtable.v2.Mutation.IDeleteFromRow|null} [deleteFromRow] Mutation deleteFromRow + * Value bytesValue. + * @member {Uint8Array|null|undefined} bytesValue + * @memberof google.bigtable.v2.Value + * @instance */ + Value.prototype.bytesValue = null; /** - * Constructs a new Mutation. - * @memberof google.bigtable.v2 - * @classdesc Represents a Mutation. - * @implements IMutation - * @constructor - * @param {google.bigtable.v2.IMutation=} [properties] Properties to set + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.bigtable.v2.Value + * @instance */ - function Mutation(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Value.prototype.stringValue = null; /** - * Mutation setCell. - * @member {google.bigtable.v2.Mutation.ISetCell|null|undefined} setCell - * @memberof google.bigtable.v2.Mutation + * Value intValue. + * @member {number|Long|null|undefined} intValue + * @memberof google.bigtable.v2.Value * @instance */ - Mutation.prototype.setCell = null; + Value.prototype.intValue = null; /** - * Mutation addToCell. - * @member {google.bigtable.v2.Mutation.IAddToCell|null|undefined} addToCell - * @memberof google.bigtable.v2.Mutation + * Value boolValue. + * @member {boolean|null|undefined} boolValue + * @memberof google.bigtable.v2.Value * @instance */ - Mutation.prototype.addToCell = null; + Value.prototype.boolValue = null; /** - * Mutation mergeToCell. - * @member {google.bigtable.v2.Mutation.IMergeToCell|null|undefined} mergeToCell - * @memberof google.bigtable.v2.Mutation + * Value floatValue. + * @member {number|null|undefined} floatValue + * @memberof google.bigtable.v2.Value * @instance */ - Mutation.prototype.mergeToCell = null; + Value.prototype.floatValue = null; /** - * Mutation deleteFromColumn. - * @member {google.bigtable.v2.Mutation.IDeleteFromColumn|null|undefined} deleteFromColumn - * @memberof google.bigtable.v2.Mutation + * Value timestampValue. + * @member {google.protobuf.ITimestamp|null|undefined} timestampValue + * @memberof google.bigtable.v2.Value * @instance */ - Mutation.prototype.deleteFromColumn = null; + Value.prototype.timestampValue = null; /** - * Mutation deleteFromFamily. - * @member {google.bigtable.v2.Mutation.IDeleteFromFamily|null|undefined} deleteFromFamily - * @memberof google.bigtable.v2.Mutation + * Value dateValue. + * @member {google.type.IDate|null|undefined} dateValue + * @memberof google.bigtable.v2.Value * @instance */ - Mutation.prototype.deleteFromFamily = null; + Value.prototype.dateValue = null; /** - * Mutation deleteFromRow. - * @member {google.bigtable.v2.Mutation.IDeleteFromRow|null|undefined} deleteFromRow - * @memberof google.bigtable.v2.Mutation + * Value arrayValue. + * @member {google.bigtable.v2.IArrayValue|null|undefined} arrayValue + * @memberof google.bigtable.v2.Value * @instance */ - Mutation.prototype.deleteFromRow = null; + Value.prototype.arrayValue = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * Mutation mutation. - * @member {"setCell"|"addToCell"|"mergeToCell"|"deleteFromColumn"|"deleteFromFamily"|"deleteFromRow"|undefined} mutation - * @memberof google.bigtable.v2.Mutation + * Value kind. + * @member {"rawValue"|"rawTimestampMicros"|"bytesValue"|"stringValue"|"intValue"|"boolValue"|"floatValue"|"timestampValue"|"dateValue"|"arrayValue"|undefined} kind + * @memberof google.bigtable.v2.Value * @instance */ - Object.defineProperty(Mutation.prototype, "mutation", { - get: $util.oneOfGetter($oneOfFields = ["setCell", "addToCell", "mergeToCell", "deleteFromColumn", "deleteFromFamily", "deleteFromRow"]), + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["rawValue", "rawTimestampMicros", "bytesValue", "stringValue", "intValue", "boolValue", "floatValue", "timestampValue", "dateValue", "arrayValue"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new Mutation instance using the specified properties. + * Creates a new Value instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @static - * @param {google.bigtable.v2.IMutation=} [properties] Properties to set - * @returns {google.bigtable.v2.Mutation} Mutation instance + * @param {google.bigtable.v2.IValue=} [properties] Properties to set + * @returns {google.bigtable.v2.Value} Value instance */ - Mutation.create = function create(properties) { - return new Mutation(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified Mutation message. Does not implicitly {@link google.bigtable.v2.Mutation.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link google.bigtable.v2.Value.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @static - * @param {google.bigtable.v2.IMutation} message Mutation message or plain object to encode + * @param {google.bigtable.v2.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Mutation.encode = function encode(message, writer) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.setCell != null && Object.hasOwnProperty.call(message, "setCell")) - $root.google.bigtable.v2.Mutation.SetCell.encode(message.setCell, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deleteFromColumn != null && Object.hasOwnProperty.call(message, "deleteFromColumn")) - $root.google.bigtable.v2.Mutation.DeleteFromColumn.encode(message.deleteFromColumn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.deleteFromFamily != null && Object.hasOwnProperty.call(message, "deleteFromFamily")) - $root.google.bigtable.v2.Mutation.DeleteFromFamily.encode(message.deleteFromFamily, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.deleteFromRow != null && Object.hasOwnProperty.call(message, "deleteFromRow")) - $root.google.bigtable.v2.Mutation.DeleteFromRow.encode(message.deleteFromRow, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.addToCell != null && Object.hasOwnProperty.call(message, "addToCell")) - $root.google.bigtable.v2.Mutation.AddToCell.encode(message.addToCell, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.mergeToCell != null && Object.hasOwnProperty.call(message, "mergeToCell")) - $root.google.bigtable.v2.Mutation.MergeToCell.encode(message.mergeToCell, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Mutation message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Mutation - * @static - * @param {google.bigtable.v2.IMutation} message Mutation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Mutation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + if (message.bytesValue != null && Object.hasOwnProperty.call(message, "bytesValue")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.bytesValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.arrayValue != null && Object.hasOwnProperty.call(message, "arrayValue")) + $root.google.bigtable.v2.ArrayValue.encode(message.arrayValue, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.intValue); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + $root.google.bigtable.v2.Type.encode(message.type, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.rawValue != null && Object.hasOwnProperty.call(message, "rawValue")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.rawValue); + if (message.rawTimestampMicros != null && Object.hasOwnProperty.call(message, "rawTimestampMicros")) + writer.uint32(/* id 9, wireType 0 =*/72).int64(message.rawTimestampMicros); + if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.boolValue); + if (message.floatValue != null && Object.hasOwnProperty.call(message, "floatValue")) + writer.uint32(/* id 11, wireType 1 =*/89).double(message.floatValue); + if (message.timestampValue != null && Object.hasOwnProperty.call(message, "timestampValue")) + $root.google.protobuf.Timestamp.encode(message.timestampValue, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.dateValue != null && Object.hasOwnProperty.call(message, "dateValue")) + $root.google.type.Date.encode(message.dateValue, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + return writer; + }; /** - * Decodes a Mutation message from the specified reader or buffer. + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.bigtable.v2.Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Value + * @static + * @param {google.bigtable.v2.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Mutation} Mutation + * @returns {google.bigtable.v2.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Mutation.decode = function decode(reader, length, error) { + Value.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Value(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 1: { - message.setCell = $root.google.bigtable.v2.Mutation.SetCell.decode(reader, reader.uint32()); + case 7: { + message.type = $root.google.bigtable.v2.Type.decode(reader, reader.uint32()); break; } - case 5: { - message.addToCell = $root.google.bigtable.v2.Mutation.AddToCell.decode(reader, reader.uint32()); + case 8: { + message.rawValue = reader.bytes(); break; } - case 6: { - message.mergeToCell = $root.google.bigtable.v2.Mutation.MergeToCell.decode(reader, reader.uint32()); + case 9: { + message.rawTimestampMicros = reader.int64(); break; } case 2: { - message.deleteFromColumn = $root.google.bigtable.v2.Mutation.DeleteFromColumn.decode(reader, reader.uint32()); + message.bytesValue = reader.bytes(); break; } case 3: { - message.deleteFromFamily = $root.google.bigtable.v2.Mutation.DeleteFromFamily.decode(reader, reader.uint32()); + message.stringValue = reader.string(); + break; + } + case 6: { + message.intValue = reader.int64(); + break; + } + case 10: { + message.boolValue = reader.bool(); + break; + } + case 11: { + message.floatValue = reader.double(); + break; + } + case 12: { + message.timestampValue = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.dateValue = $root.google.type.Date.decode(reader, reader.uint32()); break; } case 4: { - message.deleteFromRow = $root.google.bigtable.v2.Mutation.DeleteFromRow.decode(reader, reader.uint32()); + message.arrayValue = $root.google.bigtable.v2.ArrayValue.decode(reader, reader.uint32()); break; } default: @@ -56524,1770 +56065,1492 @@ }; /** - * Decodes a Mutation message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Mutation} Mutation + * @returns {google.bigtable.v2.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Mutation.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Mutation message. + * Verifies a Value message. * @function verify - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Mutation.verify = function verify(message) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.setCell != null && message.hasOwnProperty("setCell")) { - properties.mutation = 1; - { - var error = $root.google.bigtable.v2.Mutation.SetCell.verify(message.setCell); - if (error) - return "setCell." + error; - } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.google.bigtable.v2.Type.verify(message.type); + if (error) + return "type." + error; } - if (message.addToCell != null && message.hasOwnProperty("addToCell")) { - if (properties.mutation === 1) - return "mutation: multiple values"; - properties.mutation = 1; - { - var error = $root.google.bigtable.v2.Mutation.AddToCell.verify(message.addToCell); - if (error) - return "addToCell." + error; - } + if (message.rawValue != null && message.hasOwnProperty("rawValue")) { + properties.kind = 1; + if (!(message.rawValue && typeof message.rawValue.length === "number" || $util.isString(message.rawValue))) + return "rawValue: buffer expected"; } - if (message.mergeToCell != null && message.hasOwnProperty("mergeToCell")) { - if (properties.mutation === 1) - return "mutation: multiple values"; - properties.mutation = 1; - { - var error = $root.google.bigtable.v2.Mutation.MergeToCell.verify(message.mergeToCell); - if (error) - return "mergeToCell." + error; - } + if (message.rawTimestampMicros != null && message.hasOwnProperty("rawTimestampMicros")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isInteger(message.rawTimestampMicros) && !(message.rawTimestampMicros && $util.isInteger(message.rawTimestampMicros.low) && $util.isInteger(message.rawTimestampMicros.high))) + return "rawTimestampMicros: integer|Long expected"; } - if (message.deleteFromColumn != null && message.hasOwnProperty("deleteFromColumn")) { - if (properties.mutation === 1) - return "mutation: multiple values"; - properties.mutation = 1; + if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!(message.bytesValue && typeof message.bytesValue.length === "number" || $util.isString(message.bytesValue))) + return "bytesValue: buffer expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) + return "intValue: integer|Long expected"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.floatValue !== "number") + return "floatValue: number expected"; + } + if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; { - var error = $root.google.bigtable.v2.Mutation.DeleteFromColumn.verify(message.deleteFromColumn); + var error = $root.google.protobuf.Timestamp.verify(message.timestampValue); if (error) - return "deleteFromColumn." + error; + return "timestampValue." + error; } } - if (message.deleteFromFamily != null && message.hasOwnProperty("deleteFromFamily")) { - if (properties.mutation === 1) - return "mutation: multiple values"; - properties.mutation = 1; + if (message.dateValue != null && message.hasOwnProperty("dateValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; { - var error = $root.google.bigtable.v2.Mutation.DeleteFromFamily.verify(message.deleteFromFamily); + var error = $root.google.type.Date.verify(message.dateValue); if (error) - return "deleteFromFamily." + error; + return "dateValue." + error; } } - if (message.deleteFromRow != null && message.hasOwnProperty("deleteFromRow")) { - if (properties.mutation === 1) - return "mutation: multiple values"; - properties.mutation = 1; + if (message.arrayValue != null && message.hasOwnProperty("arrayValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; { - var error = $root.google.bigtable.v2.Mutation.DeleteFromRow.verify(message.deleteFromRow); + var error = $root.google.bigtable.v2.ArrayValue.verify(message.arrayValue); if (error) - return "deleteFromRow." + error; + return "arrayValue." + error; } } return null; }; /** - * Creates a Mutation message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Mutation} Mutation + * @returns {google.bigtable.v2.Value} Value */ - Mutation.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Mutation) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Value) return object; - var message = new $root.google.bigtable.v2.Mutation(); - if (object.setCell != null) { - if (typeof object.setCell !== "object") - throw TypeError(".google.bigtable.v2.Mutation.setCell: object expected"); - message.setCell = $root.google.bigtable.v2.Mutation.SetCell.fromObject(object.setCell); - } - if (object.addToCell != null) { - if (typeof object.addToCell !== "object") - throw TypeError(".google.bigtable.v2.Mutation.addToCell: object expected"); - message.addToCell = $root.google.bigtable.v2.Mutation.AddToCell.fromObject(object.addToCell); - } - if (object.mergeToCell != null) { - if (typeof object.mergeToCell !== "object") - throw TypeError(".google.bigtable.v2.Mutation.mergeToCell: object expected"); - message.mergeToCell = $root.google.bigtable.v2.Mutation.MergeToCell.fromObject(object.mergeToCell); + var message = new $root.google.bigtable.v2.Value(); + if (object.type != null) { + if (typeof object.type !== "object") + throw TypeError(".google.bigtable.v2.Value.type: object expected"); + message.type = $root.google.bigtable.v2.Type.fromObject(object.type); } - if (object.deleteFromColumn != null) { - if (typeof object.deleteFromColumn !== "object") - throw TypeError(".google.bigtable.v2.Mutation.deleteFromColumn: object expected"); - message.deleteFromColumn = $root.google.bigtable.v2.Mutation.DeleteFromColumn.fromObject(object.deleteFromColumn); + if (object.rawValue != null) + if (typeof object.rawValue === "string") + $util.base64.decode(object.rawValue, message.rawValue = $util.newBuffer($util.base64.length(object.rawValue)), 0); + else if (object.rawValue.length >= 0) + message.rawValue = object.rawValue; + if (object.rawTimestampMicros != null) + if ($util.Long) + (message.rawTimestampMicros = $util.Long.fromValue(object.rawTimestampMicros)).unsigned = false; + else if (typeof object.rawTimestampMicros === "string") + message.rawTimestampMicros = parseInt(object.rawTimestampMicros, 10); + else if (typeof object.rawTimestampMicros === "number") + message.rawTimestampMicros = object.rawTimestampMicros; + else if (typeof object.rawTimestampMicros === "object") + message.rawTimestampMicros = new $util.LongBits(object.rawTimestampMicros.low >>> 0, object.rawTimestampMicros.high >>> 0).toNumber(); + if (object.bytesValue != null) + if (typeof object.bytesValue === "string") + $util.base64.decode(object.bytesValue, message.bytesValue = $util.newBuffer($util.base64.length(object.bytesValue)), 0); + else if (object.bytesValue.length >= 0) + message.bytesValue = object.bytesValue; + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.intValue != null) + if ($util.Long) + (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; + else if (typeof object.intValue === "string") + message.intValue = parseInt(object.intValue, 10); + else if (typeof object.intValue === "number") + message.intValue = object.intValue; + else if (typeof object.intValue === "object") + message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); + if (object.boolValue != null) + message.boolValue = Boolean(object.boolValue); + if (object.floatValue != null) + message.floatValue = Number(object.floatValue); + if (object.timestampValue != null) { + if (typeof object.timestampValue !== "object") + throw TypeError(".google.bigtable.v2.Value.timestampValue: object expected"); + message.timestampValue = $root.google.protobuf.Timestamp.fromObject(object.timestampValue); } - if (object.deleteFromFamily != null) { - if (typeof object.deleteFromFamily !== "object") - throw TypeError(".google.bigtable.v2.Mutation.deleteFromFamily: object expected"); - message.deleteFromFamily = $root.google.bigtable.v2.Mutation.DeleteFromFamily.fromObject(object.deleteFromFamily); + if (object.dateValue != null) { + if (typeof object.dateValue !== "object") + throw TypeError(".google.bigtable.v2.Value.dateValue: object expected"); + message.dateValue = $root.google.type.Date.fromObject(object.dateValue); } - if (object.deleteFromRow != null) { - if (typeof object.deleteFromRow !== "object") - throw TypeError(".google.bigtable.v2.Mutation.deleteFromRow: object expected"); - message.deleteFromRow = $root.google.bigtable.v2.Mutation.DeleteFromRow.fromObject(object.deleteFromRow); + if (object.arrayValue != null) { + if (typeof object.arrayValue !== "object") + throw TypeError(".google.bigtable.v2.Value.arrayValue: object expected"); + message.arrayValue = $root.google.bigtable.v2.ArrayValue.fromObject(object.arrayValue); } return message; }; /** - * Creates a plain object from a Mutation message. Also converts values to other types if specified. + * Creates a plain object from a Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @static - * @param {google.bigtable.v2.Mutation} message Mutation + * @param {google.bigtable.v2.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Mutation.toObject = function toObject(message, options) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.setCell != null && message.hasOwnProperty("setCell")) { - object.setCell = $root.google.bigtable.v2.Mutation.SetCell.toObject(message.setCell, options); + if (options.defaults) + object.type = null; + if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { + object.bytesValue = options.bytes === String ? $util.base64.encode(message.bytesValue, 0, message.bytesValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesValue) : message.bytesValue; if (options.oneofs) - object.mutation = "setCell"; + object.kind = "bytesValue"; } - if (message.deleteFromColumn != null && message.hasOwnProperty("deleteFromColumn")) { - object.deleteFromColumn = $root.google.bigtable.v2.Mutation.DeleteFromColumn.toObject(message.deleteFromColumn, options); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; if (options.oneofs) - object.mutation = "deleteFromColumn"; + object.kind = "stringValue"; } - if (message.deleteFromFamily != null && message.hasOwnProperty("deleteFromFamily")) { - object.deleteFromFamily = $root.google.bigtable.v2.Mutation.DeleteFromFamily.toObject(message.deleteFromFamily, options); + if (message.arrayValue != null && message.hasOwnProperty("arrayValue")) { + object.arrayValue = $root.google.bigtable.v2.ArrayValue.toObject(message.arrayValue, options); if (options.oneofs) - object.mutation = "deleteFromFamily"; + object.kind = "arrayValue"; } - if (message.deleteFromRow != null && message.hasOwnProperty("deleteFromRow")) { - object.deleteFromRow = $root.google.bigtable.v2.Mutation.DeleteFromRow.toObject(message.deleteFromRow, options); + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (typeof message.intValue === "number") + object.intValue = options.longs === String ? String(message.intValue) : message.intValue; + else + object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; if (options.oneofs) - object.mutation = "deleteFromRow"; + object.kind = "intValue"; } - if (message.addToCell != null && message.hasOwnProperty("addToCell")) { - object.addToCell = $root.google.bigtable.v2.Mutation.AddToCell.toObject(message.addToCell, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = $root.google.bigtable.v2.Type.toObject(message.type, options); + if (message.rawValue != null && message.hasOwnProperty("rawValue")) { + object.rawValue = options.bytes === String ? $util.base64.encode(message.rawValue, 0, message.rawValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.rawValue) : message.rawValue; if (options.oneofs) - object.mutation = "addToCell"; + object.kind = "rawValue"; } - if (message.mergeToCell != null && message.hasOwnProperty("mergeToCell")) { - object.mergeToCell = $root.google.bigtable.v2.Mutation.MergeToCell.toObject(message.mergeToCell, options); + if (message.rawTimestampMicros != null && message.hasOwnProperty("rawTimestampMicros")) { + if (typeof message.rawTimestampMicros === "number") + object.rawTimestampMicros = options.longs === String ? String(message.rawTimestampMicros) : message.rawTimestampMicros; + else + object.rawTimestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.rawTimestampMicros) : options.longs === Number ? new $util.LongBits(message.rawTimestampMicros.low >>> 0, message.rawTimestampMicros.high >>> 0).toNumber() : message.rawTimestampMicros; if (options.oneofs) - object.mutation = "mergeToCell"; + object.kind = "rawTimestampMicros"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + object.boolValue = message.boolValue; + if (options.oneofs) + object.kind = "boolValue"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + object.floatValue = options.json && !isFinite(message.floatValue) ? String(message.floatValue) : message.floatValue; + if (options.oneofs) + object.kind = "floatValue"; + } + if (message.timestampValue != null && message.hasOwnProperty("timestampValue")) { + object.timestampValue = $root.google.protobuf.Timestamp.toObject(message.timestampValue, options); + if (options.oneofs) + object.kind = "timestampValue"; + } + if (message.dateValue != null && message.hasOwnProperty("dateValue")) { + object.dateValue = $root.google.type.Date.toObject(message.dateValue, options); + if (options.oneofs) + object.kind = "dateValue"; } return object; }; /** - * Converts this Mutation to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @instance * @returns {Object.} JSON object */ - Mutation.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Mutation + * Gets the default type url for Value * @function getTypeUrl - * @memberof google.bigtable.v2.Mutation + * @memberof google.bigtable.v2.Value * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Mutation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Mutation"; + return typeUrlPrefix + "/google.bigtable.v2.Value"; }; - Mutation.SetCell = (function() { - - /** - * Properties of a SetCell. - * @memberof google.bigtable.v2.Mutation - * @interface ISetCell - * @property {string|null} [familyName] SetCell familyName - * @property {Uint8Array|null} [columnQualifier] SetCell columnQualifier - * @property {number|Long|null} [timestampMicros] SetCell timestampMicros - * @property {Uint8Array|null} [value] SetCell value - */ + return Value; + })(); - /** - * Constructs a new SetCell. - * @memberof google.bigtable.v2.Mutation - * @classdesc Represents a SetCell. - * @implements ISetCell - * @constructor - * @param {google.bigtable.v2.Mutation.ISetCell=} [properties] Properties to set - */ - function SetCell(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v2.ArrayValue = (function() { - /** - * SetCell familyName. - * @member {string} familyName - * @memberof google.bigtable.v2.Mutation.SetCell - * @instance - */ - SetCell.prototype.familyName = ""; + /** + * Properties of an ArrayValue. + * @memberof google.bigtable.v2 + * @interface IArrayValue + * @property {Array.|null} [values] ArrayValue values + */ - /** - * SetCell columnQualifier. - * @member {Uint8Array} columnQualifier - * @memberof google.bigtable.v2.Mutation.SetCell - * @instance - */ - SetCell.prototype.columnQualifier = $util.newBuffer([]); + /** + * Constructs a new ArrayValue. + * @memberof google.bigtable.v2 + * @classdesc Represents an ArrayValue. + * @implements IArrayValue + * @constructor + * @param {google.bigtable.v2.IArrayValue=} [properties] Properties to set + */ + function ArrayValue(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SetCell timestampMicros. - * @member {number|Long} timestampMicros - * @memberof google.bigtable.v2.Mutation.SetCell - * @instance - */ - SetCell.prototype.timestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ArrayValue values. + * @member {Array.} values + * @memberof google.bigtable.v2.ArrayValue + * @instance + */ + ArrayValue.prototype.values = $util.emptyArray; - /** - * SetCell value. - * @member {Uint8Array} value - * @memberof google.bigtable.v2.Mutation.SetCell - * @instance - */ - SetCell.prototype.value = $util.newBuffer([]); + /** + * Creates a new ArrayValue instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {google.bigtable.v2.IArrayValue=} [properties] Properties to set + * @returns {google.bigtable.v2.ArrayValue} ArrayValue instance + */ + ArrayValue.create = function create(properties) { + return new ArrayValue(properties); + }; - /** - * Creates a new SetCell instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {google.bigtable.v2.Mutation.ISetCell=} [properties] Properties to set - * @returns {google.bigtable.v2.Mutation.SetCell} SetCell instance - */ - SetCell.create = function create(properties) { - return new SetCell(properties); - }; + /** + * Encodes the specified ArrayValue message. Does not implicitly {@link google.bigtable.v2.ArrayValue.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {google.bigtable.v2.IArrayValue} message ArrayValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArrayValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.bigtable.v2.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified SetCell message. Does not implicitly {@link google.bigtable.v2.Mutation.SetCell.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {google.bigtable.v2.Mutation.ISetCell} message SetCell message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetCell.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); - if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.columnQualifier); - if (message.timestampMicros != null && Object.hasOwnProperty.call(message, "timestampMicros")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.timestampMicros); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.value); - return writer; - }; - - /** - * Encodes the specified SetCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.SetCell.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {google.bigtable.v2.Mutation.ISetCell} message SetCell message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetCell.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ArrayValue message, length delimited. Does not implicitly {@link google.bigtable.v2.ArrayValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {google.bigtable.v2.IArrayValue} message ArrayValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArrayValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a SetCell message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Mutation.SetCell} SetCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetCell.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.SetCell(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.familyName = reader.string(); - break; - } - case 2: { - message.columnQualifier = reader.bytes(); - break; - } - case 3: { - message.timestampMicros = reader.int64(); - break; - } - case 4: { - message.value = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an ArrayValue message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ArrayValue} ArrayValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArrayValue.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ArrayValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.bigtable.v2.Value.decode(reader, reader.uint32())); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a SetCell message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Mutation.SetCell} SetCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetCell.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetCell message. - * @function verify - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SetCell.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) - if (!(message.columnQualifier && typeof message.columnQualifier.length === "number" || $util.isString(message.columnQualifier))) - return "columnQualifier: buffer expected"; - if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) - if (!$util.isInteger(message.timestampMicros) && !(message.timestampMicros && $util.isInteger(message.timestampMicros.low) && $util.isInteger(message.timestampMicros.high))) - return "timestampMicros: integer|Long expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - return null; - }; + } + return message; + }; - /** - * Creates a SetCell message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Mutation.SetCell} SetCell - */ - SetCell.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Mutation.SetCell) - return object; - var message = new $root.google.bigtable.v2.Mutation.SetCell(); - if (object.familyName != null) - message.familyName = String(object.familyName); - if (object.columnQualifier != null) - if (typeof object.columnQualifier === "string") - $util.base64.decode(object.columnQualifier, message.columnQualifier = $util.newBuffer($util.base64.length(object.columnQualifier)), 0); - else if (object.columnQualifier.length >= 0) - message.columnQualifier = object.columnQualifier; - if (object.timestampMicros != null) - if ($util.Long) - (message.timestampMicros = $util.Long.fromValue(object.timestampMicros)).unsigned = false; - else if (typeof object.timestampMicros === "string") - message.timestampMicros = parseInt(object.timestampMicros, 10); - else if (typeof object.timestampMicros === "number") - message.timestampMicros = object.timestampMicros; - else if (typeof object.timestampMicros === "object") - message.timestampMicros = new $util.LongBits(object.timestampMicros.low >>> 0, object.timestampMicros.high >>> 0).toNumber(); - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; - return message; - }; + /** + * Decodes an ArrayValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ArrayValue} ArrayValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArrayValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a SetCell message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {google.bigtable.v2.Mutation.SetCell} message SetCell - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SetCell.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.familyName = ""; - if (options.bytes === String) - object.columnQualifier = ""; - else { - object.columnQualifier = []; - if (options.bytes !== Array) - object.columnQualifier = $util.newBuffer(object.columnQualifier); - } - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestampMicros = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } + /** + * Verifies an ArrayValue message. + * @function verify + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArrayValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.bigtable.v2.Value.verify(message.values[i]); + if (error) + return "values." + error; } - if (message.familyName != null && message.hasOwnProperty("familyName")) - object.familyName = message.familyName; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) - object.columnQualifier = options.bytes === String ? $util.base64.encode(message.columnQualifier, 0, message.columnQualifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.columnQualifier) : message.columnQualifier; - if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) - if (typeof message.timestampMicros === "number") - object.timestampMicros = options.longs === String ? String(message.timestampMicros) : message.timestampMicros; - else - object.timestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMicros) : options.longs === Number ? new $util.LongBits(message.timestampMicros.low >>> 0, message.timestampMicros.high >>> 0).toNumber() : message.timestampMicros; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - return object; - }; - - /** - * Converts this SetCell to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Mutation.SetCell - * @instance - * @returns {Object.} JSON object - */ - SetCell.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + } + return null; + }; - /** - * Gets the default type url for SetCell - * @function getTypeUrl - * @memberof google.bigtable.v2.Mutation.SetCell - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SetCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Creates an ArrayValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ArrayValue} ArrayValue + */ + ArrayValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ArrayValue) + return object; + var message = new $root.google.bigtable.v2.ArrayValue(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.bigtable.v2.ArrayValue.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".google.bigtable.v2.ArrayValue.values: object expected"); + message.values[i] = $root.google.bigtable.v2.Value.fromObject(object.values[i]); } - return typeUrlPrefix + "/google.bigtable.v2.Mutation.SetCell"; - }; - - return SetCell; - })(); + } + return message; + }; - Mutation.AddToCell = (function() { + /** + * Creates a plain object from an ArrayValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {google.bigtable.v2.ArrayValue} message ArrayValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArrayValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.google.bigtable.v2.Value.toObject(message.values[j], options); + } + return object; + }; - /** - * Properties of an AddToCell. - * @memberof google.bigtable.v2.Mutation - * @interface IAddToCell - * @property {string|null} [familyName] AddToCell familyName - * @property {google.bigtable.v2.IValue|null} [columnQualifier] AddToCell columnQualifier - * @property {google.bigtable.v2.IValue|null} [timestamp] AddToCell timestamp - * @property {google.bigtable.v2.IValue|null} [input] AddToCell input - */ + /** + * Converts this ArrayValue to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ArrayValue + * @instance + * @returns {Object.} JSON object + */ + ArrayValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new AddToCell. - * @memberof google.bigtable.v2.Mutation - * @classdesc Represents an AddToCell. - * @implements IAddToCell - * @constructor - * @param {google.bigtable.v2.Mutation.IAddToCell=} [properties] Properties to set - */ - function AddToCell(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Gets the default type url for ArrayValue + * @function getTypeUrl + * @memberof google.bigtable.v2.ArrayValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArrayValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.bigtable.v2.ArrayValue"; + }; - /** - * AddToCell familyName. - * @member {string} familyName - * @memberof google.bigtable.v2.Mutation.AddToCell - * @instance - */ - AddToCell.prototype.familyName = ""; + return ArrayValue; + })(); - /** - * AddToCell columnQualifier. - * @member {google.bigtable.v2.IValue|null|undefined} columnQualifier - * @memberof google.bigtable.v2.Mutation.AddToCell - * @instance - */ - AddToCell.prototype.columnQualifier = null; + v2.RowRange = (function() { - /** - * AddToCell timestamp. - * @member {google.bigtable.v2.IValue|null|undefined} timestamp - * @memberof google.bigtable.v2.Mutation.AddToCell - * @instance - */ - AddToCell.prototype.timestamp = null; + /** + * Properties of a RowRange. + * @memberof google.bigtable.v2 + * @interface IRowRange + * @property {Uint8Array|null} [startKeyClosed] RowRange startKeyClosed + * @property {Uint8Array|null} [startKeyOpen] RowRange startKeyOpen + * @property {Uint8Array|null} [endKeyOpen] RowRange endKeyOpen + * @property {Uint8Array|null} [endKeyClosed] RowRange endKeyClosed + */ - /** - * AddToCell input. - * @member {google.bigtable.v2.IValue|null|undefined} input - * @memberof google.bigtable.v2.Mutation.AddToCell - * @instance - */ - AddToCell.prototype.input = null; + /** + * Constructs a new RowRange. + * @memberof google.bigtable.v2 + * @classdesc Represents a RowRange. + * @implements IRowRange + * @constructor + * @param {google.bigtable.v2.IRowRange=} [properties] Properties to set + */ + function RowRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new AddToCell instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {google.bigtable.v2.Mutation.IAddToCell=} [properties] Properties to set - * @returns {google.bigtable.v2.Mutation.AddToCell} AddToCell instance - */ - AddToCell.create = function create(properties) { - return new AddToCell(properties); - }; + /** + * RowRange startKeyClosed. + * @member {Uint8Array|null|undefined} startKeyClosed + * @memberof google.bigtable.v2.RowRange + * @instance + */ + RowRange.prototype.startKeyClosed = null; - /** - * Encodes the specified AddToCell message. Does not implicitly {@link google.bigtable.v2.Mutation.AddToCell.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {google.bigtable.v2.Mutation.IAddToCell} message AddToCell message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddToCell.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); - if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) - $root.google.bigtable.v2.Value.encode(message.columnQualifier, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - $root.google.bigtable.v2.Value.encode(message.timestamp, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - $root.google.bigtable.v2.Value.encode(message.input, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * RowRange startKeyOpen. + * @member {Uint8Array|null|undefined} startKeyOpen + * @memberof google.bigtable.v2.RowRange + * @instance + */ + RowRange.prototype.startKeyOpen = null; - /** - * Encodes the specified AddToCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.AddToCell.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {google.bigtable.v2.Mutation.IAddToCell} message AddToCell message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddToCell.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * RowRange endKeyOpen. + * @member {Uint8Array|null|undefined} endKeyOpen + * @memberof google.bigtable.v2.RowRange + * @instance + */ + RowRange.prototype.endKeyOpen = null; - /** - * Decodes an AddToCell message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Mutation.AddToCell} AddToCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddToCell.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.AddToCell(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.familyName = reader.string(); - break; - } - case 2: { - message.columnQualifier = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); - break; - } - case 3: { - message.timestamp = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); - break; - } - case 4: { - message.input = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * RowRange endKeyClosed. + * @member {Uint8Array|null|undefined} endKeyClosed + * @memberof google.bigtable.v2.RowRange + * @instance + */ + RowRange.prototype.endKeyClosed = null; - /** - * Decodes an AddToCell message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Mutation.AddToCell} AddToCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddToCell.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Verifies an AddToCell message. - * @function verify - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AddToCell.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) { - var error = $root.google.bigtable.v2.Value.verify(message.columnQualifier); - if (error) - return "columnQualifier." + error; - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) { - var error = $root.google.bigtable.v2.Value.verify(message.timestamp); - if (error) - return "timestamp." + error; - } - if (message.input != null && message.hasOwnProperty("input")) { - var error = $root.google.bigtable.v2.Value.verify(message.input); - if (error) - return "input." + error; - } - return null; - }; + /** + * RowRange startKey. + * @member {"startKeyClosed"|"startKeyOpen"|undefined} startKey + * @memberof google.bigtable.v2.RowRange + * @instance + */ + Object.defineProperty(RowRange.prototype, "startKey", { + get: $util.oneOfGetter($oneOfFields = ["startKeyClosed", "startKeyOpen"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates an AddToCell message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Mutation.AddToCell} AddToCell - */ - AddToCell.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Mutation.AddToCell) - return object; - var message = new $root.google.bigtable.v2.Mutation.AddToCell(); - if (object.familyName != null) - message.familyName = String(object.familyName); - if (object.columnQualifier != null) { - if (typeof object.columnQualifier !== "object") - throw TypeError(".google.bigtable.v2.Mutation.AddToCell.columnQualifier: object expected"); - message.columnQualifier = $root.google.bigtable.v2.Value.fromObject(object.columnQualifier); - } - if (object.timestamp != null) { - if (typeof object.timestamp !== "object") - throw TypeError(".google.bigtable.v2.Mutation.AddToCell.timestamp: object expected"); - message.timestamp = $root.google.bigtable.v2.Value.fromObject(object.timestamp); - } - if (object.input != null) { - if (typeof object.input !== "object") - throw TypeError(".google.bigtable.v2.Mutation.AddToCell.input: object expected"); - message.input = $root.google.bigtable.v2.Value.fromObject(object.input); - } - return message; - }; + /** + * RowRange endKey. + * @member {"endKeyOpen"|"endKeyClosed"|undefined} endKey + * @memberof google.bigtable.v2.RowRange + * @instance + */ + Object.defineProperty(RowRange.prototype, "endKey", { + get: $util.oneOfGetter($oneOfFields = ["endKeyOpen", "endKeyClosed"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a plain object from an AddToCell message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {google.bigtable.v2.Mutation.AddToCell} message AddToCell - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AddToCell.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.familyName = ""; - object.columnQualifier = null; - object.timestamp = null; - object.input = null; - } - if (message.familyName != null && message.hasOwnProperty("familyName")) - object.familyName = message.familyName; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) - object.columnQualifier = $root.google.bigtable.v2.Value.toObject(message.columnQualifier, options); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = $root.google.bigtable.v2.Value.toObject(message.timestamp, options); - if (message.input != null && message.hasOwnProperty("input")) - object.input = $root.google.bigtable.v2.Value.toObject(message.input, options); - return object; - }; + /** + * Creates a new RowRange instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.RowRange + * @static + * @param {google.bigtable.v2.IRowRange=} [properties] Properties to set + * @returns {google.bigtable.v2.RowRange} RowRange instance + */ + RowRange.create = function create(properties) { + return new RowRange(properties); + }; - /** - * Converts this AddToCell to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Mutation.AddToCell - * @instance - * @returns {Object.} JSON object - */ - AddToCell.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified RowRange message. Does not implicitly {@link google.bigtable.v2.RowRange.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.RowRange + * @static + * @param {google.bigtable.v2.IRowRange} message RowRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RowRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startKeyClosed != null && Object.hasOwnProperty.call(message, "startKeyClosed")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.startKeyClosed); + if (message.startKeyOpen != null && Object.hasOwnProperty.call(message, "startKeyOpen")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.startKeyOpen); + if (message.endKeyOpen != null && Object.hasOwnProperty.call(message, "endKeyOpen")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.endKeyOpen); + if (message.endKeyClosed != null && Object.hasOwnProperty.call(message, "endKeyClosed")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.endKeyClosed); + return writer; + }; - /** - * Gets the default type url for AddToCell - * @function getTypeUrl - * @memberof google.bigtable.v2.Mutation.AddToCell - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AddToCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Encodes the specified RowRange message, length delimited. Does not implicitly {@link google.bigtable.v2.RowRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.RowRange + * @static + * @param {google.bigtable.v2.IRowRange} message RowRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RowRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RowRange message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.RowRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.RowRange} RowRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RowRange.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.startKeyClosed = reader.bytes(); + break; + } + case 2: { + message.startKeyOpen = reader.bytes(); + break; + } + case 3: { + message.endKeyOpen = reader.bytes(); + break; + } + case 4: { + message.endKeyClosed = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.bigtable.v2.Mutation.AddToCell"; - }; + } + return message; + }; - return AddToCell; - })(); + /** + * Decodes a RowRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.RowRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.RowRange} RowRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RowRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - Mutation.MergeToCell = (function() { + /** + * Verifies a RowRange message. + * @function verify + * @memberof google.bigtable.v2.RowRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RowRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.startKeyClosed != null && message.hasOwnProperty("startKeyClosed")) { + properties.startKey = 1; + if (!(message.startKeyClosed && typeof message.startKeyClosed.length === "number" || $util.isString(message.startKeyClosed))) + return "startKeyClosed: buffer expected"; + } + if (message.startKeyOpen != null && message.hasOwnProperty("startKeyOpen")) { + if (properties.startKey === 1) + return "startKey: multiple values"; + properties.startKey = 1; + if (!(message.startKeyOpen && typeof message.startKeyOpen.length === "number" || $util.isString(message.startKeyOpen))) + return "startKeyOpen: buffer expected"; + } + if (message.endKeyOpen != null && message.hasOwnProperty("endKeyOpen")) { + properties.endKey = 1; + if (!(message.endKeyOpen && typeof message.endKeyOpen.length === "number" || $util.isString(message.endKeyOpen))) + return "endKeyOpen: buffer expected"; + } + if (message.endKeyClosed != null && message.hasOwnProperty("endKeyClosed")) { + if (properties.endKey === 1) + return "endKey: multiple values"; + properties.endKey = 1; + if (!(message.endKeyClosed && typeof message.endKeyClosed.length === "number" || $util.isString(message.endKeyClosed))) + return "endKeyClosed: buffer expected"; + } + return null; + }; - /** - * Properties of a MergeToCell. - * @memberof google.bigtable.v2.Mutation - * @interface IMergeToCell - * @property {string|null} [familyName] MergeToCell familyName - * @property {google.bigtable.v2.IValue|null} [columnQualifier] MergeToCell columnQualifier - * @property {google.bigtable.v2.IValue|null} [timestamp] MergeToCell timestamp - * @property {google.bigtable.v2.IValue|null} [input] MergeToCell input - */ + /** + * Creates a RowRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.RowRange + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.RowRange} RowRange + */ + RowRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.RowRange) + return object; + var message = new $root.google.bigtable.v2.RowRange(); + if (object.startKeyClosed != null) + if (typeof object.startKeyClosed === "string") + $util.base64.decode(object.startKeyClosed, message.startKeyClosed = $util.newBuffer($util.base64.length(object.startKeyClosed)), 0); + else if (object.startKeyClosed.length >= 0) + message.startKeyClosed = object.startKeyClosed; + if (object.startKeyOpen != null) + if (typeof object.startKeyOpen === "string") + $util.base64.decode(object.startKeyOpen, message.startKeyOpen = $util.newBuffer($util.base64.length(object.startKeyOpen)), 0); + else if (object.startKeyOpen.length >= 0) + message.startKeyOpen = object.startKeyOpen; + if (object.endKeyOpen != null) + if (typeof object.endKeyOpen === "string") + $util.base64.decode(object.endKeyOpen, message.endKeyOpen = $util.newBuffer($util.base64.length(object.endKeyOpen)), 0); + else if (object.endKeyOpen.length >= 0) + message.endKeyOpen = object.endKeyOpen; + if (object.endKeyClosed != null) + if (typeof object.endKeyClosed === "string") + $util.base64.decode(object.endKeyClosed, message.endKeyClosed = $util.newBuffer($util.base64.length(object.endKeyClosed)), 0); + else if (object.endKeyClosed.length >= 0) + message.endKeyClosed = object.endKeyClosed; + return message; + }; - /** - * Constructs a new MergeToCell. - * @memberof google.bigtable.v2.Mutation - * @classdesc Represents a MergeToCell. - * @implements IMergeToCell - * @constructor - * @param {google.bigtable.v2.Mutation.IMergeToCell=} [properties] Properties to set - */ - function MergeToCell(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a RowRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.RowRange + * @static + * @param {google.bigtable.v2.RowRange} message RowRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RowRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.startKeyClosed != null && message.hasOwnProperty("startKeyClosed")) { + object.startKeyClosed = options.bytes === String ? $util.base64.encode(message.startKeyClosed, 0, message.startKeyClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.startKeyClosed) : message.startKeyClosed; + if (options.oneofs) + object.startKey = "startKeyClosed"; + } + if (message.startKeyOpen != null && message.hasOwnProperty("startKeyOpen")) { + object.startKeyOpen = options.bytes === String ? $util.base64.encode(message.startKeyOpen, 0, message.startKeyOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.startKeyOpen) : message.startKeyOpen; + if (options.oneofs) + object.startKey = "startKeyOpen"; + } + if (message.endKeyOpen != null && message.hasOwnProperty("endKeyOpen")) { + object.endKeyOpen = options.bytes === String ? $util.base64.encode(message.endKeyOpen, 0, message.endKeyOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.endKeyOpen) : message.endKeyOpen; + if (options.oneofs) + object.endKey = "endKeyOpen"; + } + if (message.endKeyClosed != null && message.hasOwnProperty("endKeyClosed")) { + object.endKeyClosed = options.bytes === String ? $util.base64.encode(message.endKeyClosed, 0, message.endKeyClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.endKeyClosed) : message.endKeyClosed; + if (options.oneofs) + object.endKey = "endKeyClosed"; } + return object; + }; - /** - * MergeToCell familyName. - * @member {string} familyName - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @instance - */ - MergeToCell.prototype.familyName = ""; + /** + * Converts this RowRange to JSON. + * @function toJSON + * @memberof google.bigtable.v2.RowRange + * @instance + * @returns {Object.} JSON object + */ + RowRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MergeToCell columnQualifier. - * @member {google.bigtable.v2.IValue|null|undefined} columnQualifier - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @instance - */ - MergeToCell.prototype.columnQualifier = null; + /** + * Gets the default type url for RowRange + * @function getTypeUrl + * @memberof google.bigtable.v2.RowRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RowRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.RowRange"; + }; - /** - * MergeToCell timestamp. - * @member {google.bigtable.v2.IValue|null|undefined} timestamp - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @instance - */ - MergeToCell.prototype.timestamp = null; + return RowRange; + })(); - /** - * MergeToCell input. - * @member {google.bigtable.v2.IValue|null|undefined} input - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @instance - */ - MergeToCell.prototype.input = null; + v2.RowSet = (function() { - /** - * Creates a new MergeToCell instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {google.bigtable.v2.Mutation.IMergeToCell=} [properties] Properties to set - * @returns {google.bigtable.v2.Mutation.MergeToCell} MergeToCell instance - */ - MergeToCell.create = function create(properties) { - return new MergeToCell(properties); - }; + /** + * Properties of a RowSet. + * @memberof google.bigtable.v2 + * @interface IRowSet + * @property {Array.|null} [rowKeys] RowSet rowKeys + * @property {Array.|null} [rowRanges] RowSet rowRanges + */ - /** - * Encodes the specified MergeToCell message. Does not implicitly {@link google.bigtable.v2.Mutation.MergeToCell.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {google.bigtable.v2.Mutation.IMergeToCell} message MergeToCell message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MergeToCell.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); - if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) - $root.google.bigtable.v2.Value.encode(message.columnQualifier, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - $root.google.bigtable.v2.Value.encode(message.timestamp, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - $root.google.bigtable.v2.Value.encode(message.input, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new RowSet. + * @memberof google.bigtable.v2 + * @classdesc Represents a RowSet. + * @implements IRowSet + * @constructor + * @param {google.bigtable.v2.IRowSet=} [properties] Properties to set + */ + function RowSet(properties) { + this.rowKeys = []; + this.rowRanges = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified MergeToCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.MergeToCell.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {google.bigtable.v2.Mutation.IMergeToCell} message MergeToCell message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MergeToCell.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * RowSet rowKeys. + * @member {Array.} rowKeys + * @memberof google.bigtable.v2.RowSet + * @instance + */ + RowSet.prototype.rowKeys = $util.emptyArray; - /** - * Decodes a MergeToCell message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Mutation.MergeToCell} MergeToCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MergeToCell.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.MergeToCell(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) + /** + * RowSet rowRanges. + * @member {Array.} rowRanges + * @memberof google.bigtable.v2.RowSet + * @instance + */ + RowSet.prototype.rowRanges = $util.emptyArray; + + /** + * Creates a new RowSet instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.RowSet + * @static + * @param {google.bigtable.v2.IRowSet=} [properties] Properties to set + * @returns {google.bigtable.v2.RowSet} RowSet instance + */ + RowSet.create = function create(properties) { + return new RowSet(properties); + }; + + /** + * Encodes the specified RowSet message. Does not implicitly {@link google.bigtable.v2.RowSet.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.RowSet + * @static + * @param {google.bigtable.v2.IRowSet} message RowSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RowSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rowKeys != null && message.rowKeys.length) + for (var i = 0; i < message.rowKeys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rowKeys[i]); + if (message.rowRanges != null && message.rowRanges.length) + for (var i = 0; i < message.rowRanges.length; ++i) + $root.google.bigtable.v2.RowRange.encode(message.rowRanges[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RowSet message, length delimited. Does not implicitly {@link google.bigtable.v2.RowSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.RowSet + * @static + * @param {google.bigtable.v2.IRowSet} message RowSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RowSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RowSet message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.RowSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.RowSet} RowSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RowSet.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.rowKeys && message.rowKeys.length)) + message.rowKeys = []; + message.rowKeys.push(reader.bytes()); break; - switch (tag >>> 3) { - case 1: { - message.familyName = reader.string(); - break; - } - case 2: { - message.columnQualifier = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); - break; - } - case 3: { - message.timestamp = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); - break; - } - case 4: { - message.input = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + } + case 2: { + if (!(message.rowRanges && message.rowRanges.length)) + message.rowRanges = []; + message.rowRanges.push($root.google.bigtable.v2.RowRange.decode(reader, reader.uint32())); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a MergeToCell message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Mutation.MergeToCell} MergeToCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MergeToCell.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a RowSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.RowSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.RowSet} RowSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RowSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a MergeToCell message. - * @function verify - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MergeToCell.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) { - var error = $root.google.bigtable.v2.Value.verify(message.columnQualifier); - if (error) - return "columnQualifier." + error; - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) { - var error = $root.google.bigtable.v2.Value.verify(message.timestamp); - if (error) - return "timestamp." + error; - } - if (message.input != null && message.hasOwnProperty("input")) { - var error = $root.google.bigtable.v2.Value.verify(message.input); + /** + * Verifies a RowSet message. + * @function verify + * @memberof google.bigtable.v2.RowSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RowSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rowKeys != null && message.hasOwnProperty("rowKeys")) { + if (!Array.isArray(message.rowKeys)) + return "rowKeys: array expected"; + for (var i = 0; i < message.rowKeys.length; ++i) + if (!(message.rowKeys[i] && typeof message.rowKeys[i].length === "number" || $util.isString(message.rowKeys[i]))) + return "rowKeys: buffer[] expected"; + } + if (message.rowRanges != null && message.hasOwnProperty("rowRanges")) { + if (!Array.isArray(message.rowRanges)) + return "rowRanges: array expected"; + for (var i = 0; i < message.rowRanges.length; ++i) { + var error = $root.google.bigtable.v2.RowRange.verify(message.rowRanges[i]); if (error) - return "input." + error; - } - return null; - }; - - /** - * Creates a MergeToCell message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Mutation.MergeToCell} MergeToCell - */ - MergeToCell.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Mutation.MergeToCell) - return object; - var message = new $root.google.bigtable.v2.Mutation.MergeToCell(); - if (object.familyName != null) - message.familyName = String(object.familyName); - if (object.columnQualifier != null) { - if (typeof object.columnQualifier !== "object") - throw TypeError(".google.bigtable.v2.Mutation.MergeToCell.columnQualifier: object expected"); - message.columnQualifier = $root.google.bigtable.v2.Value.fromObject(object.columnQualifier); - } - if (object.timestamp != null) { - if (typeof object.timestamp !== "object") - throw TypeError(".google.bigtable.v2.Mutation.MergeToCell.timestamp: object expected"); - message.timestamp = $root.google.bigtable.v2.Value.fromObject(object.timestamp); - } - if (object.input != null) { - if (typeof object.input !== "object") - throw TypeError(".google.bigtable.v2.Mutation.MergeToCell.input: object expected"); - message.input = $root.google.bigtable.v2.Value.fromObject(object.input); + return "rowRanges." + error; } - return message; - }; + } + return null; + }; - /** - * Creates a plain object from a MergeToCell message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {google.bigtable.v2.Mutation.MergeToCell} message MergeToCell - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MergeToCell.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.familyName = ""; - object.columnQualifier = null; - object.timestamp = null; - object.input = null; - } - if (message.familyName != null && message.hasOwnProperty("familyName")) - object.familyName = message.familyName; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) - object.columnQualifier = $root.google.bigtable.v2.Value.toObject(message.columnQualifier, options); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = $root.google.bigtable.v2.Value.toObject(message.timestamp, options); - if (message.input != null && message.hasOwnProperty("input")) - object.input = $root.google.bigtable.v2.Value.toObject(message.input, options); + /** + * Creates a RowSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.RowSet + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.RowSet} RowSet + */ + RowSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.RowSet) return object; - }; - - /** - * Converts this MergeToCell to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @instance - * @returns {Object.} JSON object - */ - MergeToCell.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MergeToCell - * @function getTypeUrl - * @memberof google.bigtable.v2.Mutation.MergeToCell - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MergeToCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + var message = new $root.google.bigtable.v2.RowSet(); + if (object.rowKeys) { + if (!Array.isArray(object.rowKeys)) + throw TypeError(".google.bigtable.v2.RowSet.rowKeys: array expected"); + message.rowKeys = []; + for (var i = 0; i < object.rowKeys.length; ++i) + if (typeof object.rowKeys[i] === "string") + $util.base64.decode(object.rowKeys[i], message.rowKeys[i] = $util.newBuffer($util.base64.length(object.rowKeys[i])), 0); + else if (object.rowKeys[i].length >= 0) + message.rowKeys[i] = object.rowKeys[i]; + } + if (object.rowRanges) { + if (!Array.isArray(object.rowRanges)) + throw TypeError(".google.bigtable.v2.RowSet.rowRanges: array expected"); + message.rowRanges = []; + for (var i = 0; i < object.rowRanges.length; ++i) { + if (typeof object.rowRanges[i] !== "object") + throw TypeError(".google.bigtable.v2.RowSet.rowRanges: object expected"); + message.rowRanges[i] = $root.google.bigtable.v2.RowRange.fromObject(object.rowRanges[i]); } - return typeUrlPrefix + "/google.bigtable.v2.Mutation.MergeToCell"; - }; - - return MergeToCell; - })(); + } + return message; + }; - Mutation.DeleteFromColumn = (function() { + /** + * Creates a plain object from a RowSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.RowSet + * @static + * @param {google.bigtable.v2.RowSet} message RowSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RowSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.rowKeys = []; + object.rowRanges = []; + } + if (message.rowKeys && message.rowKeys.length) { + object.rowKeys = []; + for (var j = 0; j < message.rowKeys.length; ++j) + object.rowKeys[j] = options.bytes === String ? $util.base64.encode(message.rowKeys[j], 0, message.rowKeys[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKeys[j]) : message.rowKeys[j]; + } + if (message.rowRanges && message.rowRanges.length) { + object.rowRanges = []; + for (var j = 0; j < message.rowRanges.length; ++j) + object.rowRanges[j] = $root.google.bigtable.v2.RowRange.toObject(message.rowRanges[j], options); + } + return object; + }; - /** - * Properties of a DeleteFromColumn. - * @memberof google.bigtable.v2.Mutation - * @interface IDeleteFromColumn - * @property {string|null} [familyName] DeleteFromColumn familyName - * @property {Uint8Array|null} [columnQualifier] DeleteFromColumn columnQualifier - * @property {google.bigtable.v2.ITimestampRange|null} [timeRange] DeleteFromColumn timeRange - */ + /** + * Converts this RowSet to JSON. + * @function toJSON + * @memberof google.bigtable.v2.RowSet + * @instance + * @returns {Object.} JSON object + */ + RowSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new DeleteFromColumn. - * @memberof google.bigtable.v2.Mutation - * @classdesc Represents a DeleteFromColumn. - * @implements IDeleteFromColumn - * @constructor - * @param {google.bigtable.v2.Mutation.IDeleteFromColumn=} [properties] Properties to set - */ - function DeleteFromColumn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Gets the default type url for RowSet + * @function getTypeUrl + * @memberof google.bigtable.v2.RowSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RowSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.bigtable.v2.RowSet"; + }; - /** - * DeleteFromColumn familyName. - * @member {string} familyName - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @instance - */ - DeleteFromColumn.prototype.familyName = ""; - - /** - * DeleteFromColumn columnQualifier. - * @member {Uint8Array} columnQualifier - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @instance - */ - DeleteFromColumn.prototype.columnQualifier = $util.newBuffer([]); + return RowSet; + })(); - /** - * DeleteFromColumn timeRange. - * @member {google.bigtable.v2.ITimestampRange|null|undefined} timeRange - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @instance - */ - DeleteFromColumn.prototype.timeRange = null; + v2.ColumnRange = (function() { - /** - * Creates a new DeleteFromColumn instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromColumn=} [properties] Properties to set - * @returns {google.bigtable.v2.Mutation.DeleteFromColumn} DeleteFromColumn instance - */ - DeleteFromColumn.create = function create(properties) { - return new DeleteFromColumn(properties); - }; + /** + * Properties of a ColumnRange. + * @memberof google.bigtable.v2 + * @interface IColumnRange + * @property {string|null} [familyName] ColumnRange familyName + * @property {Uint8Array|null} [startQualifierClosed] ColumnRange startQualifierClosed + * @property {Uint8Array|null} [startQualifierOpen] ColumnRange startQualifierOpen + * @property {Uint8Array|null} [endQualifierClosed] ColumnRange endQualifierClosed + * @property {Uint8Array|null} [endQualifierOpen] ColumnRange endQualifierOpen + */ - /** - * Encodes the specified DeleteFromColumn message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromColumn.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromColumn} message DeleteFromColumn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteFromColumn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); - if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.columnQualifier); - if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange")) - $root.google.bigtable.v2.TimestampRange.encode(message.timeRange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified DeleteFromColumn message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromColumn.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromColumn} message DeleteFromColumn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteFromColumn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteFromColumn message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Mutation.DeleteFromColumn} DeleteFromColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteFromColumn.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.DeleteFromColumn(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.familyName = reader.string(); - break; - } - case 2: { - message.columnQualifier = reader.bytes(); - break; - } - case 3: { - message.timeRange = $root.google.bigtable.v2.TimestampRange.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteFromColumn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Mutation.DeleteFromColumn} DeleteFromColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteFromColumn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteFromColumn message. - * @function verify - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteFromColumn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) - if (!(message.columnQualifier && typeof message.columnQualifier.length === "number" || $util.isString(message.columnQualifier))) - return "columnQualifier: buffer expected"; - if (message.timeRange != null && message.hasOwnProperty("timeRange")) { - var error = $root.google.bigtable.v2.TimestampRange.verify(message.timeRange); - if (error) - return "timeRange." + error; - } - return null; - }; - - /** - * Creates a DeleteFromColumn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Mutation.DeleteFromColumn} DeleteFromColumn - */ - DeleteFromColumn.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Mutation.DeleteFromColumn) - return object; - var message = new $root.google.bigtable.v2.Mutation.DeleteFromColumn(); - if (object.familyName != null) - message.familyName = String(object.familyName); - if (object.columnQualifier != null) - if (typeof object.columnQualifier === "string") - $util.base64.decode(object.columnQualifier, message.columnQualifier = $util.newBuffer($util.base64.length(object.columnQualifier)), 0); - else if (object.columnQualifier.length >= 0) - message.columnQualifier = object.columnQualifier; - if (object.timeRange != null) { - if (typeof object.timeRange !== "object") - throw TypeError(".google.bigtable.v2.Mutation.DeleteFromColumn.timeRange: object expected"); - message.timeRange = $root.google.bigtable.v2.TimestampRange.fromObject(object.timeRange); - } - return message; - }; + /** + * Constructs a new ColumnRange. + * @memberof google.bigtable.v2 + * @classdesc Represents a ColumnRange. + * @implements IColumnRange + * @constructor + * @param {google.bigtable.v2.IColumnRange=} [properties] Properties to set + */ + function ColumnRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a DeleteFromColumn message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {google.bigtable.v2.Mutation.DeleteFromColumn} message DeleteFromColumn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteFromColumn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.familyName = ""; - if (options.bytes === String) - object.columnQualifier = ""; - else { - object.columnQualifier = []; - if (options.bytes !== Array) - object.columnQualifier = $util.newBuffer(object.columnQualifier); - } - object.timeRange = null; - } - if (message.familyName != null && message.hasOwnProperty("familyName")) - object.familyName = message.familyName; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) - object.columnQualifier = options.bytes === String ? $util.base64.encode(message.columnQualifier, 0, message.columnQualifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.columnQualifier) : message.columnQualifier; - if (message.timeRange != null && message.hasOwnProperty("timeRange")) - object.timeRange = $root.google.bigtable.v2.TimestampRange.toObject(message.timeRange, options); - return object; - }; + /** + * ColumnRange familyName. + * @member {string} familyName + * @memberof google.bigtable.v2.ColumnRange + * @instance + */ + ColumnRange.prototype.familyName = ""; - /** - * Converts this DeleteFromColumn to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @instance - * @returns {Object.} JSON object - */ - DeleteFromColumn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ColumnRange startQualifierClosed. + * @member {Uint8Array|null|undefined} startQualifierClosed + * @memberof google.bigtable.v2.ColumnRange + * @instance + */ + ColumnRange.prototype.startQualifierClosed = null; - /** - * Gets the default type url for DeleteFromColumn - * @function getTypeUrl - * @memberof google.bigtable.v2.Mutation.DeleteFromColumn - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteFromColumn.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Mutation.DeleteFromColumn"; - }; + /** + * ColumnRange startQualifierOpen. + * @member {Uint8Array|null|undefined} startQualifierOpen + * @memberof google.bigtable.v2.ColumnRange + * @instance + */ + ColumnRange.prototype.startQualifierOpen = null; - return DeleteFromColumn; - })(); + /** + * ColumnRange endQualifierClosed. + * @member {Uint8Array|null|undefined} endQualifierClosed + * @memberof google.bigtable.v2.ColumnRange + * @instance + */ + ColumnRange.prototype.endQualifierClosed = null; - Mutation.DeleteFromFamily = (function() { + /** + * ColumnRange endQualifierOpen. + * @member {Uint8Array|null|undefined} endQualifierOpen + * @memberof google.bigtable.v2.ColumnRange + * @instance + */ + ColumnRange.prototype.endQualifierOpen = null; - /** - * Properties of a DeleteFromFamily. - * @memberof google.bigtable.v2.Mutation - * @interface IDeleteFromFamily - * @property {string|null} [familyName] DeleteFromFamily familyName - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Constructs a new DeleteFromFamily. - * @memberof google.bigtable.v2.Mutation - * @classdesc Represents a DeleteFromFamily. - * @implements IDeleteFromFamily - * @constructor - * @param {google.bigtable.v2.Mutation.IDeleteFromFamily=} [properties] Properties to set - */ - function DeleteFromFamily(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ColumnRange startQualifier. + * @member {"startQualifierClosed"|"startQualifierOpen"|undefined} startQualifier + * @memberof google.bigtable.v2.ColumnRange + * @instance + */ + Object.defineProperty(ColumnRange.prototype, "startQualifier", { + get: $util.oneOfGetter($oneOfFields = ["startQualifierClosed", "startQualifierOpen"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * DeleteFromFamily familyName. - * @member {string} familyName - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @instance - */ - DeleteFromFamily.prototype.familyName = ""; + /** + * ColumnRange endQualifier. + * @member {"endQualifierClosed"|"endQualifierOpen"|undefined} endQualifier + * @memberof google.bigtable.v2.ColumnRange + * @instance + */ + Object.defineProperty(ColumnRange.prototype, "endQualifier", { + get: $util.oneOfGetter($oneOfFields = ["endQualifierClosed", "endQualifierOpen"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a new DeleteFromFamily instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromFamily=} [properties] Properties to set - * @returns {google.bigtable.v2.Mutation.DeleteFromFamily} DeleteFromFamily instance - */ - DeleteFromFamily.create = function create(properties) { - return new DeleteFromFamily(properties); - }; + /** + * Creates a new ColumnRange instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {google.bigtable.v2.IColumnRange=} [properties] Properties to set + * @returns {google.bigtable.v2.ColumnRange} ColumnRange instance + */ + ColumnRange.create = function create(properties) { + return new ColumnRange(properties); + }; - /** - * Encodes the specified DeleteFromFamily message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromFamily.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromFamily} message DeleteFromFamily message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteFromFamily.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); - return writer; - }; + /** + * Encodes the specified ColumnRange message. Does not implicitly {@link google.bigtable.v2.ColumnRange.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {google.bigtable.v2.IColumnRange} message ColumnRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ColumnRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); + if (message.startQualifierClosed != null && Object.hasOwnProperty.call(message, "startQualifierClosed")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.startQualifierClosed); + if (message.startQualifierOpen != null && Object.hasOwnProperty.call(message, "startQualifierOpen")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.startQualifierOpen); + if (message.endQualifierClosed != null && Object.hasOwnProperty.call(message, "endQualifierClosed")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.endQualifierClosed); + if (message.endQualifierOpen != null && Object.hasOwnProperty.call(message, "endQualifierOpen")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.endQualifierOpen); + return writer; + }; - /** - * Encodes the specified DeleteFromFamily message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromFamily.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromFamily} message DeleteFromFamily message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteFromFamily.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ColumnRange message, length delimited. Does not implicitly {@link google.bigtable.v2.ColumnRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {google.bigtable.v2.IColumnRange} message ColumnRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ColumnRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DeleteFromFamily message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Mutation.DeleteFromFamily} DeleteFromFamily - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteFromFamily.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.DeleteFromFamily(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) + /** + * Decodes a ColumnRange message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ColumnRange} ColumnRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ColumnRange.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ColumnRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.familyName = reader.string(); break; - switch (tag >>> 3) { - case 1: { - message.familyName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + } + case 2: { + message.startQualifierClosed = reader.bytes(); + break; + } + case 3: { + message.startQualifierOpen = reader.bytes(); break; } + case 4: { + message.endQualifierClosed = reader.bytes(); + break; + } + case 5: { + message.endQualifierOpen = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a DeleteFromFamily message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Mutation.DeleteFromFamily} DeleteFromFamily - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteFromFamily.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteFromFamily message. - * @function verify - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteFromFamily.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - return null; - }; + } + return message; + }; - /** - * Creates a DeleteFromFamily message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Mutation.DeleteFromFamily} DeleteFromFamily - */ - DeleteFromFamily.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Mutation.DeleteFromFamily) - return object; - var message = new $root.google.bigtable.v2.Mutation.DeleteFromFamily(); - if (object.familyName != null) - message.familyName = String(object.familyName); - return message; - }; + /** + * Decodes a ColumnRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ColumnRange} ColumnRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ColumnRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a DeleteFromFamily message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {google.bigtable.v2.Mutation.DeleteFromFamily} message DeleteFromFamily - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteFromFamily.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.familyName = ""; - if (message.familyName != null && message.hasOwnProperty("familyName")) - object.familyName = message.familyName; - return object; - }; - - /** - * Converts this DeleteFromFamily to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @instance - * @returns {Object.} JSON object - */ - DeleteFromFamily.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DeleteFromFamily - * @function getTypeUrl - * @memberof google.bigtable.v2.Mutation.DeleteFromFamily - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteFromFamily.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Mutation.DeleteFromFamily"; - }; - - return DeleteFromFamily; - })(); - - Mutation.DeleteFromRow = (function() { - - /** - * Properties of a DeleteFromRow. - * @memberof google.bigtable.v2.Mutation - * @interface IDeleteFromRow - */ - - /** - * Constructs a new DeleteFromRow. - * @memberof google.bigtable.v2.Mutation - * @classdesc Represents a DeleteFromRow. - * @implements IDeleteFromRow - * @constructor - * @param {google.bigtable.v2.Mutation.IDeleteFromRow=} [properties] Properties to set - */ - function DeleteFromRow(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Verifies a ColumnRange message. + * @function verify + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ColumnRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + if (message.startQualifierClosed != null && message.hasOwnProperty("startQualifierClosed")) { + properties.startQualifier = 1; + if (!(message.startQualifierClosed && typeof message.startQualifierClosed.length === "number" || $util.isString(message.startQualifierClosed))) + return "startQualifierClosed: buffer expected"; } + if (message.startQualifierOpen != null && message.hasOwnProperty("startQualifierOpen")) { + if (properties.startQualifier === 1) + return "startQualifier: multiple values"; + properties.startQualifier = 1; + if (!(message.startQualifierOpen && typeof message.startQualifierOpen.length === "number" || $util.isString(message.startQualifierOpen))) + return "startQualifierOpen: buffer expected"; + } + if (message.endQualifierClosed != null && message.hasOwnProperty("endQualifierClosed")) { + properties.endQualifier = 1; + if (!(message.endQualifierClosed && typeof message.endQualifierClosed.length === "number" || $util.isString(message.endQualifierClosed))) + return "endQualifierClosed: buffer expected"; + } + if (message.endQualifierOpen != null && message.hasOwnProperty("endQualifierOpen")) { + if (properties.endQualifier === 1) + return "endQualifier: multiple values"; + properties.endQualifier = 1; + if (!(message.endQualifierOpen && typeof message.endQualifierOpen.length === "number" || $util.isString(message.endQualifierOpen))) + return "endQualifierOpen: buffer expected"; + } + return null; + }; - /** - * Creates a new DeleteFromRow instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromRow=} [properties] Properties to set - * @returns {google.bigtable.v2.Mutation.DeleteFromRow} DeleteFromRow instance - */ - DeleteFromRow.create = function create(properties) { - return new DeleteFromRow(properties); - }; - - /** - * Encodes the specified DeleteFromRow message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromRow.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromRow} message DeleteFromRow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteFromRow.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified DeleteFromRow message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromRow.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {google.bigtable.v2.Mutation.IDeleteFromRow} message DeleteFromRow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteFromRow.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteFromRow message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Mutation.DeleteFromRow} DeleteFromRow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteFromRow.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.DeleteFromRow(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteFromRow message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Mutation.DeleteFromRow} DeleteFromRow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteFromRow.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteFromRow message. - * @function verify - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteFromRow.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a DeleteFromRow message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Mutation.DeleteFromRow} DeleteFromRow - */ - DeleteFromRow.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Mutation.DeleteFromRow) - return object; - return new $root.google.bigtable.v2.Mutation.DeleteFromRow(); - }; - - /** - * Creates a plain object from a DeleteFromRow message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {google.bigtable.v2.Mutation.DeleteFromRow} message DeleteFromRow - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteFromRow.toObject = function toObject() { - return {}; - }; + /** + * Creates a ColumnRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ColumnRange} ColumnRange + */ + ColumnRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ColumnRange) + return object; + var message = new $root.google.bigtable.v2.ColumnRange(); + if (object.familyName != null) + message.familyName = String(object.familyName); + if (object.startQualifierClosed != null) + if (typeof object.startQualifierClosed === "string") + $util.base64.decode(object.startQualifierClosed, message.startQualifierClosed = $util.newBuffer($util.base64.length(object.startQualifierClosed)), 0); + else if (object.startQualifierClosed.length >= 0) + message.startQualifierClosed = object.startQualifierClosed; + if (object.startQualifierOpen != null) + if (typeof object.startQualifierOpen === "string") + $util.base64.decode(object.startQualifierOpen, message.startQualifierOpen = $util.newBuffer($util.base64.length(object.startQualifierOpen)), 0); + else if (object.startQualifierOpen.length >= 0) + message.startQualifierOpen = object.startQualifierOpen; + if (object.endQualifierClosed != null) + if (typeof object.endQualifierClosed === "string") + $util.base64.decode(object.endQualifierClosed, message.endQualifierClosed = $util.newBuffer($util.base64.length(object.endQualifierClosed)), 0); + else if (object.endQualifierClosed.length >= 0) + message.endQualifierClosed = object.endQualifierClosed; + if (object.endQualifierOpen != null) + if (typeof object.endQualifierOpen === "string") + $util.base64.decode(object.endQualifierOpen, message.endQualifierOpen = $util.newBuffer($util.base64.length(object.endQualifierOpen)), 0); + else if (object.endQualifierOpen.length >= 0) + message.endQualifierOpen = object.endQualifierOpen; + return message; + }; - /** - * Converts this DeleteFromRow to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @instance - * @returns {Object.} JSON object - */ - DeleteFromRow.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ColumnRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {google.bigtable.v2.ColumnRange} message ColumnRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ColumnRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.familyName = ""; + if (message.familyName != null && message.hasOwnProperty("familyName")) + object.familyName = message.familyName; + if (message.startQualifierClosed != null && message.hasOwnProperty("startQualifierClosed")) { + object.startQualifierClosed = options.bytes === String ? $util.base64.encode(message.startQualifierClosed, 0, message.startQualifierClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.startQualifierClosed) : message.startQualifierClosed; + if (options.oneofs) + object.startQualifier = "startQualifierClosed"; + } + if (message.startQualifierOpen != null && message.hasOwnProperty("startQualifierOpen")) { + object.startQualifierOpen = options.bytes === String ? $util.base64.encode(message.startQualifierOpen, 0, message.startQualifierOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.startQualifierOpen) : message.startQualifierOpen; + if (options.oneofs) + object.startQualifier = "startQualifierOpen"; + } + if (message.endQualifierClosed != null && message.hasOwnProperty("endQualifierClosed")) { + object.endQualifierClosed = options.bytes === String ? $util.base64.encode(message.endQualifierClosed, 0, message.endQualifierClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.endQualifierClosed) : message.endQualifierClosed; + if (options.oneofs) + object.endQualifier = "endQualifierClosed"; + } + if (message.endQualifierOpen != null && message.hasOwnProperty("endQualifierOpen")) { + object.endQualifierOpen = options.bytes === String ? $util.base64.encode(message.endQualifierOpen, 0, message.endQualifierOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.endQualifierOpen) : message.endQualifierOpen; + if (options.oneofs) + object.endQualifier = "endQualifierOpen"; + } + return object; + }; - /** - * Gets the default type url for DeleteFromRow - * @function getTypeUrl - * @memberof google.bigtable.v2.Mutation.DeleteFromRow - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteFromRow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Mutation.DeleteFromRow"; - }; + /** + * Converts this ColumnRange to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ColumnRange + * @instance + * @returns {Object.} JSON object + */ + ColumnRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return DeleteFromRow; - })(); + /** + * Gets the default type url for ColumnRange + * @function getTypeUrl + * @memberof google.bigtable.v2.ColumnRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ColumnRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ColumnRange"; + }; - return Mutation; + return ColumnRange; })(); - v2.ReadModifyWriteRule = (function() { + v2.TimestampRange = (function() { /** - * Properties of a ReadModifyWriteRule. + * Properties of a TimestampRange. * @memberof google.bigtable.v2 - * @interface IReadModifyWriteRule - * @property {string|null} [familyName] ReadModifyWriteRule familyName - * @property {Uint8Array|null} [columnQualifier] ReadModifyWriteRule columnQualifier - * @property {Uint8Array|null} [appendValue] ReadModifyWriteRule appendValue - * @property {number|Long|null} [incrementAmount] ReadModifyWriteRule incrementAmount + * @interface ITimestampRange + * @property {number|Long|null} [startTimestampMicros] TimestampRange startTimestampMicros + * @property {number|Long|null} [endTimestampMicros] TimestampRange endTimestampMicros */ /** - * Constructs a new ReadModifyWriteRule. + * Constructs a new TimestampRange. * @memberof google.bigtable.v2 - * @classdesc Represents a ReadModifyWriteRule. - * @implements IReadModifyWriteRule + * @classdesc Represents a TimestampRange. + * @implements ITimestampRange * @constructor - * @param {google.bigtable.v2.IReadModifyWriteRule=} [properties] Properties to set + * @param {google.bigtable.v2.ITimestampRange=} [properties] Properties to set */ - function ReadModifyWriteRule(properties) { + function TimestampRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58295,133 +57558,91 @@ } /** - * ReadModifyWriteRule familyName. - * @member {string} familyName - * @memberof google.bigtable.v2.ReadModifyWriteRule - * @instance - */ - ReadModifyWriteRule.prototype.familyName = ""; - - /** - * ReadModifyWriteRule columnQualifier. - * @member {Uint8Array} columnQualifier - * @memberof google.bigtable.v2.ReadModifyWriteRule - * @instance - */ - ReadModifyWriteRule.prototype.columnQualifier = $util.newBuffer([]); - - /** - * ReadModifyWriteRule appendValue. - * @member {Uint8Array|null|undefined} appendValue - * @memberof google.bigtable.v2.ReadModifyWriteRule - * @instance - */ - ReadModifyWriteRule.prototype.appendValue = null; - - /** - * ReadModifyWriteRule incrementAmount. - * @member {number|Long|null|undefined} incrementAmount - * @memberof google.bigtable.v2.ReadModifyWriteRule + * TimestampRange startTimestampMicros. + * @member {number|Long} startTimestampMicros + * @memberof google.bigtable.v2.TimestampRange * @instance */ - ReadModifyWriteRule.prototype.incrementAmount = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + TimestampRange.prototype.startTimestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReadModifyWriteRule rule. - * @member {"appendValue"|"incrementAmount"|undefined} rule - * @memberof google.bigtable.v2.ReadModifyWriteRule + * TimestampRange endTimestampMicros. + * @member {number|Long} endTimestampMicros + * @memberof google.bigtable.v2.TimestampRange * @instance */ - Object.defineProperty(ReadModifyWriteRule.prototype, "rule", { - get: $util.oneOfGetter($oneOfFields = ["appendValue", "incrementAmount"]), - set: $util.oneOfSetter($oneOfFields) - }); + TimestampRange.prototype.endTimestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ReadModifyWriteRule instance using the specified properties. + * Creates a new TimestampRange instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static - * @param {google.bigtable.v2.IReadModifyWriteRule=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadModifyWriteRule} ReadModifyWriteRule instance + * @param {google.bigtable.v2.ITimestampRange=} [properties] Properties to set + * @returns {google.bigtable.v2.TimestampRange} TimestampRange instance */ - ReadModifyWriteRule.create = function create(properties) { - return new ReadModifyWriteRule(properties); + TimestampRange.create = function create(properties) { + return new TimestampRange(properties); }; /** - * Encodes the specified ReadModifyWriteRule message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRule.verify|verify} messages. + * Encodes the specified TimestampRange message. Does not implicitly {@link google.bigtable.v2.TimestampRange.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static - * @param {google.bigtable.v2.IReadModifyWriteRule} message ReadModifyWriteRule message or plain object to encode + * @param {google.bigtable.v2.ITimestampRange} message TimestampRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadModifyWriteRule.encode = function encode(message, writer) { + TimestampRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); - if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.columnQualifier); - if (message.appendValue != null && Object.hasOwnProperty.call(message, "appendValue")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.appendValue); - if (message.incrementAmount != null && Object.hasOwnProperty.call(message, "incrementAmount")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.incrementAmount); + if (message.startTimestampMicros != null && Object.hasOwnProperty.call(message, "startTimestampMicros")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.startTimestampMicros); + if (message.endTimestampMicros != null && Object.hasOwnProperty.call(message, "endTimestampMicros")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.endTimestampMicros); return writer; }; /** - * Encodes the specified ReadModifyWriteRule message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRule.verify|verify} messages. + * Encodes the specified TimestampRange message, length delimited. Does not implicitly {@link google.bigtable.v2.TimestampRange.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static - * @param {google.bigtable.v2.IReadModifyWriteRule} message ReadModifyWriteRule message or plain object to encode + * @param {google.bigtable.v2.ITimestampRange} message TimestampRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadModifyWriteRule.encodeDelimited = function encodeDelimited(message, writer) { + TimestampRange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadModifyWriteRule message from the specified reader or buffer. + * Decodes a TimestampRange message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadModifyWriteRule} ReadModifyWriteRule + * @returns {google.bigtable.v2.TimestampRange} TimestampRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadModifyWriteRule.decode = function decode(reader, length, error) { + TimestampRange.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadModifyWriteRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.TimestampRange(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.familyName = reader.string(); + message.startTimestampMicros = reader.int64(); break; } case 2: { - message.columnQualifier = reader.bytes(); - break; - } - case 3: { - message.appendValue = reader.bytes(); - break; - } - case 4: { - message.incrementAmount = reader.int64(); + message.endTimestampMicros = reader.int64(); break; } default: @@ -58433,180 +57654,162 @@ }; /** - * Decodes a ReadModifyWriteRule message from the specified reader or buffer, length delimited. + * Decodes a TimestampRange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadModifyWriteRule} ReadModifyWriteRule + * @returns {google.bigtable.v2.TimestampRange} TimestampRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadModifyWriteRule.decodeDelimited = function decodeDelimited(reader) { + TimestampRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadModifyWriteRule message. + * Verifies a TimestampRange message. * @function verify - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadModifyWriteRule.verify = function verify(message) { + TimestampRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) - if (!(message.columnQualifier && typeof message.columnQualifier.length === "number" || $util.isString(message.columnQualifier))) - return "columnQualifier: buffer expected"; - if (message.appendValue != null && message.hasOwnProperty("appendValue")) { - properties.rule = 1; - if (!(message.appendValue && typeof message.appendValue.length === "number" || $util.isString(message.appendValue))) - return "appendValue: buffer expected"; - } - if (message.incrementAmount != null && message.hasOwnProperty("incrementAmount")) { - if (properties.rule === 1) - return "rule: multiple values"; - properties.rule = 1; - if (!$util.isInteger(message.incrementAmount) && !(message.incrementAmount && $util.isInteger(message.incrementAmount.low) && $util.isInteger(message.incrementAmount.high))) - return "incrementAmount: integer|Long expected"; - } + if (message.startTimestampMicros != null && message.hasOwnProperty("startTimestampMicros")) + if (!$util.isInteger(message.startTimestampMicros) && !(message.startTimestampMicros && $util.isInteger(message.startTimestampMicros.low) && $util.isInteger(message.startTimestampMicros.high))) + return "startTimestampMicros: integer|Long expected"; + if (message.endTimestampMicros != null && message.hasOwnProperty("endTimestampMicros")) + if (!$util.isInteger(message.endTimestampMicros) && !(message.endTimestampMicros && $util.isInteger(message.endTimestampMicros.low) && $util.isInteger(message.endTimestampMicros.high))) + return "endTimestampMicros: integer|Long expected"; return null; }; /** - * Creates a ReadModifyWriteRule message from a plain object. Also converts values to their respective internal types. + * Creates a TimestampRange message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadModifyWriteRule} ReadModifyWriteRule + * @returns {google.bigtable.v2.TimestampRange} TimestampRange */ - ReadModifyWriteRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadModifyWriteRule) + TimestampRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.TimestampRange) return object; - var message = new $root.google.bigtable.v2.ReadModifyWriteRule(); - if (object.familyName != null) - message.familyName = String(object.familyName); - if (object.columnQualifier != null) - if (typeof object.columnQualifier === "string") - $util.base64.decode(object.columnQualifier, message.columnQualifier = $util.newBuffer($util.base64.length(object.columnQualifier)), 0); - else if (object.columnQualifier.length >= 0) - message.columnQualifier = object.columnQualifier; - if (object.appendValue != null) - if (typeof object.appendValue === "string") - $util.base64.decode(object.appendValue, message.appendValue = $util.newBuffer($util.base64.length(object.appendValue)), 0); - else if (object.appendValue.length >= 0) - message.appendValue = object.appendValue; - if (object.incrementAmount != null) + var message = new $root.google.bigtable.v2.TimestampRange(); + if (object.startTimestampMicros != null) if ($util.Long) - (message.incrementAmount = $util.Long.fromValue(object.incrementAmount)).unsigned = false; - else if (typeof object.incrementAmount === "string") - message.incrementAmount = parseInt(object.incrementAmount, 10); - else if (typeof object.incrementAmount === "number") - message.incrementAmount = object.incrementAmount; - else if (typeof object.incrementAmount === "object") - message.incrementAmount = new $util.LongBits(object.incrementAmount.low >>> 0, object.incrementAmount.high >>> 0).toNumber(); + (message.startTimestampMicros = $util.Long.fromValue(object.startTimestampMicros)).unsigned = false; + else if (typeof object.startTimestampMicros === "string") + message.startTimestampMicros = parseInt(object.startTimestampMicros, 10); + else if (typeof object.startTimestampMicros === "number") + message.startTimestampMicros = object.startTimestampMicros; + else if (typeof object.startTimestampMicros === "object") + message.startTimestampMicros = new $util.LongBits(object.startTimestampMicros.low >>> 0, object.startTimestampMicros.high >>> 0).toNumber(); + if (object.endTimestampMicros != null) + if ($util.Long) + (message.endTimestampMicros = $util.Long.fromValue(object.endTimestampMicros)).unsigned = false; + else if (typeof object.endTimestampMicros === "string") + message.endTimestampMicros = parseInt(object.endTimestampMicros, 10); + else if (typeof object.endTimestampMicros === "number") + message.endTimestampMicros = object.endTimestampMicros; + else if (typeof object.endTimestampMicros === "object") + message.endTimestampMicros = new $util.LongBits(object.endTimestampMicros.low >>> 0, object.endTimestampMicros.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ReadModifyWriteRule message. Also converts values to other types if specified. + * Creates a plain object from a TimestampRange message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static - * @param {google.bigtable.v2.ReadModifyWriteRule} message ReadModifyWriteRule + * @param {google.bigtable.v2.TimestampRange} message TimestampRange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadModifyWriteRule.toObject = function toObject(message, options) { + TimestampRange.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.familyName = ""; - if (options.bytes === String) - object.columnQualifier = ""; - else { - object.columnQualifier = []; - if (options.bytes !== Array) - object.columnQualifier = $util.newBuffer(object.columnQualifier); - } - } - if (message.familyName != null && message.hasOwnProperty("familyName")) - object.familyName = message.familyName; - if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) - object.columnQualifier = options.bytes === String ? $util.base64.encode(message.columnQualifier, 0, message.columnQualifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.columnQualifier) : message.columnQualifier; - if (message.appendValue != null && message.hasOwnProperty("appendValue")) { - object.appendValue = options.bytes === String ? $util.base64.encode(message.appendValue, 0, message.appendValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.appendValue) : message.appendValue; - if (options.oneofs) - object.rule = "appendValue"; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.startTimestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.startTimestampMicros = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.endTimestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.endTimestampMicros = options.longs === String ? "0" : 0; } - if (message.incrementAmount != null && message.hasOwnProperty("incrementAmount")) { - if (typeof message.incrementAmount === "number") - object.incrementAmount = options.longs === String ? String(message.incrementAmount) : message.incrementAmount; + if (message.startTimestampMicros != null && message.hasOwnProperty("startTimestampMicros")) + if (typeof message.startTimestampMicros === "number") + object.startTimestampMicros = options.longs === String ? String(message.startTimestampMicros) : message.startTimestampMicros; else - object.incrementAmount = options.longs === String ? $util.Long.prototype.toString.call(message.incrementAmount) : options.longs === Number ? new $util.LongBits(message.incrementAmount.low >>> 0, message.incrementAmount.high >>> 0).toNumber() : message.incrementAmount; - if (options.oneofs) - object.rule = "incrementAmount"; - } + object.startTimestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.startTimestampMicros) : options.longs === Number ? new $util.LongBits(message.startTimestampMicros.low >>> 0, message.startTimestampMicros.high >>> 0).toNumber() : message.startTimestampMicros; + if (message.endTimestampMicros != null && message.hasOwnProperty("endTimestampMicros")) + if (typeof message.endTimestampMicros === "number") + object.endTimestampMicros = options.longs === String ? String(message.endTimestampMicros) : message.endTimestampMicros; + else + object.endTimestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.endTimestampMicros) : options.longs === Number ? new $util.LongBits(message.endTimestampMicros.low >>> 0, message.endTimestampMicros.high >>> 0).toNumber() : message.endTimestampMicros; return object; }; /** - * Converts this ReadModifyWriteRule to JSON. + * Converts this TimestampRange to JSON. * @function toJSON - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @instance * @returns {Object.} JSON object */ - ReadModifyWriteRule.prototype.toJSON = function toJSON() { + TimestampRange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadModifyWriteRule + * Gets the default type url for TimestampRange * @function getTypeUrl - * @memberof google.bigtable.v2.ReadModifyWriteRule + * @memberof google.bigtable.v2.TimestampRange * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadModifyWriteRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TimestampRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ReadModifyWriteRule"; + return typeUrlPrefix + "/google.bigtable.v2.TimestampRange"; }; - return ReadModifyWriteRule; + return TimestampRange; })(); - v2.StreamPartition = (function() { + v2.ValueRange = (function() { /** - * Properties of a StreamPartition. + * Properties of a ValueRange. * @memberof google.bigtable.v2 - * @interface IStreamPartition - * @property {google.bigtable.v2.IRowRange|null} [rowRange] StreamPartition rowRange + * @interface IValueRange + * @property {Uint8Array|null} [startValueClosed] ValueRange startValueClosed + * @property {Uint8Array|null} [startValueOpen] ValueRange startValueOpen + * @property {Uint8Array|null} [endValueClosed] ValueRange endValueClosed + * @property {Uint8Array|null} [endValueOpen] ValueRange endValueOpen */ /** - * Constructs a new StreamPartition. + * Constructs a new ValueRange. * @memberof google.bigtable.v2 - * @classdesc Represents a StreamPartition. - * @implements IStreamPartition + * @classdesc Represents a ValueRange. + * @implements IValueRange * @constructor - * @param {google.bigtable.v2.IStreamPartition=} [properties] Properties to set + * @param {google.bigtable.v2.IValueRange=} [properties] Properties to set */ - function StreamPartition(properties) { + function ValueRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58614,77 +57817,144 @@ } /** - * StreamPartition rowRange. - * @member {google.bigtable.v2.IRowRange|null|undefined} rowRange - * @memberof google.bigtable.v2.StreamPartition + * ValueRange startValueClosed. + * @member {Uint8Array|null|undefined} startValueClosed + * @memberof google.bigtable.v2.ValueRange * @instance */ - StreamPartition.prototype.rowRange = null; + ValueRange.prototype.startValueClosed = null; /** - * Creates a new StreamPartition instance using the specified properties. + * ValueRange startValueOpen. + * @member {Uint8Array|null|undefined} startValueOpen + * @memberof google.bigtable.v2.ValueRange + * @instance + */ + ValueRange.prototype.startValueOpen = null; + + /** + * ValueRange endValueClosed. + * @member {Uint8Array|null|undefined} endValueClosed + * @memberof google.bigtable.v2.ValueRange + * @instance + */ + ValueRange.prototype.endValueClosed = null; + + /** + * ValueRange endValueOpen. + * @member {Uint8Array|null|undefined} endValueOpen + * @memberof google.bigtable.v2.ValueRange + * @instance + */ + ValueRange.prototype.endValueOpen = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ValueRange startValue. + * @member {"startValueClosed"|"startValueOpen"|undefined} startValue + * @memberof google.bigtable.v2.ValueRange + * @instance + */ + Object.defineProperty(ValueRange.prototype, "startValue", { + get: $util.oneOfGetter($oneOfFields = ["startValueClosed", "startValueOpen"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ValueRange endValue. + * @member {"endValueClosed"|"endValueOpen"|undefined} endValue + * @memberof google.bigtable.v2.ValueRange + * @instance + */ + Object.defineProperty(ValueRange.prototype, "endValue", { + get: $util.oneOfGetter($oneOfFields = ["endValueClosed", "endValueOpen"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ValueRange instance using the specified properties. * @function create - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static - * @param {google.bigtable.v2.IStreamPartition=} [properties] Properties to set - * @returns {google.bigtable.v2.StreamPartition} StreamPartition instance + * @param {google.bigtable.v2.IValueRange=} [properties] Properties to set + * @returns {google.bigtable.v2.ValueRange} ValueRange instance */ - StreamPartition.create = function create(properties) { - return new StreamPartition(properties); + ValueRange.create = function create(properties) { + return new ValueRange(properties); }; /** - * Encodes the specified StreamPartition message. Does not implicitly {@link google.bigtable.v2.StreamPartition.verify|verify} messages. + * Encodes the specified ValueRange message. Does not implicitly {@link google.bigtable.v2.ValueRange.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static - * @param {google.bigtable.v2.IStreamPartition} message StreamPartition message or plain object to encode + * @param {google.bigtable.v2.IValueRange} message ValueRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamPartition.encode = function encode(message, writer) { + ValueRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rowRange != null && Object.hasOwnProperty.call(message, "rowRange")) - $root.google.bigtable.v2.RowRange.encode(message.rowRange, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.startValueClosed != null && Object.hasOwnProperty.call(message, "startValueClosed")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.startValueClosed); + if (message.startValueOpen != null && Object.hasOwnProperty.call(message, "startValueOpen")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.startValueOpen); + if (message.endValueClosed != null && Object.hasOwnProperty.call(message, "endValueClosed")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.endValueClosed); + if (message.endValueOpen != null && Object.hasOwnProperty.call(message, "endValueOpen")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.endValueOpen); return writer; }; /** - * Encodes the specified StreamPartition message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamPartition.verify|verify} messages. + * Encodes the specified ValueRange message, length delimited. Does not implicitly {@link google.bigtable.v2.ValueRange.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static - * @param {google.bigtable.v2.IStreamPartition} message StreamPartition message or plain object to encode + * @param {google.bigtable.v2.IValueRange} message ValueRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamPartition.encodeDelimited = function encodeDelimited(message, writer) { + ValueRange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamPartition message from the specified reader or buffer. + * Decodes a ValueRange message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.StreamPartition} StreamPartition + * @returns {google.bigtable.v2.ValueRange} ValueRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamPartition.decode = function decode(reader, length, error) { + ValueRange.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.StreamPartition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ValueRange(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.rowRange = $root.google.bigtable.v2.RowRange.decode(reader, reader.uint32()); + message.startValueClosed = reader.bytes(); + break; + } + case 2: { + message.startValueOpen = reader.bytes(); + break; + } + case 3: { + message.endValueClosed = reader.bytes(); + break; + } + case 4: { + message.endValueOpen = reader.bytes(); break; } default: @@ -58696,128 +57966,196 @@ }; /** - * Decodes a StreamPartition message from the specified reader or buffer, length delimited. + * Decodes a ValueRange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.StreamPartition} StreamPartition + * @returns {google.bigtable.v2.ValueRange} ValueRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamPartition.decodeDelimited = function decodeDelimited(reader) { + ValueRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamPartition message. + * Verifies a ValueRange message. * @function verify - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamPartition.verify = function verify(message) { + ValueRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rowRange != null && message.hasOwnProperty("rowRange")) { - var error = $root.google.bigtable.v2.RowRange.verify(message.rowRange); - if (error) - return "rowRange." + error; + var properties = {}; + if (message.startValueClosed != null && message.hasOwnProperty("startValueClosed")) { + properties.startValue = 1; + if (!(message.startValueClosed && typeof message.startValueClosed.length === "number" || $util.isString(message.startValueClosed))) + return "startValueClosed: buffer expected"; + } + if (message.startValueOpen != null && message.hasOwnProperty("startValueOpen")) { + if (properties.startValue === 1) + return "startValue: multiple values"; + properties.startValue = 1; + if (!(message.startValueOpen && typeof message.startValueOpen.length === "number" || $util.isString(message.startValueOpen))) + return "startValueOpen: buffer expected"; + } + if (message.endValueClosed != null && message.hasOwnProperty("endValueClosed")) { + properties.endValue = 1; + if (!(message.endValueClosed && typeof message.endValueClosed.length === "number" || $util.isString(message.endValueClosed))) + return "endValueClosed: buffer expected"; + } + if (message.endValueOpen != null && message.hasOwnProperty("endValueOpen")) { + if (properties.endValue === 1) + return "endValue: multiple values"; + properties.endValue = 1; + if (!(message.endValueOpen && typeof message.endValueOpen.length === "number" || $util.isString(message.endValueOpen))) + return "endValueOpen: buffer expected"; } return null; }; /** - * Creates a StreamPartition message from a plain object. Also converts values to their respective internal types. + * Creates a ValueRange message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.StreamPartition} StreamPartition + * @returns {google.bigtable.v2.ValueRange} ValueRange */ - StreamPartition.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.StreamPartition) + ValueRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ValueRange) return object; - var message = new $root.google.bigtable.v2.StreamPartition(); - if (object.rowRange != null) { - if (typeof object.rowRange !== "object") - throw TypeError(".google.bigtable.v2.StreamPartition.rowRange: object expected"); - message.rowRange = $root.google.bigtable.v2.RowRange.fromObject(object.rowRange); - } + var message = new $root.google.bigtable.v2.ValueRange(); + if (object.startValueClosed != null) + if (typeof object.startValueClosed === "string") + $util.base64.decode(object.startValueClosed, message.startValueClosed = $util.newBuffer($util.base64.length(object.startValueClosed)), 0); + else if (object.startValueClosed.length >= 0) + message.startValueClosed = object.startValueClosed; + if (object.startValueOpen != null) + if (typeof object.startValueOpen === "string") + $util.base64.decode(object.startValueOpen, message.startValueOpen = $util.newBuffer($util.base64.length(object.startValueOpen)), 0); + else if (object.startValueOpen.length >= 0) + message.startValueOpen = object.startValueOpen; + if (object.endValueClosed != null) + if (typeof object.endValueClosed === "string") + $util.base64.decode(object.endValueClosed, message.endValueClosed = $util.newBuffer($util.base64.length(object.endValueClosed)), 0); + else if (object.endValueClosed.length >= 0) + message.endValueClosed = object.endValueClosed; + if (object.endValueOpen != null) + if (typeof object.endValueOpen === "string") + $util.base64.decode(object.endValueOpen, message.endValueOpen = $util.newBuffer($util.base64.length(object.endValueOpen)), 0); + else if (object.endValueOpen.length >= 0) + message.endValueOpen = object.endValueOpen; return message; }; /** - * Creates a plain object from a StreamPartition message. Also converts values to other types if specified. + * Creates a plain object from a ValueRange message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static - * @param {google.bigtable.v2.StreamPartition} message StreamPartition + * @param {google.bigtable.v2.ValueRange} message ValueRange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamPartition.toObject = function toObject(message, options) { + ValueRange.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.rowRange = null; - if (message.rowRange != null && message.hasOwnProperty("rowRange")) - object.rowRange = $root.google.bigtable.v2.RowRange.toObject(message.rowRange, options); + if (message.startValueClosed != null && message.hasOwnProperty("startValueClosed")) { + object.startValueClosed = options.bytes === String ? $util.base64.encode(message.startValueClosed, 0, message.startValueClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.startValueClosed) : message.startValueClosed; + if (options.oneofs) + object.startValue = "startValueClosed"; + } + if (message.startValueOpen != null && message.hasOwnProperty("startValueOpen")) { + object.startValueOpen = options.bytes === String ? $util.base64.encode(message.startValueOpen, 0, message.startValueOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.startValueOpen) : message.startValueOpen; + if (options.oneofs) + object.startValue = "startValueOpen"; + } + if (message.endValueClosed != null && message.hasOwnProperty("endValueClosed")) { + object.endValueClosed = options.bytes === String ? $util.base64.encode(message.endValueClosed, 0, message.endValueClosed.length) : options.bytes === Array ? Array.prototype.slice.call(message.endValueClosed) : message.endValueClosed; + if (options.oneofs) + object.endValue = "endValueClosed"; + } + if (message.endValueOpen != null && message.hasOwnProperty("endValueOpen")) { + object.endValueOpen = options.bytes === String ? $util.base64.encode(message.endValueOpen, 0, message.endValueOpen.length) : options.bytes === Array ? Array.prototype.slice.call(message.endValueOpen) : message.endValueOpen; + if (options.oneofs) + object.endValue = "endValueOpen"; + } return object; }; /** - * Converts this StreamPartition to JSON. + * Converts this ValueRange to JSON. * @function toJSON - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @instance * @returns {Object.} JSON object */ - StreamPartition.prototype.toJSON = function toJSON() { + ValueRange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamPartition + * Gets the default type url for ValueRange * @function getTypeUrl - * @memberof google.bigtable.v2.StreamPartition + * @memberof google.bigtable.v2.ValueRange * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamPartition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValueRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.StreamPartition"; + return typeUrlPrefix + "/google.bigtable.v2.ValueRange"; }; - return StreamPartition; + return ValueRange; })(); - v2.StreamContinuationTokens = (function() { + v2.RowFilter = (function() { /** - * Properties of a StreamContinuationTokens. + * Properties of a RowFilter. * @memberof google.bigtable.v2 - * @interface IStreamContinuationTokens - * @property {Array.|null} [tokens] StreamContinuationTokens tokens + * @interface IRowFilter + * @property {google.bigtable.v2.RowFilter.IChain|null} [chain] RowFilter chain + * @property {google.bigtable.v2.RowFilter.IInterleave|null} [interleave] RowFilter interleave + * @property {google.bigtable.v2.RowFilter.ICondition|null} [condition] RowFilter condition + * @property {boolean|null} [sink] RowFilter sink + * @property {boolean|null} [passAllFilter] RowFilter passAllFilter + * @property {boolean|null} [blockAllFilter] RowFilter blockAllFilter + * @property {Uint8Array|null} [rowKeyRegexFilter] RowFilter rowKeyRegexFilter + * @property {number|null} [rowSampleFilter] RowFilter rowSampleFilter + * @property {string|null} [familyNameRegexFilter] RowFilter familyNameRegexFilter + * @property {Uint8Array|null} [columnQualifierRegexFilter] RowFilter columnQualifierRegexFilter + * @property {google.bigtable.v2.IColumnRange|null} [columnRangeFilter] RowFilter columnRangeFilter + * @property {google.bigtable.v2.ITimestampRange|null} [timestampRangeFilter] RowFilter timestampRangeFilter + * @property {Uint8Array|null} [valueRegexFilter] RowFilter valueRegexFilter + * @property {google.bigtable.v2.IValueRange|null} [valueRangeFilter] RowFilter valueRangeFilter + * @property {number|null} [cellsPerRowOffsetFilter] RowFilter cellsPerRowOffsetFilter + * @property {number|null} [cellsPerRowLimitFilter] RowFilter cellsPerRowLimitFilter + * @property {number|null} [cellsPerColumnLimitFilter] RowFilter cellsPerColumnLimitFilter + * @property {boolean|null} [stripValueTransformer] RowFilter stripValueTransformer + * @property {string|null} [applyLabelTransformer] RowFilter applyLabelTransformer */ /** - * Constructs a new StreamContinuationTokens. + * Constructs a new RowFilter. * @memberof google.bigtable.v2 - * @classdesc Represents a StreamContinuationTokens. - * @implements IStreamContinuationTokens + * @classdesc Represents a RowFilter. + * @implements IRowFilter * @constructor - * @param {google.bigtable.v2.IStreamContinuationTokens=} [properties] Properties to set + * @param {google.bigtable.v2.IRowFilter=} [properties] Properties to set */ - function StreamContinuationTokens(properties) { - this.tokens = []; + function RowFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58825,317 +58163,343 @@ } /** - * StreamContinuationTokens tokens. - * @member {Array.} tokens - * @memberof google.bigtable.v2.StreamContinuationTokens + * RowFilter chain. + * @member {google.bigtable.v2.RowFilter.IChain|null|undefined} chain + * @memberof google.bigtable.v2.RowFilter * @instance */ - StreamContinuationTokens.prototype.tokens = $util.emptyArray; + RowFilter.prototype.chain = null; /** - * Creates a new StreamContinuationTokens instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {google.bigtable.v2.IStreamContinuationTokens=} [properties] Properties to set - * @returns {google.bigtable.v2.StreamContinuationTokens} StreamContinuationTokens instance + * RowFilter interleave. + * @member {google.bigtable.v2.RowFilter.IInterleave|null|undefined} interleave + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.create = function create(properties) { - return new StreamContinuationTokens(properties); - }; + RowFilter.prototype.interleave = null; /** - * Encodes the specified StreamContinuationTokens message. Does not implicitly {@link google.bigtable.v2.StreamContinuationTokens.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {google.bigtable.v2.IStreamContinuationTokens} message StreamContinuationTokens message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * RowFilter condition. + * @member {google.bigtable.v2.RowFilter.ICondition|null|undefined} condition + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tokens != null && message.tokens.length) - for (var i = 0; i < message.tokens.length; ++i) - $root.google.bigtable.v2.StreamContinuationToken.encode(message.tokens[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + RowFilter.prototype.condition = null; /** - * Encodes the specified StreamContinuationTokens message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamContinuationTokens.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {google.bigtable.v2.IStreamContinuationTokens} message StreamContinuationTokens message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * RowFilter sink. + * @member {boolean|null|undefined} sink + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + RowFilter.prototype.sink = null; /** - * Decodes a StreamContinuationTokens message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.StreamContinuationTokens} StreamContinuationTokens - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * RowFilter passAllFilter. + * @member {boolean|null|undefined} passAllFilter + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.StreamContinuationTokens(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - if (!(message.tokens && message.tokens.length)) - message.tokens = []; - message.tokens.push($root.google.bigtable.v2.StreamContinuationToken.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + RowFilter.prototype.passAllFilter = null; /** - * Decodes a StreamContinuationTokens message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.StreamContinuationTokens} StreamContinuationTokens - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * RowFilter blockAllFilter. + * @member {boolean|null|undefined} blockAllFilter + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + RowFilter.prototype.blockAllFilter = null; /** - * Verifies a StreamContinuationTokens message. - * @function verify - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * RowFilter rowKeyRegexFilter. + * @member {Uint8Array|null|undefined} rowKeyRegexFilter + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tokens != null && message.hasOwnProperty("tokens")) { - if (!Array.isArray(message.tokens)) - return "tokens: array expected"; - for (var i = 0; i < message.tokens.length; ++i) { - var error = $root.google.bigtable.v2.StreamContinuationToken.verify(message.tokens[i]); - if (error) - return "tokens." + error; - } - } - return null; - }; + RowFilter.prototype.rowKeyRegexFilter = null; /** - * Creates a StreamContinuationTokens message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.StreamContinuationTokens} StreamContinuationTokens + * RowFilter rowSampleFilter. + * @member {number|null|undefined} rowSampleFilter + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.StreamContinuationTokens) - return object; - var message = new $root.google.bigtable.v2.StreamContinuationTokens(); - if (object.tokens) { - if (!Array.isArray(object.tokens)) - throw TypeError(".google.bigtable.v2.StreamContinuationTokens.tokens: array expected"); - message.tokens = []; - for (var i = 0; i < object.tokens.length; ++i) { - if (typeof object.tokens[i] !== "object") - throw TypeError(".google.bigtable.v2.StreamContinuationTokens.tokens: object expected"); - message.tokens[i] = $root.google.bigtable.v2.StreamContinuationToken.fromObject(object.tokens[i]); - } - } - return message; - }; + RowFilter.prototype.rowSampleFilter = null; /** - * Creates a plain object from a StreamContinuationTokens message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {google.bigtable.v2.StreamContinuationTokens} message StreamContinuationTokens - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * RowFilter familyNameRegexFilter. + * @member {string|null|undefined} familyNameRegexFilter + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.tokens = []; - if (message.tokens && message.tokens.length) { - object.tokens = []; - for (var j = 0; j < message.tokens.length; ++j) - object.tokens[j] = $root.google.bigtable.v2.StreamContinuationToken.toObject(message.tokens[j], options); - } - return object; - }; + RowFilter.prototype.familyNameRegexFilter = null; /** - * Converts this StreamContinuationTokens to JSON. - * @function toJSON - * @memberof google.bigtable.v2.StreamContinuationTokens + * RowFilter columnQualifierRegexFilter. + * @member {Uint8Array|null|undefined} columnQualifierRegexFilter + * @memberof google.bigtable.v2.RowFilter * @instance - * @returns {Object.} JSON object */ - StreamContinuationTokens.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + RowFilter.prototype.columnQualifierRegexFilter = null; /** - * Gets the default type url for StreamContinuationTokens - * @function getTypeUrl - * @memberof google.bigtable.v2.StreamContinuationTokens - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * RowFilter columnRangeFilter. + * @member {google.bigtable.v2.IColumnRange|null|undefined} columnRangeFilter + * @memberof google.bigtable.v2.RowFilter + * @instance */ - StreamContinuationTokens.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.StreamContinuationTokens"; - }; + RowFilter.prototype.columnRangeFilter = null; - return StreamContinuationTokens; - })(); + /** + * RowFilter timestampRangeFilter. + * @member {google.bigtable.v2.ITimestampRange|null|undefined} timestampRangeFilter + * @memberof google.bigtable.v2.RowFilter + * @instance + */ + RowFilter.prototype.timestampRangeFilter = null; - v2.StreamContinuationToken = (function() { + /** + * RowFilter valueRegexFilter. + * @member {Uint8Array|null|undefined} valueRegexFilter + * @memberof google.bigtable.v2.RowFilter + * @instance + */ + RowFilter.prototype.valueRegexFilter = null; /** - * Properties of a StreamContinuationToken. - * @memberof google.bigtable.v2 - * @interface IStreamContinuationToken - * @property {google.bigtable.v2.IStreamPartition|null} [partition] StreamContinuationToken partition - * @property {string|null} [token] StreamContinuationToken token + * RowFilter valueRangeFilter. + * @member {google.bigtable.v2.IValueRange|null|undefined} valueRangeFilter + * @memberof google.bigtable.v2.RowFilter + * @instance */ + RowFilter.prototype.valueRangeFilter = null; /** - * Constructs a new StreamContinuationToken. - * @memberof google.bigtable.v2 - * @classdesc Represents a StreamContinuationToken. - * @implements IStreamContinuationToken - * @constructor - * @param {google.bigtable.v2.IStreamContinuationToken=} [properties] Properties to set + * RowFilter cellsPerRowOffsetFilter. + * @member {number|null|undefined} cellsPerRowOffsetFilter + * @memberof google.bigtable.v2.RowFilter + * @instance */ - function StreamContinuationToken(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + RowFilter.prototype.cellsPerRowOffsetFilter = null; /** - * StreamContinuationToken partition. - * @member {google.bigtable.v2.IStreamPartition|null|undefined} partition - * @memberof google.bigtable.v2.StreamContinuationToken + * RowFilter cellsPerRowLimitFilter. + * @member {number|null|undefined} cellsPerRowLimitFilter + * @memberof google.bigtable.v2.RowFilter * @instance */ - StreamContinuationToken.prototype.partition = null; + RowFilter.prototype.cellsPerRowLimitFilter = null; /** - * StreamContinuationToken token. - * @member {string} token - * @memberof google.bigtable.v2.StreamContinuationToken + * RowFilter cellsPerColumnLimitFilter. + * @member {number|null|undefined} cellsPerColumnLimitFilter + * @memberof google.bigtable.v2.RowFilter * @instance */ - StreamContinuationToken.prototype.token = ""; + RowFilter.prototype.cellsPerColumnLimitFilter = null; /** - * Creates a new StreamContinuationToken instance using the specified properties. + * RowFilter stripValueTransformer. + * @member {boolean|null|undefined} stripValueTransformer + * @memberof google.bigtable.v2.RowFilter + * @instance + */ + RowFilter.prototype.stripValueTransformer = null; + + /** + * RowFilter applyLabelTransformer. + * @member {string|null|undefined} applyLabelTransformer + * @memberof google.bigtable.v2.RowFilter + * @instance + */ + RowFilter.prototype.applyLabelTransformer = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RowFilter filter. + * @member {"chain"|"interleave"|"condition"|"sink"|"passAllFilter"|"blockAllFilter"|"rowKeyRegexFilter"|"rowSampleFilter"|"familyNameRegexFilter"|"columnQualifierRegexFilter"|"columnRangeFilter"|"timestampRangeFilter"|"valueRegexFilter"|"valueRangeFilter"|"cellsPerRowOffsetFilter"|"cellsPerRowLimitFilter"|"cellsPerColumnLimitFilter"|"stripValueTransformer"|"applyLabelTransformer"|undefined} filter + * @memberof google.bigtable.v2.RowFilter + * @instance + */ + Object.defineProperty(RowFilter.prototype, "filter", { + get: $util.oneOfGetter($oneOfFields = ["chain", "interleave", "condition", "sink", "passAllFilter", "blockAllFilter", "rowKeyRegexFilter", "rowSampleFilter", "familyNameRegexFilter", "columnQualifierRegexFilter", "columnRangeFilter", "timestampRangeFilter", "valueRegexFilter", "valueRangeFilter", "cellsPerRowOffsetFilter", "cellsPerRowLimitFilter", "cellsPerColumnLimitFilter", "stripValueTransformer", "applyLabelTransformer"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RowFilter instance using the specified properties. * @function create - * @memberof google.bigtable.v2.StreamContinuationToken + * @memberof google.bigtable.v2.RowFilter * @static - * @param {google.bigtable.v2.IStreamContinuationToken=} [properties] Properties to set - * @returns {google.bigtable.v2.StreamContinuationToken} StreamContinuationToken instance + * @param {google.bigtable.v2.IRowFilter=} [properties] Properties to set + * @returns {google.bigtable.v2.RowFilter} RowFilter instance */ - StreamContinuationToken.create = function create(properties) { - return new StreamContinuationToken(properties); + RowFilter.create = function create(properties) { + return new RowFilter(properties); }; /** - * Encodes the specified StreamContinuationToken message. Does not implicitly {@link google.bigtable.v2.StreamContinuationToken.verify|verify} messages. + * Encodes the specified RowFilter message. Does not implicitly {@link google.bigtable.v2.RowFilter.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.StreamContinuationToken + * @memberof google.bigtable.v2.RowFilter * @static - * @param {google.bigtable.v2.IStreamContinuationToken} message StreamContinuationToken message or plain object to encode + * @param {google.bigtable.v2.IRowFilter} message RowFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamContinuationToken.encode = function encode(message, writer) { + RowFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.partition != null && Object.hasOwnProperty.call(message, "partition")) - $root.google.bigtable.v2.StreamPartition.encode(message.partition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && Object.hasOwnProperty.call(message, "token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + if (message.chain != null && Object.hasOwnProperty.call(message, "chain")) + $root.google.bigtable.v2.RowFilter.Chain.encode(message.chain, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.interleave != null && Object.hasOwnProperty.call(message, "interleave")) + $root.google.bigtable.v2.RowFilter.Interleave.encode(message.interleave, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) + $root.google.bigtable.v2.RowFilter.Condition.encode(message.condition, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.rowKeyRegexFilter != null && Object.hasOwnProperty.call(message, "rowKeyRegexFilter")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.rowKeyRegexFilter); + if (message.familyNameRegexFilter != null && Object.hasOwnProperty.call(message, "familyNameRegexFilter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.familyNameRegexFilter); + if (message.columnQualifierRegexFilter != null && Object.hasOwnProperty.call(message, "columnQualifierRegexFilter")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.columnQualifierRegexFilter); + if (message.columnRangeFilter != null && Object.hasOwnProperty.call(message, "columnRangeFilter")) + $root.google.bigtable.v2.ColumnRange.encode(message.columnRangeFilter, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.timestampRangeFilter != null && Object.hasOwnProperty.call(message, "timestampRangeFilter")) + $root.google.bigtable.v2.TimestampRange.encode(message.timestampRangeFilter, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.valueRegexFilter != null && Object.hasOwnProperty.call(message, "valueRegexFilter")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.valueRegexFilter); + if (message.cellsPerRowOffsetFilter != null && Object.hasOwnProperty.call(message, "cellsPerRowOffsetFilter")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.cellsPerRowOffsetFilter); + if (message.cellsPerRowLimitFilter != null && Object.hasOwnProperty.call(message, "cellsPerRowLimitFilter")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.cellsPerRowLimitFilter); + if (message.cellsPerColumnLimitFilter != null && Object.hasOwnProperty.call(message, "cellsPerColumnLimitFilter")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cellsPerColumnLimitFilter); + if (message.stripValueTransformer != null && Object.hasOwnProperty.call(message, "stripValueTransformer")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.stripValueTransformer); + if (message.rowSampleFilter != null && Object.hasOwnProperty.call(message, "rowSampleFilter")) + writer.uint32(/* id 14, wireType 1 =*/113).double(message.rowSampleFilter); + if (message.valueRangeFilter != null && Object.hasOwnProperty.call(message, "valueRangeFilter")) + $root.google.bigtable.v2.ValueRange.encode(message.valueRangeFilter, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.sink != null && Object.hasOwnProperty.call(message, "sink")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.sink); + if (message.passAllFilter != null && Object.hasOwnProperty.call(message, "passAllFilter")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.passAllFilter); + if (message.blockAllFilter != null && Object.hasOwnProperty.call(message, "blockAllFilter")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.blockAllFilter); + if (message.applyLabelTransformer != null && Object.hasOwnProperty.call(message, "applyLabelTransformer")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.applyLabelTransformer); return writer; }; /** - * Encodes the specified StreamContinuationToken message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamContinuationToken.verify|verify} messages. + * Encodes the specified RowFilter message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.StreamContinuationToken + * @memberof google.bigtable.v2.RowFilter * @static - * @param {google.bigtable.v2.IStreamContinuationToken} message StreamContinuationToken message or plain object to encode + * @param {google.bigtable.v2.IRowFilter} message RowFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamContinuationToken.encodeDelimited = function encodeDelimited(message, writer) { + RowFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamContinuationToken message from the specified reader or buffer. + * Decodes a RowFilter message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.StreamContinuationToken + * @memberof google.bigtable.v2.RowFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.StreamContinuationToken} StreamContinuationToken + * @returns {google.bigtable.v2.RowFilter} RowFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamContinuationToken.decode = function decode(reader, length, error) { + RowFilter.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.StreamContinuationToken(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowFilter(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.partition = $root.google.bigtable.v2.StreamPartition.decode(reader, reader.uint32()); + message.chain = $root.google.bigtable.v2.RowFilter.Chain.decode(reader, reader.uint32()); break; } case 2: { - message.token = reader.string(); + message.interleave = $root.google.bigtable.v2.RowFilter.Interleave.decode(reader, reader.uint32()); + break; + } + case 3: { + message.condition = $root.google.bigtable.v2.RowFilter.Condition.decode(reader, reader.uint32()); + break; + } + case 16: { + message.sink = reader.bool(); + break; + } + case 17: { + message.passAllFilter = reader.bool(); + break; + } + case 18: { + message.blockAllFilter = reader.bool(); + break; + } + case 4: { + message.rowKeyRegexFilter = reader.bytes(); + break; + } + case 14: { + message.rowSampleFilter = reader.double(); + break; + } + case 5: { + message.familyNameRegexFilter = reader.string(); + break; + } + case 6: { + message.columnQualifierRegexFilter = reader.bytes(); + break; + } + case 7: { + message.columnRangeFilter = $root.google.bigtable.v2.ColumnRange.decode(reader, reader.uint32()); + break; + } + case 8: { + message.timestampRangeFilter = $root.google.bigtable.v2.TimestampRange.decode(reader, reader.uint32()); + break; + } + case 9: { + message.valueRegexFilter = reader.bytes(); + break; + } + case 15: { + message.valueRangeFilter = $root.google.bigtable.v2.ValueRange.decode(reader, reader.uint32()); + break; + } + case 10: { + message.cellsPerRowOffsetFilter = reader.int32(); + break; + } + case 11: { + message.cellsPerRowLimitFilter = reader.int32(); + break; + } + case 12: { + message.cellsPerColumnLimitFilter = reader.int32(); + break; + } + case 13: { + message.stripValueTransformer = reader.bool(); + break; + } + case 19: { + message.applyLabelTransformer = reader.string(); break; } default: @@ -59147,1003 +58511,1147 @@ }; /** - * Decodes a StreamContinuationToken message from the specified reader or buffer, length delimited. + * Decodes a RowFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.StreamContinuationToken + * @memberof google.bigtable.v2.RowFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.StreamContinuationToken} StreamContinuationToken + * @returns {google.bigtable.v2.RowFilter} RowFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamContinuationToken.decodeDelimited = function decodeDelimited(reader) { + RowFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamContinuationToken message. + * Verifies a RowFilter message. * @function verify - * @memberof google.bigtable.v2.StreamContinuationToken + * @memberof google.bigtable.v2.RowFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamContinuationToken.verify = function verify(message) { + RowFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.partition != null && message.hasOwnProperty("partition")) { - var error = $root.google.bigtable.v2.StreamPartition.verify(message.partition); - if (error) - return "partition." + error; + var properties = {}; + if (message.chain != null && message.hasOwnProperty("chain")) { + properties.filter = 1; + { + var error = $root.google.bigtable.v2.RowFilter.Chain.verify(message.chain); + if (error) + return "chain." + error; + } } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - /** - * Creates a StreamContinuationToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.StreamContinuationToken - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.StreamContinuationToken} StreamContinuationToken - */ - StreamContinuationToken.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.StreamContinuationToken) - return object; - var message = new $root.google.bigtable.v2.StreamContinuationToken(); - if (object.partition != null) { - if (typeof object.partition !== "object") - throw TypeError(".google.bigtable.v2.StreamContinuationToken.partition: object expected"); - message.partition = $root.google.bigtable.v2.StreamPartition.fromObject(object.partition); + if (message.interleave != null && message.hasOwnProperty("interleave")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + { + var error = $root.google.bigtable.v2.RowFilter.Interleave.verify(message.interleave); + if (error) + return "interleave." + error; + } } - if (object.token != null) - message.token = String(object.token); - return message; - }; - - /** - * Creates a plain object from a StreamContinuationToken message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.StreamContinuationToken - * @static - * @param {google.bigtable.v2.StreamContinuationToken} message StreamContinuationToken - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StreamContinuationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.partition = null; - object.token = ""; + if (message.condition != null && message.hasOwnProperty("condition")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + { + var error = $root.google.bigtable.v2.RowFilter.Condition.verify(message.condition); + if (error) + return "condition." + error; + } } - if (message.partition != null && message.hasOwnProperty("partition")) - object.partition = $root.google.bigtable.v2.StreamPartition.toObject(message.partition, options); - if (message.token != null && message.hasOwnProperty("token")) - object.token = message.token; - return object; - }; - - /** - * Converts this StreamContinuationToken to JSON. - * @function toJSON - * @memberof google.bigtable.v2.StreamContinuationToken - * @instance - * @returns {Object.} JSON object - */ - StreamContinuationToken.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for StreamContinuationToken - * @function getTypeUrl - * @memberof google.bigtable.v2.StreamContinuationToken - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StreamContinuationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + if (message.sink != null && message.hasOwnProperty("sink")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (typeof message.sink !== "boolean") + return "sink: boolean expected"; } - return typeUrlPrefix + "/google.bigtable.v2.StreamContinuationToken"; - }; - - return StreamContinuationToken; - })(); - - v2.ProtoFormat = (function() { - - /** - * Properties of a ProtoFormat. - * @memberof google.bigtable.v2 - * @interface IProtoFormat - */ - - /** - * Constructs a new ProtoFormat. - * @memberof google.bigtable.v2 - * @classdesc Represents a ProtoFormat. - * @implements IProtoFormat - * @constructor - * @param {google.bigtable.v2.IProtoFormat=} [properties] Properties to set - */ - function ProtoFormat(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProtoFormat instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ProtoFormat - * @static - * @param {google.bigtable.v2.IProtoFormat=} [properties] Properties to set - * @returns {google.bigtable.v2.ProtoFormat} ProtoFormat instance - */ - ProtoFormat.create = function create(properties) { - return new ProtoFormat(properties); - }; - - /** - * Encodes the specified ProtoFormat message. Does not implicitly {@link google.bigtable.v2.ProtoFormat.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ProtoFormat - * @static - * @param {google.bigtable.v2.IProtoFormat} message ProtoFormat message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoFormat.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified ProtoFormat message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoFormat.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ProtoFormat - * @static - * @param {google.bigtable.v2.IProtoFormat} message ProtoFormat message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoFormat.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoFormat message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ProtoFormat - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ProtoFormat} ProtoFormat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoFormat.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ProtoFormat(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + if (message.passAllFilter != null && message.hasOwnProperty("passAllFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (typeof message.passAllFilter !== "boolean") + return "passAllFilter: boolean expected"; + } + if (message.blockAllFilter != null && message.hasOwnProperty("blockAllFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (typeof message.blockAllFilter !== "boolean") + return "blockAllFilter: boolean expected"; + } + if (message.rowKeyRegexFilter != null && message.hasOwnProperty("rowKeyRegexFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (!(message.rowKeyRegexFilter && typeof message.rowKeyRegexFilter.length === "number" || $util.isString(message.rowKeyRegexFilter))) + return "rowKeyRegexFilter: buffer expected"; + } + if (message.rowSampleFilter != null && message.hasOwnProperty("rowSampleFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (typeof message.rowSampleFilter !== "number") + return "rowSampleFilter: number expected"; + } + if (message.familyNameRegexFilter != null && message.hasOwnProperty("familyNameRegexFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (!$util.isString(message.familyNameRegexFilter)) + return "familyNameRegexFilter: string expected"; + } + if (message.columnQualifierRegexFilter != null && message.hasOwnProperty("columnQualifierRegexFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (!(message.columnQualifierRegexFilter && typeof message.columnQualifierRegexFilter.length === "number" || $util.isString(message.columnQualifierRegexFilter))) + return "columnQualifierRegexFilter: buffer expected"; + } + if (message.columnRangeFilter != null && message.hasOwnProperty("columnRangeFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + { + var error = $root.google.bigtable.v2.ColumnRange.verify(message.columnRangeFilter); + if (error) + return "columnRangeFilter." + error; } } - return message; - }; - - /** - * Decodes a ProtoFormat message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ProtoFormat - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ProtoFormat} ProtoFormat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoFormat.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoFormat message. - * @function verify - * @memberof google.bigtable.v2.ProtoFormat - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoFormat.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (message.timestampRangeFilter != null && message.hasOwnProperty("timestampRangeFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + { + var error = $root.google.bigtable.v2.TimestampRange.verify(message.timestampRangeFilter); + if (error) + return "timestampRangeFilter." + error; + } + } + if (message.valueRegexFilter != null && message.hasOwnProperty("valueRegexFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (!(message.valueRegexFilter && typeof message.valueRegexFilter.length === "number" || $util.isString(message.valueRegexFilter))) + return "valueRegexFilter: buffer expected"; + } + if (message.valueRangeFilter != null && message.hasOwnProperty("valueRangeFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + { + var error = $root.google.bigtable.v2.ValueRange.verify(message.valueRangeFilter); + if (error) + return "valueRangeFilter." + error; + } + } + if (message.cellsPerRowOffsetFilter != null && message.hasOwnProperty("cellsPerRowOffsetFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (!$util.isInteger(message.cellsPerRowOffsetFilter)) + return "cellsPerRowOffsetFilter: integer expected"; + } + if (message.cellsPerRowLimitFilter != null && message.hasOwnProperty("cellsPerRowLimitFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (!$util.isInteger(message.cellsPerRowLimitFilter)) + return "cellsPerRowLimitFilter: integer expected"; + } + if (message.cellsPerColumnLimitFilter != null && message.hasOwnProperty("cellsPerColumnLimitFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (!$util.isInteger(message.cellsPerColumnLimitFilter)) + return "cellsPerColumnLimitFilter: integer expected"; + } + if (message.stripValueTransformer != null && message.hasOwnProperty("stripValueTransformer")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (typeof message.stripValueTransformer !== "boolean") + return "stripValueTransformer: boolean expected"; + } + if (message.applyLabelTransformer != null && message.hasOwnProperty("applyLabelTransformer")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + if (!$util.isString(message.applyLabelTransformer)) + return "applyLabelTransformer: string expected"; + } return null; }; /** - * Creates a ProtoFormat message from a plain object. Also converts values to their respective internal types. + * Creates a RowFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ProtoFormat + * @memberof google.bigtable.v2.RowFilter * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ProtoFormat} ProtoFormat + * @returns {google.bigtable.v2.RowFilter} RowFilter */ - ProtoFormat.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ProtoFormat) + RowFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.RowFilter) return object; - return new $root.google.bigtable.v2.ProtoFormat(); + var message = new $root.google.bigtable.v2.RowFilter(); + if (object.chain != null) { + if (typeof object.chain !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.chain: object expected"); + message.chain = $root.google.bigtable.v2.RowFilter.Chain.fromObject(object.chain); + } + if (object.interleave != null) { + if (typeof object.interleave !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.interleave: object expected"); + message.interleave = $root.google.bigtable.v2.RowFilter.Interleave.fromObject(object.interleave); + } + if (object.condition != null) { + if (typeof object.condition !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.condition: object expected"); + message.condition = $root.google.bigtable.v2.RowFilter.Condition.fromObject(object.condition); + } + if (object.sink != null) + message.sink = Boolean(object.sink); + if (object.passAllFilter != null) + message.passAllFilter = Boolean(object.passAllFilter); + if (object.blockAllFilter != null) + message.blockAllFilter = Boolean(object.blockAllFilter); + if (object.rowKeyRegexFilter != null) + if (typeof object.rowKeyRegexFilter === "string") + $util.base64.decode(object.rowKeyRegexFilter, message.rowKeyRegexFilter = $util.newBuffer($util.base64.length(object.rowKeyRegexFilter)), 0); + else if (object.rowKeyRegexFilter.length >= 0) + message.rowKeyRegexFilter = object.rowKeyRegexFilter; + if (object.rowSampleFilter != null) + message.rowSampleFilter = Number(object.rowSampleFilter); + if (object.familyNameRegexFilter != null) + message.familyNameRegexFilter = String(object.familyNameRegexFilter); + if (object.columnQualifierRegexFilter != null) + if (typeof object.columnQualifierRegexFilter === "string") + $util.base64.decode(object.columnQualifierRegexFilter, message.columnQualifierRegexFilter = $util.newBuffer($util.base64.length(object.columnQualifierRegexFilter)), 0); + else if (object.columnQualifierRegexFilter.length >= 0) + message.columnQualifierRegexFilter = object.columnQualifierRegexFilter; + if (object.columnRangeFilter != null) { + if (typeof object.columnRangeFilter !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.columnRangeFilter: object expected"); + message.columnRangeFilter = $root.google.bigtable.v2.ColumnRange.fromObject(object.columnRangeFilter); + } + if (object.timestampRangeFilter != null) { + if (typeof object.timestampRangeFilter !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.timestampRangeFilter: object expected"); + message.timestampRangeFilter = $root.google.bigtable.v2.TimestampRange.fromObject(object.timestampRangeFilter); + } + if (object.valueRegexFilter != null) + if (typeof object.valueRegexFilter === "string") + $util.base64.decode(object.valueRegexFilter, message.valueRegexFilter = $util.newBuffer($util.base64.length(object.valueRegexFilter)), 0); + else if (object.valueRegexFilter.length >= 0) + message.valueRegexFilter = object.valueRegexFilter; + if (object.valueRangeFilter != null) { + if (typeof object.valueRangeFilter !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.valueRangeFilter: object expected"); + message.valueRangeFilter = $root.google.bigtable.v2.ValueRange.fromObject(object.valueRangeFilter); + } + if (object.cellsPerRowOffsetFilter != null) + message.cellsPerRowOffsetFilter = object.cellsPerRowOffsetFilter | 0; + if (object.cellsPerRowLimitFilter != null) + message.cellsPerRowLimitFilter = object.cellsPerRowLimitFilter | 0; + if (object.cellsPerColumnLimitFilter != null) + message.cellsPerColumnLimitFilter = object.cellsPerColumnLimitFilter | 0; + if (object.stripValueTransformer != null) + message.stripValueTransformer = Boolean(object.stripValueTransformer); + if (object.applyLabelTransformer != null) + message.applyLabelTransformer = String(object.applyLabelTransformer); + return message; }; /** - * Creates a plain object from a ProtoFormat message. Also converts values to other types if specified. + * Creates a plain object from a RowFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ProtoFormat + * @memberof google.bigtable.v2.RowFilter * @static - * @param {google.bigtable.v2.ProtoFormat} message ProtoFormat + * @param {google.bigtable.v2.RowFilter} message RowFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProtoFormat.toObject = function toObject() { - return {}; + RowFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.chain != null && message.hasOwnProperty("chain")) { + object.chain = $root.google.bigtable.v2.RowFilter.Chain.toObject(message.chain, options); + if (options.oneofs) + object.filter = "chain"; + } + if (message.interleave != null && message.hasOwnProperty("interleave")) { + object.interleave = $root.google.bigtable.v2.RowFilter.Interleave.toObject(message.interleave, options); + if (options.oneofs) + object.filter = "interleave"; + } + if (message.condition != null && message.hasOwnProperty("condition")) { + object.condition = $root.google.bigtable.v2.RowFilter.Condition.toObject(message.condition, options); + if (options.oneofs) + object.filter = "condition"; + } + if (message.rowKeyRegexFilter != null && message.hasOwnProperty("rowKeyRegexFilter")) { + object.rowKeyRegexFilter = options.bytes === String ? $util.base64.encode(message.rowKeyRegexFilter, 0, message.rowKeyRegexFilter.length) : options.bytes === Array ? Array.prototype.slice.call(message.rowKeyRegexFilter) : message.rowKeyRegexFilter; + if (options.oneofs) + object.filter = "rowKeyRegexFilter"; + } + if (message.familyNameRegexFilter != null && message.hasOwnProperty("familyNameRegexFilter")) { + object.familyNameRegexFilter = message.familyNameRegexFilter; + if (options.oneofs) + object.filter = "familyNameRegexFilter"; + } + if (message.columnQualifierRegexFilter != null && message.hasOwnProperty("columnQualifierRegexFilter")) { + object.columnQualifierRegexFilter = options.bytes === String ? $util.base64.encode(message.columnQualifierRegexFilter, 0, message.columnQualifierRegexFilter.length) : options.bytes === Array ? Array.prototype.slice.call(message.columnQualifierRegexFilter) : message.columnQualifierRegexFilter; + if (options.oneofs) + object.filter = "columnQualifierRegexFilter"; + } + if (message.columnRangeFilter != null && message.hasOwnProperty("columnRangeFilter")) { + object.columnRangeFilter = $root.google.bigtable.v2.ColumnRange.toObject(message.columnRangeFilter, options); + if (options.oneofs) + object.filter = "columnRangeFilter"; + } + if (message.timestampRangeFilter != null && message.hasOwnProperty("timestampRangeFilter")) { + object.timestampRangeFilter = $root.google.bigtable.v2.TimestampRange.toObject(message.timestampRangeFilter, options); + if (options.oneofs) + object.filter = "timestampRangeFilter"; + } + if (message.valueRegexFilter != null && message.hasOwnProperty("valueRegexFilter")) { + object.valueRegexFilter = options.bytes === String ? $util.base64.encode(message.valueRegexFilter, 0, message.valueRegexFilter.length) : options.bytes === Array ? Array.prototype.slice.call(message.valueRegexFilter) : message.valueRegexFilter; + if (options.oneofs) + object.filter = "valueRegexFilter"; + } + if (message.cellsPerRowOffsetFilter != null && message.hasOwnProperty("cellsPerRowOffsetFilter")) { + object.cellsPerRowOffsetFilter = message.cellsPerRowOffsetFilter; + if (options.oneofs) + object.filter = "cellsPerRowOffsetFilter"; + } + if (message.cellsPerRowLimitFilter != null && message.hasOwnProperty("cellsPerRowLimitFilter")) { + object.cellsPerRowLimitFilter = message.cellsPerRowLimitFilter; + if (options.oneofs) + object.filter = "cellsPerRowLimitFilter"; + } + if (message.cellsPerColumnLimitFilter != null && message.hasOwnProperty("cellsPerColumnLimitFilter")) { + object.cellsPerColumnLimitFilter = message.cellsPerColumnLimitFilter; + if (options.oneofs) + object.filter = "cellsPerColumnLimitFilter"; + } + if (message.stripValueTransformer != null && message.hasOwnProperty("stripValueTransformer")) { + object.stripValueTransformer = message.stripValueTransformer; + if (options.oneofs) + object.filter = "stripValueTransformer"; + } + if (message.rowSampleFilter != null && message.hasOwnProperty("rowSampleFilter")) { + object.rowSampleFilter = options.json && !isFinite(message.rowSampleFilter) ? String(message.rowSampleFilter) : message.rowSampleFilter; + if (options.oneofs) + object.filter = "rowSampleFilter"; + } + if (message.valueRangeFilter != null && message.hasOwnProperty("valueRangeFilter")) { + object.valueRangeFilter = $root.google.bigtable.v2.ValueRange.toObject(message.valueRangeFilter, options); + if (options.oneofs) + object.filter = "valueRangeFilter"; + } + if (message.sink != null && message.hasOwnProperty("sink")) { + object.sink = message.sink; + if (options.oneofs) + object.filter = "sink"; + } + if (message.passAllFilter != null && message.hasOwnProperty("passAllFilter")) { + object.passAllFilter = message.passAllFilter; + if (options.oneofs) + object.filter = "passAllFilter"; + } + if (message.blockAllFilter != null && message.hasOwnProperty("blockAllFilter")) { + object.blockAllFilter = message.blockAllFilter; + if (options.oneofs) + object.filter = "blockAllFilter"; + } + if (message.applyLabelTransformer != null && message.hasOwnProperty("applyLabelTransformer")) { + object.applyLabelTransformer = message.applyLabelTransformer; + if (options.oneofs) + object.filter = "applyLabelTransformer"; + } + return object; }; /** - * Converts this ProtoFormat to JSON. + * Converts this RowFilter to JSON. * @function toJSON - * @memberof google.bigtable.v2.ProtoFormat + * @memberof google.bigtable.v2.RowFilter * @instance * @returns {Object.} JSON object */ - ProtoFormat.prototype.toJSON = function toJSON() { + RowFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ProtoFormat + * Gets the default type url for RowFilter * @function getTypeUrl - * @memberof google.bigtable.v2.ProtoFormat + * @memberof google.bigtable.v2.RowFilter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ProtoFormat.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RowFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ProtoFormat"; + return typeUrlPrefix + "/google.bigtable.v2.RowFilter"; }; - return ProtoFormat; - })(); - - v2.ColumnMetadata = (function() { + RowFilter.Chain = (function() { - /** - * Properties of a ColumnMetadata. - * @memberof google.bigtable.v2 - * @interface IColumnMetadata - * @property {string|null} [name] ColumnMetadata name - * @property {google.bigtable.v2.IType|null} [type] ColumnMetadata type - */ + /** + * Properties of a Chain. + * @memberof google.bigtable.v2.RowFilter + * @interface IChain + * @property {Array.|null} [filters] Chain filters + */ - /** - * Constructs a new ColumnMetadata. - * @memberof google.bigtable.v2 - * @classdesc Represents a ColumnMetadata. - * @implements IColumnMetadata - * @constructor - * @param {google.bigtable.v2.IColumnMetadata=} [properties] Properties to set - */ - function ColumnMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Chain. + * @memberof google.bigtable.v2.RowFilter + * @classdesc Represents a Chain. + * @implements IChain + * @constructor + * @param {google.bigtable.v2.RowFilter.IChain=} [properties] Properties to set + */ + function Chain(properties) { + this.filters = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ColumnMetadata name. - * @member {string} name - * @memberof google.bigtable.v2.ColumnMetadata - * @instance - */ - ColumnMetadata.prototype.name = ""; + /** + * Chain filters. + * @member {Array.} filters + * @memberof google.bigtable.v2.RowFilter.Chain + * @instance + */ + Chain.prototype.filters = $util.emptyArray; - /** - * ColumnMetadata type. - * @member {google.bigtable.v2.IType|null|undefined} type - * @memberof google.bigtable.v2.ColumnMetadata - * @instance - */ - ColumnMetadata.prototype.type = null; + /** + * Creates a new Chain instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {google.bigtable.v2.RowFilter.IChain=} [properties] Properties to set + * @returns {google.bigtable.v2.RowFilter.Chain} Chain instance + */ + Chain.create = function create(properties) { + return new Chain(properties); + }; - /** - * Creates a new ColumnMetadata instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {google.bigtable.v2.IColumnMetadata=} [properties] Properties to set - * @returns {google.bigtable.v2.ColumnMetadata} ColumnMetadata instance - */ - ColumnMetadata.create = function create(properties) { - return new ColumnMetadata(properties); - }; - - /** - * Encodes the specified ColumnMetadata message. Does not implicitly {@link google.bigtable.v2.ColumnMetadata.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {google.bigtable.v2.IColumnMetadata} message ColumnMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ColumnMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - 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")) - $root.google.bigtable.v2.Type.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Chain message. Does not implicitly {@link google.bigtable.v2.RowFilter.Chain.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {google.bigtable.v2.RowFilter.IChain} message Chain message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Chain.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filters != null && message.filters.length) + for (var i = 0; i < message.filters.length; ++i) + $root.google.bigtable.v2.RowFilter.encode(message.filters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ColumnMetadata message, length delimited. Does not implicitly {@link google.bigtable.v2.ColumnMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {google.bigtable.v2.IColumnMetadata} message ColumnMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ColumnMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Chain message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Chain.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {google.bigtable.v2.RowFilter.IChain} message Chain message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Chain.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ColumnMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ColumnMetadata} ColumnMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ColumnMetadata.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ColumnMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Decodes a Chain message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.RowFilter.Chain} Chain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Chain.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowFilter.Chain(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - } - case 2: { - message.type = $root.google.bigtable.v2.Type.decode(reader, reader.uint32()); + switch (tag >>> 3) { + case 1: { + if (!(message.filters && message.filters.length)) + message.filters = []; + message.filters.push($root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ColumnMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ColumnMetadata} ColumnMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ColumnMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Chain message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.RowFilter.Chain} Chain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Chain.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ColumnMetadata message. - * @function verify - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ColumnMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.google.bigtable.v2.Type.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; + /** + * Verifies a Chain message. + * @function verify + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Chain.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filters != null && message.hasOwnProperty("filters")) { + if (!Array.isArray(message.filters)) + return "filters: array expected"; + for (var i = 0; i < message.filters.length; ++i) { + var error = $root.google.bigtable.v2.RowFilter.verify(message.filters[i]); + if (error) + return "filters." + error; + } + } + return null; + }; - /** - * Creates a ColumnMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ColumnMetadata} ColumnMetadata - */ - ColumnMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ColumnMetadata) + /** + * Creates a Chain message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.RowFilter.Chain} Chain + */ + Chain.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.RowFilter.Chain) + return object; + var message = new $root.google.bigtable.v2.RowFilter.Chain(); + if (object.filters) { + if (!Array.isArray(object.filters)) + throw TypeError(".google.bigtable.v2.RowFilter.Chain.filters: array expected"); + message.filters = []; + for (var i = 0; i < object.filters.length; ++i) { + if (typeof object.filters[i] !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.Chain.filters: object expected"); + message.filters[i] = $root.google.bigtable.v2.RowFilter.fromObject(object.filters[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Chain message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {google.bigtable.v2.RowFilter.Chain} message Chain + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Chain.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.filters = []; + if (message.filters && message.filters.length) { + object.filters = []; + for (var j = 0; j < message.filters.length; ++j) + object.filters[j] = $root.google.bigtable.v2.RowFilter.toObject(message.filters[j], options); + } return object; - var message = new $root.google.bigtable.v2.ColumnMetadata(); - if (object.name != null) - message.name = String(object.name); - if (object.type != null) { - if (typeof object.type !== "object") - throw TypeError(".google.bigtable.v2.ColumnMetadata.type: object expected"); - message.type = $root.google.bigtable.v2.Type.fromObject(object.type); - } - return message; - }; + }; - /** - * Creates a plain object from a ColumnMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {google.bigtable.v2.ColumnMetadata} message ColumnMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ColumnMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.type = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.type != null && message.hasOwnProperty("type")) - object.type = $root.google.bigtable.v2.Type.toObject(message.type, options); - return object; - }; + /** + * Converts this Chain to JSON. + * @function toJSON + * @memberof google.bigtable.v2.RowFilter.Chain + * @instance + * @returns {Object.} JSON object + */ + Chain.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ColumnMetadata to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ColumnMetadata - * @instance - * @returns {Object.} JSON object - */ - ColumnMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Chain + * @function getTypeUrl + * @memberof google.bigtable.v2.RowFilter.Chain + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Chain.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.RowFilter.Chain"; + }; - /** - * Gets the default type url for ColumnMetadata - * @function getTypeUrl - * @memberof google.bigtable.v2.ColumnMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ColumnMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ColumnMetadata"; - }; + return Chain; + })(); - return ColumnMetadata; - })(); + RowFilter.Interleave = (function() { - v2.ProtoSchema = (function() { + /** + * Properties of an Interleave. + * @memberof google.bigtable.v2.RowFilter + * @interface IInterleave + * @property {Array.|null} [filters] Interleave filters + */ - /** - * Properties of a ProtoSchema. - * @memberof google.bigtable.v2 - * @interface IProtoSchema - * @property {Array.|null} [columns] ProtoSchema columns - */ + /** + * Constructs a new Interleave. + * @memberof google.bigtable.v2.RowFilter + * @classdesc Represents an Interleave. + * @implements IInterleave + * @constructor + * @param {google.bigtable.v2.RowFilter.IInterleave=} [properties] Properties to set + */ + function Interleave(properties) { + this.filters = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ProtoSchema. - * @memberof google.bigtable.v2 - * @classdesc Represents a ProtoSchema. - * @implements IProtoSchema - * @constructor - * @param {google.bigtable.v2.IProtoSchema=} [properties] Properties to set - */ - function ProtoSchema(properties) { - this.columns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Interleave filters. + * @member {Array.} filters + * @memberof google.bigtable.v2.RowFilter.Interleave + * @instance + */ + Interleave.prototype.filters = $util.emptyArray; - /** - * ProtoSchema columns. - * @member {Array.} columns - * @memberof google.bigtable.v2.ProtoSchema - * @instance - */ - ProtoSchema.prototype.columns = $util.emptyArray; + /** + * Creates a new Interleave instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {google.bigtable.v2.RowFilter.IInterleave=} [properties] Properties to set + * @returns {google.bigtable.v2.RowFilter.Interleave} Interleave instance + */ + Interleave.create = function create(properties) { + return new Interleave(properties); + }; - /** - * Creates a new ProtoSchema instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {google.bigtable.v2.IProtoSchema=} [properties] Properties to set - * @returns {google.bigtable.v2.ProtoSchema} ProtoSchema instance - */ - ProtoSchema.create = function create(properties) { - return new ProtoSchema(properties); - }; + /** + * Encodes the specified Interleave message. Does not implicitly {@link google.bigtable.v2.RowFilter.Interleave.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {google.bigtable.v2.RowFilter.IInterleave} message Interleave message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Interleave.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filters != null && message.filters.length) + for (var i = 0; i < message.filters.length; ++i) + $root.google.bigtable.v2.RowFilter.encode(message.filters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ProtoSchema message. Does not implicitly {@link google.bigtable.v2.ProtoSchema.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {google.bigtable.v2.IProtoSchema} message ProtoSchema message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoSchema.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.google.bigtable.v2.ColumnMetadata.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Interleave message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Interleave.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {google.bigtable.v2.RowFilter.IInterleave} message Interleave message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Interleave.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified ProtoSchema message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoSchema.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {google.bigtable.v2.IProtoSchema} message ProtoSchema message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoSchema.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an Interleave message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.RowFilter.Interleave} Interleave + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Interleave.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowFilter.Interleave(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.filters && message.filters.length)) + message.filters = []; + message.filters.push($root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a ProtoSchema message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ProtoSchema} ProtoSchema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoSchema.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ProtoSchema(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.google.bigtable.v2.ColumnMetadata.decode(reader, reader.uint32())); - break; + /** + * Decodes an Interleave message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.RowFilter.Interleave} Interleave + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Interleave.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Interleave message. + * @function verify + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Interleave.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filters != null && message.hasOwnProperty("filters")) { + if (!Array.isArray(message.filters)) + return "filters: array expected"; + for (var i = 0; i < message.filters.length; ++i) { + var error = $root.google.bigtable.v2.RowFilter.verify(message.filters[i]); + if (error) + return "filters." + error; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a ProtoSchema message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ProtoSchema} ProtoSchema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoSchema.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return null; + }; - /** - * Verifies a ProtoSchema message. - * @function verify - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoSchema.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.google.bigtable.v2.ColumnMetadata.verify(message.columns[i]); - if (error) - return "columns." + error; + /** + * Creates an Interleave message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.RowFilter.Interleave} Interleave + */ + Interleave.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.RowFilter.Interleave) + return object; + var message = new $root.google.bigtable.v2.RowFilter.Interleave(); + if (object.filters) { + if (!Array.isArray(object.filters)) + throw TypeError(".google.bigtable.v2.RowFilter.Interleave.filters: array expected"); + message.filters = []; + for (var i = 0; i < object.filters.length; ++i) { + if (typeof object.filters[i] !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.Interleave.filters: object expected"); + message.filters[i] = $root.google.bigtable.v2.RowFilter.fromObject(object.filters[i]); + } } - } - return null; - }; + return message; + }; - /** - * Creates a ProtoSchema message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ProtoSchema} ProtoSchema - */ - ProtoSchema.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ProtoSchema) - return object; - var message = new $root.google.bigtable.v2.ProtoSchema(); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".google.bigtable.v2.ProtoSchema.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) { - if (typeof object.columns[i] !== "object") - throw TypeError(".google.bigtable.v2.ProtoSchema.columns: object expected"); - message.columns[i] = $root.google.bigtable.v2.ColumnMetadata.fromObject(object.columns[i]); + /** + * Creates a plain object from an Interleave message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {google.bigtable.v2.RowFilter.Interleave} message Interleave + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Interleave.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.filters = []; + if (message.filters && message.filters.length) { + object.filters = []; + for (var j = 0; j < message.filters.length; ++j) + object.filters[j] = $root.google.bigtable.v2.RowFilter.toObject(message.filters[j], options); } - } - return message; - }; - - /** - * Creates a plain object from a ProtoSchema message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {google.bigtable.v2.ProtoSchema} message ProtoSchema - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoSchema.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.columns = []; - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.google.bigtable.v2.ColumnMetadata.toObject(message.columns[j], options); - } - return object; - }; + return object; + }; - /** - * Converts this ProtoSchema to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ProtoSchema - * @instance - * @returns {Object.} JSON object - */ - ProtoSchema.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Interleave to JSON. + * @function toJSON + * @memberof google.bigtable.v2.RowFilter.Interleave + * @instance + * @returns {Object.} JSON object + */ + Interleave.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for ProtoSchema - * @function getTypeUrl - * @memberof google.bigtable.v2.ProtoSchema - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ProtoSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ProtoSchema"; - }; + /** + * Gets the default type url for Interleave + * @function getTypeUrl + * @memberof google.bigtable.v2.RowFilter.Interleave + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Interleave.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.RowFilter.Interleave"; + }; - return ProtoSchema; - })(); + return Interleave; + })(); - v2.ResultSetMetadata = (function() { + RowFilter.Condition = (function() { - /** - * Properties of a ResultSetMetadata. - * @memberof google.bigtable.v2 - * @interface IResultSetMetadata - * @property {google.bigtable.v2.IProtoSchema|null} [protoSchema] ResultSetMetadata protoSchema - */ + /** + * Properties of a Condition. + * @memberof google.bigtable.v2.RowFilter + * @interface ICondition + * @property {google.bigtable.v2.IRowFilter|null} [predicateFilter] Condition predicateFilter + * @property {google.bigtable.v2.IRowFilter|null} [trueFilter] Condition trueFilter + * @property {google.bigtable.v2.IRowFilter|null} [falseFilter] Condition falseFilter + */ - /** - * Constructs a new ResultSetMetadata. - * @memberof google.bigtable.v2 - * @classdesc Represents a ResultSetMetadata. - * @implements IResultSetMetadata - * @constructor - * @param {google.bigtable.v2.IResultSetMetadata=} [properties] Properties to set - */ - function ResultSetMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Condition. + * @memberof google.bigtable.v2.RowFilter + * @classdesc Represents a Condition. + * @implements ICondition + * @constructor + * @param {google.bigtable.v2.RowFilter.ICondition=} [properties] Properties to set + */ + function Condition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ResultSetMetadata protoSchema. - * @member {google.bigtable.v2.IProtoSchema|null|undefined} protoSchema - * @memberof google.bigtable.v2.ResultSetMetadata - * @instance - */ - ResultSetMetadata.prototype.protoSchema = null; + /** + * Condition predicateFilter. + * @member {google.bigtable.v2.IRowFilter|null|undefined} predicateFilter + * @memberof google.bigtable.v2.RowFilter.Condition + * @instance + */ + Condition.prototype.predicateFilter = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Condition trueFilter. + * @member {google.bigtable.v2.IRowFilter|null|undefined} trueFilter + * @memberof google.bigtable.v2.RowFilter.Condition + * @instance + */ + Condition.prototype.trueFilter = null; - /** - * ResultSetMetadata schema. - * @member {"protoSchema"|undefined} schema - * @memberof google.bigtable.v2.ResultSetMetadata - * @instance - */ - Object.defineProperty(ResultSetMetadata.prototype, "schema", { - get: $util.oneOfGetter($oneOfFields = ["protoSchema"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Condition falseFilter. + * @member {google.bigtable.v2.IRowFilter|null|undefined} falseFilter + * @memberof google.bigtable.v2.RowFilter.Condition + * @instance + */ + Condition.prototype.falseFilter = null; - /** - * Creates a new ResultSetMetadata instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {google.bigtable.v2.IResultSetMetadata=} [properties] Properties to set - * @returns {google.bigtable.v2.ResultSetMetadata} ResultSetMetadata instance - */ - ResultSetMetadata.create = function create(properties) { - return new ResultSetMetadata(properties); - }; + /** + * Creates a new Condition instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {google.bigtable.v2.RowFilter.ICondition=} [properties] Properties to set + * @returns {google.bigtable.v2.RowFilter.Condition} Condition instance + */ + Condition.create = function create(properties) { + return new Condition(properties); + }; - /** - * Encodes the specified ResultSetMetadata message. Does not implicitly {@link google.bigtable.v2.ResultSetMetadata.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {google.bigtable.v2.IResultSetMetadata} message ResultSetMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResultSetMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.protoSchema != null && Object.hasOwnProperty.call(message, "protoSchema")) - $root.google.bigtable.v2.ProtoSchema.encode(message.protoSchema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Condition message. Does not implicitly {@link google.bigtable.v2.RowFilter.Condition.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {google.bigtable.v2.RowFilter.ICondition} message Condition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Condition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.predicateFilter != null && Object.hasOwnProperty.call(message, "predicateFilter")) + $root.google.bigtable.v2.RowFilter.encode(message.predicateFilter, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trueFilter != null && Object.hasOwnProperty.call(message, "trueFilter")) + $root.google.bigtable.v2.RowFilter.encode(message.trueFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.falseFilter != null && Object.hasOwnProperty.call(message, "falseFilter")) + $root.google.bigtable.v2.RowFilter.encode(message.falseFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ResultSetMetadata message, length delimited. Does not implicitly {@link google.bigtable.v2.ResultSetMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {google.bigtable.v2.IResultSetMetadata} message ResultSetMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResultSetMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Condition message, length delimited. Does not implicitly {@link google.bigtable.v2.RowFilter.Condition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {google.bigtable.v2.RowFilter.ICondition} message Condition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Condition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ResultSetMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ResultSetMetadata} ResultSetMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResultSetMetadata.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ResultSetMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.protoSchema = $root.google.bigtable.v2.ProtoSchema.decode(reader, reader.uint32()); + /** + * Decodes a Condition message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.RowFilter.Condition} Condition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Condition.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.RowFilter.Condition(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.predicateFilter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); + break; + } + case 2: { + message.trueFilter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); + break; + } + case 3: { + message.falseFilter = $root.google.bigtable.v2.RowFilter.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ResultSetMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ResultSetMetadata} ResultSetMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResultSetMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Condition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.RowFilter.Condition} Condition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Condition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ResultSetMetadata message. - * @function verify - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResultSetMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.protoSchema != null && message.hasOwnProperty("protoSchema")) { - properties.schema = 1; - { - var error = $root.google.bigtable.v2.ProtoSchema.verify(message.protoSchema); + /** + * Verifies a Condition message. + * @function verify + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Condition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.predicateFilter != null && message.hasOwnProperty("predicateFilter")) { + var error = $root.google.bigtable.v2.RowFilter.verify(message.predicateFilter); if (error) - return "protoSchema." + error; + return "predicateFilter." + error; } - } - return null; - }; + if (message.trueFilter != null && message.hasOwnProperty("trueFilter")) { + var error = $root.google.bigtable.v2.RowFilter.verify(message.trueFilter); + if (error) + return "trueFilter." + error; + } + if (message.falseFilter != null && message.hasOwnProperty("falseFilter")) { + var error = $root.google.bigtable.v2.RowFilter.verify(message.falseFilter); + if (error) + return "falseFilter." + error; + } + return null; + }; - /** - * Creates a ResultSetMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ResultSetMetadata} ResultSetMetadata - */ - ResultSetMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ResultSetMetadata) + /** + * Creates a Condition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.RowFilter.Condition} Condition + */ + Condition.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.RowFilter.Condition) + return object; + var message = new $root.google.bigtable.v2.RowFilter.Condition(); + if (object.predicateFilter != null) { + if (typeof object.predicateFilter !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.Condition.predicateFilter: object expected"); + message.predicateFilter = $root.google.bigtable.v2.RowFilter.fromObject(object.predicateFilter); + } + if (object.trueFilter != null) { + if (typeof object.trueFilter !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.Condition.trueFilter: object expected"); + message.trueFilter = $root.google.bigtable.v2.RowFilter.fromObject(object.trueFilter); + } + if (object.falseFilter != null) { + if (typeof object.falseFilter !== "object") + throw TypeError(".google.bigtable.v2.RowFilter.Condition.falseFilter: object expected"); + message.falseFilter = $root.google.bigtable.v2.RowFilter.fromObject(object.falseFilter); + } + return message; + }; + + /** + * Creates a plain object from a Condition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {google.bigtable.v2.RowFilter.Condition} message Condition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Condition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.predicateFilter = null; + object.trueFilter = null; + object.falseFilter = null; + } + if (message.predicateFilter != null && message.hasOwnProperty("predicateFilter")) + object.predicateFilter = $root.google.bigtable.v2.RowFilter.toObject(message.predicateFilter, options); + if (message.trueFilter != null && message.hasOwnProperty("trueFilter")) + object.trueFilter = $root.google.bigtable.v2.RowFilter.toObject(message.trueFilter, options); + if (message.falseFilter != null && message.hasOwnProperty("falseFilter")) + object.falseFilter = $root.google.bigtable.v2.RowFilter.toObject(message.falseFilter, options); return object; - var message = new $root.google.bigtable.v2.ResultSetMetadata(); - if (object.protoSchema != null) { - if (typeof object.protoSchema !== "object") - throw TypeError(".google.bigtable.v2.ResultSetMetadata.protoSchema: object expected"); - message.protoSchema = $root.google.bigtable.v2.ProtoSchema.fromObject(object.protoSchema); - } - return message; - }; + }; - /** - * Creates a plain object from a ResultSetMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {google.bigtable.v2.ResultSetMetadata} message ResultSetMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResultSetMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.protoSchema != null && message.hasOwnProperty("protoSchema")) { - object.protoSchema = $root.google.bigtable.v2.ProtoSchema.toObject(message.protoSchema, options); - if (options.oneofs) - object.schema = "protoSchema"; - } - return object; - }; + /** + * Converts this Condition to JSON. + * @function toJSON + * @memberof google.bigtable.v2.RowFilter.Condition + * @instance + * @returns {Object.} JSON object + */ + Condition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ResultSetMetadata to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ResultSetMetadata - * @instance - * @returns {Object.} JSON object - */ - ResultSetMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Condition + * @function getTypeUrl + * @memberof google.bigtable.v2.RowFilter.Condition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Condition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.RowFilter.Condition"; + }; - /** - * Gets the default type url for ResultSetMetadata - * @function getTypeUrl - * @memberof google.bigtable.v2.ResultSetMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResultSetMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ResultSetMetadata"; - }; + return Condition; + })(); - return ResultSetMetadata; + return RowFilter; })(); - v2.ProtoRows = (function() { + v2.Mutation = (function() { /** - * Properties of a ProtoRows. + * Properties of a Mutation. * @memberof google.bigtable.v2 - * @interface IProtoRows - * @property {Array.|null} [values] ProtoRows values + * @interface IMutation + * @property {google.bigtable.v2.Mutation.ISetCell|null} [setCell] Mutation setCell + * @property {google.bigtable.v2.Mutation.IAddToCell|null} [addToCell] Mutation addToCell + * @property {google.bigtable.v2.Mutation.IMergeToCell|null} [mergeToCell] Mutation mergeToCell + * @property {google.bigtable.v2.Mutation.IDeleteFromColumn|null} [deleteFromColumn] Mutation deleteFromColumn + * @property {google.bigtable.v2.Mutation.IDeleteFromFamily|null} [deleteFromFamily] Mutation deleteFromFamily + * @property {google.bigtable.v2.Mutation.IDeleteFromRow|null} [deleteFromRow] Mutation deleteFromRow */ /** - * Constructs a new ProtoRows. + * Constructs a new Mutation. * @memberof google.bigtable.v2 - * @classdesc Represents a ProtoRows. - * @implements IProtoRows + * @classdesc Represents a Mutation. + * @implements IMutation * @constructor - * @param {google.bigtable.v2.IProtoRows=} [properties] Properties to set + * @param {google.bigtable.v2.IMutation=} [properties] Properties to set */ - function ProtoRows(properties) { - this.values = []; + function Mutation(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60151,80 +59659,161 @@ } /** - * ProtoRows values. - * @member {Array.} values - * @memberof google.bigtable.v2.ProtoRows + * Mutation setCell. + * @member {google.bigtable.v2.Mutation.ISetCell|null|undefined} setCell + * @memberof google.bigtable.v2.Mutation * @instance */ - ProtoRows.prototype.values = $util.emptyArray; + Mutation.prototype.setCell = null; /** - * Creates a new ProtoRows instance using the specified properties. + * Mutation addToCell. + * @member {google.bigtable.v2.Mutation.IAddToCell|null|undefined} addToCell + * @memberof google.bigtable.v2.Mutation + * @instance + */ + Mutation.prototype.addToCell = null; + + /** + * Mutation mergeToCell. + * @member {google.bigtable.v2.Mutation.IMergeToCell|null|undefined} mergeToCell + * @memberof google.bigtable.v2.Mutation + * @instance + */ + Mutation.prototype.mergeToCell = null; + + /** + * Mutation deleteFromColumn. + * @member {google.bigtable.v2.Mutation.IDeleteFromColumn|null|undefined} deleteFromColumn + * @memberof google.bigtable.v2.Mutation + * @instance + */ + Mutation.prototype.deleteFromColumn = null; + + /** + * Mutation deleteFromFamily. + * @member {google.bigtable.v2.Mutation.IDeleteFromFamily|null|undefined} deleteFromFamily + * @memberof google.bigtable.v2.Mutation + * @instance + */ + Mutation.prototype.deleteFromFamily = null; + + /** + * Mutation deleteFromRow. + * @member {google.bigtable.v2.Mutation.IDeleteFromRow|null|undefined} deleteFromRow + * @memberof google.bigtable.v2.Mutation + * @instance + */ + Mutation.prototype.deleteFromRow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Mutation mutation. + * @member {"setCell"|"addToCell"|"mergeToCell"|"deleteFromColumn"|"deleteFromFamily"|"deleteFromRow"|undefined} mutation + * @memberof google.bigtable.v2.Mutation + * @instance + */ + Object.defineProperty(Mutation.prototype, "mutation", { + get: $util.oneOfGetter($oneOfFields = ["setCell", "addToCell", "mergeToCell", "deleteFromColumn", "deleteFromFamily", "deleteFromRow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Mutation instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ProtoRows + * @memberof google.bigtable.v2.Mutation * @static - * @param {google.bigtable.v2.IProtoRows=} [properties] Properties to set - * @returns {google.bigtable.v2.ProtoRows} ProtoRows instance + * @param {google.bigtable.v2.IMutation=} [properties] Properties to set + * @returns {google.bigtable.v2.Mutation} Mutation instance */ - ProtoRows.create = function create(properties) { - return new ProtoRows(properties); + Mutation.create = function create(properties) { + return new Mutation(properties); }; /** - * Encodes the specified ProtoRows message. Does not implicitly {@link google.bigtable.v2.ProtoRows.verify|verify} messages. + * Encodes the specified Mutation message. Does not implicitly {@link google.bigtable.v2.Mutation.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ProtoRows + * @memberof google.bigtable.v2.Mutation * @static - * @param {google.bigtable.v2.IProtoRows} message ProtoRows message or plain object to encode + * @param {google.bigtable.v2.IMutation} message Mutation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProtoRows.encode = function encode(message, writer) { + Mutation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.google.bigtable.v2.Value.encode(message.values[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.setCell != null && Object.hasOwnProperty.call(message, "setCell")) + $root.google.bigtable.v2.Mutation.SetCell.encode(message.setCell, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deleteFromColumn != null && Object.hasOwnProperty.call(message, "deleteFromColumn")) + $root.google.bigtable.v2.Mutation.DeleteFromColumn.encode(message.deleteFromColumn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.deleteFromFamily != null && Object.hasOwnProperty.call(message, "deleteFromFamily")) + $root.google.bigtable.v2.Mutation.DeleteFromFamily.encode(message.deleteFromFamily, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.deleteFromRow != null && Object.hasOwnProperty.call(message, "deleteFromRow")) + $root.google.bigtable.v2.Mutation.DeleteFromRow.encode(message.deleteFromRow, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.addToCell != null && Object.hasOwnProperty.call(message, "addToCell")) + $root.google.bigtable.v2.Mutation.AddToCell.encode(message.addToCell, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.mergeToCell != null && Object.hasOwnProperty.call(message, "mergeToCell")) + $root.google.bigtable.v2.Mutation.MergeToCell.encode(message.mergeToCell, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified ProtoRows message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoRows.verify|verify} messages. + * Encodes the specified Mutation message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ProtoRows + * @memberof google.bigtable.v2.Mutation * @static - * @param {google.bigtable.v2.IProtoRows} message ProtoRows message or plain object to encode + * @param {google.bigtable.v2.IMutation} message Mutation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProtoRows.encodeDelimited = function encodeDelimited(message, writer) { + Mutation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ProtoRows message from the specified reader or buffer. + * Decodes a Mutation message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ProtoRows + * @memberof google.bigtable.v2.Mutation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ProtoRows} ProtoRows + * @returns {google.bigtable.v2.Mutation} Mutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProtoRows.decode = function decode(reader, length, error) { + Mutation.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ProtoRows(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 1: { + message.setCell = $root.google.bigtable.v2.Mutation.SetCell.decode(reader, reader.uint32()); + break; + } + case 5: { + message.addToCell = $root.google.bigtable.v2.Mutation.AddToCell.decode(reader, reader.uint32()); + break; + } + case 6: { + message.mergeToCell = $root.google.bigtable.v2.Mutation.MergeToCell.decode(reader, reader.uint32()); + break; + } case 2: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.bigtable.v2.Value.decode(reader, reader.uint32())); + message.deleteFromColumn = $root.google.bigtable.v2.Mutation.DeleteFromColumn.decode(reader, reader.uint32()); + break; + } + case 3: { + message.deleteFromFamily = $root.google.bigtable.v2.Mutation.DeleteFromFamily.decode(reader, reader.uint32()); + break; + } + case 4: { + message.deleteFromRow = $root.google.bigtable.v2.Mutation.DeleteFromRow.decode(reader, reader.uint32()); break; } default: @@ -60236,1306 +59825,7691 @@ }; /** - * Decodes a ProtoRows message from the specified reader or buffer, length delimited. + * Decodes a Mutation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ProtoRows + * @memberof google.bigtable.v2.Mutation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ProtoRows} ProtoRows + * @returns {google.bigtable.v2.Mutation} Mutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProtoRows.decodeDelimited = function decodeDelimited(reader) { + Mutation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ProtoRows message. + * Verifies a Mutation message. * @function verify - * @memberof google.bigtable.v2.ProtoRows + * @memberof google.bigtable.v2.Mutation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProtoRows.verify = function verify(message) { + Mutation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.google.bigtable.v2.Value.verify(message.values[i]); + var properties = {}; + if (message.setCell != null && message.hasOwnProperty("setCell")) { + properties.mutation = 1; + { + var error = $root.google.bigtable.v2.Mutation.SetCell.verify(message.setCell); if (error) - return "values." + error; + return "setCell." + error; + } + } + if (message.addToCell != null && message.hasOwnProperty("addToCell")) { + if (properties.mutation === 1) + return "mutation: multiple values"; + properties.mutation = 1; + { + var error = $root.google.bigtable.v2.Mutation.AddToCell.verify(message.addToCell); + if (error) + return "addToCell." + error; + } + } + if (message.mergeToCell != null && message.hasOwnProperty("mergeToCell")) { + if (properties.mutation === 1) + return "mutation: multiple values"; + properties.mutation = 1; + { + var error = $root.google.bigtable.v2.Mutation.MergeToCell.verify(message.mergeToCell); + if (error) + return "mergeToCell." + error; + } + } + if (message.deleteFromColumn != null && message.hasOwnProperty("deleteFromColumn")) { + if (properties.mutation === 1) + return "mutation: multiple values"; + properties.mutation = 1; + { + var error = $root.google.bigtable.v2.Mutation.DeleteFromColumn.verify(message.deleteFromColumn); + if (error) + return "deleteFromColumn." + error; + } + } + if (message.deleteFromFamily != null && message.hasOwnProperty("deleteFromFamily")) { + if (properties.mutation === 1) + return "mutation: multiple values"; + properties.mutation = 1; + { + var error = $root.google.bigtable.v2.Mutation.DeleteFromFamily.verify(message.deleteFromFamily); + if (error) + return "deleteFromFamily." + error; + } + } + if (message.deleteFromRow != null && message.hasOwnProperty("deleteFromRow")) { + if (properties.mutation === 1) + return "mutation: multiple values"; + properties.mutation = 1; + { + var error = $root.google.bigtable.v2.Mutation.DeleteFromRow.verify(message.deleteFromRow); + if (error) + return "deleteFromRow." + error; } } return null; }; /** - * Creates a ProtoRows message from a plain object. Also converts values to their respective internal types. + * Creates a Mutation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ProtoRows + * @memberof google.bigtable.v2.Mutation * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ProtoRows} ProtoRows + * @returns {google.bigtable.v2.Mutation} Mutation */ - ProtoRows.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ProtoRows) + Mutation.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Mutation) return object; - var message = new $root.google.bigtable.v2.ProtoRows(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.bigtable.v2.ProtoRows.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".google.bigtable.v2.ProtoRows.values: object expected"); - message.values[i] = $root.google.bigtable.v2.Value.fromObject(object.values[i]); - } + var message = new $root.google.bigtable.v2.Mutation(); + if (object.setCell != null) { + if (typeof object.setCell !== "object") + throw TypeError(".google.bigtable.v2.Mutation.setCell: object expected"); + message.setCell = $root.google.bigtable.v2.Mutation.SetCell.fromObject(object.setCell); + } + if (object.addToCell != null) { + if (typeof object.addToCell !== "object") + throw TypeError(".google.bigtable.v2.Mutation.addToCell: object expected"); + message.addToCell = $root.google.bigtable.v2.Mutation.AddToCell.fromObject(object.addToCell); + } + if (object.mergeToCell != null) { + if (typeof object.mergeToCell !== "object") + throw TypeError(".google.bigtable.v2.Mutation.mergeToCell: object expected"); + message.mergeToCell = $root.google.bigtable.v2.Mutation.MergeToCell.fromObject(object.mergeToCell); + } + if (object.deleteFromColumn != null) { + if (typeof object.deleteFromColumn !== "object") + throw TypeError(".google.bigtable.v2.Mutation.deleteFromColumn: object expected"); + message.deleteFromColumn = $root.google.bigtable.v2.Mutation.DeleteFromColumn.fromObject(object.deleteFromColumn); + } + if (object.deleteFromFamily != null) { + if (typeof object.deleteFromFamily !== "object") + throw TypeError(".google.bigtable.v2.Mutation.deleteFromFamily: object expected"); + message.deleteFromFamily = $root.google.bigtable.v2.Mutation.DeleteFromFamily.fromObject(object.deleteFromFamily); + } + if (object.deleteFromRow != null) { + if (typeof object.deleteFromRow !== "object") + throw TypeError(".google.bigtable.v2.Mutation.deleteFromRow: object expected"); + message.deleteFromRow = $root.google.bigtable.v2.Mutation.DeleteFromRow.fromObject(object.deleteFromRow); } return message; }; /** - * Creates a plain object from a ProtoRows message. Also converts values to other types if specified. + * Creates a plain object from a Mutation message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ProtoRows + * @memberof google.bigtable.v2.Mutation * @static - * @param {google.bigtable.v2.ProtoRows} message ProtoRows + * @param {google.bigtable.v2.Mutation} message Mutation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProtoRows.toObject = function toObject(message, options) { + Mutation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = $root.google.bigtable.v2.Value.toObject(message.values[j], options); + if (message.setCell != null && message.hasOwnProperty("setCell")) { + object.setCell = $root.google.bigtable.v2.Mutation.SetCell.toObject(message.setCell, options); + if (options.oneofs) + object.mutation = "setCell"; } - return object; - }; - - /** - * Converts this ProtoRows to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ProtoRows - * @instance - * @returns {Object.} JSON object - */ - ProtoRows.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ProtoRows - * @function getTypeUrl - * @memberof google.bigtable.v2.ProtoRows - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ProtoRows.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + if (message.deleteFromColumn != null && message.hasOwnProperty("deleteFromColumn")) { + object.deleteFromColumn = $root.google.bigtable.v2.Mutation.DeleteFromColumn.toObject(message.deleteFromColumn, options); + if (options.oneofs) + object.mutation = "deleteFromColumn"; } - return typeUrlPrefix + "/google.bigtable.v2.ProtoRows"; - }; - - return ProtoRows; - })(); - - v2.ProtoRowsBatch = (function() { - - /** - * Properties of a ProtoRowsBatch. - * @memberof google.bigtable.v2 - * @interface IProtoRowsBatch - * @property {Uint8Array|null} [batchData] ProtoRowsBatch batchData - */ - - /** - * Constructs a new ProtoRowsBatch. - * @memberof google.bigtable.v2 - * @classdesc Represents a ProtoRowsBatch. - * @implements IProtoRowsBatch - * @constructor - * @param {google.bigtable.v2.IProtoRowsBatch=} [properties] Properties to set - */ - function ProtoRowsBatch(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProtoRowsBatch batchData. - * @member {Uint8Array} batchData - * @memberof google.bigtable.v2.ProtoRowsBatch - * @instance - */ - ProtoRowsBatch.prototype.batchData = $util.newBuffer([]); - - /** - * Creates a new ProtoRowsBatch instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ProtoRowsBatch - * @static - * @param {google.bigtable.v2.IProtoRowsBatch=} [properties] Properties to set - * @returns {google.bigtable.v2.ProtoRowsBatch} ProtoRowsBatch instance - */ - ProtoRowsBatch.create = function create(properties) { - return new ProtoRowsBatch(properties); - }; - - /** - * Encodes the specified ProtoRowsBatch message. Does not implicitly {@link google.bigtable.v2.ProtoRowsBatch.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ProtoRowsBatch - * @static - * @param {google.bigtable.v2.IProtoRowsBatch} message ProtoRowsBatch message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoRowsBatch.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.batchData != null && Object.hasOwnProperty.call(message, "batchData")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.batchData); - return writer; - }; - - /** - * Encodes the specified ProtoRowsBatch message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoRowsBatch.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ProtoRowsBatch - * @static - * @param {google.bigtable.v2.IProtoRowsBatch} message ProtoRowsBatch message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoRowsBatch.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoRowsBatch message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ProtoRowsBatch - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ProtoRowsBatch} ProtoRowsBatch - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoRowsBatch.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ProtoRowsBatch(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.batchData = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } + if (message.deleteFromFamily != null && message.hasOwnProperty("deleteFromFamily")) { + object.deleteFromFamily = $root.google.bigtable.v2.Mutation.DeleteFromFamily.toObject(message.deleteFromFamily, options); + if (options.oneofs) + object.mutation = "deleteFromFamily"; + } + if (message.deleteFromRow != null && message.hasOwnProperty("deleteFromRow")) { + object.deleteFromRow = $root.google.bigtable.v2.Mutation.DeleteFromRow.toObject(message.deleteFromRow, options); + if (options.oneofs) + object.mutation = "deleteFromRow"; + } + if (message.addToCell != null && message.hasOwnProperty("addToCell")) { + object.addToCell = $root.google.bigtable.v2.Mutation.AddToCell.toObject(message.addToCell, options); + if (options.oneofs) + object.mutation = "addToCell"; + } + if (message.mergeToCell != null && message.hasOwnProperty("mergeToCell")) { + object.mergeToCell = $root.google.bigtable.v2.Mutation.MergeToCell.toObject(message.mergeToCell, options); + if (options.oneofs) + object.mutation = "mergeToCell"; } - return message; - }; - - /** - * Decodes a ProtoRowsBatch message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ProtoRowsBatch - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ProtoRowsBatch} ProtoRowsBatch - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoRowsBatch.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoRowsBatch message. - * @function verify - * @memberof google.bigtable.v2.ProtoRowsBatch - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoRowsBatch.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.batchData != null && message.hasOwnProperty("batchData")) - if (!(message.batchData && typeof message.batchData.length === "number" || $util.isString(message.batchData))) - return "batchData: buffer expected"; - return null; - }; - - /** - * Creates a ProtoRowsBatch message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ProtoRowsBatch - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ProtoRowsBatch} ProtoRowsBatch - */ - ProtoRowsBatch.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ProtoRowsBatch) - return object; - var message = new $root.google.bigtable.v2.ProtoRowsBatch(); - if (object.batchData != null) - if (typeof object.batchData === "string") - $util.base64.decode(object.batchData, message.batchData = $util.newBuffer($util.base64.length(object.batchData)), 0); - else if (object.batchData.length >= 0) - message.batchData = object.batchData; - return message; - }; - - /** - * Creates a plain object from a ProtoRowsBatch message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ProtoRowsBatch - * @static - * @param {google.bigtable.v2.ProtoRowsBatch} message ProtoRowsBatch - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoRowsBatch.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if (options.bytes === String) - object.batchData = ""; - else { - object.batchData = []; - if (options.bytes !== Array) - object.batchData = $util.newBuffer(object.batchData); - } - if (message.batchData != null && message.hasOwnProperty("batchData")) - object.batchData = options.bytes === String ? $util.base64.encode(message.batchData, 0, message.batchData.length) : options.bytes === Array ? Array.prototype.slice.call(message.batchData) : message.batchData; return object; }; /** - * Converts this ProtoRowsBatch to JSON. + * Converts this Mutation to JSON. * @function toJSON - * @memberof google.bigtable.v2.ProtoRowsBatch + * @memberof google.bigtable.v2.Mutation * @instance * @returns {Object.} JSON object */ - ProtoRowsBatch.prototype.toJSON = function toJSON() { + Mutation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ProtoRowsBatch + * Gets the default type url for Mutation * @function getTypeUrl - * @memberof google.bigtable.v2.ProtoRowsBatch + * @memberof google.bigtable.v2.Mutation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ProtoRowsBatch.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Mutation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ProtoRowsBatch"; + return typeUrlPrefix + "/google.bigtable.v2.Mutation"; }; - return ProtoRowsBatch; - })(); + Mutation.SetCell = (function() { - v2.PartialResultSet = (function() { + /** + * Properties of a SetCell. + * @memberof google.bigtable.v2.Mutation + * @interface ISetCell + * @property {string|null} [familyName] SetCell familyName + * @property {Uint8Array|null} [columnQualifier] SetCell columnQualifier + * @property {number|Long|null} [timestampMicros] SetCell timestampMicros + * @property {Uint8Array|null} [value] SetCell value + */ - /** - * Properties of a PartialResultSet. - * @memberof google.bigtable.v2 - * @interface IPartialResultSet - * @property {google.bigtable.v2.IProtoRowsBatch|null} [protoRowsBatch] PartialResultSet protoRowsBatch - * @property {number|null} [batchChecksum] PartialResultSet batchChecksum - * @property {Uint8Array|null} [resumeToken] PartialResultSet resumeToken - * @property {boolean|null} [reset] PartialResultSet reset - * @property {number|null} [estimatedBatchSize] PartialResultSet estimatedBatchSize - */ + /** + * Constructs a new SetCell. + * @memberof google.bigtable.v2.Mutation + * @classdesc Represents a SetCell. + * @implements ISetCell + * @constructor + * @param {google.bigtable.v2.Mutation.ISetCell=} [properties] Properties to set + */ + function SetCell(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new PartialResultSet. - * @memberof google.bigtable.v2 - * @classdesc Represents a PartialResultSet. - * @implements IPartialResultSet - * @constructor - * @param {google.bigtable.v2.IPartialResultSet=} [properties] Properties to set - */ - function PartialResultSet(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * SetCell familyName. + * @member {string} familyName + * @memberof google.bigtable.v2.Mutation.SetCell + * @instance + */ + SetCell.prototype.familyName = ""; - /** - * PartialResultSet protoRowsBatch. - * @member {google.bigtable.v2.IProtoRowsBatch|null|undefined} protoRowsBatch - * @memberof google.bigtable.v2.PartialResultSet - * @instance - */ - PartialResultSet.prototype.protoRowsBatch = null; + /** + * SetCell columnQualifier. + * @member {Uint8Array} columnQualifier + * @memberof google.bigtable.v2.Mutation.SetCell + * @instance + */ + SetCell.prototype.columnQualifier = $util.newBuffer([]); - /** - * PartialResultSet batchChecksum. - * @member {number|null|undefined} batchChecksum - * @memberof google.bigtable.v2.PartialResultSet - * @instance - */ - PartialResultSet.prototype.batchChecksum = null; + /** + * SetCell timestampMicros. + * @member {number|Long} timestampMicros + * @memberof google.bigtable.v2.Mutation.SetCell + * @instance + */ + SetCell.prototype.timestampMicros = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * PartialResultSet resumeToken. - * @member {Uint8Array} resumeToken - * @memberof google.bigtable.v2.PartialResultSet - * @instance - */ - PartialResultSet.prototype.resumeToken = $util.newBuffer([]); + /** + * SetCell value. + * @member {Uint8Array} value + * @memberof google.bigtable.v2.Mutation.SetCell + * @instance + */ + SetCell.prototype.value = $util.newBuffer([]); - /** - * PartialResultSet reset. - * @member {boolean} reset - * @memberof google.bigtable.v2.PartialResultSet - * @instance - */ - PartialResultSet.prototype.reset = false; + /** + * Creates a new SetCell instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {google.bigtable.v2.Mutation.ISetCell=} [properties] Properties to set + * @returns {google.bigtable.v2.Mutation.SetCell} SetCell instance + */ + SetCell.create = function create(properties) { + return new SetCell(properties); + }; - /** - * PartialResultSet estimatedBatchSize. - * @member {number} estimatedBatchSize - * @memberof google.bigtable.v2.PartialResultSet - * @instance - */ - PartialResultSet.prototype.estimatedBatchSize = 0; + /** + * Encodes the specified SetCell message. Does not implicitly {@link google.bigtable.v2.Mutation.SetCell.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {google.bigtable.v2.Mutation.ISetCell} message SetCell message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetCell.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); + if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.columnQualifier); + if (message.timestampMicros != null && Object.hasOwnProperty.call(message, "timestampMicros")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.timestampMicros); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.value); + return writer; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Encodes the specified SetCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.SetCell.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {google.bigtable.v2.Mutation.ISetCell} message SetCell message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetCell.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * PartialResultSet partialRows. - * @member {"protoRowsBatch"|undefined} partialRows - * @memberof google.bigtable.v2.PartialResultSet - * @instance - */ - Object.defineProperty(PartialResultSet.prototype, "partialRows", { - get: $util.oneOfGetter($oneOfFields = ["protoRowsBatch"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes a SetCell message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Mutation.SetCell} SetCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetCell.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.SetCell(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.familyName = reader.string(); + break; + } + case 2: { + message.columnQualifier = reader.bytes(); + break; + } + case 3: { + message.timestampMicros = reader.int64(); + break; + } + case 4: { + message.value = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - // Virtual OneOf for proto3 optional field - Object.defineProperty(PartialResultSet.prototype, "_batchChecksum", { - get: $util.oneOfGetter($oneOfFields = ["batchChecksum"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes a SetCell message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Mutation.SetCell} SetCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetCell.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new PartialResultSet instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {google.bigtable.v2.IPartialResultSet=} [properties] Properties to set - * @returns {google.bigtable.v2.PartialResultSet} PartialResultSet instance - */ - PartialResultSet.create = function create(properties) { - return new PartialResultSet(properties); - }; + /** + * Verifies a SetCell message. + * @function verify + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetCell.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) + if (!(message.columnQualifier && typeof message.columnQualifier.length === "number" || $util.isString(message.columnQualifier))) + return "columnQualifier: buffer expected"; + if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) + if (!$util.isInteger(message.timestampMicros) && !(message.timestampMicros && $util.isInteger(message.timestampMicros.low) && $util.isInteger(message.timestampMicros.high))) + return "timestampMicros: integer|Long expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; - /** - * Encodes the specified PartialResultSet message. Does not implicitly {@link google.bigtable.v2.PartialResultSet.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {google.bigtable.v2.IPartialResultSet} message PartialResultSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResultSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.protoRowsBatch != null && Object.hasOwnProperty.call(message, "protoRowsBatch")) - $root.google.bigtable.v2.ProtoRowsBatch.encode(message.protoRowsBatch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.estimatedBatchSize != null && Object.hasOwnProperty.call(message, "estimatedBatchSize")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.estimatedBatchSize); - if (message.resumeToken != null && Object.hasOwnProperty.call(message, "resumeToken")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.resumeToken); - if (message.batchChecksum != null && Object.hasOwnProperty.call(message, "batchChecksum")) - writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.batchChecksum); - if (message.reset != null && Object.hasOwnProperty.call(message, "reset")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.reset); - return writer; - }; - - /** - * Encodes the specified PartialResultSet message, length delimited. Does not implicitly {@link google.bigtable.v2.PartialResultSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {google.bigtable.v2.IPartialResultSet} message PartialResultSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResultSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a SetCell message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Mutation.SetCell} SetCell + */ + SetCell.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Mutation.SetCell) + return object; + var message = new $root.google.bigtable.v2.Mutation.SetCell(); + if (object.familyName != null) + message.familyName = String(object.familyName); + if (object.columnQualifier != null) + if (typeof object.columnQualifier === "string") + $util.base64.decode(object.columnQualifier, message.columnQualifier = $util.newBuffer($util.base64.length(object.columnQualifier)), 0); + else if (object.columnQualifier.length >= 0) + message.columnQualifier = object.columnQualifier; + if (object.timestampMicros != null) + if ($util.Long) + (message.timestampMicros = $util.Long.fromValue(object.timestampMicros)).unsigned = false; + else if (typeof object.timestampMicros === "string") + message.timestampMicros = parseInt(object.timestampMicros, 10); + else if (typeof object.timestampMicros === "number") + message.timestampMicros = object.timestampMicros; + else if (typeof object.timestampMicros === "object") + message.timestampMicros = new $util.LongBits(object.timestampMicros.low >>> 0, object.timestampMicros.high >>> 0).toNumber(); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; + return message; + }; - /** - * Decodes a PartialResultSet message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.PartialResultSet} PartialResultSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResultSet.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PartialResultSet(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 3: { - message.protoRowsBatch = $root.google.bigtable.v2.ProtoRowsBatch.decode(reader, reader.uint32()); - break; - } - case 6: { - message.batchChecksum = reader.uint32(); - break; - } - case 5: { - message.resumeToken = reader.bytes(); - break; - } - case 7: { - message.reset = reader.bool(); - break; + /** + * Creates a plain object from a SetCell message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {google.bigtable.v2.Mutation.SetCell} message SetCell + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetCell.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.familyName = ""; + if (options.bytes === String) + object.columnQualifier = ""; + else { + object.columnQualifier = []; + if (options.bytes !== Array) + object.columnQualifier = $util.newBuffer(object.columnQualifier); } - case 4: { - message.estimatedBatchSize = reader.int32(); - break; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampMicros = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampMicros = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + if (message.familyName != null && message.hasOwnProperty("familyName")) + object.familyName = message.familyName; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) + object.columnQualifier = options.bytes === String ? $util.base64.encode(message.columnQualifier, 0, message.columnQualifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.columnQualifier) : message.columnQualifier; + if (message.timestampMicros != null && message.hasOwnProperty("timestampMicros")) + if (typeof message.timestampMicros === "number") + object.timestampMicros = options.longs === String ? String(message.timestampMicros) : message.timestampMicros; + else + object.timestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMicros) : options.longs === Number ? new $util.LongBits(message.timestampMicros.low >>> 0, message.timestampMicros.high >>> 0).toNumber() : message.timestampMicros; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; + }; - /** - * Decodes a PartialResultSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.PartialResultSet} PartialResultSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResultSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this SetCell to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Mutation.SetCell + * @instance + * @returns {Object.} JSON object + */ + SetCell.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a PartialResultSet message. - * @function verify - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PartialResultSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.protoRowsBatch != null && message.hasOwnProperty("protoRowsBatch")) { - properties.partialRows = 1; - { - var error = $root.google.bigtable.v2.ProtoRowsBatch.verify(message.protoRowsBatch); - if (error) - return "protoRowsBatch." + error; + /** + * Gets the default type url for SetCell + * @function getTypeUrl + * @memberof google.bigtable.v2.Mutation.SetCell + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - if (message.batchChecksum != null && message.hasOwnProperty("batchChecksum")) { - properties._batchChecksum = 1; - if (!$util.isInteger(message.batchChecksum)) - return "batchChecksum: integer expected"; - } - if (message.resumeToken != null && message.hasOwnProperty("resumeToken")) - if (!(message.resumeToken && typeof message.resumeToken.length === "number" || $util.isString(message.resumeToken))) - return "resumeToken: buffer expected"; - if (message.reset != null && message.hasOwnProperty("reset")) - if (typeof message.reset !== "boolean") - return "reset: boolean expected"; - if (message.estimatedBatchSize != null && message.hasOwnProperty("estimatedBatchSize")) - if (!$util.isInteger(message.estimatedBatchSize)) - return "estimatedBatchSize: integer expected"; - return null; - }; + return typeUrlPrefix + "/google.bigtable.v2.Mutation.SetCell"; + }; - /** - * Creates a PartialResultSet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.PartialResultSet} PartialResultSet - */ - PartialResultSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.PartialResultSet) - return object; - var message = new $root.google.bigtable.v2.PartialResultSet(); - if (object.protoRowsBatch != null) { - if (typeof object.protoRowsBatch !== "object") - throw TypeError(".google.bigtable.v2.PartialResultSet.protoRowsBatch: object expected"); - message.protoRowsBatch = $root.google.bigtable.v2.ProtoRowsBatch.fromObject(object.protoRowsBatch); - } - if (object.batchChecksum != null) - message.batchChecksum = object.batchChecksum >>> 0; - if (object.resumeToken != null) - if (typeof object.resumeToken === "string") - $util.base64.decode(object.resumeToken, message.resumeToken = $util.newBuffer($util.base64.length(object.resumeToken)), 0); - else if (object.resumeToken.length >= 0) - message.resumeToken = object.resumeToken; - if (object.reset != null) - message.reset = Boolean(object.reset); - if (object.estimatedBatchSize != null) - message.estimatedBatchSize = object.estimatedBatchSize | 0; - return message; - }; + return SetCell; + })(); - /** - * Creates a plain object from a PartialResultSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {google.bigtable.v2.PartialResultSet} message PartialResultSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PartialResultSet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.estimatedBatchSize = 0; - if (options.bytes === String) - object.resumeToken = ""; - else { - object.resumeToken = []; - if (options.bytes !== Array) - object.resumeToken = $util.newBuffer(object.resumeToken); - } - object.reset = false; - } - if (message.protoRowsBatch != null && message.hasOwnProperty("protoRowsBatch")) { - object.protoRowsBatch = $root.google.bigtable.v2.ProtoRowsBatch.toObject(message.protoRowsBatch, options); - if (options.oneofs) - object.partialRows = "protoRowsBatch"; - } - if (message.estimatedBatchSize != null && message.hasOwnProperty("estimatedBatchSize")) - object.estimatedBatchSize = message.estimatedBatchSize; - if (message.resumeToken != null && message.hasOwnProperty("resumeToken")) - object.resumeToken = options.bytes === String ? $util.base64.encode(message.resumeToken, 0, message.resumeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.resumeToken) : message.resumeToken; - if (message.batchChecksum != null && message.hasOwnProperty("batchChecksum")) { - object.batchChecksum = message.batchChecksum; - if (options.oneofs) - object._batchChecksum = "batchChecksum"; - } - if (message.reset != null && message.hasOwnProperty("reset")) - object.reset = message.reset; - return object; - }; + Mutation.AddToCell = (function() { - /** - * Converts this PartialResultSet to JSON. - * @function toJSON - * @memberof google.bigtable.v2.PartialResultSet - * @instance - * @returns {Object.} JSON object - */ - PartialResultSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of an AddToCell. + * @memberof google.bigtable.v2.Mutation + * @interface IAddToCell + * @property {string|null} [familyName] AddToCell familyName + * @property {google.bigtable.v2.IValue|null} [columnQualifier] AddToCell columnQualifier + * @property {google.bigtable.v2.IValue|null} [timestamp] AddToCell timestamp + * @property {google.bigtable.v2.IValue|null} [input] AddToCell input + */ - /** - * Gets the default type url for PartialResultSet - * @function getTypeUrl - * @memberof google.bigtable.v2.PartialResultSet - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PartialResultSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new AddToCell. + * @memberof google.bigtable.v2.Mutation + * @classdesc Represents an AddToCell. + * @implements IAddToCell + * @constructor + * @param {google.bigtable.v2.Mutation.IAddToCell=} [properties] Properties to set + */ + function AddToCell(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.bigtable.v2.PartialResultSet"; - }; - - return PartialResultSet; - })(); - - v2.Type = (function() { - - /** - * Properties of a Type. - * @memberof google.bigtable.v2 - * @interface IType - * @property {google.bigtable.v2.Type.IBytes|null} [bytesType] Type bytesType - * @property {google.bigtable.v2.Type.IString|null} [stringType] Type stringType - * @property {google.bigtable.v2.Type.IInt64|null} [int64Type] Type int64Type - * @property {google.bigtable.v2.Type.IFloat32|null} [float32Type] Type float32Type - * @property {google.bigtable.v2.Type.IFloat64|null} [float64Type] Type float64Type - * @property {google.bigtable.v2.Type.IBool|null} [boolType] Type boolType - * @property {google.bigtable.v2.Type.ITimestamp|null} [timestampType] Type timestampType - * @property {google.bigtable.v2.Type.IDate|null} [dateType] Type dateType - * @property {google.bigtable.v2.Type.IAggregate|null} [aggregateType] Type aggregateType - * @property {google.bigtable.v2.Type.IStruct|null} [structType] Type structType - * @property {google.bigtable.v2.Type.IArray|null} [arrayType] Type arrayType - * @property {google.bigtable.v2.Type.IMap|null} [mapType] Type mapType - */ - - /** - * Constructs a new Type. - * @memberof google.bigtable.v2 - * @classdesc Represents a Type. - * @implements IType - * @constructor - * @param {google.bigtable.v2.IType=} [properties] Properties to set - */ - function Type(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Type bytesType. - * @member {google.bigtable.v2.Type.IBytes|null|undefined} bytesType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.bytesType = null; - /** - * Type stringType. - * @member {google.bigtable.v2.Type.IString|null|undefined} stringType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.stringType = null; + /** + * AddToCell familyName. + * @member {string} familyName + * @memberof google.bigtable.v2.Mutation.AddToCell + * @instance + */ + AddToCell.prototype.familyName = ""; - /** - * Type int64Type. - * @member {google.bigtable.v2.Type.IInt64|null|undefined} int64Type - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.int64Type = null; + /** + * AddToCell columnQualifier. + * @member {google.bigtable.v2.IValue|null|undefined} columnQualifier + * @memberof google.bigtable.v2.Mutation.AddToCell + * @instance + */ + AddToCell.prototype.columnQualifier = null; - /** - * Type float32Type. - * @member {google.bigtable.v2.Type.IFloat32|null|undefined} float32Type - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.float32Type = null; + /** + * AddToCell timestamp. + * @member {google.bigtable.v2.IValue|null|undefined} timestamp + * @memberof google.bigtable.v2.Mutation.AddToCell + * @instance + */ + AddToCell.prototype.timestamp = null; - /** - * Type float64Type. - * @member {google.bigtable.v2.Type.IFloat64|null|undefined} float64Type - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.float64Type = null; + /** + * AddToCell input. + * @member {google.bigtable.v2.IValue|null|undefined} input + * @memberof google.bigtable.v2.Mutation.AddToCell + * @instance + */ + AddToCell.prototype.input = null; - /** - * Type boolType. - * @member {google.bigtable.v2.Type.IBool|null|undefined} boolType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.boolType = null; + /** + * Creates a new AddToCell instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {google.bigtable.v2.Mutation.IAddToCell=} [properties] Properties to set + * @returns {google.bigtable.v2.Mutation.AddToCell} AddToCell instance + */ + AddToCell.create = function create(properties) { + return new AddToCell(properties); + }; - /** - * Type timestampType. - * @member {google.bigtable.v2.Type.ITimestamp|null|undefined} timestampType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.timestampType = null; + /** + * Encodes the specified AddToCell message. Does not implicitly {@link google.bigtable.v2.Mutation.AddToCell.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {google.bigtable.v2.Mutation.IAddToCell} message AddToCell message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddToCell.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); + if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) + $root.google.bigtable.v2.Value.encode(message.columnQualifier, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.bigtable.v2.Value.encode(message.timestamp, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + $root.google.bigtable.v2.Value.encode(message.input, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Type dateType. - * @member {google.bigtable.v2.Type.IDate|null|undefined} dateType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.dateType = null; + /** + * Encodes the specified AddToCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.AddToCell.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {google.bigtable.v2.Mutation.IAddToCell} message AddToCell message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddToCell.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Type aggregateType. - * @member {google.bigtable.v2.Type.IAggregate|null|undefined} aggregateType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.aggregateType = null; - - /** - * Type structType. - * @member {google.bigtable.v2.Type.IStruct|null|undefined} structType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.structType = null; - - /** - * Type arrayType. - * @member {google.bigtable.v2.Type.IArray|null|undefined} arrayType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.arrayType = null; - - /** - * Type mapType. - * @member {google.bigtable.v2.Type.IMap|null|undefined} mapType - * @memberof google.bigtable.v2.Type - * @instance - */ - Type.prototype.mapType = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Type kind. - * @member {"bytesType"|"stringType"|"int64Type"|"float32Type"|"float64Type"|"boolType"|"timestampType"|"dateType"|"aggregateType"|"structType"|"arrayType"|"mapType"|undefined} kind - * @memberof google.bigtable.v2.Type - * @instance - */ - Object.defineProperty(Type.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["bytesType", "stringType", "int64Type", "float32Type", "float64Type", "boolType", "timestampType", "dateType", "aggregateType", "structType", "arrayType", "mapType"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Type instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type - * @static - * @param {google.bigtable.v2.IType=} [properties] Properties to set - * @returns {google.bigtable.v2.Type} Type instance - */ - Type.create = function create(properties) { - return new Type(properties); - }; - - /** - * Encodes the specified Type message. Does not implicitly {@link google.bigtable.v2.Type.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type - * @static - * @param {google.bigtable.v2.IType} message Type message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Type.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bytesType != null && Object.hasOwnProperty.call(message, "bytesType")) - $root.google.bigtable.v2.Type.Bytes.encode(message.bytesType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stringType != null && Object.hasOwnProperty.call(message, "stringType")) - $root.google.bigtable.v2.Type.String.encode(message.stringType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.arrayType != null && Object.hasOwnProperty.call(message, "arrayType")) - $root.google.bigtable.v2.Type.Array.encode(message.arrayType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.mapType != null && Object.hasOwnProperty.call(message, "mapType")) - $root.google.bigtable.v2.Type.Map.encode(message.mapType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.int64Type != null && Object.hasOwnProperty.call(message, "int64Type")) - $root.google.bigtable.v2.Type.Int64.encode(message.int64Type, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.aggregateType != null && Object.hasOwnProperty.call(message, "aggregateType")) - $root.google.bigtable.v2.Type.Aggregate.encode(message.aggregateType, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.structType != null && Object.hasOwnProperty.call(message, "structType")) - $root.google.bigtable.v2.Type.Struct.encode(message.structType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.boolType != null && Object.hasOwnProperty.call(message, "boolType")) - $root.google.bigtable.v2.Type.Bool.encode(message.boolType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.float64Type != null && Object.hasOwnProperty.call(message, "float64Type")) - $root.google.bigtable.v2.Type.Float64.encode(message.float64Type, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.timestampType != null && Object.hasOwnProperty.call(message, "timestampType")) - $root.google.bigtable.v2.Type.Timestamp.encode(message.timestampType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.dateType != null && Object.hasOwnProperty.call(message, "dateType")) - $root.google.bigtable.v2.Type.Date.encode(message.dateType, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.float32Type != null && Object.hasOwnProperty.call(message, "float32Type")) - $root.google.bigtable.v2.Type.Float32.encode(message.float32Type, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Type message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type - * @static - * @param {google.bigtable.v2.IType} message Type message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Type.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Type message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type} Type - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Type.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.bytesType = $root.google.bigtable.v2.Type.Bytes.decode(reader, reader.uint32()); - break; - } - case 2: { - message.stringType = $root.google.bigtable.v2.Type.String.decode(reader, reader.uint32()); - break; - } - case 5: { - message.int64Type = $root.google.bigtable.v2.Type.Int64.decode(reader, reader.uint32()); - break; - } - case 12: { - message.float32Type = $root.google.bigtable.v2.Type.Float32.decode(reader, reader.uint32()); - break; - } - case 9: { - message.float64Type = $root.google.bigtable.v2.Type.Float64.decode(reader, reader.uint32()); - break; - } - case 8: { - message.boolType = $root.google.bigtable.v2.Type.Bool.decode(reader, reader.uint32()); - break; - } - case 10: { - message.timestampType = $root.google.bigtable.v2.Type.Timestamp.decode(reader, reader.uint32()); - break; - } - case 11: { - message.dateType = $root.google.bigtable.v2.Type.Date.decode(reader, reader.uint32()); - break; - } - case 6: { - message.aggregateType = $root.google.bigtable.v2.Type.Aggregate.decode(reader, reader.uint32()); - break; - } - case 7: { - message.structType = $root.google.bigtable.v2.Type.Struct.decode(reader, reader.uint32()); - break; - } - case 3: { - message.arrayType = $root.google.bigtable.v2.Type.Array.decode(reader, reader.uint32()); + /** + * Decodes an AddToCell message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Mutation.AddToCell} AddToCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddToCell.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.AddToCell(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - } - case 4: { - message.mapType = $root.google.bigtable.v2.Type.Map.decode(reader, reader.uint32()); + switch (tag >>> 3) { + case 1: { + message.familyName = reader.string(); + break; + } + case 2: { + message.columnQualifier = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); + break; + } + case 3: { + message.timestamp = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); + break; + } + case 4: { + message.input = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Type message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type} Type - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Type.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an AddToCell message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Mutation.AddToCell} AddToCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddToCell.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Type message. - * @function verify - * @memberof google.bigtable.v2.Type - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Type.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.bytesType != null && message.hasOwnProperty("bytesType")) { - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Bytes.verify(message.bytesType); - if (error) - return "bytesType." + error; - } - } - if (message.stringType != null && message.hasOwnProperty("stringType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.String.verify(message.stringType); - if (error) - return "stringType." + error; - } - } - if (message.int64Type != null && message.hasOwnProperty("int64Type")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Int64.verify(message.int64Type); - if (error) - return "int64Type." + error; - } - } - if (message.float32Type != null && message.hasOwnProperty("float32Type")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Float32.verify(message.float32Type); - if (error) - return "float32Type." + error; - } - } - if (message.float64Type != null && message.hasOwnProperty("float64Type")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Float64.verify(message.float64Type); + /** + * Verifies an AddToCell message. + * @function verify + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddToCell.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) { + var error = $root.google.bigtable.v2.Value.verify(message.columnQualifier); if (error) - return "float64Type." + error; + return "columnQualifier." + error; } - } - if (message.boolType != null && message.hasOwnProperty("boolType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Bool.verify(message.boolType); + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + var error = $root.google.bigtable.v2.Value.verify(message.timestamp); if (error) - return "boolType." + error; + return "timestamp." + error; } - } - if (message.timestampType != null && message.hasOwnProperty("timestampType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Timestamp.verify(message.timestampType); + if (message.input != null && message.hasOwnProperty("input")) { + var error = $root.google.bigtable.v2.Value.verify(message.input); if (error) - return "timestampType." + error; + return "input." + error; } - } - if (message.dateType != null && message.hasOwnProperty("dateType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Date.verify(message.dateType); - if (error) - return "dateType." + error; + return null; + }; + + /** + * Creates an AddToCell message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Mutation.AddToCell} AddToCell + */ + AddToCell.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Mutation.AddToCell) + return object; + var message = new $root.google.bigtable.v2.Mutation.AddToCell(); + if (object.familyName != null) + message.familyName = String(object.familyName); + if (object.columnQualifier != null) { + if (typeof object.columnQualifier !== "object") + throw TypeError(".google.bigtable.v2.Mutation.AddToCell.columnQualifier: object expected"); + message.columnQualifier = $root.google.bigtable.v2.Value.fromObject(object.columnQualifier); } - } - if (message.aggregateType != null && message.hasOwnProperty("aggregateType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Aggregate.verify(message.aggregateType); - if (error) - return "aggregateType." + error; + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".google.bigtable.v2.Mutation.AddToCell.timestamp: object expected"); + message.timestamp = $root.google.bigtable.v2.Value.fromObject(object.timestamp); } - } - if (message.structType != null && message.hasOwnProperty("structType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Struct.verify(message.structType); - if (error) - return "structType." + error; + if (object.input != null) { + if (typeof object.input !== "object") + throw TypeError(".google.bigtable.v2.Mutation.AddToCell.input: object expected"); + message.input = $root.google.bigtable.v2.Value.fromObject(object.input); } - } - if (message.arrayType != null && message.hasOwnProperty("arrayType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Array.verify(message.arrayType); - if (error) - return "arrayType." + error; + return message; + }; + + /** + * Creates a plain object from an AddToCell message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {google.bigtable.v2.Mutation.AddToCell} message AddToCell + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddToCell.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.familyName = ""; + object.columnQualifier = null; + object.timestamp = null; + object.input = null; } - } - if (message.mapType != null && message.hasOwnProperty("mapType")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.bigtable.v2.Type.Map.verify(message.mapType); - if (error) - return "mapType." + error; + if (message.familyName != null && message.hasOwnProperty("familyName")) + object.familyName = message.familyName; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) + object.columnQualifier = $root.google.bigtable.v2.Value.toObject(message.columnQualifier, options); + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + object.timestamp = $root.google.bigtable.v2.Value.toObject(message.timestamp, options); + if (message.input != null && message.hasOwnProperty("input")) + object.input = $root.google.bigtable.v2.Value.toObject(message.input, options); + return object; + }; + + /** + * Converts this AddToCell to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Mutation.AddToCell + * @instance + * @returns {Object.} JSON object + */ + AddToCell.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AddToCell + * @function getTypeUrl + * @memberof google.bigtable.v2.Mutation.AddToCell + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddToCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.bigtable.v2.Mutation.AddToCell"; + }; + + return AddToCell; + })(); + + Mutation.MergeToCell = (function() { + + /** + * Properties of a MergeToCell. + * @memberof google.bigtable.v2.Mutation + * @interface IMergeToCell + * @property {string|null} [familyName] MergeToCell familyName + * @property {google.bigtable.v2.IValue|null} [columnQualifier] MergeToCell columnQualifier + * @property {google.bigtable.v2.IValue|null} [timestamp] MergeToCell timestamp + * @property {google.bigtable.v2.IValue|null} [input] MergeToCell input + */ + + /** + * Constructs a new MergeToCell. + * @memberof google.bigtable.v2.Mutation + * @classdesc Represents a MergeToCell. + * @implements IMergeToCell + * @constructor + * @param {google.bigtable.v2.Mutation.IMergeToCell=} [properties] Properties to set + */ + function MergeToCell(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return null; - }; - /** - * Creates a Type message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type} Type - */ - Type.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type) - return object; - var message = new $root.google.bigtable.v2.Type(); - if (object.bytesType != null) { - if (typeof object.bytesType !== "object") - throw TypeError(".google.bigtable.v2.Type.bytesType: object expected"); - message.bytesType = $root.google.bigtable.v2.Type.Bytes.fromObject(object.bytesType); - } - if (object.stringType != null) { - if (typeof object.stringType !== "object") - throw TypeError(".google.bigtable.v2.Type.stringType: object expected"); - message.stringType = $root.google.bigtable.v2.Type.String.fromObject(object.stringType); - } - if (object.int64Type != null) { - if (typeof object.int64Type !== "object") - throw TypeError(".google.bigtable.v2.Type.int64Type: object expected"); - message.int64Type = $root.google.bigtable.v2.Type.Int64.fromObject(object.int64Type); - } - if (object.float32Type != null) { - if (typeof object.float32Type !== "object") - throw TypeError(".google.bigtable.v2.Type.float32Type: object expected"); - message.float32Type = $root.google.bigtable.v2.Type.Float32.fromObject(object.float32Type); - } - if (object.float64Type != null) { - if (typeof object.float64Type !== "object") - throw TypeError(".google.bigtable.v2.Type.float64Type: object expected"); - message.float64Type = $root.google.bigtable.v2.Type.Float64.fromObject(object.float64Type); - } - if (object.boolType != null) { - if (typeof object.boolType !== "object") - throw TypeError(".google.bigtable.v2.Type.boolType: object expected"); - message.boolType = $root.google.bigtable.v2.Type.Bool.fromObject(object.boolType); - } - if (object.timestampType != null) { - if (typeof object.timestampType !== "object") - throw TypeError(".google.bigtable.v2.Type.timestampType: object expected"); - message.timestampType = $root.google.bigtable.v2.Type.Timestamp.fromObject(object.timestampType); - } - if (object.dateType != null) { - if (typeof object.dateType !== "object") - throw TypeError(".google.bigtable.v2.Type.dateType: object expected"); - message.dateType = $root.google.bigtable.v2.Type.Date.fromObject(object.dateType); - } - if (object.aggregateType != null) { - if (typeof object.aggregateType !== "object") - throw TypeError(".google.bigtable.v2.Type.aggregateType: object expected"); - message.aggregateType = $root.google.bigtable.v2.Type.Aggregate.fromObject(object.aggregateType); - } - if (object.structType != null) { - if (typeof object.structType !== "object") - throw TypeError(".google.bigtable.v2.Type.structType: object expected"); - message.structType = $root.google.bigtable.v2.Type.Struct.fromObject(object.structType); - } - if (object.arrayType != null) { - if (typeof object.arrayType !== "object") - throw TypeError(".google.bigtable.v2.Type.arrayType: object expected"); - message.arrayType = $root.google.bigtable.v2.Type.Array.fromObject(object.arrayType); - } - if (object.mapType != null) { - if (typeof object.mapType !== "object") - throw TypeError(".google.bigtable.v2.Type.mapType: object expected"); - message.mapType = $root.google.bigtable.v2.Type.Map.fromObject(object.mapType); - } - return message; - }; + /** + * MergeToCell familyName. + * @member {string} familyName + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @instance + */ + MergeToCell.prototype.familyName = ""; - /** - * Creates a plain object from a Type message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type - * @static - * @param {google.bigtable.v2.Type} message Type - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Type.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.bytesType != null && message.hasOwnProperty("bytesType")) { - object.bytesType = $root.google.bigtable.v2.Type.Bytes.toObject(message.bytesType, options); - if (options.oneofs) - object.kind = "bytesType"; - } - if (message.stringType != null && message.hasOwnProperty("stringType")) { - object.stringType = $root.google.bigtable.v2.Type.String.toObject(message.stringType, options); - if (options.oneofs) - object.kind = "stringType"; - } - if (message.arrayType != null && message.hasOwnProperty("arrayType")) { - object.arrayType = $root.google.bigtable.v2.Type.Array.toObject(message.arrayType, options); - if (options.oneofs) - object.kind = "arrayType"; - } - if (message.mapType != null && message.hasOwnProperty("mapType")) { - object.mapType = $root.google.bigtable.v2.Type.Map.toObject(message.mapType, options); - if (options.oneofs) - object.kind = "mapType"; - } - if (message.int64Type != null && message.hasOwnProperty("int64Type")) { - object.int64Type = $root.google.bigtable.v2.Type.Int64.toObject(message.int64Type, options); - if (options.oneofs) - object.kind = "int64Type"; - } - if (message.aggregateType != null && message.hasOwnProperty("aggregateType")) { - object.aggregateType = $root.google.bigtable.v2.Type.Aggregate.toObject(message.aggregateType, options); - if (options.oneofs) - object.kind = "aggregateType"; - } - if (message.structType != null && message.hasOwnProperty("structType")) { - object.structType = $root.google.bigtable.v2.Type.Struct.toObject(message.structType, options); - if (options.oneofs) - object.kind = "structType"; - } - if (message.boolType != null && message.hasOwnProperty("boolType")) { - object.boolType = $root.google.bigtable.v2.Type.Bool.toObject(message.boolType, options); - if (options.oneofs) - object.kind = "boolType"; - } - if (message.float64Type != null && message.hasOwnProperty("float64Type")) { - object.float64Type = $root.google.bigtable.v2.Type.Float64.toObject(message.float64Type, options); - if (options.oneofs) - object.kind = "float64Type"; - } - if (message.timestampType != null && message.hasOwnProperty("timestampType")) { - object.timestampType = $root.google.bigtable.v2.Type.Timestamp.toObject(message.timestampType, options); - if (options.oneofs) - object.kind = "timestampType"; - } - if (message.dateType != null && message.hasOwnProperty("dateType")) { - object.dateType = $root.google.bigtable.v2.Type.Date.toObject(message.dateType, options); - if (options.oneofs) - object.kind = "dateType"; - } - if (message.float32Type != null && message.hasOwnProperty("float32Type")) { - object.float32Type = $root.google.bigtable.v2.Type.Float32.toObject(message.float32Type, options); - if (options.oneofs) - object.kind = "float32Type"; + /** + * MergeToCell columnQualifier. + * @member {google.bigtable.v2.IValue|null|undefined} columnQualifier + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @instance + */ + MergeToCell.prototype.columnQualifier = null; + + /** + * MergeToCell timestamp. + * @member {google.bigtable.v2.IValue|null|undefined} timestamp + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @instance + */ + MergeToCell.prototype.timestamp = null; + + /** + * MergeToCell input. + * @member {google.bigtable.v2.IValue|null|undefined} input + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @instance + */ + MergeToCell.prototype.input = null; + + /** + * Creates a new MergeToCell instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {google.bigtable.v2.Mutation.IMergeToCell=} [properties] Properties to set + * @returns {google.bigtable.v2.Mutation.MergeToCell} MergeToCell instance + */ + MergeToCell.create = function create(properties) { + return new MergeToCell(properties); + }; + + /** + * Encodes the specified MergeToCell message. Does not implicitly {@link google.bigtable.v2.Mutation.MergeToCell.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {google.bigtable.v2.Mutation.IMergeToCell} message MergeToCell message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MergeToCell.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); + if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) + $root.google.bigtable.v2.Value.encode(message.columnQualifier, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.bigtable.v2.Value.encode(message.timestamp, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + $root.google.bigtable.v2.Value.encode(message.input, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MergeToCell message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.MergeToCell.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {google.bigtable.v2.Mutation.IMergeToCell} message MergeToCell message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MergeToCell.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MergeToCell message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Mutation.MergeToCell} MergeToCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MergeToCell.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.MergeToCell(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.familyName = reader.string(); + break; + } + case 2: { + message.columnQualifier = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); + break; + } + case 3: { + message.timestamp = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); + break; + } + case 4: { + message.input = $root.google.bigtable.v2.Value.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MergeToCell message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Mutation.MergeToCell} MergeToCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MergeToCell.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MergeToCell message. + * @function verify + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MergeToCell.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) { + var error = $root.google.bigtable.v2.Value.verify(message.columnQualifier); + if (error) + return "columnQualifier." + error; + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + var error = $root.google.bigtable.v2.Value.verify(message.timestamp); + if (error) + return "timestamp." + error; + } + if (message.input != null && message.hasOwnProperty("input")) { + var error = $root.google.bigtable.v2.Value.verify(message.input); + if (error) + return "input." + error; + } + return null; + }; + + /** + * Creates a MergeToCell message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Mutation.MergeToCell} MergeToCell + */ + MergeToCell.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Mutation.MergeToCell) + return object; + var message = new $root.google.bigtable.v2.Mutation.MergeToCell(); + if (object.familyName != null) + message.familyName = String(object.familyName); + if (object.columnQualifier != null) { + if (typeof object.columnQualifier !== "object") + throw TypeError(".google.bigtable.v2.Mutation.MergeToCell.columnQualifier: object expected"); + message.columnQualifier = $root.google.bigtable.v2.Value.fromObject(object.columnQualifier); + } + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".google.bigtable.v2.Mutation.MergeToCell.timestamp: object expected"); + message.timestamp = $root.google.bigtable.v2.Value.fromObject(object.timestamp); + } + if (object.input != null) { + if (typeof object.input !== "object") + throw TypeError(".google.bigtable.v2.Mutation.MergeToCell.input: object expected"); + message.input = $root.google.bigtable.v2.Value.fromObject(object.input); + } + return message; + }; + + /** + * Creates a plain object from a MergeToCell message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {google.bigtable.v2.Mutation.MergeToCell} message MergeToCell + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MergeToCell.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.familyName = ""; + object.columnQualifier = null; + object.timestamp = null; + object.input = null; + } + if (message.familyName != null && message.hasOwnProperty("familyName")) + object.familyName = message.familyName; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) + object.columnQualifier = $root.google.bigtable.v2.Value.toObject(message.columnQualifier, options); + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + object.timestamp = $root.google.bigtable.v2.Value.toObject(message.timestamp, options); + if (message.input != null && message.hasOwnProperty("input")) + object.input = $root.google.bigtable.v2.Value.toObject(message.input, options); + return object; + }; + + /** + * Converts this MergeToCell to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @instance + * @returns {Object.} JSON object + */ + MergeToCell.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MergeToCell + * @function getTypeUrl + * @memberof google.bigtable.v2.Mutation.MergeToCell + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MergeToCell.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Mutation.MergeToCell"; + }; + + return MergeToCell; + })(); + + Mutation.DeleteFromColumn = (function() { + + /** + * Properties of a DeleteFromColumn. + * @memberof google.bigtable.v2.Mutation + * @interface IDeleteFromColumn + * @property {string|null} [familyName] DeleteFromColumn familyName + * @property {Uint8Array|null} [columnQualifier] DeleteFromColumn columnQualifier + * @property {google.bigtable.v2.ITimestampRange|null} [timeRange] DeleteFromColumn timeRange + */ + + /** + * Constructs a new DeleteFromColumn. + * @memberof google.bigtable.v2.Mutation + * @classdesc Represents a DeleteFromColumn. + * @implements IDeleteFromColumn + * @constructor + * @param {google.bigtable.v2.Mutation.IDeleteFromColumn=} [properties] Properties to set + */ + function DeleteFromColumn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return object; - }; - /** - * Converts this Type to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type - * @instance - * @returns {Object.} JSON object - */ - Type.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * DeleteFromColumn familyName. + * @member {string} familyName + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @instance + */ + DeleteFromColumn.prototype.familyName = ""; + + /** + * DeleteFromColumn columnQualifier. + * @member {Uint8Array} columnQualifier + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @instance + */ + DeleteFromColumn.prototype.columnQualifier = $util.newBuffer([]); + + /** + * DeleteFromColumn timeRange. + * @member {google.bigtable.v2.ITimestampRange|null|undefined} timeRange + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @instance + */ + DeleteFromColumn.prototype.timeRange = null; + + /** + * Creates a new DeleteFromColumn instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromColumn=} [properties] Properties to set + * @returns {google.bigtable.v2.Mutation.DeleteFromColumn} DeleteFromColumn instance + */ + DeleteFromColumn.create = function create(properties) { + return new DeleteFromColumn(properties); + }; + + /** + * Encodes the specified DeleteFromColumn message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromColumn.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromColumn} message DeleteFromColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFromColumn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); + if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.columnQualifier); + if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange")) + $root.google.bigtable.v2.TimestampRange.encode(message.timeRange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeleteFromColumn message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromColumn.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromColumn} message DeleteFromColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFromColumn.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFromColumn message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Mutation.DeleteFromColumn} DeleteFromColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFromColumn.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.DeleteFromColumn(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.familyName = reader.string(); + break; + } + case 2: { + message.columnQualifier = reader.bytes(); + break; + } + case 3: { + message.timeRange = $root.google.bigtable.v2.TimestampRange.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFromColumn message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Mutation.DeleteFromColumn} DeleteFromColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFromColumn.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFromColumn message. + * @function verify + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFromColumn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) + if (!(message.columnQualifier && typeof message.columnQualifier.length === "number" || $util.isString(message.columnQualifier))) + return "columnQualifier: buffer expected"; + if (message.timeRange != null && message.hasOwnProperty("timeRange")) { + var error = $root.google.bigtable.v2.TimestampRange.verify(message.timeRange); + if (error) + return "timeRange." + error; + } + return null; + }; + + /** + * Creates a DeleteFromColumn message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Mutation.DeleteFromColumn} DeleteFromColumn + */ + DeleteFromColumn.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Mutation.DeleteFromColumn) + return object; + var message = new $root.google.bigtable.v2.Mutation.DeleteFromColumn(); + if (object.familyName != null) + message.familyName = String(object.familyName); + if (object.columnQualifier != null) + if (typeof object.columnQualifier === "string") + $util.base64.decode(object.columnQualifier, message.columnQualifier = $util.newBuffer($util.base64.length(object.columnQualifier)), 0); + else if (object.columnQualifier.length >= 0) + message.columnQualifier = object.columnQualifier; + if (object.timeRange != null) { + if (typeof object.timeRange !== "object") + throw TypeError(".google.bigtable.v2.Mutation.DeleteFromColumn.timeRange: object expected"); + message.timeRange = $root.google.bigtable.v2.TimestampRange.fromObject(object.timeRange); + } + return message; + }; + + /** + * Creates a plain object from a DeleteFromColumn message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {google.bigtable.v2.Mutation.DeleteFromColumn} message DeleteFromColumn + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFromColumn.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.familyName = ""; + if (options.bytes === String) + object.columnQualifier = ""; + else { + object.columnQualifier = []; + if (options.bytes !== Array) + object.columnQualifier = $util.newBuffer(object.columnQualifier); + } + object.timeRange = null; + } + if (message.familyName != null && message.hasOwnProperty("familyName")) + object.familyName = message.familyName; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) + object.columnQualifier = options.bytes === String ? $util.base64.encode(message.columnQualifier, 0, message.columnQualifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.columnQualifier) : message.columnQualifier; + if (message.timeRange != null && message.hasOwnProperty("timeRange")) + object.timeRange = $root.google.bigtable.v2.TimestampRange.toObject(message.timeRange, options); + return object; + }; + + /** + * Converts this DeleteFromColumn to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @instance + * @returns {Object.} JSON object + */ + DeleteFromColumn.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFromColumn + * @function getTypeUrl + * @memberof google.bigtable.v2.Mutation.DeleteFromColumn + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFromColumn.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Mutation.DeleteFromColumn"; + }; + + return DeleteFromColumn; + })(); + + Mutation.DeleteFromFamily = (function() { + + /** + * Properties of a DeleteFromFamily. + * @memberof google.bigtable.v2.Mutation + * @interface IDeleteFromFamily + * @property {string|null} [familyName] DeleteFromFamily familyName + */ + + /** + * Constructs a new DeleteFromFamily. + * @memberof google.bigtable.v2.Mutation + * @classdesc Represents a DeleteFromFamily. + * @implements IDeleteFromFamily + * @constructor + * @param {google.bigtable.v2.Mutation.IDeleteFromFamily=} [properties] Properties to set + */ + function DeleteFromFamily(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteFromFamily familyName. + * @member {string} familyName + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @instance + */ + DeleteFromFamily.prototype.familyName = ""; + + /** + * Creates a new DeleteFromFamily instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromFamily=} [properties] Properties to set + * @returns {google.bigtable.v2.Mutation.DeleteFromFamily} DeleteFromFamily instance + */ + DeleteFromFamily.create = function create(properties) { + return new DeleteFromFamily(properties); + }; + + /** + * Encodes the specified DeleteFromFamily message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromFamily.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromFamily} message DeleteFromFamily message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFromFamily.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); + return writer; + }; + + /** + * Encodes the specified DeleteFromFamily message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromFamily.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromFamily} message DeleteFromFamily message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFromFamily.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFromFamily message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Mutation.DeleteFromFamily} DeleteFromFamily + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFromFamily.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.DeleteFromFamily(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.familyName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFromFamily message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Mutation.DeleteFromFamily} DeleteFromFamily + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFromFamily.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFromFamily message. + * @function verify + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFromFamily.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + return null; + }; + + /** + * Creates a DeleteFromFamily message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Mutation.DeleteFromFamily} DeleteFromFamily + */ + DeleteFromFamily.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Mutation.DeleteFromFamily) + return object; + var message = new $root.google.bigtable.v2.Mutation.DeleteFromFamily(); + if (object.familyName != null) + message.familyName = String(object.familyName); + return message; + }; + + /** + * Creates a plain object from a DeleteFromFamily message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {google.bigtable.v2.Mutation.DeleteFromFamily} message DeleteFromFamily + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFromFamily.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.familyName = ""; + if (message.familyName != null && message.hasOwnProperty("familyName")) + object.familyName = message.familyName; + return object; + }; + + /** + * Converts this DeleteFromFamily to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @instance + * @returns {Object.} JSON object + */ + DeleteFromFamily.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFromFamily + * @function getTypeUrl + * @memberof google.bigtable.v2.Mutation.DeleteFromFamily + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFromFamily.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Mutation.DeleteFromFamily"; + }; + + return DeleteFromFamily; + })(); + + Mutation.DeleteFromRow = (function() { + + /** + * Properties of a DeleteFromRow. + * @memberof google.bigtable.v2.Mutation + * @interface IDeleteFromRow + */ + + /** + * Constructs a new DeleteFromRow. + * @memberof google.bigtable.v2.Mutation + * @classdesc Represents a DeleteFromRow. + * @implements IDeleteFromRow + * @constructor + * @param {google.bigtable.v2.Mutation.IDeleteFromRow=} [properties] Properties to set + */ + function DeleteFromRow(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new DeleteFromRow instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromRow=} [properties] Properties to set + * @returns {google.bigtable.v2.Mutation.DeleteFromRow} DeleteFromRow instance + */ + DeleteFromRow.create = function create(properties) { + return new DeleteFromRow(properties); + }; + + /** + * Encodes the specified DeleteFromRow message. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromRow.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromRow} message DeleteFromRow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFromRow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified DeleteFromRow message, length delimited. Does not implicitly {@link google.bigtable.v2.Mutation.DeleteFromRow.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {google.bigtable.v2.Mutation.IDeleteFromRow} message DeleteFromRow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFromRow.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFromRow message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Mutation.DeleteFromRow} DeleteFromRow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFromRow.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Mutation.DeleteFromRow(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFromRow message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Mutation.DeleteFromRow} DeleteFromRow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFromRow.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFromRow message. + * @function verify + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFromRow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a DeleteFromRow message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Mutation.DeleteFromRow} DeleteFromRow + */ + DeleteFromRow.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Mutation.DeleteFromRow) + return object; + return new $root.google.bigtable.v2.Mutation.DeleteFromRow(); + }; + + /** + * Creates a plain object from a DeleteFromRow message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {google.bigtable.v2.Mutation.DeleteFromRow} message DeleteFromRow + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFromRow.toObject = function toObject() { + return {}; + }; + + /** + * Converts this DeleteFromRow to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @instance + * @returns {Object.} JSON object + */ + DeleteFromRow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFromRow + * @function getTypeUrl + * @memberof google.bigtable.v2.Mutation.DeleteFromRow + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFromRow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Mutation.DeleteFromRow"; + }; + + return DeleteFromRow; + })(); + + return Mutation; + })(); + + v2.ReadModifyWriteRule = (function() { + + /** + * Properties of a ReadModifyWriteRule. + * @memberof google.bigtable.v2 + * @interface IReadModifyWriteRule + * @property {string|null} [familyName] ReadModifyWriteRule familyName + * @property {Uint8Array|null} [columnQualifier] ReadModifyWriteRule columnQualifier + * @property {Uint8Array|null} [appendValue] ReadModifyWriteRule appendValue + * @property {number|Long|null} [incrementAmount] ReadModifyWriteRule incrementAmount + */ + + /** + * Constructs a new ReadModifyWriteRule. + * @memberof google.bigtable.v2 + * @classdesc Represents a ReadModifyWriteRule. + * @implements IReadModifyWriteRule + * @constructor + * @param {google.bigtable.v2.IReadModifyWriteRule=} [properties] Properties to set + */ + function ReadModifyWriteRule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReadModifyWriteRule familyName. + * @member {string} familyName + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @instance + */ + ReadModifyWriteRule.prototype.familyName = ""; + + /** + * ReadModifyWriteRule columnQualifier. + * @member {Uint8Array} columnQualifier + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @instance + */ + ReadModifyWriteRule.prototype.columnQualifier = $util.newBuffer([]); + + /** + * ReadModifyWriteRule appendValue. + * @member {Uint8Array|null|undefined} appendValue + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @instance + */ + ReadModifyWriteRule.prototype.appendValue = null; + + /** + * ReadModifyWriteRule incrementAmount. + * @member {number|Long|null|undefined} incrementAmount + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @instance + */ + ReadModifyWriteRule.prototype.incrementAmount = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ReadModifyWriteRule rule. + * @member {"appendValue"|"incrementAmount"|undefined} rule + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @instance + */ + Object.defineProperty(ReadModifyWriteRule.prototype, "rule", { + get: $util.oneOfGetter($oneOfFields = ["appendValue", "incrementAmount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReadModifyWriteRule instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {google.bigtable.v2.IReadModifyWriteRule=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadModifyWriteRule} ReadModifyWriteRule instance + */ + ReadModifyWriteRule.create = function create(properties) { + return new ReadModifyWriteRule(properties); + }; + + /** + * Encodes the specified ReadModifyWriteRule message. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRule.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {google.bigtable.v2.IReadModifyWriteRule} message ReadModifyWriteRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReadModifyWriteRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.familyName != null && Object.hasOwnProperty.call(message, "familyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.familyName); + if (message.columnQualifier != null && Object.hasOwnProperty.call(message, "columnQualifier")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.columnQualifier); + if (message.appendValue != null && Object.hasOwnProperty.call(message, "appendValue")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.appendValue); + if (message.incrementAmount != null && Object.hasOwnProperty.call(message, "incrementAmount")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.incrementAmount); + return writer; + }; + + /** + * Encodes the specified ReadModifyWriteRule message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadModifyWriteRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {google.bigtable.v2.IReadModifyWriteRule} message ReadModifyWriteRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReadModifyWriteRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReadModifyWriteRule message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ReadModifyWriteRule} ReadModifyWriteRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReadModifyWriteRule.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadModifyWriteRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.familyName = reader.string(); + break; + } + case 2: { + message.columnQualifier = reader.bytes(); + break; + } + case 3: { + message.appendValue = reader.bytes(); + break; + } + case 4: { + message.incrementAmount = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReadModifyWriteRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ReadModifyWriteRule} ReadModifyWriteRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReadModifyWriteRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReadModifyWriteRule message. + * @function verify + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReadModifyWriteRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) + if (!(message.columnQualifier && typeof message.columnQualifier.length === "number" || $util.isString(message.columnQualifier))) + return "columnQualifier: buffer expected"; + if (message.appendValue != null && message.hasOwnProperty("appendValue")) { + properties.rule = 1; + if (!(message.appendValue && typeof message.appendValue.length === "number" || $util.isString(message.appendValue))) + return "appendValue: buffer expected"; + } + if (message.incrementAmount != null && message.hasOwnProperty("incrementAmount")) { + if (properties.rule === 1) + return "rule: multiple values"; + properties.rule = 1; + if (!$util.isInteger(message.incrementAmount) && !(message.incrementAmount && $util.isInteger(message.incrementAmount.low) && $util.isInteger(message.incrementAmount.high))) + return "incrementAmount: integer|Long expected"; + } + return null; + }; + + /** + * Creates a ReadModifyWriteRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ReadModifyWriteRule} ReadModifyWriteRule + */ + ReadModifyWriteRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadModifyWriteRule) + return object; + var message = new $root.google.bigtable.v2.ReadModifyWriteRule(); + if (object.familyName != null) + message.familyName = String(object.familyName); + if (object.columnQualifier != null) + if (typeof object.columnQualifier === "string") + $util.base64.decode(object.columnQualifier, message.columnQualifier = $util.newBuffer($util.base64.length(object.columnQualifier)), 0); + else if (object.columnQualifier.length >= 0) + message.columnQualifier = object.columnQualifier; + if (object.appendValue != null) + if (typeof object.appendValue === "string") + $util.base64.decode(object.appendValue, message.appendValue = $util.newBuffer($util.base64.length(object.appendValue)), 0); + else if (object.appendValue.length >= 0) + message.appendValue = object.appendValue; + if (object.incrementAmount != null) + if ($util.Long) + (message.incrementAmount = $util.Long.fromValue(object.incrementAmount)).unsigned = false; + else if (typeof object.incrementAmount === "string") + message.incrementAmount = parseInt(object.incrementAmount, 10); + else if (typeof object.incrementAmount === "number") + message.incrementAmount = object.incrementAmount; + else if (typeof object.incrementAmount === "object") + message.incrementAmount = new $util.LongBits(object.incrementAmount.low >>> 0, object.incrementAmount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a ReadModifyWriteRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {google.bigtable.v2.ReadModifyWriteRule} message ReadModifyWriteRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReadModifyWriteRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.familyName = ""; + if (options.bytes === String) + object.columnQualifier = ""; + else { + object.columnQualifier = []; + if (options.bytes !== Array) + object.columnQualifier = $util.newBuffer(object.columnQualifier); + } + } + if (message.familyName != null && message.hasOwnProperty("familyName")) + object.familyName = message.familyName; + if (message.columnQualifier != null && message.hasOwnProperty("columnQualifier")) + object.columnQualifier = options.bytes === String ? $util.base64.encode(message.columnQualifier, 0, message.columnQualifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.columnQualifier) : message.columnQualifier; + if (message.appendValue != null && message.hasOwnProperty("appendValue")) { + object.appendValue = options.bytes === String ? $util.base64.encode(message.appendValue, 0, message.appendValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.appendValue) : message.appendValue; + if (options.oneofs) + object.rule = "appendValue"; + } + if (message.incrementAmount != null && message.hasOwnProperty("incrementAmount")) { + if (typeof message.incrementAmount === "number") + object.incrementAmount = options.longs === String ? String(message.incrementAmount) : message.incrementAmount; + else + object.incrementAmount = options.longs === String ? $util.Long.prototype.toString.call(message.incrementAmount) : options.longs === Number ? new $util.LongBits(message.incrementAmount.low >>> 0, message.incrementAmount.high >>> 0).toNumber() : message.incrementAmount; + if (options.oneofs) + object.rule = "incrementAmount"; + } + return object; + }; + + /** + * Converts this ReadModifyWriteRule to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @instance + * @returns {Object.} JSON object + */ + ReadModifyWriteRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReadModifyWriteRule + * @function getTypeUrl + * @memberof google.bigtable.v2.ReadModifyWriteRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadModifyWriteRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ReadModifyWriteRule"; + }; + + return ReadModifyWriteRule; + })(); + + v2.StreamPartition = (function() { + + /** + * Properties of a StreamPartition. + * @memberof google.bigtable.v2 + * @interface IStreamPartition + * @property {google.bigtable.v2.IRowRange|null} [rowRange] StreamPartition rowRange + */ + + /** + * Constructs a new StreamPartition. + * @memberof google.bigtable.v2 + * @classdesc Represents a StreamPartition. + * @implements IStreamPartition + * @constructor + * @param {google.bigtable.v2.IStreamPartition=} [properties] Properties to set + */ + function StreamPartition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StreamPartition rowRange. + * @member {google.bigtable.v2.IRowRange|null|undefined} rowRange + * @memberof google.bigtable.v2.StreamPartition + * @instance + */ + StreamPartition.prototype.rowRange = null; + + /** + * Creates a new StreamPartition instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {google.bigtable.v2.IStreamPartition=} [properties] Properties to set + * @returns {google.bigtable.v2.StreamPartition} StreamPartition instance + */ + StreamPartition.create = function create(properties) { + return new StreamPartition(properties); + }; + + /** + * Encodes the specified StreamPartition message. Does not implicitly {@link google.bigtable.v2.StreamPartition.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {google.bigtable.v2.IStreamPartition} message StreamPartition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamPartition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rowRange != null && Object.hasOwnProperty.call(message, "rowRange")) + $root.google.bigtable.v2.RowRange.encode(message.rowRange, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StreamPartition message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamPartition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {google.bigtable.v2.IStreamPartition} message StreamPartition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamPartition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StreamPartition message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.StreamPartition} StreamPartition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamPartition.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.StreamPartition(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.rowRange = $root.google.bigtable.v2.RowRange.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StreamPartition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.StreamPartition} StreamPartition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamPartition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StreamPartition message. + * @function verify + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StreamPartition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rowRange != null && message.hasOwnProperty("rowRange")) { + var error = $root.google.bigtable.v2.RowRange.verify(message.rowRange); + if (error) + return "rowRange." + error; + } + return null; + }; + + /** + * Creates a StreamPartition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.StreamPartition} StreamPartition + */ + StreamPartition.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.StreamPartition) + return object; + var message = new $root.google.bigtable.v2.StreamPartition(); + if (object.rowRange != null) { + if (typeof object.rowRange !== "object") + throw TypeError(".google.bigtable.v2.StreamPartition.rowRange: object expected"); + message.rowRange = $root.google.bigtable.v2.RowRange.fromObject(object.rowRange); + } + return message; + }; + + /** + * Creates a plain object from a StreamPartition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {google.bigtable.v2.StreamPartition} message StreamPartition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StreamPartition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.rowRange = null; + if (message.rowRange != null && message.hasOwnProperty("rowRange")) + object.rowRange = $root.google.bigtable.v2.RowRange.toObject(message.rowRange, options); + return object; + }; + + /** + * Converts this StreamPartition to JSON. + * @function toJSON + * @memberof google.bigtable.v2.StreamPartition + * @instance + * @returns {Object.} JSON object + */ + StreamPartition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StreamPartition + * @function getTypeUrl + * @memberof google.bigtable.v2.StreamPartition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StreamPartition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.StreamPartition"; + }; + + return StreamPartition; + })(); + + v2.StreamContinuationTokens = (function() { + + /** + * Properties of a StreamContinuationTokens. + * @memberof google.bigtable.v2 + * @interface IStreamContinuationTokens + * @property {Array.|null} [tokens] StreamContinuationTokens tokens + */ + + /** + * Constructs a new StreamContinuationTokens. + * @memberof google.bigtable.v2 + * @classdesc Represents a StreamContinuationTokens. + * @implements IStreamContinuationTokens + * @constructor + * @param {google.bigtable.v2.IStreamContinuationTokens=} [properties] Properties to set + */ + function StreamContinuationTokens(properties) { + this.tokens = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StreamContinuationTokens tokens. + * @member {Array.} tokens + * @memberof google.bigtable.v2.StreamContinuationTokens + * @instance + */ + StreamContinuationTokens.prototype.tokens = $util.emptyArray; + + /** + * Creates a new StreamContinuationTokens instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {google.bigtable.v2.IStreamContinuationTokens=} [properties] Properties to set + * @returns {google.bigtable.v2.StreamContinuationTokens} StreamContinuationTokens instance + */ + StreamContinuationTokens.create = function create(properties) { + return new StreamContinuationTokens(properties); + }; + + /** + * Encodes the specified StreamContinuationTokens message. Does not implicitly {@link google.bigtable.v2.StreamContinuationTokens.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {google.bigtable.v2.IStreamContinuationTokens} message StreamContinuationTokens message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamContinuationTokens.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tokens != null && message.tokens.length) + for (var i = 0; i < message.tokens.length; ++i) + $root.google.bigtable.v2.StreamContinuationToken.encode(message.tokens[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StreamContinuationTokens message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamContinuationTokens.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {google.bigtable.v2.IStreamContinuationTokens} message StreamContinuationTokens message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamContinuationTokens.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StreamContinuationTokens message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.StreamContinuationTokens} StreamContinuationTokens + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamContinuationTokens.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.StreamContinuationTokens(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.tokens && message.tokens.length)) + message.tokens = []; + message.tokens.push($root.google.bigtable.v2.StreamContinuationToken.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StreamContinuationTokens message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.StreamContinuationTokens} StreamContinuationTokens + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamContinuationTokens.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StreamContinuationTokens message. + * @function verify + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StreamContinuationTokens.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tokens != null && message.hasOwnProperty("tokens")) { + if (!Array.isArray(message.tokens)) + return "tokens: array expected"; + for (var i = 0; i < message.tokens.length; ++i) { + var error = $root.google.bigtable.v2.StreamContinuationToken.verify(message.tokens[i]); + if (error) + return "tokens." + error; + } + } + return null; + }; + + /** + * Creates a StreamContinuationTokens message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.StreamContinuationTokens} StreamContinuationTokens + */ + StreamContinuationTokens.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.StreamContinuationTokens) + return object; + var message = new $root.google.bigtable.v2.StreamContinuationTokens(); + if (object.tokens) { + if (!Array.isArray(object.tokens)) + throw TypeError(".google.bigtable.v2.StreamContinuationTokens.tokens: array expected"); + message.tokens = []; + for (var i = 0; i < object.tokens.length; ++i) { + if (typeof object.tokens[i] !== "object") + throw TypeError(".google.bigtable.v2.StreamContinuationTokens.tokens: object expected"); + message.tokens[i] = $root.google.bigtable.v2.StreamContinuationToken.fromObject(object.tokens[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a StreamContinuationTokens message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {google.bigtable.v2.StreamContinuationTokens} message StreamContinuationTokens + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StreamContinuationTokens.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.tokens = []; + if (message.tokens && message.tokens.length) { + object.tokens = []; + for (var j = 0; j < message.tokens.length; ++j) + object.tokens[j] = $root.google.bigtable.v2.StreamContinuationToken.toObject(message.tokens[j], options); + } + return object; + }; + + /** + * Converts this StreamContinuationTokens to JSON. + * @function toJSON + * @memberof google.bigtable.v2.StreamContinuationTokens + * @instance + * @returns {Object.} JSON object + */ + StreamContinuationTokens.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StreamContinuationTokens + * @function getTypeUrl + * @memberof google.bigtable.v2.StreamContinuationTokens + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StreamContinuationTokens.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.StreamContinuationTokens"; + }; + + return StreamContinuationTokens; + })(); + + v2.StreamContinuationToken = (function() { + + /** + * Properties of a StreamContinuationToken. + * @memberof google.bigtable.v2 + * @interface IStreamContinuationToken + * @property {google.bigtable.v2.IStreamPartition|null} [partition] StreamContinuationToken partition + * @property {string|null} [token] StreamContinuationToken token + */ + + /** + * Constructs a new StreamContinuationToken. + * @memberof google.bigtable.v2 + * @classdesc Represents a StreamContinuationToken. + * @implements IStreamContinuationToken + * @constructor + * @param {google.bigtable.v2.IStreamContinuationToken=} [properties] Properties to set + */ + function StreamContinuationToken(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StreamContinuationToken partition. + * @member {google.bigtable.v2.IStreamPartition|null|undefined} partition + * @memberof google.bigtable.v2.StreamContinuationToken + * @instance + */ + StreamContinuationToken.prototype.partition = null; + + /** + * StreamContinuationToken token. + * @member {string} token + * @memberof google.bigtable.v2.StreamContinuationToken + * @instance + */ + StreamContinuationToken.prototype.token = ""; + + /** + * Creates a new StreamContinuationToken instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {google.bigtable.v2.IStreamContinuationToken=} [properties] Properties to set + * @returns {google.bigtable.v2.StreamContinuationToken} StreamContinuationToken instance + */ + StreamContinuationToken.create = function create(properties) { + return new StreamContinuationToken(properties); + }; + + /** + * Encodes the specified StreamContinuationToken message. Does not implicitly {@link google.bigtable.v2.StreamContinuationToken.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {google.bigtable.v2.IStreamContinuationToken} message StreamContinuationToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamContinuationToken.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.partition != null && Object.hasOwnProperty.call(message, "partition")) + $root.google.bigtable.v2.StreamPartition.encode(message.partition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Encodes the specified StreamContinuationToken message, length delimited. Does not implicitly {@link google.bigtable.v2.StreamContinuationToken.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {google.bigtable.v2.IStreamContinuationToken} message StreamContinuationToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamContinuationToken.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StreamContinuationToken message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.StreamContinuationToken} StreamContinuationToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamContinuationToken.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.StreamContinuationToken(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.partition = $root.google.bigtable.v2.StreamPartition.decode(reader, reader.uint32()); + break; + } + case 2: { + message.token = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StreamContinuationToken message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.StreamContinuationToken} StreamContinuationToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamContinuationToken.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StreamContinuationToken message. + * @function verify + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StreamContinuationToken.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.partition != null && message.hasOwnProperty("partition")) { + var error = $root.google.bigtable.v2.StreamPartition.verify(message.partition); + if (error) + return "partition." + error; + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + /** + * Creates a StreamContinuationToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.StreamContinuationToken} StreamContinuationToken + */ + StreamContinuationToken.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.StreamContinuationToken) + return object; + var message = new $root.google.bigtable.v2.StreamContinuationToken(); + if (object.partition != null) { + if (typeof object.partition !== "object") + throw TypeError(".google.bigtable.v2.StreamContinuationToken.partition: object expected"); + message.partition = $root.google.bigtable.v2.StreamPartition.fromObject(object.partition); + } + if (object.token != null) + message.token = String(object.token); + return message; + }; + + /** + * Creates a plain object from a StreamContinuationToken message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {google.bigtable.v2.StreamContinuationToken} message StreamContinuationToken + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StreamContinuationToken.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.partition = null; + object.token = ""; + } + if (message.partition != null && message.hasOwnProperty("partition")) + object.partition = $root.google.bigtable.v2.StreamPartition.toObject(message.partition, options); + if (message.token != null && message.hasOwnProperty("token")) + object.token = message.token; + return object; + }; + + /** + * Converts this StreamContinuationToken to JSON. + * @function toJSON + * @memberof google.bigtable.v2.StreamContinuationToken + * @instance + * @returns {Object.} JSON object + */ + StreamContinuationToken.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StreamContinuationToken + * @function getTypeUrl + * @memberof google.bigtable.v2.StreamContinuationToken + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StreamContinuationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.StreamContinuationToken"; + }; + + return StreamContinuationToken; + })(); + + v2.ProtoFormat = (function() { + + /** + * Properties of a ProtoFormat. + * @memberof google.bigtable.v2 + * @interface IProtoFormat + */ + + /** + * Constructs a new ProtoFormat. + * @memberof google.bigtable.v2 + * @classdesc Represents a ProtoFormat. + * @implements IProtoFormat + * @constructor + * @param {google.bigtable.v2.IProtoFormat=} [properties] Properties to set + */ + function ProtoFormat(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProtoFormat instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {google.bigtable.v2.IProtoFormat=} [properties] Properties to set + * @returns {google.bigtable.v2.ProtoFormat} ProtoFormat instance + */ + ProtoFormat.create = function create(properties) { + return new ProtoFormat(properties); + }; + + /** + * Encodes the specified ProtoFormat message. Does not implicitly {@link google.bigtable.v2.ProtoFormat.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {google.bigtable.v2.IProtoFormat} message ProtoFormat message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoFormat.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ProtoFormat message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoFormat.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {google.bigtable.v2.IProtoFormat} message ProtoFormat message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoFormat.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProtoFormat message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ProtoFormat} ProtoFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoFormat.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ProtoFormat(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProtoFormat message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ProtoFormat} ProtoFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoFormat.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProtoFormat message. + * @function verify + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProtoFormat.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a ProtoFormat message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ProtoFormat} ProtoFormat + */ + ProtoFormat.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ProtoFormat) + return object; + return new $root.google.bigtable.v2.ProtoFormat(); + }; + + /** + * Creates a plain object from a ProtoFormat message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {google.bigtable.v2.ProtoFormat} message ProtoFormat + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProtoFormat.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ProtoFormat to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ProtoFormat + * @instance + * @returns {Object.} JSON object + */ + ProtoFormat.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProtoFormat + * @function getTypeUrl + * @memberof google.bigtable.v2.ProtoFormat + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProtoFormat.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ProtoFormat"; + }; + + return ProtoFormat; + })(); + + v2.ColumnMetadata = (function() { + + /** + * Properties of a ColumnMetadata. + * @memberof google.bigtable.v2 + * @interface IColumnMetadata + * @property {string|null} [name] ColumnMetadata name + * @property {google.bigtable.v2.IType|null} [type] ColumnMetadata type + */ + + /** + * Constructs a new ColumnMetadata. + * @memberof google.bigtable.v2 + * @classdesc Represents a ColumnMetadata. + * @implements IColumnMetadata + * @constructor + * @param {google.bigtable.v2.IColumnMetadata=} [properties] Properties to set + */ + function ColumnMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ColumnMetadata name. + * @member {string} name + * @memberof google.bigtable.v2.ColumnMetadata + * @instance + */ + ColumnMetadata.prototype.name = ""; + + /** + * ColumnMetadata type. + * @member {google.bigtable.v2.IType|null|undefined} type + * @memberof google.bigtable.v2.ColumnMetadata + * @instance + */ + ColumnMetadata.prototype.type = null; + + /** + * Creates a new ColumnMetadata instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {google.bigtable.v2.IColumnMetadata=} [properties] Properties to set + * @returns {google.bigtable.v2.ColumnMetadata} ColumnMetadata instance + */ + ColumnMetadata.create = function create(properties) { + return new ColumnMetadata(properties); + }; + + /** + * Encodes the specified ColumnMetadata message. Does not implicitly {@link google.bigtable.v2.ColumnMetadata.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {google.bigtable.v2.IColumnMetadata} message ColumnMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ColumnMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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")) + $root.google.bigtable.v2.Type.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ColumnMetadata message, length delimited. Does not implicitly {@link google.bigtable.v2.ColumnMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {google.bigtable.v2.IColumnMetadata} message ColumnMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ColumnMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ColumnMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ColumnMetadata} ColumnMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ColumnMetadata.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ColumnMetadata(); + 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 = $root.google.bigtable.v2.Type.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ColumnMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ColumnMetadata} ColumnMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ColumnMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ColumnMetadata message. + * @function verify + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ColumnMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.google.bigtable.v2.Type.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + /** + * Creates a ColumnMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ColumnMetadata} ColumnMetadata + */ + ColumnMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ColumnMetadata) + return object; + var message = new $root.google.bigtable.v2.ColumnMetadata(); + if (object.name != null) + message.name = String(object.name); + if (object.type != null) { + if (typeof object.type !== "object") + throw TypeError(".google.bigtable.v2.ColumnMetadata.type: object expected"); + message.type = $root.google.bigtable.v2.Type.fromObject(object.type); + } + return message; + }; + + /** + * Creates a plain object from a ColumnMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {google.bigtable.v2.ColumnMetadata} message ColumnMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ColumnMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.type = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = $root.google.bigtable.v2.Type.toObject(message.type, options); + return object; + }; + + /** + * Converts this ColumnMetadata to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ColumnMetadata + * @instance + * @returns {Object.} JSON object + */ + ColumnMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ColumnMetadata + * @function getTypeUrl + * @memberof google.bigtable.v2.ColumnMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ColumnMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ColumnMetadata"; + }; + + return ColumnMetadata; + })(); + + v2.ProtoSchema = (function() { + + /** + * Properties of a ProtoSchema. + * @memberof google.bigtable.v2 + * @interface IProtoSchema + * @property {Array.|null} [columns] ProtoSchema columns + */ + + /** + * Constructs a new ProtoSchema. + * @memberof google.bigtable.v2 + * @classdesc Represents a ProtoSchema. + * @implements IProtoSchema + * @constructor + * @param {google.bigtable.v2.IProtoSchema=} [properties] Properties to set + */ + function ProtoSchema(properties) { + this.columns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProtoSchema columns. + * @member {Array.} columns + * @memberof google.bigtable.v2.ProtoSchema + * @instance + */ + ProtoSchema.prototype.columns = $util.emptyArray; + + /** + * Creates a new ProtoSchema instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {google.bigtable.v2.IProtoSchema=} [properties] Properties to set + * @returns {google.bigtable.v2.ProtoSchema} ProtoSchema instance + */ + ProtoSchema.create = function create(properties) { + return new ProtoSchema(properties); + }; + + /** + * Encodes the specified ProtoSchema message. Does not implicitly {@link google.bigtable.v2.ProtoSchema.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {google.bigtable.v2.IProtoSchema} message ProtoSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.google.bigtable.v2.ColumnMetadata.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ProtoSchema message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {google.bigtable.v2.IProtoSchema} message ProtoSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProtoSchema message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ProtoSchema} ProtoSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoSchema.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ProtoSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.google.bigtable.v2.ColumnMetadata.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProtoSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ProtoSchema} ProtoSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProtoSchema message. + * @function verify + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProtoSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.google.bigtable.v2.ColumnMetadata.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + return null; + }; + + /** + * Creates a ProtoSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ProtoSchema} ProtoSchema + */ + ProtoSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ProtoSchema) + return object; + var message = new $root.google.bigtable.v2.ProtoSchema(); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".google.bigtable.v2.ProtoSchema.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) { + if (typeof object.columns[i] !== "object") + throw TypeError(".google.bigtable.v2.ProtoSchema.columns: object expected"); + message.columns[i] = $root.google.bigtable.v2.ColumnMetadata.fromObject(object.columns[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ProtoSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {google.bigtable.v2.ProtoSchema} message ProtoSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProtoSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.columns = []; + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = $root.google.bigtable.v2.ColumnMetadata.toObject(message.columns[j], options); + } + return object; + }; + + /** + * Converts this ProtoSchema to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ProtoSchema + * @instance + * @returns {Object.} JSON object + */ + ProtoSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProtoSchema + * @function getTypeUrl + * @memberof google.bigtable.v2.ProtoSchema + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProtoSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ProtoSchema"; + }; + + return ProtoSchema; + })(); + + v2.ResultSetMetadata = (function() { + + /** + * Properties of a ResultSetMetadata. + * @memberof google.bigtable.v2 + * @interface IResultSetMetadata + * @property {google.bigtable.v2.IProtoSchema|null} [protoSchema] ResultSetMetadata protoSchema + */ + + /** + * Constructs a new ResultSetMetadata. + * @memberof google.bigtable.v2 + * @classdesc Represents a ResultSetMetadata. + * @implements IResultSetMetadata + * @constructor + * @param {google.bigtable.v2.IResultSetMetadata=} [properties] Properties to set + */ + function ResultSetMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResultSetMetadata protoSchema. + * @member {google.bigtable.v2.IProtoSchema|null|undefined} protoSchema + * @memberof google.bigtable.v2.ResultSetMetadata + * @instance + */ + ResultSetMetadata.prototype.protoSchema = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResultSetMetadata schema. + * @member {"protoSchema"|undefined} schema + * @memberof google.bigtable.v2.ResultSetMetadata + * @instance + */ + Object.defineProperty(ResultSetMetadata.prototype, "schema", { + get: $util.oneOfGetter($oneOfFields = ["protoSchema"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResultSetMetadata instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {google.bigtable.v2.IResultSetMetadata=} [properties] Properties to set + * @returns {google.bigtable.v2.ResultSetMetadata} ResultSetMetadata instance + */ + ResultSetMetadata.create = function create(properties) { + return new ResultSetMetadata(properties); + }; + + /** + * Encodes the specified ResultSetMetadata message. Does not implicitly {@link google.bigtable.v2.ResultSetMetadata.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {google.bigtable.v2.IResultSetMetadata} message ResultSetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResultSetMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.protoSchema != null && Object.hasOwnProperty.call(message, "protoSchema")) + $root.google.bigtable.v2.ProtoSchema.encode(message.protoSchema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ResultSetMetadata message, length delimited. Does not implicitly {@link google.bigtable.v2.ResultSetMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {google.bigtable.v2.IResultSetMetadata} message ResultSetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResultSetMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResultSetMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ResultSetMetadata} ResultSetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResultSetMetadata.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ResultSetMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.protoSchema = $root.google.bigtable.v2.ProtoSchema.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResultSetMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ResultSetMetadata} ResultSetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResultSetMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResultSetMetadata message. + * @function verify + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResultSetMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.protoSchema != null && message.hasOwnProperty("protoSchema")) { + properties.schema = 1; + { + var error = $root.google.bigtable.v2.ProtoSchema.verify(message.protoSchema); + if (error) + return "protoSchema." + error; + } + } + return null; + }; + + /** + * Creates a ResultSetMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ResultSetMetadata} ResultSetMetadata + */ + ResultSetMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ResultSetMetadata) + return object; + var message = new $root.google.bigtable.v2.ResultSetMetadata(); + if (object.protoSchema != null) { + if (typeof object.protoSchema !== "object") + throw TypeError(".google.bigtable.v2.ResultSetMetadata.protoSchema: object expected"); + message.protoSchema = $root.google.bigtable.v2.ProtoSchema.fromObject(object.protoSchema); + } + return message; + }; + + /** + * Creates a plain object from a ResultSetMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {google.bigtable.v2.ResultSetMetadata} message ResultSetMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResultSetMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.protoSchema != null && message.hasOwnProperty("protoSchema")) { + object.protoSchema = $root.google.bigtable.v2.ProtoSchema.toObject(message.protoSchema, options); + if (options.oneofs) + object.schema = "protoSchema"; + } + return object; + }; + + /** + * Converts this ResultSetMetadata to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ResultSetMetadata + * @instance + * @returns {Object.} JSON object + */ + ResultSetMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResultSetMetadata + * @function getTypeUrl + * @memberof google.bigtable.v2.ResultSetMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResultSetMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ResultSetMetadata"; + }; + + return ResultSetMetadata; + })(); + + v2.ProtoRows = (function() { + + /** + * Properties of a ProtoRows. + * @memberof google.bigtable.v2 + * @interface IProtoRows + * @property {Array.|null} [values] ProtoRows values + */ + + /** + * Constructs a new ProtoRows. + * @memberof google.bigtable.v2 + * @classdesc Represents a ProtoRows. + * @implements IProtoRows + * @constructor + * @param {google.bigtable.v2.IProtoRows=} [properties] Properties to set + */ + function ProtoRows(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProtoRows values. + * @member {Array.} values + * @memberof google.bigtable.v2.ProtoRows + * @instance + */ + ProtoRows.prototype.values = $util.emptyArray; + + /** + * Creates a new ProtoRows instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {google.bigtable.v2.IProtoRows=} [properties] Properties to set + * @returns {google.bigtable.v2.ProtoRows} ProtoRows instance + */ + ProtoRows.create = function create(properties) { + return new ProtoRows(properties); + }; + + /** + * Encodes the specified ProtoRows message. Does not implicitly {@link google.bigtable.v2.ProtoRows.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {google.bigtable.v2.IProtoRows} message ProtoRows message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoRows.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.bigtable.v2.Value.encode(message.values[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ProtoRows message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoRows.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {google.bigtable.v2.IProtoRows} message ProtoRows message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoRows.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProtoRows message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ProtoRows} ProtoRows + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoRows.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ProtoRows(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 2: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.bigtable.v2.Value.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProtoRows message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ProtoRows} ProtoRows + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoRows.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProtoRows message. + * @function verify + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProtoRows.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.bigtable.v2.Value.verify(message.values[i]); + if (error) + return "values." + error; + } + } + return null; + }; + + /** + * Creates a ProtoRows message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ProtoRows} ProtoRows + */ + ProtoRows.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ProtoRows) + return object; + var message = new $root.google.bigtable.v2.ProtoRows(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.bigtable.v2.ProtoRows.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".google.bigtable.v2.ProtoRows.values: object expected"); + message.values[i] = $root.google.bigtable.v2.Value.fromObject(object.values[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ProtoRows message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {google.bigtable.v2.ProtoRows} message ProtoRows + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProtoRows.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.google.bigtable.v2.Value.toObject(message.values[j], options); + } + return object; + }; + + /** + * Converts this ProtoRows to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ProtoRows + * @instance + * @returns {Object.} JSON object + */ + ProtoRows.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProtoRows + * @function getTypeUrl + * @memberof google.bigtable.v2.ProtoRows + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProtoRows.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ProtoRows"; + }; + + return ProtoRows; + })(); + + v2.ProtoRowsBatch = (function() { + + /** + * Properties of a ProtoRowsBatch. + * @memberof google.bigtable.v2 + * @interface IProtoRowsBatch + * @property {Uint8Array|null} [batchData] ProtoRowsBatch batchData + */ + + /** + * Constructs a new ProtoRowsBatch. + * @memberof google.bigtable.v2 + * @classdesc Represents a ProtoRowsBatch. + * @implements IProtoRowsBatch + * @constructor + * @param {google.bigtable.v2.IProtoRowsBatch=} [properties] Properties to set + */ + function ProtoRowsBatch(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProtoRowsBatch batchData. + * @member {Uint8Array} batchData + * @memberof google.bigtable.v2.ProtoRowsBatch + * @instance + */ + ProtoRowsBatch.prototype.batchData = $util.newBuffer([]); + + /** + * Creates a new ProtoRowsBatch instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {google.bigtable.v2.IProtoRowsBatch=} [properties] Properties to set + * @returns {google.bigtable.v2.ProtoRowsBatch} ProtoRowsBatch instance + */ + ProtoRowsBatch.create = function create(properties) { + return new ProtoRowsBatch(properties); + }; + + /** + * Encodes the specified ProtoRowsBatch message. Does not implicitly {@link google.bigtable.v2.ProtoRowsBatch.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {google.bigtable.v2.IProtoRowsBatch} message ProtoRowsBatch message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoRowsBatch.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.batchData != null && Object.hasOwnProperty.call(message, "batchData")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.batchData); + return writer; + }; + + /** + * Encodes the specified ProtoRowsBatch message, length delimited. Does not implicitly {@link google.bigtable.v2.ProtoRowsBatch.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {google.bigtable.v2.IProtoRowsBatch} message ProtoRowsBatch message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProtoRowsBatch.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProtoRowsBatch message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.ProtoRowsBatch} ProtoRowsBatch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoRowsBatch.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ProtoRowsBatch(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.batchData = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProtoRowsBatch message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.ProtoRowsBatch} ProtoRowsBatch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProtoRowsBatch.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProtoRowsBatch message. + * @function verify + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProtoRowsBatch.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.batchData != null && message.hasOwnProperty("batchData")) + if (!(message.batchData && typeof message.batchData.length === "number" || $util.isString(message.batchData))) + return "batchData: buffer expected"; + return null; + }; + + /** + * Creates a ProtoRowsBatch message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.ProtoRowsBatch} ProtoRowsBatch + */ + ProtoRowsBatch.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ProtoRowsBatch) + return object; + var message = new $root.google.bigtable.v2.ProtoRowsBatch(); + if (object.batchData != null) + if (typeof object.batchData === "string") + $util.base64.decode(object.batchData, message.batchData = $util.newBuffer($util.base64.length(object.batchData)), 0); + else if (object.batchData.length >= 0) + message.batchData = object.batchData; + return message; + }; + + /** + * Creates a plain object from a ProtoRowsBatch message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {google.bigtable.v2.ProtoRowsBatch} message ProtoRowsBatch + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProtoRowsBatch.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.batchData = ""; + else { + object.batchData = []; + if (options.bytes !== Array) + object.batchData = $util.newBuffer(object.batchData); + } + if (message.batchData != null && message.hasOwnProperty("batchData")) + object.batchData = options.bytes === String ? $util.base64.encode(message.batchData, 0, message.batchData.length) : options.bytes === Array ? Array.prototype.slice.call(message.batchData) : message.batchData; + return object; + }; + + /** + * Converts this ProtoRowsBatch to JSON. + * @function toJSON + * @memberof google.bigtable.v2.ProtoRowsBatch + * @instance + * @returns {Object.} JSON object + */ + ProtoRowsBatch.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ProtoRowsBatch + * @function getTypeUrl + * @memberof google.bigtable.v2.ProtoRowsBatch + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProtoRowsBatch.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.ProtoRowsBatch"; + }; + + return ProtoRowsBatch; + })(); + + v2.PartialResultSet = (function() { + + /** + * Properties of a PartialResultSet. + * @memberof google.bigtable.v2 + * @interface IPartialResultSet + * @property {google.bigtable.v2.IProtoRowsBatch|null} [protoRowsBatch] PartialResultSet protoRowsBatch + * @property {number|null} [batchChecksum] PartialResultSet batchChecksum + * @property {Uint8Array|null} [resumeToken] PartialResultSet resumeToken + * @property {boolean|null} [reset] PartialResultSet reset + * @property {number|null} [estimatedBatchSize] PartialResultSet estimatedBatchSize + */ + + /** + * Constructs a new PartialResultSet. + * @memberof google.bigtable.v2 + * @classdesc Represents a PartialResultSet. + * @implements IPartialResultSet + * @constructor + * @param {google.bigtable.v2.IPartialResultSet=} [properties] Properties to set + */ + function PartialResultSet(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PartialResultSet protoRowsBatch. + * @member {google.bigtable.v2.IProtoRowsBatch|null|undefined} protoRowsBatch + * @memberof google.bigtable.v2.PartialResultSet + * @instance + */ + PartialResultSet.prototype.protoRowsBatch = null; + + /** + * PartialResultSet batchChecksum. + * @member {number|null|undefined} batchChecksum + * @memberof google.bigtable.v2.PartialResultSet + * @instance + */ + PartialResultSet.prototype.batchChecksum = null; + + /** + * PartialResultSet resumeToken. + * @member {Uint8Array} resumeToken + * @memberof google.bigtable.v2.PartialResultSet + * @instance + */ + PartialResultSet.prototype.resumeToken = $util.newBuffer([]); + + /** + * PartialResultSet reset. + * @member {boolean} reset + * @memberof google.bigtable.v2.PartialResultSet + * @instance + */ + PartialResultSet.prototype.reset = false; + + /** + * PartialResultSet estimatedBatchSize. + * @member {number} estimatedBatchSize + * @memberof google.bigtable.v2.PartialResultSet + * @instance + */ + PartialResultSet.prototype.estimatedBatchSize = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PartialResultSet partialRows. + * @member {"protoRowsBatch"|undefined} partialRows + * @memberof google.bigtable.v2.PartialResultSet + * @instance + */ + Object.defineProperty(PartialResultSet.prototype, "partialRows", { + get: $util.oneOfGetter($oneOfFields = ["protoRowsBatch"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PartialResultSet.prototype, "_batchChecksum", { + get: $util.oneOfGetter($oneOfFields = ["batchChecksum"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PartialResultSet instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {google.bigtable.v2.IPartialResultSet=} [properties] Properties to set + * @returns {google.bigtable.v2.PartialResultSet} PartialResultSet instance + */ + PartialResultSet.create = function create(properties) { + return new PartialResultSet(properties); + }; + + /** + * Encodes the specified PartialResultSet message. Does not implicitly {@link google.bigtable.v2.PartialResultSet.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {google.bigtable.v2.IPartialResultSet} message PartialResultSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PartialResultSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.protoRowsBatch != null && Object.hasOwnProperty.call(message, "protoRowsBatch")) + $root.google.bigtable.v2.ProtoRowsBatch.encode(message.protoRowsBatch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.estimatedBatchSize != null && Object.hasOwnProperty.call(message, "estimatedBatchSize")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.estimatedBatchSize); + if (message.resumeToken != null && Object.hasOwnProperty.call(message, "resumeToken")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.resumeToken); + if (message.batchChecksum != null && Object.hasOwnProperty.call(message, "batchChecksum")) + writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.batchChecksum); + if (message.reset != null && Object.hasOwnProperty.call(message, "reset")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.reset); + return writer; + }; + + /** + * Encodes the specified PartialResultSet message, length delimited. Does not implicitly {@link google.bigtable.v2.PartialResultSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {google.bigtable.v2.IPartialResultSet} message PartialResultSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PartialResultSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PartialResultSet message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.PartialResultSet} PartialResultSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PartialResultSet.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.PartialResultSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3: { + message.protoRowsBatch = $root.google.bigtable.v2.ProtoRowsBatch.decode(reader, reader.uint32()); + break; + } + case 6: { + message.batchChecksum = reader.uint32(); + break; + } + case 5: { + message.resumeToken = reader.bytes(); + break; + } + case 7: { + message.reset = reader.bool(); + break; + } + case 4: { + message.estimatedBatchSize = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PartialResultSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.PartialResultSet} PartialResultSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PartialResultSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PartialResultSet message. + * @function verify + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PartialResultSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.protoRowsBatch != null && message.hasOwnProperty("protoRowsBatch")) { + properties.partialRows = 1; + { + var error = $root.google.bigtable.v2.ProtoRowsBatch.verify(message.protoRowsBatch); + if (error) + return "protoRowsBatch." + error; + } + } + if (message.batchChecksum != null && message.hasOwnProperty("batchChecksum")) { + properties._batchChecksum = 1; + if (!$util.isInteger(message.batchChecksum)) + return "batchChecksum: integer expected"; + } + if (message.resumeToken != null && message.hasOwnProperty("resumeToken")) + if (!(message.resumeToken && typeof message.resumeToken.length === "number" || $util.isString(message.resumeToken))) + return "resumeToken: buffer expected"; + if (message.reset != null && message.hasOwnProperty("reset")) + if (typeof message.reset !== "boolean") + return "reset: boolean expected"; + if (message.estimatedBatchSize != null && message.hasOwnProperty("estimatedBatchSize")) + if (!$util.isInteger(message.estimatedBatchSize)) + return "estimatedBatchSize: integer expected"; + return null; + }; + + /** + * Creates a PartialResultSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.PartialResultSet} PartialResultSet + */ + PartialResultSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.PartialResultSet) + return object; + var message = new $root.google.bigtable.v2.PartialResultSet(); + if (object.protoRowsBatch != null) { + if (typeof object.protoRowsBatch !== "object") + throw TypeError(".google.bigtable.v2.PartialResultSet.protoRowsBatch: object expected"); + message.protoRowsBatch = $root.google.bigtable.v2.ProtoRowsBatch.fromObject(object.protoRowsBatch); + } + if (object.batchChecksum != null) + message.batchChecksum = object.batchChecksum >>> 0; + if (object.resumeToken != null) + if (typeof object.resumeToken === "string") + $util.base64.decode(object.resumeToken, message.resumeToken = $util.newBuffer($util.base64.length(object.resumeToken)), 0); + else if (object.resumeToken.length >= 0) + message.resumeToken = object.resumeToken; + if (object.reset != null) + message.reset = Boolean(object.reset); + if (object.estimatedBatchSize != null) + message.estimatedBatchSize = object.estimatedBatchSize | 0; + return message; + }; + + /** + * Creates a plain object from a PartialResultSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {google.bigtable.v2.PartialResultSet} message PartialResultSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PartialResultSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.estimatedBatchSize = 0; + if (options.bytes === String) + object.resumeToken = ""; + else { + object.resumeToken = []; + if (options.bytes !== Array) + object.resumeToken = $util.newBuffer(object.resumeToken); + } + object.reset = false; + } + if (message.protoRowsBatch != null && message.hasOwnProperty("protoRowsBatch")) { + object.protoRowsBatch = $root.google.bigtable.v2.ProtoRowsBatch.toObject(message.protoRowsBatch, options); + if (options.oneofs) + object.partialRows = "protoRowsBatch"; + } + if (message.estimatedBatchSize != null && message.hasOwnProperty("estimatedBatchSize")) + object.estimatedBatchSize = message.estimatedBatchSize; + if (message.resumeToken != null && message.hasOwnProperty("resumeToken")) + object.resumeToken = options.bytes === String ? $util.base64.encode(message.resumeToken, 0, message.resumeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.resumeToken) : message.resumeToken; + if (message.batchChecksum != null && message.hasOwnProperty("batchChecksum")) { + object.batchChecksum = message.batchChecksum; + if (options.oneofs) + object._batchChecksum = "batchChecksum"; + } + if (message.reset != null && message.hasOwnProperty("reset")) + object.reset = message.reset; + return object; + }; + + /** + * Converts this PartialResultSet to JSON. + * @function toJSON + * @memberof google.bigtable.v2.PartialResultSet + * @instance + * @returns {Object.} JSON object + */ + PartialResultSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PartialResultSet + * @function getTypeUrl + * @memberof google.bigtable.v2.PartialResultSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PartialResultSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.PartialResultSet"; + }; + + return PartialResultSet; + })(); + + v2.Idempotency = (function() { + + /** + * Properties of an Idempotency. + * @memberof google.bigtable.v2 + * @interface IIdempotency + * @property {Uint8Array|null} [token] Idempotency token + * @property {google.protobuf.ITimestamp|null} [startTime] Idempotency startTime + */ + + /** + * Constructs a new Idempotency. + * @memberof google.bigtable.v2 + * @classdesc Represents an Idempotency. + * @implements IIdempotency + * @constructor + * @param {google.bigtable.v2.IIdempotency=} [properties] Properties to set + */ + function Idempotency(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Idempotency token. + * @member {Uint8Array} token + * @memberof google.bigtable.v2.Idempotency + * @instance + */ + Idempotency.prototype.token = $util.newBuffer([]); + + /** + * Idempotency startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.bigtable.v2.Idempotency + * @instance + */ + Idempotency.prototype.startTime = null; + + /** + * Creates a new Idempotency instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {google.bigtable.v2.IIdempotency=} [properties] Properties to set + * @returns {google.bigtable.v2.Idempotency} Idempotency instance + */ + Idempotency.create = function create(properties) { + return new Idempotency(properties); + }; + + /** + * Encodes the specified Idempotency message. Does not implicitly {@link google.bigtable.v2.Idempotency.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {google.bigtable.v2.IIdempotency} message Idempotency message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Idempotency.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.token); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Idempotency message, length delimited. Does not implicitly {@link google.bigtable.v2.Idempotency.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {google.bigtable.v2.IIdempotency} message Idempotency message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Idempotency.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Idempotency message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Idempotency} Idempotency + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Idempotency.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Idempotency(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.token = reader.bytes(); + break; + } + case 2: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Idempotency message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Idempotency} Idempotency + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Idempotency.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Idempotency message. + * @function verify + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Idempotency.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!(message.token && typeof message.token.length === "number" || $util.isString(message.token))) + return "token: buffer expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + return null; + }; + + /** + * Creates an Idempotency message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Idempotency} Idempotency + */ + Idempotency.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Idempotency) + return object; + var message = new $root.google.bigtable.v2.Idempotency(); + if (object.token != null) + if (typeof object.token === "string") + $util.base64.decode(object.token, message.token = $util.newBuffer($util.base64.length(object.token)), 0); + else if (object.token.length >= 0) + message.token = object.token; + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.bigtable.v2.Idempotency.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + return message; + }; + + /** + * Creates a plain object from an Idempotency message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {google.bigtable.v2.Idempotency} message Idempotency + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Idempotency.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.token = ""; + else { + object.token = []; + if (options.bytes !== Array) + object.token = $util.newBuffer(object.token); + } + object.startTime = null; + } + if (message.token != null && message.hasOwnProperty("token")) + object.token = options.bytes === String ? $util.base64.encode(message.token, 0, message.token.length) : options.bytes === Array ? Array.prototype.slice.call(message.token) : message.token; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + return object; + }; + + /** + * Converts this Idempotency to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Idempotency + * @instance + * @returns {Object.} JSON object + */ + Idempotency.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Idempotency + * @function getTypeUrl + * @memberof google.bigtable.v2.Idempotency + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Idempotency.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Idempotency"; + }; + + return Idempotency; + })(); + + v2.Type = (function() { + + /** + * Properties of a Type. + * @memberof google.bigtable.v2 + * @interface IType + * @property {google.bigtable.v2.Type.IBytes|null} [bytesType] Type bytesType + * @property {google.bigtable.v2.Type.IString|null} [stringType] Type stringType + * @property {google.bigtable.v2.Type.IInt64|null} [int64Type] Type int64Type + * @property {google.bigtable.v2.Type.IFloat32|null} [float32Type] Type float32Type + * @property {google.bigtable.v2.Type.IFloat64|null} [float64Type] Type float64Type + * @property {google.bigtable.v2.Type.IBool|null} [boolType] Type boolType + * @property {google.bigtable.v2.Type.ITimestamp|null} [timestampType] Type timestampType + * @property {google.bigtable.v2.Type.IDate|null} [dateType] Type dateType + * @property {google.bigtable.v2.Type.IAggregate|null} [aggregateType] Type aggregateType + * @property {google.bigtable.v2.Type.IStruct|null} [structType] Type structType + * @property {google.bigtable.v2.Type.IArray|null} [arrayType] Type arrayType + * @property {google.bigtable.v2.Type.IMap|null} [mapType] Type mapType + * @property {google.bigtable.v2.Type.IProto|null} [protoType] Type protoType + * @property {google.bigtable.v2.Type.IEnum|null} [enumType] Type enumType + */ + + /** + * Constructs a new Type. + * @memberof google.bigtable.v2 + * @classdesc Represents a Type. + * @implements IType + * @constructor + * @param {google.bigtable.v2.IType=} [properties] Properties to set + */ + function Type(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Type bytesType. + * @member {google.bigtable.v2.Type.IBytes|null|undefined} bytesType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.bytesType = null; + + /** + * Type stringType. + * @member {google.bigtable.v2.Type.IString|null|undefined} stringType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.stringType = null; + + /** + * Type int64Type. + * @member {google.bigtable.v2.Type.IInt64|null|undefined} int64Type + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.int64Type = null; + + /** + * Type float32Type. + * @member {google.bigtable.v2.Type.IFloat32|null|undefined} float32Type + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.float32Type = null; + + /** + * Type float64Type. + * @member {google.bigtable.v2.Type.IFloat64|null|undefined} float64Type + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.float64Type = null; + + /** + * Type boolType. + * @member {google.bigtable.v2.Type.IBool|null|undefined} boolType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.boolType = null; + + /** + * Type timestampType. + * @member {google.bigtable.v2.Type.ITimestamp|null|undefined} timestampType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.timestampType = null; + + /** + * Type dateType. + * @member {google.bigtable.v2.Type.IDate|null|undefined} dateType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.dateType = null; + + /** + * Type aggregateType. + * @member {google.bigtable.v2.Type.IAggregate|null|undefined} aggregateType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.aggregateType = null; + + /** + * Type structType. + * @member {google.bigtable.v2.Type.IStruct|null|undefined} structType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.structType = null; + + /** + * Type arrayType. + * @member {google.bigtable.v2.Type.IArray|null|undefined} arrayType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.arrayType = null; + + /** + * Type mapType. + * @member {google.bigtable.v2.Type.IMap|null|undefined} mapType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.mapType = null; + + /** + * Type protoType. + * @member {google.bigtable.v2.Type.IProto|null|undefined} protoType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.protoType = null; + + /** + * Type enumType. + * @member {google.bigtable.v2.Type.IEnum|null|undefined} enumType + * @memberof google.bigtable.v2.Type + * @instance + */ + Type.prototype.enumType = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Type kind. + * @member {"bytesType"|"stringType"|"int64Type"|"float32Type"|"float64Type"|"boolType"|"timestampType"|"dateType"|"aggregateType"|"structType"|"arrayType"|"mapType"|"protoType"|"enumType"|undefined} kind + * @memberof google.bigtable.v2.Type + * @instance + */ + Object.defineProperty(Type.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["bytesType", "stringType", "int64Type", "float32Type", "float64Type", "boolType", "timestampType", "dateType", "aggregateType", "structType", "arrayType", "mapType", "protoType", "enumType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Type instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type + * @static + * @param {google.bigtable.v2.IType=} [properties] Properties to set + * @returns {google.bigtable.v2.Type} Type instance + */ + Type.create = function create(properties) { + return new Type(properties); + }; + + /** + * Encodes the specified Type message. Does not implicitly {@link google.bigtable.v2.Type.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type + * @static + * @param {google.bigtable.v2.IType} message Type message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Type.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bytesType != null && Object.hasOwnProperty.call(message, "bytesType")) + $root.google.bigtable.v2.Type.Bytes.encode(message.bytesType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.stringType != null && Object.hasOwnProperty.call(message, "stringType")) + $root.google.bigtable.v2.Type.String.encode(message.stringType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.arrayType != null && Object.hasOwnProperty.call(message, "arrayType")) + $root.google.bigtable.v2.Type.Array.encode(message.arrayType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mapType != null && Object.hasOwnProperty.call(message, "mapType")) + $root.google.bigtable.v2.Type.Map.encode(message.mapType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.int64Type != null && Object.hasOwnProperty.call(message, "int64Type")) + $root.google.bigtable.v2.Type.Int64.encode(message.int64Type, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.aggregateType != null && Object.hasOwnProperty.call(message, "aggregateType")) + $root.google.bigtable.v2.Type.Aggregate.encode(message.aggregateType, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.structType != null && Object.hasOwnProperty.call(message, "structType")) + $root.google.bigtable.v2.Type.Struct.encode(message.structType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.boolType != null && Object.hasOwnProperty.call(message, "boolType")) + $root.google.bigtable.v2.Type.Bool.encode(message.boolType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.float64Type != null && Object.hasOwnProperty.call(message, "float64Type")) + $root.google.bigtable.v2.Type.Float64.encode(message.float64Type, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.timestampType != null && Object.hasOwnProperty.call(message, "timestampType")) + $root.google.bigtable.v2.Type.Timestamp.encode(message.timestampType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.dateType != null && Object.hasOwnProperty.call(message, "dateType")) + $root.google.bigtable.v2.Type.Date.encode(message.dateType, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.float32Type != null && Object.hasOwnProperty.call(message, "float32Type")) + $root.google.bigtable.v2.Type.Float32.encode(message.float32Type, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.protoType != null && Object.hasOwnProperty.call(message, "protoType")) + $root.google.bigtable.v2.Type.Proto.encode(message.protoType, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType")) + $root.google.bigtable.v2.Type.Enum.encode(message.enumType, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Type message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type + * @static + * @param {google.bigtable.v2.IType} message Type message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Type.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Type message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type} Type + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Type.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.bytesType = $root.google.bigtable.v2.Type.Bytes.decode(reader, reader.uint32()); + break; + } + case 2: { + message.stringType = $root.google.bigtable.v2.Type.String.decode(reader, reader.uint32()); + break; + } + case 5: { + message.int64Type = $root.google.bigtable.v2.Type.Int64.decode(reader, reader.uint32()); + break; + } + case 12: { + message.float32Type = $root.google.bigtable.v2.Type.Float32.decode(reader, reader.uint32()); + break; + } + case 9: { + message.float64Type = $root.google.bigtable.v2.Type.Float64.decode(reader, reader.uint32()); + break; + } + case 8: { + message.boolType = $root.google.bigtable.v2.Type.Bool.decode(reader, reader.uint32()); + break; + } + case 10: { + message.timestampType = $root.google.bigtable.v2.Type.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.dateType = $root.google.bigtable.v2.Type.Date.decode(reader, reader.uint32()); + break; + } + case 6: { + message.aggregateType = $root.google.bigtable.v2.Type.Aggregate.decode(reader, reader.uint32()); + break; + } + case 7: { + message.structType = $root.google.bigtable.v2.Type.Struct.decode(reader, reader.uint32()); + break; + } + case 3: { + message.arrayType = $root.google.bigtable.v2.Type.Array.decode(reader, reader.uint32()); + break; + } + case 4: { + message.mapType = $root.google.bigtable.v2.Type.Map.decode(reader, reader.uint32()); + break; + } + case 13: { + message.protoType = $root.google.bigtable.v2.Type.Proto.decode(reader, reader.uint32()); + break; + } + case 14: { + message.enumType = $root.google.bigtable.v2.Type.Enum.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Type message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type} Type + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Type.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Type message. + * @function verify + * @memberof google.bigtable.v2.Type + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Type.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bytesType != null && message.hasOwnProperty("bytesType")) { + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Bytes.verify(message.bytesType); + if (error) + return "bytesType." + error; + } + } + if (message.stringType != null && message.hasOwnProperty("stringType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.String.verify(message.stringType); + if (error) + return "stringType." + error; + } + } + if (message.int64Type != null && message.hasOwnProperty("int64Type")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Int64.verify(message.int64Type); + if (error) + return "int64Type." + error; + } + } + if (message.float32Type != null && message.hasOwnProperty("float32Type")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Float32.verify(message.float32Type); + if (error) + return "float32Type." + error; + } + } + if (message.float64Type != null && message.hasOwnProperty("float64Type")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Float64.verify(message.float64Type); + if (error) + return "float64Type." + error; + } + } + if (message.boolType != null && message.hasOwnProperty("boolType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Bool.verify(message.boolType); + if (error) + return "boolType." + error; + } + } + if (message.timestampType != null && message.hasOwnProperty("timestampType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Timestamp.verify(message.timestampType); + if (error) + return "timestampType." + error; + } + } + if (message.dateType != null && message.hasOwnProperty("dateType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Date.verify(message.dateType); + if (error) + return "dateType." + error; + } + } + if (message.aggregateType != null && message.hasOwnProperty("aggregateType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Aggregate.verify(message.aggregateType); + if (error) + return "aggregateType." + error; + } + } + if (message.structType != null && message.hasOwnProperty("structType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Struct.verify(message.structType); + if (error) + return "structType." + error; + } + } + if (message.arrayType != null && message.hasOwnProperty("arrayType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Array.verify(message.arrayType); + if (error) + return "arrayType." + error; + } + } + if (message.mapType != null && message.hasOwnProperty("mapType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Map.verify(message.mapType); + if (error) + return "mapType." + error; + } + } + if (message.protoType != null && message.hasOwnProperty("protoType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Proto.verify(message.protoType); + if (error) + return "protoType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.bigtable.v2.Type.Enum.verify(message.enumType); + if (error) + return "enumType." + error; + } + } + return null; + }; + + /** + * Creates a Type message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type} Type + */ + Type.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type) + return object; + var message = new $root.google.bigtable.v2.Type(); + if (object.bytesType != null) { + if (typeof object.bytesType !== "object") + throw TypeError(".google.bigtable.v2.Type.bytesType: object expected"); + message.bytesType = $root.google.bigtable.v2.Type.Bytes.fromObject(object.bytesType); + } + if (object.stringType != null) { + if (typeof object.stringType !== "object") + throw TypeError(".google.bigtable.v2.Type.stringType: object expected"); + message.stringType = $root.google.bigtable.v2.Type.String.fromObject(object.stringType); + } + if (object.int64Type != null) { + if (typeof object.int64Type !== "object") + throw TypeError(".google.bigtable.v2.Type.int64Type: object expected"); + message.int64Type = $root.google.bigtable.v2.Type.Int64.fromObject(object.int64Type); + } + if (object.float32Type != null) { + if (typeof object.float32Type !== "object") + throw TypeError(".google.bigtable.v2.Type.float32Type: object expected"); + message.float32Type = $root.google.bigtable.v2.Type.Float32.fromObject(object.float32Type); + } + if (object.float64Type != null) { + if (typeof object.float64Type !== "object") + throw TypeError(".google.bigtable.v2.Type.float64Type: object expected"); + message.float64Type = $root.google.bigtable.v2.Type.Float64.fromObject(object.float64Type); + } + if (object.boolType != null) { + if (typeof object.boolType !== "object") + throw TypeError(".google.bigtable.v2.Type.boolType: object expected"); + message.boolType = $root.google.bigtable.v2.Type.Bool.fromObject(object.boolType); + } + if (object.timestampType != null) { + if (typeof object.timestampType !== "object") + throw TypeError(".google.bigtable.v2.Type.timestampType: object expected"); + message.timestampType = $root.google.bigtable.v2.Type.Timestamp.fromObject(object.timestampType); + } + if (object.dateType != null) { + if (typeof object.dateType !== "object") + throw TypeError(".google.bigtable.v2.Type.dateType: object expected"); + message.dateType = $root.google.bigtable.v2.Type.Date.fromObject(object.dateType); + } + if (object.aggregateType != null) { + if (typeof object.aggregateType !== "object") + throw TypeError(".google.bigtable.v2.Type.aggregateType: object expected"); + message.aggregateType = $root.google.bigtable.v2.Type.Aggregate.fromObject(object.aggregateType); + } + if (object.structType != null) { + if (typeof object.structType !== "object") + throw TypeError(".google.bigtable.v2.Type.structType: object expected"); + message.structType = $root.google.bigtable.v2.Type.Struct.fromObject(object.structType); + } + if (object.arrayType != null) { + if (typeof object.arrayType !== "object") + throw TypeError(".google.bigtable.v2.Type.arrayType: object expected"); + message.arrayType = $root.google.bigtable.v2.Type.Array.fromObject(object.arrayType); + } + if (object.mapType != null) { + if (typeof object.mapType !== "object") + throw TypeError(".google.bigtable.v2.Type.mapType: object expected"); + message.mapType = $root.google.bigtable.v2.Type.Map.fromObject(object.mapType); + } + if (object.protoType != null) { + if (typeof object.protoType !== "object") + throw TypeError(".google.bigtable.v2.Type.protoType: object expected"); + message.protoType = $root.google.bigtable.v2.Type.Proto.fromObject(object.protoType); + } + if (object.enumType != null) { + if (typeof object.enumType !== "object") + throw TypeError(".google.bigtable.v2.Type.enumType: object expected"); + message.enumType = $root.google.bigtable.v2.Type.Enum.fromObject(object.enumType); + } + return message; + }; + + /** + * Creates a plain object from a Type message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type + * @static + * @param {google.bigtable.v2.Type} message Type + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Type.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.bytesType != null && message.hasOwnProperty("bytesType")) { + object.bytesType = $root.google.bigtable.v2.Type.Bytes.toObject(message.bytesType, options); + if (options.oneofs) + object.kind = "bytesType"; + } + if (message.stringType != null && message.hasOwnProperty("stringType")) { + object.stringType = $root.google.bigtable.v2.Type.String.toObject(message.stringType, options); + if (options.oneofs) + object.kind = "stringType"; + } + if (message.arrayType != null && message.hasOwnProperty("arrayType")) { + object.arrayType = $root.google.bigtable.v2.Type.Array.toObject(message.arrayType, options); + if (options.oneofs) + object.kind = "arrayType"; + } + if (message.mapType != null && message.hasOwnProperty("mapType")) { + object.mapType = $root.google.bigtable.v2.Type.Map.toObject(message.mapType, options); + if (options.oneofs) + object.kind = "mapType"; + } + if (message.int64Type != null && message.hasOwnProperty("int64Type")) { + object.int64Type = $root.google.bigtable.v2.Type.Int64.toObject(message.int64Type, options); + if (options.oneofs) + object.kind = "int64Type"; + } + if (message.aggregateType != null && message.hasOwnProperty("aggregateType")) { + object.aggregateType = $root.google.bigtable.v2.Type.Aggregate.toObject(message.aggregateType, options); + if (options.oneofs) + object.kind = "aggregateType"; + } + if (message.structType != null && message.hasOwnProperty("structType")) { + object.structType = $root.google.bigtable.v2.Type.Struct.toObject(message.structType, options); + if (options.oneofs) + object.kind = "structType"; + } + if (message.boolType != null && message.hasOwnProperty("boolType")) { + object.boolType = $root.google.bigtable.v2.Type.Bool.toObject(message.boolType, options); + if (options.oneofs) + object.kind = "boolType"; + } + if (message.float64Type != null && message.hasOwnProperty("float64Type")) { + object.float64Type = $root.google.bigtable.v2.Type.Float64.toObject(message.float64Type, options); + if (options.oneofs) + object.kind = "float64Type"; + } + if (message.timestampType != null && message.hasOwnProperty("timestampType")) { + object.timestampType = $root.google.bigtable.v2.Type.Timestamp.toObject(message.timestampType, options); + if (options.oneofs) + object.kind = "timestampType"; + } + if (message.dateType != null && message.hasOwnProperty("dateType")) { + object.dateType = $root.google.bigtable.v2.Type.Date.toObject(message.dateType, options); + if (options.oneofs) + object.kind = "dateType"; + } + if (message.float32Type != null && message.hasOwnProperty("float32Type")) { + object.float32Type = $root.google.bigtable.v2.Type.Float32.toObject(message.float32Type, options); + if (options.oneofs) + object.kind = "float32Type"; + } + if (message.protoType != null && message.hasOwnProperty("protoType")) { + object.protoType = $root.google.bigtable.v2.Type.Proto.toObject(message.protoType, options); + if (options.oneofs) + object.kind = "protoType"; + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + object.enumType = $root.google.bigtable.v2.Type.Enum.toObject(message.enumType, options); + if (options.oneofs) + object.kind = "enumType"; + } + return object; + }; + + /** + * Converts this Type to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type + * @instance + * @returns {Object.} JSON object + */ + Type.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Type + * @function getTypeUrl + * @memberof google.bigtable.v2.Type + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Type.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type"; + }; + + Type.Bytes = (function() { + + /** + * Properties of a Bytes. + * @memberof google.bigtable.v2.Type + * @interface IBytes + * @property {google.bigtable.v2.Type.Bytes.IEncoding|null} [encoding] Bytes encoding + */ + + /** + * Constructs a new Bytes. + * @memberof google.bigtable.v2.Type + * @classdesc Represents a Bytes. + * @implements IBytes + * @constructor + * @param {google.bigtable.v2.Type.IBytes=} [properties] Properties to set + */ + function Bytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Bytes encoding. + * @member {google.bigtable.v2.Type.Bytes.IEncoding|null|undefined} encoding + * @memberof google.bigtable.v2.Type.Bytes + * @instance + */ + Bytes.prototype.encoding = null; + + /** + * Creates a new Bytes instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {google.bigtable.v2.Type.IBytes=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Bytes} Bytes instance + */ + Bytes.create = function create(properties) { + return new Bytes(properties); + }; + + /** + * Encodes the specified Bytes message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {google.bigtable.v2.Type.IBytes} message Bytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Bytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + $root.google.bigtable.v2.Type.Bytes.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Bytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {google.bigtable.v2.Type.IBytes} message Bytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Bytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Bytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Bytes} Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Bytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Bytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.encoding = $root.google.bigtable.v2.Type.Bytes.Encoding.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Bytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Bytes} Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Bytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Bytes message. + * @function verify + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Bytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.encoding != null && message.hasOwnProperty("encoding")) { + var error = $root.google.bigtable.v2.Type.Bytes.Encoding.verify(message.encoding); + if (error) + return "encoding." + error; + } + return null; + }; + + /** + * Creates a Bytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Bytes} Bytes + */ + Bytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Bytes) + return object; + var message = new $root.google.bigtable.v2.Type.Bytes(); + if (object.encoding != null) { + if (typeof object.encoding !== "object") + throw TypeError(".google.bigtable.v2.Type.Bytes.encoding: object expected"); + message.encoding = $root.google.bigtable.v2.Type.Bytes.Encoding.fromObject(object.encoding); + } + return message; + }; + + /** + * Creates a plain object from a Bytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {google.bigtable.v2.Type.Bytes} message Bytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Bytes.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.encoding = null; + if (message.encoding != null && message.hasOwnProperty("encoding")) + object.encoding = $root.google.bigtable.v2.Type.Bytes.Encoding.toObject(message.encoding, options); + return object; + }; + + /** + * Converts this Bytes to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Bytes + * @instance + * @returns {Object.} JSON object + */ + Bytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Bytes + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Bytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Bytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Bytes"; + }; + + Bytes.Encoding = (function() { + + /** + * Properties of an Encoding. + * @memberof google.bigtable.v2.Type.Bytes + * @interface IEncoding + * @property {google.bigtable.v2.Type.Bytes.Encoding.IRaw|null} [raw] Encoding raw + */ + + /** + * Constructs a new Encoding. + * @memberof google.bigtable.v2.Type.Bytes + * @classdesc Represents an Encoding. + * @implements IEncoding + * @constructor + * @param {google.bigtable.v2.Type.Bytes.IEncoding=} [properties] Properties to set + */ + function Encoding(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Encoding raw. + * @member {google.bigtable.v2.Type.Bytes.Encoding.IRaw|null|undefined} raw + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @instance + */ + Encoding.prototype.raw = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Encoding encoding. + * @member {"raw"|undefined} encoding + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @instance + */ + Object.defineProperty(Encoding.prototype, "encoding", { + get: $util.oneOfGetter($oneOfFields = ["raw"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Encoding instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {google.bigtable.v2.Type.Bytes.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Bytes.Encoding} Encoding instance + */ + Encoding.create = function create(properties) { + return new Encoding(properties); + }; + + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {google.bigtable.v2.Type.Bytes.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.raw != null && Object.hasOwnProperty.call(message, "raw")) + $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.encode(message.raw, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {google.bigtable.v2.Type.Bytes.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Encoding message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Bytes.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Bytes.Encoding(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.raw = $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Bytes.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Encoding message. + * @function verify + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Encoding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.raw != null && message.hasOwnProperty("raw")) { + properties.encoding = 1; + { + var error = $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.verify(message.raw); + if (error) + return "raw." + error; + } + } + return null; + }; + + /** + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Bytes.Encoding} Encoding + */ + Encoding.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Bytes.Encoding) + return object; + var message = new $root.google.bigtable.v2.Type.Bytes.Encoding(); + if (object.raw != null) { + if (typeof object.raw !== "object") + throw TypeError(".google.bigtable.v2.Type.Bytes.Encoding.raw: object expected"); + message.raw = $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.fromObject(object.raw); + } + return message; + }; + + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {google.bigtable.v2.Type.Bytes.Encoding} message Encoding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Encoding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.raw != null && message.hasOwnProperty("raw")) { + object.raw = $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.toObject(message.raw, options); + if (options.oneofs) + object.encoding = "raw"; + } + return object; + }; + + /** + * Converts this Encoding to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @instance + * @returns {Object.} JSON object + */ + Encoding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Encoding + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Bytes.Encoding"; + }; + + Encoding.Raw = (function() { + + /** + * Properties of a Raw. + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @interface IRaw + * @property {boolean|null} [escapeNulls] Raw escapeNulls + */ + + /** + * Constructs a new Raw. + * @memberof google.bigtable.v2.Type.Bytes.Encoding + * @classdesc Represents a Raw. + * @implements IRaw + * @constructor + * @param {google.bigtable.v2.Type.Bytes.Encoding.IRaw=} [properties] Properties to set + */ + function Raw(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Raw escapeNulls. + * @member {boolean} escapeNulls + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @instance + */ + Raw.prototype.escapeNulls = false; + + /** + * Creates a new Raw instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {google.bigtable.v2.Type.Bytes.Encoding.IRaw=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Bytes.Encoding.Raw} Raw instance + */ + Raw.create = function create(properties) { + return new Raw(properties); + }; + + /** + * Encodes the specified Raw message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {google.bigtable.v2.Type.Bytes.Encoding.IRaw} message Raw message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Raw.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.escapeNulls != null && Object.hasOwnProperty.call(message, "escapeNulls")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.escapeNulls); + return writer; + }; + + /** + * Encodes the specified Raw message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {google.bigtable.v2.Type.Bytes.Encoding.IRaw} message Raw message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Raw.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Raw message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Bytes.Encoding.Raw} Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Raw.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Bytes.Encoding.Raw(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.escapeNulls = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Raw message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Bytes.Encoding.Raw} Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Raw.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Raw message. + * @function verify + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Raw.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.escapeNulls != null && message.hasOwnProperty("escapeNulls")) + if (typeof message.escapeNulls !== "boolean") + return "escapeNulls: boolean expected"; + return null; + }; + + /** + * Creates a Raw message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Bytes.Encoding.Raw} Raw + */ + Raw.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Bytes.Encoding.Raw) + return object; + var message = new $root.google.bigtable.v2.Type.Bytes.Encoding.Raw(); + if (object.escapeNulls != null) + message.escapeNulls = Boolean(object.escapeNulls); + return message; + }; + + /** + * Creates a plain object from a Raw message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {google.bigtable.v2.Type.Bytes.Encoding.Raw} message Raw + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Raw.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.escapeNulls = false; + if (message.escapeNulls != null && message.hasOwnProperty("escapeNulls")) + object.escapeNulls = message.escapeNulls; + return object; + }; + + /** + * Converts this Raw to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @instance + * @returns {Object.} JSON object + */ + Raw.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Raw + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Raw.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Bytes.Encoding.Raw"; + }; + + return Raw; + })(); + + return Encoding; + })(); + + return Bytes; + })(); + + Type.String = (function() { + + /** + * Properties of a String. + * @memberof google.bigtable.v2.Type + * @interface IString + * @property {google.bigtable.v2.Type.String.IEncoding|null} [encoding] String encoding + */ + + /** + * Constructs a new String. + * @memberof google.bigtable.v2.Type + * @classdesc Represents a String. + * @implements IString + * @constructor + * @param {google.bigtable.v2.Type.IString=} [properties] Properties to set + */ + function String(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * String encoding. + * @member {google.bigtable.v2.Type.String.IEncoding|null|undefined} encoding + * @memberof google.bigtable.v2.Type.String + * @instance + */ + String.prototype.encoding = null; + + /** + * Creates a new String instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.String + * @static + * @param {google.bigtable.v2.Type.IString=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.String} String instance + */ + String.create = function create(properties) { + return new String(properties); + }; + + /** + * Encodes the specified String message. Does not implicitly {@link google.bigtable.v2.Type.String.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.String + * @static + * @param {google.bigtable.v2.Type.IString} message String message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + String.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + $root.google.bigtable.v2.Type.String.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified String message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.String + * @static + * @param {google.bigtable.v2.Type.IString} message String message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + String.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a String message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.String + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.String} String + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + String.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.String(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.encoding = $root.google.bigtable.v2.Type.String.Encoding.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a String message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.String + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.String} String + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + String.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a String message. + * @function verify + * @memberof google.bigtable.v2.Type.String + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + String.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.encoding != null && message.hasOwnProperty("encoding")) { + var error = $root.google.bigtable.v2.Type.String.Encoding.verify(message.encoding); + if (error) + return "encoding." + error; + } + return null; + }; + + /** + * Creates a String message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.String + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.String} String + */ + String.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.String) + return object; + var message = new $root.google.bigtable.v2.Type.String(); + if (object.encoding != null) { + if (typeof object.encoding !== "object") + throw TypeError(".google.bigtable.v2.Type.String.encoding: object expected"); + message.encoding = $root.google.bigtable.v2.Type.String.Encoding.fromObject(object.encoding); + } + return message; + }; + + /** + * Creates a plain object from a String message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.String + * @static + * @param {google.bigtable.v2.Type.String} message String + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + String.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.encoding = null; + if (message.encoding != null && message.hasOwnProperty("encoding")) + object.encoding = $root.google.bigtable.v2.Type.String.Encoding.toObject(message.encoding, options); + return object; + }; + + /** + * Converts this String to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.String + * @instance + * @returns {Object.} JSON object + */ + String.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for String + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.String + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + String.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.String"; + }; + + String.Encoding = (function() { + + /** + * Properties of an Encoding. + * @memberof google.bigtable.v2.Type.String + * @interface IEncoding + * @property {google.bigtable.v2.Type.String.Encoding.IUtf8Raw|null} [utf8Raw] Encoding utf8Raw + * @property {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes|null} [utf8Bytes] Encoding utf8Bytes + */ + + /** + * Constructs a new Encoding. + * @memberof google.bigtable.v2.Type.String + * @classdesc Represents an Encoding. + * @implements IEncoding + * @constructor + * @param {google.bigtable.v2.Type.String.IEncoding=} [properties] Properties to set + */ + function Encoding(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Encoding utf8Raw. + * @member {google.bigtable.v2.Type.String.Encoding.IUtf8Raw|null|undefined} utf8Raw + * @memberof google.bigtable.v2.Type.String.Encoding + * @instance + */ + Encoding.prototype.utf8Raw = null; + + /** + * Encoding utf8Bytes. + * @member {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes|null|undefined} utf8Bytes + * @memberof google.bigtable.v2.Type.String.Encoding + * @instance + */ + Encoding.prototype.utf8Bytes = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Encoding encoding. + * @member {"utf8Raw"|"utf8Bytes"|undefined} encoding + * @memberof google.bigtable.v2.Type.String.Encoding + * @instance + */ + Object.defineProperty(Encoding.prototype, "encoding", { + get: $util.oneOfGetter($oneOfFields = ["utf8Raw", "utf8Bytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Encoding instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {google.bigtable.v2.Type.String.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.String.Encoding} Encoding instance + */ + Encoding.create = function create(properties) { + return new Encoding(properties); + }; + + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {google.bigtable.v2.Type.String.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.utf8Raw != null && Object.hasOwnProperty.call(message, "utf8Raw")) + $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.encode(message.utf8Raw, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.utf8Bytes != null && Object.hasOwnProperty.call(message, "utf8Bytes")) + $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.encode(message.utf8Bytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {google.bigtable.v2.Type.String.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Encoding message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.String.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.String.Encoding(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.utf8Raw = $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.decode(reader, reader.uint32()); + break; + } + case 2: { + message.utf8Bytes = $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.String.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Encoding message. + * @function verify + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Encoding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.utf8Raw != null && message.hasOwnProperty("utf8Raw")) { + properties.encoding = 1; + { + var error = $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify(message.utf8Raw); + if (error) + return "utf8Raw." + error; + } + } + if (message.utf8Bytes != null && message.hasOwnProperty("utf8Bytes")) { + if (properties.encoding === 1) + return "encoding: multiple values"; + properties.encoding = 1; + { + var error = $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify(message.utf8Bytes); + if (error) + return "utf8Bytes." + error; + } + } + return null; + }; + + /** + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.String.Encoding} Encoding + */ + Encoding.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.String.Encoding) + return object; + var message = new $root.google.bigtable.v2.Type.String.Encoding(); + if (object.utf8Raw != null) { + if (typeof object.utf8Raw !== "object") + throw TypeError(".google.bigtable.v2.Type.String.Encoding.utf8Raw: object expected"); + message.utf8Raw = $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.fromObject(object.utf8Raw); + } + if (object.utf8Bytes != null) { + if (typeof object.utf8Bytes !== "object") + throw TypeError(".google.bigtable.v2.Type.String.Encoding.utf8Bytes: object expected"); + message.utf8Bytes = $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.fromObject(object.utf8Bytes); + } + return message; + }; + + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {google.bigtable.v2.Type.String.Encoding} message Encoding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Encoding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.utf8Raw != null && message.hasOwnProperty("utf8Raw")) { + object.utf8Raw = $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.toObject(message.utf8Raw, options); + if (options.oneofs) + object.encoding = "utf8Raw"; + } + if (message.utf8Bytes != null && message.hasOwnProperty("utf8Bytes")) { + object.utf8Bytes = $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.toObject(message.utf8Bytes, options); + if (options.oneofs) + object.encoding = "utf8Bytes"; + } + return object; + }; + + /** + * Converts this Encoding to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.String.Encoding + * @instance + * @returns {Object.} JSON object + */ + Encoding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Encoding + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.String.Encoding + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.String.Encoding"; + }; + + Encoding.Utf8Raw = (function() { + + /** + * Properties of an Utf8Raw. + * @memberof google.bigtable.v2.Type.String.Encoding + * @interface IUtf8Raw + */ + + /** + * Constructs a new Utf8Raw. + * @memberof google.bigtable.v2.Type.String.Encoding + * @classdesc Represents an Utf8Raw. + * @implements IUtf8Raw + * @constructor + * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Raw=} [properties] Properties to set + */ + function Utf8Raw(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new Utf8Raw instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Raw=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Raw} Utf8Raw instance + */ + Utf8Raw.create = function create(properties) { + return new Utf8Raw(properties); + }; + + /** + * Encodes the specified Utf8Raw message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Raw} message Utf8Raw message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Utf8Raw.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified Utf8Raw message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Raw} message Utf8Raw message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Utf8Raw.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Utf8Raw message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Raw} Utf8Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Utf8Raw.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Utf8Raw message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Raw} Utf8Raw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Utf8Raw.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Utf8Raw message. + * @function verify + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Utf8Raw.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an Utf8Raw message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Raw} Utf8Raw + */ + Utf8Raw.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw) + return object; + return new $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw(); + }; + + /** + * Creates a plain object from an Utf8Raw message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {google.bigtable.v2.Type.String.Encoding.Utf8Raw} message Utf8Raw + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Utf8Raw.toObject = function toObject() { + return {}; + }; + + /** + * Converts this Utf8Raw to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @instance + * @returns {Object.} JSON object + */ + Utf8Raw.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Utf8Raw + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Utf8Raw.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.String.Encoding.Utf8Raw"; + }; + + return Utf8Raw; + })(); + + Encoding.Utf8Bytes = (function() { + + /** + * Properties of an Utf8Bytes. + * @memberof google.bigtable.v2.Type.String.Encoding + * @interface IUtf8Bytes + * @property {string|null} [nullEscapeChar] Utf8Bytes nullEscapeChar + */ + + /** + * Constructs a new Utf8Bytes. + * @memberof google.bigtable.v2.Type.String.Encoding + * @classdesc Represents an Utf8Bytes. + * @implements IUtf8Bytes + * @constructor + * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes=} [properties] Properties to set + */ + function Utf8Bytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Utf8Bytes nullEscapeChar. + * @member {string} nullEscapeChar + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @instance + */ + Utf8Bytes.prototype.nullEscapeChar = ""; + + /** + * Creates a new Utf8Bytes instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes instance + */ + Utf8Bytes.create = function create(properties) { + return new Utf8Bytes(properties); + }; + + /** + * Encodes the specified Utf8Bytes message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes} message Utf8Bytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Utf8Bytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nullEscapeChar != null && Object.hasOwnProperty.call(message, "nullEscapeChar")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nullEscapeChar); + return writer; + }; + + /** + * Encodes the specified Utf8Bytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes} message Utf8Bytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Utf8Bytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Utf8Bytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Utf8Bytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.nullEscapeChar = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Utf8Bytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Utf8Bytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Utf8Bytes message. + * @function verify + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Utf8Bytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nullEscapeChar != null && message.hasOwnProperty("nullEscapeChar")) + if (!$util.isString(message.nullEscapeChar)) + return "nullEscapeChar: string expected"; + return null; + }; + + /** + * Creates an Utf8Bytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes + */ + Utf8Bytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes) + return object; + var message = new $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes(); + if (object.nullEscapeChar != null) + message.nullEscapeChar = String(object.nullEscapeChar); + return message; + }; + + /** + * Creates a plain object from an Utf8Bytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} message Utf8Bytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Utf8Bytes.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.nullEscapeChar = ""; + if (message.nullEscapeChar != null && message.hasOwnProperty("nullEscapeChar")) + object.nullEscapeChar = message.nullEscapeChar; + return object; + }; + + /** + * Converts this Utf8Bytes to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @instance + * @returns {Object.} JSON object + */ + Utf8Bytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Utf8Bytes + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Utf8Bytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.String.Encoding.Utf8Bytes"; + }; + + return Utf8Bytes; + })(); + + return Encoding; + })(); + + return String; + })(); + + Type.Int64 = (function() { + + /** + * Properties of an Int64. + * @memberof google.bigtable.v2.Type + * @interface IInt64 + * @property {google.bigtable.v2.Type.Int64.IEncoding|null} [encoding] Int64 encoding + */ + + /** + * Constructs a new Int64. + * @memberof google.bigtable.v2.Type + * @classdesc Represents an Int64. + * @implements IInt64 + * @constructor + * @param {google.bigtable.v2.Type.IInt64=} [properties] Properties to set + */ + function Int64(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Int64 encoding. + * @member {google.bigtable.v2.Type.Int64.IEncoding|null|undefined} encoding + * @memberof google.bigtable.v2.Type.Int64 + * @instance + */ + Int64.prototype.encoding = null; + + /** + * Creates a new Int64 instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {google.bigtable.v2.Type.IInt64=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Int64} Int64 instance + */ + Int64.create = function create(properties) { + return new Int64(properties); + }; + + /** + * Encodes the specified Int64 message. Does not implicitly {@link google.bigtable.v2.Type.Int64.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {google.bigtable.v2.Type.IInt64} message Int64 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int64.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + $root.google.bigtable.v2.Type.Int64.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Int64 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {google.bigtable.v2.Type.IInt64} message Int64 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int64.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Int64 message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Int64} Int64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int64.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Int64(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.encoding = $root.google.bigtable.v2.Type.Int64.Encoding.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Int64 message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Int64} Int64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int64.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Int64 message. + * @function verify + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int64.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.encoding != null && message.hasOwnProperty("encoding")) { + var error = $root.google.bigtable.v2.Type.Int64.Encoding.verify(message.encoding); + if (error) + return "encoding." + error; + } + return null; + }; + + /** + * Creates an Int64 message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Int64} Int64 + */ + Int64.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Int64) + return object; + var message = new $root.google.bigtable.v2.Type.Int64(); + if (object.encoding != null) { + if (typeof object.encoding !== "object") + throw TypeError(".google.bigtable.v2.Type.Int64.encoding: object expected"); + message.encoding = $root.google.bigtable.v2.Type.Int64.Encoding.fromObject(object.encoding); + } + return message; + }; + + /** + * Creates a plain object from an Int64 message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {google.bigtable.v2.Type.Int64} message Int64 + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Int64.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.encoding = null; + if (message.encoding != null && message.hasOwnProperty("encoding")) + object.encoding = $root.google.bigtable.v2.Type.Int64.Encoding.toObject(message.encoding, options); + return object; + }; + + /** + * Converts this Int64 to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Int64 + * @instance + * @returns {Object.} JSON object + */ + Int64.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Int64 + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Int64 + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Int64.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Int64"; + }; + + Int64.Encoding = (function() { + + /** + * Properties of an Encoding. + * @memberof google.bigtable.v2.Type.Int64 + * @interface IEncoding + * @property {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes|null} [bigEndianBytes] Encoding bigEndianBytes + * @property {google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes|null} [orderedCodeBytes] Encoding orderedCodeBytes + */ + + /** + * Constructs a new Encoding. + * @memberof google.bigtable.v2.Type.Int64 + * @classdesc Represents an Encoding. + * @implements IEncoding + * @constructor + * @param {google.bigtable.v2.Type.Int64.IEncoding=} [properties] Properties to set + */ + function Encoding(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Encoding bigEndianBytes. + * @member {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes|null|undefined} bigEndianBytes + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @instance + */ + Encoding.prototype.bigEndianBytes = null; + + /** + * Encoding orderedCodeBytes. + * @member {google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes|null|undefined} orderedCodeBytes + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @instance + */ + Encoding.prototype.orderedCodeBytes = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Encoding encoding. + * @member {"bigEndianBytes"|"orderedCodeBytes"|undefined} encoding + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @instance + */ + Object.defineProperty(Encoding.prototype, "encoding", { + get: $util.oneOfGetter($oneOfFields = ["bigEndianBytes", "orderedCodeBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Encoding instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {google.bigtable.v2.Type.Int64.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Int64.Encoding} Encoding instance + */ + Encoding.create = function create(properties) { + return new Encoding(properties); + }; + + /** + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {google.bigtable.v2.Type.Int64.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bigEndianBytes != null && Object.hasOwnProperty.call(message, "bigEndianBytes")) + $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.encode(message.bigEndianBytes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.orderedCodeBytes != null && Object.hasOwnProperty.call(message, "orderedCodeBytes")) + $root.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.encode(message.orderedCodeBytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {google.bigtable.v2.Type.Int64.IEncoding} message Encoding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Encoding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Encoding message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Int64.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Int64.Encoding(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.bigEndianBytes = $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.decode(reader, reader.uint32()); + break; + } + case 2: { + message.orderedCodeBytes = $root.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Encoding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Int64.Encoding} Encoding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Encoding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Encoding message. + * @function verify + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Encoding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bigEndianBytes != null && message.hasOwnProperty("bigEndianBytes")) { + properties.encoding = 1; + { + var error = $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify(message.bigEndianBytes); + if (error) + return "bigEndianBytes." + error; + } + } + if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { + if (properties.encoding === 1) + return "encoding: multiple values"; + properties.encoding = 1; + { + var error = $root.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.verify(message.orderedCodeBytes); + if (error) + return "orderedCodeBytes." + error; + } + } + return null; + }; + + /** + * Creates an Encoding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Int64.Encoding} Encoding + */ + Encoding.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Int64.Encoding) + return object; + var message = new $root.google.bigtable.v2.Type.Int64.Encoding(); + if (object.bigEndianBytes != null) { + if (typeof object.bigEndianBytes !== "object") + throw TypeError(".google.bigtable.v2.Type.Int64.Encoding.bigEndianBytes: object expected"); + message.bigEndianBytes = $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.fromObject(object.bigEndianBytes); + } + if (object.orderedCodeBytes != null) { + if (typeof object.orderedCodeBytes !== "object") + throw TypeError(".google.bigtable.v2.Type.Int64.Encoding.orderedCodeBytes: object expected"); + message.orderedCodeBytes = $root.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.fromObject(object.orderedCodeBytes); + } + return message; + }; + + /** + * Creates a plain object from an Encoding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding} message Encoding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Encoding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.bigEndianBytes != null && message.hasOwnProperty("bigEndianBytes")) { + object.bigEndianBytes = $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.toObject(message.bigEndianBytes, options); + if (options.oneofs) + object.encoding = "bigEndianBytes"; + } + if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { + object.orderedCodeBytes = $root.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.toObject(message.orderedCodeBytes, options); + if (options.oneofs) + object.encoding = "orderedCodeBytes"; + } + return object; + }; + + /** + * Converts this Encoding to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @instance + * @returns {Object.} JSON object + */ + Encoding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Encoding + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Int64.Encoding"; + }; + + Encoding.BigEndianBytes = (function() { + + /** + * Properties of a BigEndianBytes. + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @interface IBigEndianBytes + * @property {google.bigtable.v2.Type.IBytes|null} [bytesType] BigEndianBytes bytesType + */ + + /** + * Constructs a new BigEndianBytes. + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @classdesc Represents a BigEndianBytes. + * @implements IBigEndianBytes + * @constructor + * @param {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes=} [properties] Properties to set + */ + function BigEndianBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BigEndianBytes bytesType. + * @member {google.bigtable.v2.Type.IBytes|null|undefined} bytesType + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @instance + */ + BigEndianBytes.prototype.bytesType = null; + + /** + * Creates a new BigEndianBytes instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes instance + */ + BigEndianBytes.create = function create(properties) { + return new BigEndianBytes(properties); + }; + + /** + * Encodes the specified BigEndianBytes message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes} message BigEndianBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigEndianBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bytesType != null && Object.hasOwnProperty.call(message, "bytesType")) + $root.google.bigtable.v2.Type.Bytes.encode(message.bytesType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BigEndianBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes} message BigEndianBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigEndianBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BigEndianBytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigEndianBytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.bytesType = $root.google.bigtable.v2.Type.Bytes.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BigEndianBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigEndianBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BigEndianBytes message. + * @function verify + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigEndianBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bytesType != null && message.hasOwnProperty("bytesType")) { + var error = $root.google.bigtable.v2.Type.Bytes.verify(message.bytesType); + if (error) + return "bytesType." + error; + } + return null; + }; + + /** + * Creates a BigEndianBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes + */ + BigEndianBytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes) + return object; + var message = new $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes(); + if (object.bytesType != null) { + if (typeof object.bytesType !== "object") + throw TypeError(".google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.bytesType: object expected"); + message.bytesType = $root.google.bigtable.v2.Type.Bytes.fromObject(object.bytesType); + } + return message; + }; + + /** + * Creates a plain object from a BigEndianBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} message BigEndianBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigEndianBytes.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.bytesType = null; + if (message.bytesType != null && message.hasOwnProperty("bytesType")) + object.bytesType = $root.google.bigtable.v2.Type.Bytes.toObject(message.bytesType, options); + return object; + }; + + /** + * Converts this BigEndianBytes to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @instance + * @returns {Object.} JSON object + */ + BigEndianBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BigEndianBytes + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BigEndianBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes"; + }; + + return BigEndianBytes; + })(); + + Encoding.OrderedCodeBytes = (function() { + + /** + * Properties of an OrderedCodeBytes. + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @interface IOrderedCodeBytes + */ + + /** + * Constructs a new OrderedCodeBytes. + * @memberof google.bigtable.v2.Type.Int64.Encoding + * @classdesc Represents an OrderedCodeBytes. + * @implements IOrderedCodeBytes + * @constructor + * @param {google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes=} [properties] Properties to set + */ + function OrderedCodeBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new OrderedCodeBytes instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes instance + */ + OrderedCodeBytes.create = function create(properties) { + return new OrderedCodeBytes(properties); + }; + + /** + * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrderedCodeBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrderedCodeBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrderedCodeBytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrderedCodeBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OrderedCodeBytes message. + * @function verify + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OrderedCodeBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes} OrderedCodeBytes + */ + OrderedCodeBytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes) + return object; + return new $root.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes(); + }; + + /** + * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes} message OrderedCodeBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OrderedCodeBytes.toObject = function toObject() { + return {}; + }; + + /** + * Converts this OrderedCodeBytes to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @instance + * @returns {Object.} JSON object + */ + OrderedCodeBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Type - * @function getTypeUrl - * @memberof google.bigtable.v2.Type - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Type.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type"; - }; + /** + * Gets the default type url for OrderedCodeBytes + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OrderedCodeBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes"; + }; - Type.Bytes = (function() { + return OrderedCodeBytes; + })(); + + return Encoding; + })(); + + return Int64; + })(); + + Type.Bool = (function() { /** - * Properties of a Bytes. + * Properties of a Bool. * @memberof google.bigtable.v2.Type - * @interface IBytes - * @property {google.bigtable.v2.Type.Bytes.IEncoding|null} [encoding] Bytes encoding + * @interface IBool */ /** - * Constructs a new Bytes. + * Constructs a new Bool. * @memberof google.bigtable.v2.Type - * @classdesc Represents a Bytes. - * @implements IBytes + * @classdesc Represents a Bool. + * @implements IBool * @constructor - * @param {google.bigtable.v2.Type.IBytes=} [properties] Properties to set + * @param {google.bigtable.v2.Type.IBool=} [properties] Properties to set */ - function Bytes(properties) { + function Bool(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61543,79 +67517,65 @@ } /** - * Bytes encoding. - * @member {google.bigtable.v2.Type.Bytes.IEncoding|null|undefined} encoding - * @memberof google.bigtable.v2.Type.Bytes - * @instance - */ - Bytes.prototype.encoding = null; - - /** - * Creates a new Bytes instance using the specified properties. + * Creates a new Bool instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static - * @param {google.bigtable.v2.Type.IBytes=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Bytes} Bytes instance + * @param {google.bigtable.v2.Type.IBool=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Bool} Bool instance */ - Bytes.create = function create(properties) { - return new Bytes(properties); + Bool.create = function create(properties) { + return new Bool(properties); }; /** - * Encodes the specified Bytes message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.verify|verify} messages. + * Encodes the specified Bool message. Does not implicitly {@link google.bigtable.v2.Type.Bool.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static - * @param {google.bigtable.v2.Type.IBytes} message Bytes message or plain object to encode + * @param {google.bigtable.v2.Type.IBool} message Bool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Bytes.encode = function encode(message, writer) { + Bool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - $root.google.bigtable.v2.Type.Bytes.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Bytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.verify|verify} messages. + * Encodes the specified Bool message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bool.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static - * @param {google.bigtable.v2.Type.IBytes} message Bytes message or plain object to encode + * @param {google.bigtable.v2.Type.IBool} message Bool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Bytes.encodeDelimited = function encodeDelimited(message, writer) { + Bool.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Bytes message from the specified reader or buffer. + * Decodes a Bool message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Bytes} Bytes + * @returns {google.bigtable.v2.Type.Bool} Bool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Bytes.decode = function decode(reader, length, error) { + Bool.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Bytes(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Bool(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 1: { - message.encoding = $root.google.bigtable.v2.Type.Bytes.Encoding.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -61625,533 +67585,463 @@ }; /** - * Decodes a Bytes message from the specified reader or buffer, length delimited. + * Decodes a Bool message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Bytes} Bytes + * @returns {google.bigtable.v2.Type.Bool} Bool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Bytes.decodeDelimited = function decodeDelimited(reader) { + Bool.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Bytes message. + * Verifies a Bool message. * @function verify - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Bytes.verify = function verify(message) { + Bool.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.encoding != null && message.hasOwnProperty("encoding")) { - var error = $root.google.bigtable.v2.Type.Bytes.Encoding.verify(message.encoding); - if (error) - return "encoding." + error; - } return null; }; /** - * Creates a Bytes message from a plain object. Also converts values to their respective internal types. + * Creates a Bool message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Bytes} Bytes + * @returns {google.bigtable.v2.Type.Bool} Bool */ - Bytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Bytes) + Bool.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Bool) return object; - var message = new $root.google.bigtable.v2.Type.Bytes(); - if (object.encoding != null) { - if (typeof object.encoding !== "object") - throw TypeError(".google.bigtable.v2.Type.Bytes.encoding: object expected"); - message.encoding = $root.google.bigtable.v2.Type.Bytes.Encoding.fromObject(object.encoding); - } - return message; + return new $root.google.bigtable.v2.Type.Bool(); }; /** - * Creates a plain object from a Bytes message. Also converts values to other types if specified. + * Creates a plain object from a Bool message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static - * @param {google.bigtable.v2.Type.Bytes} message Bytes + * @param {google.bigtable.v2.Type.Bool} message Bool * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Bytes.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.encoding = null; - if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = $root.google.bigtable.v2.Type.Bytes.Encoding.toObject(message.encoding, options); - return object; + Bool.toObject = function toObject() { + return {}; }; /** - * Converts this Bytes to JSON. + * Converts this Bool to JSON. * @function toJSON - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @instance * @returns {Object.} JSON object */ - Bytes.prototype.toJSON = function toJSON() { + Bool.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Bytes + * Gets the default type url for Bool * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Bytes + * @memberof google.bigtable.v2.Type.Bool * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Bytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Bool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Type.Bytes"; + return typeUrlPrefix + "/google.bigtable.v2.Type.Bool"; }; - Bytes.Encoding = (function() { - - /** - * Properties of an Encoding. - * @memberof google.bigtable.v2.Type.Bytes - * @interface IEncoding - * @property {google.bigtable.v2.Type.Bytes.Encoding.IRaw|null} [raw] Encoding raw - */ - - /** - * Constructs a new Encoding. - * @memberof google.bigtable.v2.Type.Bytes - * @classdesc Represents an Encoding. - * @implements IEncoding - * @constructor - * @param {google.bigtable.v2.Type.Bytes.IEncoding=} [properties] Properties to set - */ - function Encoding(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return Bool; + })(); - /** - * Encoding raw. - * @member {google.bigtable.v2.Type.Bytes.Encoding.IRaw|null|undefined} raw - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @instance - */ - Encoding.prototype.raw = null; + Type.Float32 = (function() { - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Properties of a Float32. + * @memberof google.bigtable.v2.Type + * @interface IFloat32 + */ - /** - * Encoding encoding. - * @member {"raw"|undefined} encoding - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @instance - */ - Object.defineProperty(Encoding.prototype, "encoding", { - get: $util.oneOfGetter($oneOfFields = ["raw"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Constructs a new Float32. + * @memberof google.bigtable.v2.Type + * @classdesc Represents a Float32. + * @implements IFloat32 + * @constructor + * @param {google.bigtable.v2.Type.IFloat32=} [properties] Properties to set + */ + function Float32(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new Encoding instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {google.bigtable.v2.Type.Bytes.IEncoding=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Bytes.Encoding} Encoding instance - */ - Encoding.create = function create(properties) { - return new Encoding(properties); - }; + /** + * Creates a new Float32 instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {google.bigtable.v2.Type.IFloat32=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Float32} Float32 instance + */ + Float32.create = function create(properties) { + return new Float32(properties); + }; - /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {google.bigtable.v2.Type.Bytes.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.raw != null && Object.hasOwnProperty.call(message, "raw")) - $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.encode(message.raw, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Float32 message. Does not implicitly {@link google.bigtable.v2.Type.Float32.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {google.bigtable.v2.Type.IFloat32} message Float32 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Float32.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {google.bigtable.v2.Type.Bytes.IEncoding} message Encoding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Encoding.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Float32 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Float32.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {google.bigtable.v2.Type.IFloat32} message Float32 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Float32.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an Encoding message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Bytes.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Bytes.Encoding(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.raw = $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a Float32 message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Float32} Float32 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Float32.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Float32(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes an Encoding message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Bytes.Encoding} Encoding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Encoding.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an Encoding message. - * @function verify - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Encoding.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.raw != null && message.hasOwnProperty("raw")) { - properties.encoding = 1; - { - var error = $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.verify(message.raw); - if (error) - return "raw." + error; - } - } - return null; - }; + /** + * Decodes a Float32 message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Float32} Float32 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Float32.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an Encoding message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Bytes.Encoding} Encoding - */ - Encoding.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Bytes.Encoding) - return object; - var message = new $root.google.bigtable.v2.Type.Bytes.Encoding(); - if (object.raw != null) { - if (typeof object.raw !== "object") - throw TypeError(".google.bigtable.v2.Type.Bytes.Encoding.raw: object expected"); - message.raw = $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.fromObject(object.raw); - } - return message; - }; + /** + * Verifies a Float32 message. + * @function verify + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Float32.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a plain object from an Encoding message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {google.bigtable.v2.Type.Bytes.Encoding} message Encoding - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Encoding.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.raw != null && message.hasOwnProperty("raw")) { - object.raw = $root.google.bigtable.v2.Type.Bytes.Encoding.Raw.toObject(message.raw, options); - if (options.oneofs) - object.encoding = "raw"; - } + /** + * Creates a Float32 message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Float32} Float32 + */ + Float32.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Float32) return object; - }; - - /** - * Converts this Encoding to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @instance - * @returns {Object.} JSON object - */ - Encoding.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return new $root.google.bigtable.v2.Type.Float32(); + }; - /** - * Gets the default type url for Encoding - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Encoding.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.Bytes.Encoding"; - }; + /** + * Creates a plain object from a Float32 message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {google.bigtable.v2.Type.Float32} message Float32 + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Float32.toObject = function toObject() { + return {}; + }; - Encoding.Raw = (function() { + /** + * Converts this Float32 to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Float32 + * @instance + * @returns {Object.} JSON object + */ + Float32.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a Raw. - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @interface IRaw - */ + /** + * Gets the default type url for Float32 + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Float32 + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Float32.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Float32"; + }; - /** - * Constructs a new Raw. - * @memberof google.bigtable.v2.Type.Bytes.Encoding - * @classdesc Represents a Raw. - * @implements IRaw - * @constructor - * @param {google.bigtable.v2.Type.Bytes.Encoding.IRaw=} [properties] Properties to set - */ - function Raw(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return Float32; + })(); - /** - * Creates a new Raw instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {google.bigtable.v2.Type.Bytes.Encoding.IRaw=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Bytes.Encoding.Raw} Raw instance - */ - Raw.create = function create(properties) { - return new Raw(properties); - }; + Type.Float64 = (function() { - /** - * Encodes the specified Raw message. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {google.bigtable.v2.Type.Bytes.Encoding.IRaw} message Raw message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Raw.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Properties of a Float64. + * @memberof google.bigtable.v2.Type + * @interface IFloat64 + */ - /** - * Encodes the specified Raw message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bytes.Encoding.Raw.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {google.bigtable.v2.Type.Bytes.Encoding.IRaw} message Raw message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Raw.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new Float64. + * @memberof google.bigtable.v2.Type + * @classdesc Represents a Float64. + * @implements IFloat64 + * @constructor + * @param {google.bigtable.v2.Type.IFloat64=} [properties] Properties to set + */ + function Float64(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a Raw message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Bytes.Encoding.Raw} Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Raw.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Bytes.Encoding.Raw(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new Float64 instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {google.bigtable.v2.Type.IFloat64=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Float64} Float64 instance + */ + Float64.create = function create(properties) { + return new Float64(properties); + }; - /** - * Decodes a Raw message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Bytes.Encoding.Raw} Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Raw.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified Float64 message. Does not implicitly {@link google.bigtable.v2.Type.Float64.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {google.bigtable.v2.Type.IFloat64} message Float64 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Float64.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Verifies a Raw message. - * @function verify - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Raw.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Encodes the specified Float64 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Float64.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {google.bigtable.v2.Type.IFloat64} message Float64 message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Float64.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a Raw message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Bytes.Encoding.Raw} Raw - */ - Raw.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Bytes.Encoding.Raw) - return object; - return new $root.google.bigtable.v2.Type.Bytes.Encoding.Raw(); - }; + /** + * Decodes a Float64 message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Float64} Float64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Float64.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Float64(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a Raw message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {google.bigtable.v2.Type.Bytes.Encoding.Raw} message Raw - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Raw.toObject = function toObject() { - return {}; - }; + /** + * Decodes a Float64 message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Float64} Float64 + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Float64.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this Raw to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @instance - * @returns {Object.} JSON object - */ - Raw.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a Float64 message. + * @function verify + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Float64.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Gets the default type url for Raw - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Bytes.Encoding.Raw - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Raw.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.Bytes.Encoding.Raw"; - }; + /** + * Creates a Float64 message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Float64} Float64 + */ + Float64.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Float64) + return object; + return new $root.google.bigtable.v2.Type.Float64(); + }; - return Raw; - })(); + /** + * Creates a plain object from a Float64 message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {google.bigtable.v2.Type.Float64} message Float64 + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Float64.toObject = function toObject() { + return {}; + }; - return Encoding; - })(); + /** + * Converts this Float64 to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Float64 + * @instance + * @returns {Object.} JSON object + */ + Float64.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Bytes; + /** + * Gets the default type url for Float64 + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Float64 + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Float64.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Float64"; + }; + + return Float64; })(); - Type.String = (function() { + Type.Timestamp = (function() { /** - * Properties of a String. + * Properties of a Timestamp. * @memberof google.bigtable.v2.Type - * @interface IString - * @property {google.bigtable.v2.Type.String.IEncoding|null} [encoding] String encoding + * @interface ITimestamp + * @property {google.bigtable.v2.Type.Timestamp.IEncoding|null} [encoding] Timestamp encoding */ /** - * Constructs a new String. + * Constructs a new Timestamp. * @memberof google.bigtable.v2.Type - * @classdesc Represents a String. - * @implements IString + * @classdesc Represents a Timestamp. + * @implements ITimestamp * @constructor - * @param {google.bigtable.v2.Type.IString=} [properties] Properties to set + * @param {google.bigtable.v2.Type.ITimestamp=} [properties] Properties to set */ - function String(properties) { + function Timestamp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62159,77 +68049,77 @@ } /** - * String encoding. - * @member {google.bigtable.v2.Type.String.IEncoding|null|undefined} encoding - * @memberof google.bigtable.v2.Type.String + * Timestamp encoding. + * @member {google.bigtable.v2.Type.Timestamp.IEncoding|null|undefined} encoding + * @memberof google.bigtable.v2.Type.Timestamp * @instance */ - String.prototype.encoding = null; + Timestamp.prototype.encoding = null; /** - * Creates a new String instance using the specified properties. + * Creates a new Timestamp instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static - * @param {google.bigtable.v2.Type.IString=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.String} String instance + * @param {google.bigtable.v2.Type.ITimestamp=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Timestamp} Timestamp instance */ - String.create = function create(properties) { - return new String(properties); + Timestamp.create = function create(properties) { + return new Timestamp(properties); }; /** - * Encodes the specified String message. Does not implicitly {@link google.bigtable.v2.Type.String.verify|verify} messages. + * Encodes the specified Timestamp message. Does not implicitly {@link google.bigtable.v2.Type.Timestamp.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static - * @param {google.bigtable.v2.Type.IString} message String message or plain object to encode + * @param {google.bigtable.v2.Type.ITimestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - String.encode = function encode(message, writer) { + Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - $root.google.bigtable.v2.Type.String.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.bigtable.v2.Type.Timestamp.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified String message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.verify|verify} messages. + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Timestamp.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static - * @param {google.bigtable.v2.Type.IString} message String message or plain object to encode + * @param {google.bigtable.v2.Type.ITimestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - String.encodeDelimited = function encodeDelimited(message, writer) { + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a String message from the specified reader or buffer. + * Decodes a Timestamp message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.String} String + * @returns {google.bigtable.v2.Type.Timestamp} Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - String.decode = function decode(reader, length, error) { + Timestamp.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.String(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Timestamp(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.encoding = $root.google.bigtable.v2.Type.String.Encoding.decode(reader, reader.uint32()); + message.encoding = $root.google.bigtable.v2.Type.Timestamp.Encoding.decode(reader, reader.uint32()); break; } default: @@ -62241,34 +68131,34 @@ }; /** - * Decodes a String message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.String} String + * @returns {google.bigtable.v2.Type.Timestamp} Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - String.decodeDelimited = function decodeDelimited(reader) { + Timestamp.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a String message. + * Verifies a Timestamp message. * @function verify - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - String.verify = function verify(message) { + Timestamp.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.encoding != null && message.hasOwnProperty("encoding")) { - var error = $root.google.bigtable.v2.Type.String.Encoding.verify(message.encoding); + var error = $root.google.bigtable.v2.Type.Timestamp.Encoding.verify(message.encoding); if (error) return "encoding." + error; } @@ -62276,163 +68166,152 @@ }; /** - * Creates a String message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.String} String + * @returns {google.bigtable.v2.Type.Timestamp} Timestamp */ - String.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.String) + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Timestamp) return object; - var message = new $root.google.bigtable.v2.Type.String(); + var message = new $root.google.bigtable.v2.Type.Timestamp(); if (object.encoding != null) { if (typeof object.encoding !== "object") - throw TypeError(".google.bigtable.v2.Type.String.encoding: object expected"); - message.encoding = $root.google.bigtable.v2.Type.String.Encoding.fromObject(object.encoding); + throw TypeError(".google.bigtable.v2.Type.Timestamp.encoding: object expected"); + message.encoding = $root.google.bigtable.v2.Type.Timestamp.Encoding.fromObject(object.encoding); } return message; }; /** - * Creates a plain object from a String message. Also converts values to other types if specified. + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static - * @param {google.bigtable.v2.Type.String} message String + * @param {google.bigtable.v2.Type.Timestamp} message Timestamp * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - String.toObject = function toObject(message, options) { + Timestamp.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) object.encoding = null; if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = $root.google.bigtable.v2.Type.String.Encoding.toObject(message.encoding, options); + object.encoding = $root.google.bigtable.v2.Type.Timestamp.Encoding.toObject(message.encoding, options); return object; }; /** - * Converts this String to JSON. + * Converts this Timestamp to JSON. * @function toJSON - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @instance * @returns {Object.} JSON object */ - String.prototype.toJSON = function toJSON() { + Timestamp.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for String + * Gets the default type url for Timestamp * @function getTypeUrl - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - String.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Type.String"; + return typeUrlPrefix + "/google.bigtable.v2.Type.Timestamp"; }; - String.Encoding = (function() { + Timestamp.Encoding = (function() { /** * Properties of an Encoding. - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @interface IEncoding - * @property {google.bigtable.v2.Type.String.Encoding.IUtf8Raw|null} [utf8Raw] Encoding utf8Raw - * @property {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes|null} [utf8Bytes] Encoding utf8Bytes + * @property {google.bigtable.v2.Type.Int64.IEncoding|null} [unixMicrosInt64] Encoding unixMicrosInt64 */ /** * Constructs a new Encoding. - * @memberof google.bigtable.v2.Type.String + * @memberof google.bigtable.v2.Type.Timestamp * @classdesc Represents an Encoding. * @implements IEncoding * @constructor - * @param {google.bigtable.v2.Type.String.IEncoding=} [properties] Properties to set - */ - function Encoding(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Encoding utf8Raw. - * @member {google.bigtable.v2.Type.String.Encoding.IUtf8Raw|null|undefined} utf8Raw - * @memberof google.bigtable.v2.Type.String.Encoding - * @instance + * @param {google.bigtable.v2.Type.Timestamp.IEncoding=} [properties] Properties to set */ - Encoding.prototype.utf8Raw = null; + function Encoding(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Encoding utf8Bytes. - * @member {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes|null|undefined} utf8Bytes - * @memberof google.bigtable.v2.Type.String.Encoding + * Encoding unixMicrosInt64. + * @member {google.bigtable.v2.Type.Int64.IEncoding|null|undefined} unixMicrosInt64 + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @instance */ - Encoding.prototype.utf8Bytes = null; + Encoding.prototype.unixMicrosInt64 = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * Encoding encoding. - * @member {"utf8Raw"|"utf8Bytes"|undefined} encoding - * @memberof google.bigtable.v2.Type.String.Encoding + * @member {"unixMicrosInt64"|undefined} encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @instance */ Object.defineProperty(Encoding.prototype, "encoding", { - get: $util.oneOfGetter($oneOfFields = ["utf8Raw", "utf8Bytes"]), + get: $util.oneOfGetter($oneOfFields = ["unixMicrosInt64"]), set: $util.oneOfSetter($oneOfFields) }); /** * Creates a new Encoding instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static - * @param {google.bigtable.v2.Type.String.IEncoding=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.String.Encoding} Encoding instance + * @param {google.bigtable.v2.Type.Timestamp.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Timestamp.Encoding} Encoding instance */ Encoding.create = function create(properties) { return new Encoding(properties); }; /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.verify|verify} messages. + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Timestamp.Encoding.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static - * @param {google.bigtable.v2.Type.String.IEncoding} message Encoding message or plain object to encode + * @param {google.bigtable.v2.Type.Timestamp.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Encoding.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.utf8Raw != null && Object.hasOwnProperty.call(message, "utf8Raw")) - $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.encode(message.utf8Raw, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.utf8Bytes != null && Object.hasOwnProperty.call(message, "utf8Bytes")) - $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.encode(message.utf8Bytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.unixMicrosInt64 != null && Object.hasOwnProperty.call(message, "unixMicrosInt64")) + $root.google.bigtable.v2.Type.Int64.Encoding.encode(message.unixMicrosInt64, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.verify|verify} messages. + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Timestamp.Encoding.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static - * @param {google.bigtable.v2.Type.String.IEncoding} message Encoding message or plain object to encode + * @param {google.bigtable.v2.Type.Timestamp.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -62443,29 +68322,25 @@ /** * Decodes an Encoding message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.String.Encoding} Encoding + * @returns {google.bigtable.v2.Type.Timestamp.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Encoding.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.String.Encoding(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Timestamp.Encoding(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.utf8Raw = $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.decode(reader, reader.uint32()); - break; - } - case 2: { - message.utf8Bytes = $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.decode(reader, reader.uint32()); + message.unixMicrosInt64 = $root.google.bigtable.v2.Type.Int64.Encoding.decode(reader, reader.uint32()); break; } default: @@ -62479,10 +68354,10 @@ /** * Decodes an Encoding message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.String.Encoding} Encoding + * @returns {google.bigtable.v2.Type.Timestamp.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -62495,7 +68370,7 @@ /** * Verifies an Encoding message. * @function verify - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -62504,22 +68379,12 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.utf8Raw != null && message.hasOwnProperty("utf8Raw")) { - properties.encoding = 1; - { - var error = $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify(message.utf8Raw); - if (error) - return "utf8Raw." + error; - } - } - if (message.utf8Bytes != null && message.hasOwnProperty("utf8Bytes")) { - if (properties.encoding === 1) - return "encoding: multiple values"; + if (message.unixMicrosInt64 != null && message.hasOwnProperty("unixMicrosInt64")) { properties.encoding = 1; { - var error = $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify(message.utf8Bytes); + var error = $root.google.bigtable.v2.Type.Int64.Encoding.verify(message.unixMicrosInt64); if (error) - return "utf8Bytes." + error; + return "unixMicrosInt64." + error; } } return null; @@ -62528,24 +68393,19 @@ /** * Creates an Encoding message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.String.Encoding} Encoding + * @returns {google.bigtable.v2.Type.Timestamp.Encoding} Encoding */ Encoding.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.String.Encoding) + if (object instanceof $root.google.bigtable.v2.Type.Timestamp.Encoding) return object; - var message = new $root.google.bigtable.v2.Type.String.Encoding(); - if (object.utf8Raw != null) { - if (typeof object.utf8Raw !== "object") - throw TypeError(".google.bigtable.v2.Type.String.Encoding.utf8Raw: object expected"); - message.utf8Raw = $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.fromObject(object.utf8Raw); - } - if (object.utf8Bytes != null) { - if (typeof object.utf8Bytes !== "object") - throw TypeError(".google.bigtable.v2.Type.String.Encoding.utf8Bytes: object expected"); - message.utf8Bytes = $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.fromObject(object.utf8Bytes); + var message = new $root.google.bigtable.v2.Type.Timestamp.Encoding(); + if (object.unixMicrosInt64 != null) { + if (typeof object.unixMicrosInt64 !== "object") + throw TypeError(".google.bigtable.v2.Type.Timestamp.Encoding.unixMicrosInt64: object expected"); + message.unixMicrosInt64 = $root.google.bigtable.v2.Type.Int64.Encoding.fromObject(object.unixMicrosInt64); } return message; }; @@ -62553,9 +68413,9 @@ /** * Creates a plain object from an Encoding message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static - * @param {google.bigtable.v2.Type.String.Encoding} message Encoding + * @param {google.bigtable.v2.Type.Timestamp.Encoding} message Encoding * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -62563,15 +68423,10 @@ if (!options) options = {}; var object = {}; - if (message.utf8Raw != null && message.hasOwnProperty("utf8Raw")) { - object.utf8Raw = $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw.toObject(message.utf8Raw, options); - if (options.oneofs) - object.encoding = "utf8Raw"; - } - if (message.utf8Bytes != null && message.hasOwnProperty("utf8Bytes")) { - object.utf8Bytes = $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes.toObject(message.utf8Bytes, options); + if (message.unixMicrosInt64 != null && message.hasOwnProperty("unixMicrosInt64")) { + object.unixMicrosInt64 = $root.google.bigtable.v2.Type.Int64.Encoding.toObject(message.unixMicrosInt64, options); if (options.oneofs) - object.encoding = "utf8Bytes"; + object.encoding = "unixMicrosInt64"; } return object; }; @@ -62579,7 +68434,7 @@ /** * Converts this Encoding to JSON. * @function toJSON - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @instance * @returns {Object.} JSON object */ @@ -62590,7 +68445,7 @@ /** * Gets the default type url for Encoding * @function getTypeUrl - * @memberof google.bigtable.v2.Type.String.Encoding + * @memberof google.bigtable.v2.Type.Timestamp.Encoding * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -62599,387 +68454,212 @@ if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Type.String.Encoding"; + return typeUrlPrefix + "/google.bigtable.v2.Type.Timestamp.Encoding"; }; - Encoding.Utf8Raw = (function() { - - /** - * Properties of an Utf8Raw. - * @memberof google.bigtable.v2.Type.String.Encoding - * @interface IUtf8Raw - */ - - /** - * Constructs a new Utf8Raw. - * @memberof google.bigtable.v2.Type.String.Encoding - * @classdesc Represents an Utf8Raw. - * @implements IUtf8Raw - * @constructor - * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Raw=} [properties] Properties to set - */ - function Utf8Raw(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new Utf8Raw instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Raw=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Raw} Utf8Raw instance - */ - Utf8Raw.create = function create(properties) { - return new Utf8Raw(properties); - }; - - /** - * Encodes the specified Utf8Raw message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Raw} message Utf8Raw message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Utf8Raw.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified Utf8Raw message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Raw.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Raw} message Utf8Raw message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Utf8Raw.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Utf8Raw message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Raw} Utf8Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Utf8Raw.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Utf8Raw message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Raw} Utf8Raw - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Utf8Raw.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Utf8Raw message. - * @function verify - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Utf8Raw.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + return Encoding; + })(); - /** - * Creates an Utf8Raw message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Raw} Utf8Raw - */ - Utf8Raw.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw) - return object; - return new $root.google.bigtable.v2.Type.String.Encoding.Utf8Raw(); - }; + return Timestamp; + })(); - /** - * Creates a plain object from an Utf8Raw message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {google.bigtable.v2.Type.String.Encoding.Utf8Raw} message Utf8Raw - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Utf8Raw.toObject = function toObject() { - return {}; - }; + Type.Date = (function() { - /** - * Converts this Utf8Raw to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @instance - * @returns {Object.} JSON object - */ - Utf8Raw.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a Date. + * @memberof google.bigtable.v2.Type + * @interface IDate + */ - /** - * Gets the default type url for Utf8Raw - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Raw - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Utf8Raw.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.String.Encoding.Utf8Raw"; - }; + /** + * Constructs a new Date. + * @memberof google.bigtable.v2.Type + * @classdesc Represents a Date. + * @implements IDate + * @constructor + * @param {google.bigtable.v2.Type.IDate=} [properties] Properties to set + */ + function Date(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return Utf8Raw; - })(); + /** + * Creates a new Date instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {google.bigtable.v2.Type.IDate=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Date} Date instance + */ + Date.create = function create(properties) { + return new Date(properties); + }; - Encoding.Utf8Bytes = (function() { + /** + * Encodes the specified Date message. Does not implicitly {@link google.bigtable.v2.Type.Date.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {google.bigtable.v2.Type.IDate} message Date message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Date.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Properties of an Utf8Bytes. - * @memberof google.bigtable.v2.Type.String.Encoding - * @interface IUtf8Bytes - */ + /** + * Encodes the specified Date message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Date.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {google.bigtable.v2.Type.IDate} message Date message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Date.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new Utf8Bytes. - * @memberof google.bigtable.v2.Type.String.Encoding - * @classdesc Represents an Utf8Bytes. - * @implements IUtf8Bytes - * @constructor - * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes=} [properties] Properties to set - */ - function Utf8Bytes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Decodes a Date message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Date} Date + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Date.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Date(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * Creates a new Utf8Bytes instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes instance - */ - Utf8Bytes.create = function create(properties) { - return new Utf8Bytes(properties); - }; - - /** - * Encodes the specified Utf8Bytes message. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes} message Utf8Bytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Utf8Bytes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified Utf8Bytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.String.Encoding.Utf8Bytes.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {google.bigtable.v2.Type.String.Encoding.IUtf8Bytes} message Utf8Bytes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Utf8Bytes.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Utf8Bytes message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Utf8Bytes.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Utf8Bytes message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Utf8Bytes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Utf8Bytes message. - * @function verify - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Utf8Bytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an Utf8Bytes message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} Utf8Bytes - */ - Utf8Bytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes) - return object; - return new $root.google.bigtable.v2.Type.String.Encoding.Utf8Bytes(); - }; - - /** - * Creates a plain object from an Utf8Bytes message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {google.bigtable.v2.Type.String.Encoding.Utf8Bytes} message Utf8Bytes - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Utf8Bytes.toObject = function toObject() { - return {}; - }; + /** + * Decodes a Date message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Date} Date + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Date.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this Utf8Bytes to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @instance - * @returns {Object.} JSON object - */ - Utf8Bytes.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a Date message. + * @function verify + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Date.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Gets the default type url for Utf8Bytes - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.String.Encoding.Utf8Bytes - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Utf8Bytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.String.Encoding.Utf8Bytes"; - }; + /** + * Creates a Date message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Date} Date + */ + Date.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Date) + return object; + return new $root.google.bigtable.v2.Type.Date(); + }; - return Utf8Bytes; - })(); + /** + * Creates a plain object from a Date message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {google.bigtable.v2.Type.Date} message Date + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Date.toObject = function toObject() { + return {}; + }; - return Encoding; - })(); + /** + * Converts this Date to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Date + * @instance + * @returns {Object.} JSON object + */ + Date.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return String; + /** + * Gets the default type url for Date + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Date + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Date.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Date"; + }; + + return Date; })(); - Type.Int64 = (function() { + Type.Struct = (function() { /** - * Properties of an Int64. + * Properties of a Struct. * @memberof google.bigtable.v2.Type - * @interface IInt64 - * @property {google.bigtable.v2.Type.Int64.IEncoding|null} [encoding] Int64 encoding + * @interface IStruct + * @property {Array.|null} [fields] Struct fields + * @property {google.bigtable.v2.Type.Struct.IEncoding|null} [encoding] Struct encoding */ /** - * Constructs a new Int64. + * Constructs a new Struct. * @memberof google.bigtable.v2.Type - * @classdesc Represents an Int64. - * @implements IInt64 + * @classdesc Represents a Struct. + * @implements IStruct * @constructor - * @param {google.bigtable.v2.Type.IInt64=} [properties] Properties to set + * @param {google.bigtable.v2.Type.IStruct=} [properties] Properties to set */ - function Int64(properties) { + function Struct(properties) { + this.fields = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62987,77 +68667,94 @@ } /** - * Int64 encoding. - * @member {google.bigtable.v2.Type.Int64.IEncoding|null|undefined} encoding - * @memberof google.bigtable.v2.Type.Int64 + * Struct fields. + * @member {Array.} fields + * @memberof google.bigtable.v2.Type.Struct * @instance */ - Int64.prototype.encoding = null; + Struct.prototype.fields = $util.emptyArray; /** - * Creates a new Int64 instance using the specified properties. + * Struct encoding. + * @member {google.bigtable.v2.Type.Struct.IEncoding|null|undefined} encoding + * @memberof google.bigtable.v2.Type.Struct + * @instance + */ + Struct.prototype.encoding = null; + + /** + * Creates a new Struct instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static - * @param {google.bigtable.v2.Type.IInt64=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Int64} Int64 instance + * @param {google.bigtable.v2.Type.IStruct=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Struct} Struct instance */ - Int64.create = function create(properties) { - return new Int64(properties); + Struct.create = function create(properties) { + return new Struct(properties); }; /** - * Encodes the specified Int64 message. Does not implicitly {@link google.bigtable.v2.Type.Int64.verify|verify} messages. + * Encodes the specified Struct message. Does not implicitly {@link google.bigtable.v2.Type.Struct.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static - * @param {google.bigtable.v2.Type.IInt64} message Int64 message or plain object to encode + * @param {google.bigtable.v2.Type.IStruct} message Struct message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Int64.encode = function encode(message, writer) { + Struct.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.google.bigtable.v2.Type.Struct.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - $root.google.bigtable.v2.Type.Int64.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.bigtable.v2.Type.Struct.Encoding.encode(message.encoding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Int64 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.verify|verify} messages. + * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static - * @param {google.bigtable.v2.Type.IInt64} message Int64 message or plain object to encode + * @param {google.bigtable.v2.Type.IStruct} message Struct message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Int64.encodeDelimited = function encodeDelimited(message, writer) { + Struct.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Int64 message from the specified reader or buffer. + * Decodes a Struct message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Int64} Int64 + * @returns {google.bigtable.v2.Type.Struct} Struct * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Int64.decode = function decode(reader, length, error) { + Struct.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Int64(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Struct(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.encoding = $root.google.bigtable.v2.Type.Int64.Encoding.decode(reader, reader.uint32()); + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.google.bigtable.v2.Type.Struct.Field.decode(reader, reader.uint32())); + break; + } + case 2: { + message.encoding = $root.google.bigtable.v2.Type.Struct.Encoding.decode(reader, reader.uint32()); break; } default: @@ -63069,34 +68766,43 @@ }; /** - * Decodes an Int64 message from the specified reader or buffer, length delimited. + * Decodes a Struct message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Int64} Int64 + * @returns {google.bigtable.v2.Type.Struct} Struct * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Int64.decodeDelimited = function decodeDelimited(reader) { + Struct.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Int64 message. + * Verifies a Struct message. * @function verify - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Int64.verify = function verify(message) { + Struct.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.google.bigtable.v2.Type.Struct.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } if (message.encoding != null && message.hasOwnProperty("encoding")) { - var error = $root.google.bigtable.v2.Type.Int64.Encoding.verify(message.encoding); + var error = $root.google.bigtable.v2.Type.Struct.Encoding.verify(message.encoding); if (error) return "encoding." + error; } @@ -63104,87 +68810,340 @@ }; /** - * Creates an Int64 message from a plain object. Also converts values to their respective internal types. + * Creates a Struct message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Int64} Int64 + * @returns {google.bigtable.v2.Type.Struct} Struct */ - Int64.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Int64) + Struct.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Struct) return object; - var message = new $root.google.bigtable.v2.Type.Int64(); + var message = new $root.google.bigtable.v2.Type.Struct(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".google.bigtable.v2.Type.Struct.fields: array expected"); + message.fields = []; + for (var i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".google.bigtable.v2.Type.Struct.fields: object expected"); + message.fields[i] = $root.google.bigtable.v2.Type.Struct.Field.fromObject(object.fields[i]); + } + } if (object.encoding != null) { if (typeof object.encoding !== "object") - throw TypeError(".google.bigtable.v2.Type.Int64.encoding: object expected"); - message.encoding = $root.google.bigtable.v2.Type.Int64.Encoding.fromObject(object.encoding); + throw TypeError(".google.bigtable.v2.Type.Struct.encoding: object expected"); + message.encoding = $root.google.bigtable.v2.Type.Struct.Encoding.fromObject(object.encoding); } return message; }; /** - * Creates a plain object from an Int64 message. Also converts values to other types if specified. + * Creates a plain object from a Struct message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static - * @param {google.bigtable.v2.Type.Int64} message Int64 + * @param {google.bigtable.v2.Type.Struct} message Struct * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Int64.toObject = function toObject(message, options) { + Struct.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.fields = []; if (options.defaults) object.encoding = null; + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.google.bigtable.v2.Type.Struct.Field.toObject(message.fields[j], options); + } if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = $root.google.bigtable.v2.Type.Int64.Encoding.toObject(message.encoding, options); + object.encoding = $root.google.bigtable.v2.Type.Struct.Encoding.toObject(message.encoding, options); return object; }; /** - * Converts this Int64 to JSON. + * Converts this Struct to JSON. * @function toJSON - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @instance * @returns {Object.} JSON object */ - Int64.prototype.toJSON = function toJSON() { + Struct.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Int64 + * Gets the default type url for Struct * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Int64.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Type.Int64"; + return typeUrlPrefix + "/google.bigtable.v2.Type.Struct"; }; - Int64.Encoding = (function() { + Struct.Field = (function() { + + /** + * Properties of a Field. + * @memberof google.bigtable.v2.Type.Struct + * @interface IField + * @property {string|null} [fieldName] Field fieldName + * @property {google.bigtable.v2.IType|null} [type] Field type + */ + + /** + * Constructs a new Field. + * @memberof google.bigtable.v2.Type.Struct + * @classdesc Represents a Field. + * @implements IField + * @constructor + * @param {google.bigtable.v2.Type.Struct.IField=} [properties] Properties to set + */ + function Field(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Field fieldName. + * @member {string} fieldName + * @memberof google.bigtable.v2.Type.Struct.Field + * @instance + */ + Field.prototype.fieldName = ""; + + /** + * Field type. + * @member {google.bigtable.v2.IType|null|undefined} type + * @memberof google.bigtable.v2.Type.Struct.Field + * @instance + */ + Field.prototype.type = null; + + /** + * Creates a new Field instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {google.bigtable.v2.Type.Struct.IField=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Struct.Field} Field instance + */ + Field.create = function create(properties) { + return new Field(properties); + }; + + /** + * Encodes the specified Field message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Field.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {google.bigtable.v2.Type.Struct.IField} message Field message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Field.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + $root.google.bigtable.v2.Type.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Field message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Field.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {google.bigtable.v2.Type.Struct.IField} message Field message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Field.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Field message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Struct.Field} Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Field.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Struct.Field(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.fieldName = reader.string(); + break; + } + case 2: { + message.type = $root.google.bigtable.v2.Type.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Field message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Struct.Field} Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Field.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Field message. + * @function verify + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Field.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.google.bigtable.v2.Type.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + /** + * Creates a Field message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Struct.Field} Field + */ + Field.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Struct.Field) + return object; + var message = new $root.google.bigtable.v2.Type.Struct.Field(); + if (object.fieldName != null) + message.fieldName = String(object.fieldName); + if (object.type != null) { + if (typeof object.type !== "object") + throw TypeError(".google.bigtable.v2.Type.Struct.Field.type: object expected"); + message.type = $root.google.bigtable.v2.Type.fromObject(object.type); + } + return message; + }; + + /** + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {google.bigtable.v2.Type.Struct.Field} message Field + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Field.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fieldName = ""; + object.type = null; + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = $root.google.bigtable.v2.Type.toObject(message.type, options); + return object; + }; + + /** + * Converts this Field to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Struct.Field + * @instance + * @returns {Object.} JSON object + */ + Field.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Field + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Struct.Field + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Field.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Struct.Field"; + }; + + return Field; + })(); + + Struct.Encoding = (function() { /** * Properties of an Encoding. - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @interface IEncoding - * @property {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes|null} [bigEndianBytes] Encoding bigEndianBytes + * @property {google.bigtable.v2.Type.Struct.Encoding.ISingleton|null} [singleton] Encoding singleton + * @property {google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes|null} [delimitedBytes] Encoding delimitedBytes + * @property {google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes|null} [orderedCodeBytes] Encoding orderedCodeBytes */ /** * Constructs a new Encoding. - * @memberof google.bigtable.v2.Type.Int64 + * @memberof google.bigtable.v2.Type.Struct * @classdesc Represents an Encoding. * @implements IEncoding * @constructor - * @param {google.bigtable.v2.Type.Int64.IEncoding=} [properties] Properties to set + * @param {google.bigtable.v2.Type.Struct.IEncoding=} [properties] Properties to set */ function Encoding(properties) { if (properties) @@ -63194,62 +69153,82 @@ } /** - * Encoding bigEndianBytes. - * @member {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes|null|undefined} bigEndianBytes - * @memberof google.bigtable.v2.Type.Int64.Encoding + * Encoding singleton. + * @member {google.bigtable.v2.Type.Struct.Encoding.ISingleton|null|undefined} singleton + * @memberof google.bigtable.v2.Type.Struct.Encoding * @instance */ - Encoding.prototype.bigEndianBytes = null; + Encoding.prototype.singleton = null; + + /** + * Encoding delimitedBytes. + * @member {google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes|null|undefined} delimitedBytes + * @memberof google.bigtable.v2.Type.Struct.Encoding + * @instance + */ + Encoding.prototype.delimitedBytes = null; + + /** + * Encoding orderedCodeBytes. + * @member {google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes|null|undefined} orderedCodeBytes + * @memberof google.bigtable.v2.Type.Struct.Encoding + * @instance + */ + Encoding.prototype.orderedCodeBytes = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * Encoding encoding. - * @member {"bigEndianBytes"|undefined} encoding - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @member {"singleton"|"delimitedBytes"|"orderedCodeBytes"|undefined} encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @instance */ Object.defineProperty(Encoding.prototype, "encoding", { - get: $util.oneOfGetter($oneOfFields = ["bigEndianBytes"]), + get: $util.oneOfGetter($oneOfFields = ["singleton", "delimitedBytes", "orderedCodeBytes"]), set: $util.oneOfSetter($oneOfFields) }); /** * Creates a new Encoding instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static - * @param {google.bigtable.v2.Type.Int64.IEncoding=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Int64.Encoding} Encoding instance + * @param {google.bigtable.v2.Type.Struct.IEncoding=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Struct.Encoding} Encoding instance */ Encoding.create = function create(properties) { return new Encoding(properties); }; /** - * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.verify|verify} messages. + * Encodes the specified Encoding message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static - * @param {google.bigtable.v2.Type.Int64.IEncoding} message Encoding message or plain object to encode + * @param {google.bigtable.v2.Type.Struct.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ Encoding.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bigEndianBytes != null && Object.hasOwnProperty.call(message, "bigEndianBytes")) - $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.encode(message.bigEndianBytes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.singleton != null && Object.hasOwnProperty.call(message, "singleton")) + $root.google.bigtable.v2.Type.Struct.Encoding.Singleton.encode(message.singleton, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.delimitedBytes != null && Object.hasOwnProperty.call(message, "delimitedBytes")) + $root.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.encode(message.delimitedBytes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.orderedCodeBytes != null && Object.hasOwnProperty.call(message, "orderedCodeBytes")) + $root.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.encode(message.orderedCodeBytes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.verify|verify} messages. + * Encodes the specified Encoding message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static - * @param {google.bigtable.v2.Type.Int64.IEncoding} message Encoding message or plain object to encode + * @param {google.bigtable.v2.Type.Struct.IEncoding} message Encoding message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -63260,25 +69239,33 @@ /** * Decodes an Encoding message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Int64.Encoding} Encoding + * @returns {google.bigtable.v2.Type.Struct.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Encoding.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Int64.Encoding(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Struct.Encoding(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.bigEndianBytes = $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.decode(reader, reader.uint32()); + message.singleton = $root.google.bigtable.v2.Type.Struct.Encoding.Singleton.decode(reader, reader.uint32()); + break; + } + case 2: { + message.delimitedBytes = $root.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.decode(reader, reader.uint32()); + break; + } + case 3: { + message.orderedCodeBytes = $root.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.decode(reader, reader.uint32()); break; } default: @@ -63292,10 +69279,10 @@ /** * Decodes an Encoding message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Int64.Encoding} Encoding + * @returns {google.bigtable.v2.Type.Struct.Encoding} Encoding * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -63308,7 +69295,7 @@ /** * Verifies an Encoding message. * @function verify - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -63317,12 +69304,32 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.bigEndianBytes != null && message.hasOwnProperty("bigEndianBytes")) { + if (message.singleton != null && message.hasOwnProperty("singleton")) { + properties.encoding = 1; + { + var error = $root.google.bigtable.v2.Type.Struct.Encoding.Singleton.verify(message.singleton); + if (error) + return "singleton." + error; + } + } + if (message.delimitedBytes != null && message.hasOwnProperty("delimitedBytes")) { + if (properties.encoding === 1) + return "encoding: multiple values"; properties.encoding = 1; { - var error = $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify(message.bigEndianBytes); + var error = $root.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.verify(message.delimitedBytes); if (error) - return "bigEndianBytes." + error; + return "delimitedBytes." + error; + } + } + if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { + if (properties.encoding === 1) + return "encoding: multiple values"; + properties.encoding = 1; + { + var error = $root.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.verify(message.orderedCodeBytes); + if (error) + return "orderedCodeBytes." + error; } } return null; @@ -63331,19 +69338,29 @@ /** * Creates an Encoding message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Int64.Encoding} Encoding + * @returns {google.bigtable.v2.Type.Struct.Encoding} Encoding */ Encoding.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Int64.Encoding) + if (object instanceof $root.google.bigtable.v2.Type.Struct.Encoding) return object; - var message = new $root.google.bigtable.v2.Type.Int64.Encoding(); - if (object.bigEndianBytes != null) { - if (typeof object.bigEndianBytes !== "object") - throw TypeError(".google.bigtable.v2.Type.Int64.Encoding.bigEndianBytes: object expected"); - message.bigEndianBytes = $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.fromObject(object.bigEndianBytes); + var message = new $root.google.bigtable.v2.Type.Struct.Encoding(); + if (object.singleton != null) { + if (typeof object.singleton !== "object") + throw TypeError(".google.bigtable.v2.Type.Struct.Encoding.singleton: object expected"); + message.singleton = $root.google.bigtable.v2.Type.Struct.Encoding.Singleton.fromObject(object.singleton); + } + if (object.delimitedBytes != null) { + if (typeof object.delimitedBytes !== "object") + throw TypeError(".google.bigtable.v2.Type.Struct.Encoding.delimitedBytes: object expected"); + message.delimitedBytes = $root.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.fromObject(object.delimitedBytes); + } + if (object.orderedCodeBytes != null) { + if (typeof object.orderedCodeBytes !== "object") + throw TypeError(".google.bigtable.v2.Type.Struct.Encoding.orderedCodeBytes: object expected"); + message.orderedCodeBytes = $root.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.fromObject(object.orderedCodeBytes); } return message; }; @@ -63351,9 +69368,9 @@ /** * Creates a plain object from an Encoding message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static - * @param {google.bigtable.v2.Type.Int64.Encoding} message Encoding + * @param {google.bigtable.v2.Type.Struct.Encoding} message Encoding * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -63361,10 +69378,20 @@ if (!options) options = {}; var object = {}; - if (message.bigEndianBytes != null && message.hasOwnProperty("bigEndianBytes")) { - object.bigEndianBytes = $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.toObject(message.bigEndianBytes, options); + if (message.singleton != null && message.hasOwnProperty("singleton")) { + object.singleton = $root.google.bigtable.v2.Type.Struct.Encoding.Singleton.toObject(message.singleton, options); if (options.oneofs) - object.encoding = "bigEndianBytes"; + object.encoding = "singleton"; + } + if (message.delimitedBytes != null && message.hasOwnProperty("delimitedBytes")) { + object.delimitedBytes = $root.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.toObject(message.delimitedBytes, options); + if (options.oneofs) + object.encoding = "delimitedBytes"; + } + if (message.orderedCodeBytes != null && message.hasOwnProperty("orderedCodeBytes")) { + object.orderedCodeBytes = $root.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.toObject(message.orderedCodeBytes, options); + if (options.oneofs) + object.encoding = "orderedCodeBytes"; } return object; }; @@ -63372,7 +69399,7 @@ /** * Converts this Encoding to JSON. * @function toJSON - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @instance * @returns {Object.} JSON object */ @@ -63383,7 +69410,7 @@ /** * Gets the default type url for Encoding * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Int64.Encoding + * @memberof google.bigtable.v2.Type.Struct.Encoding * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -63392,27 +69419,26 @@ if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Type.Int64.Encoding"; + return typeUrlPrefix + "/google.bigtable.v2.Type.Struct.Encoding"; }; - Encoding.BigEndianBytes = (function() { + Encoding.Singleton = (function() { /** - * Properties of a BigEndianBytes. - * @memberof google.bigtable.v2.Type.Int64.Encoding - * @interface IBigEndianBytes - * @property {google.bigtable.v2.Type.IBytes|null} [bytesType] BigEndianBytes bytesType + * Properties of a Singleton. + * @memberof google.bigtable.v2.Type.Struct.Encoding + * @interface ISingleton */ /** - * Constructs a new BigEndianBytes. - * @memberof google.bigtable.v2.Type.Int64.Encoding - * @classdesc Represents a BigEndianBytes. - * @implements IBigEndianBytes + * Constructs a new Singleton. + * @memberof google.bigtable.v2.Type.Struct.Encoding + * @classdesc Represents a Singleton. + * @implements ISingleton * @constructor - * @param {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes=} [properties] Properties to set + * @param {google.bigtable.v2.Type.Struct.Encoding.ISingleton=} [properties] Properties to set */ - function BigEndianBytes(properties) { + function Singleton(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63420,79 +69446,65 @@ } /** - * BigEndianBytes bytesType. - * @member {google.bigtable.v2.Type.IBytes|null|undefined} bytesType - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes - * @instance - */ - BigEndianBytes.prototype.bytesType = null; - - /** - * Creates a new BigEndianBytes instance using the specified properties. + * Creates a new Singleton instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton * @static - * @param {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes instance + * @param {google.bigtable.v2.Type.Struct.Encoding.ISingleton=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Struct.Encoding.Singleton} Singleton instance */ - BigEndianBytes.create = function create(properties) { - return new BigEndianBytes(properties); + Singleton.create = function create(properties) { + return new Singleton(properties); }; /** - * Encodes the specified BigEndianBytes message. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * Encodes the specified Singleton message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton * @static - * @param {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes} message BigEndianBytes message or plain object to encode + * @param {google.bigtable.v2.Type.Struct.Encoding.ISingleton} message Singleton message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BigEndianBytes.encode = function encode(message, writer) { + Singleton.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bytesType != null && Object.hasOwnProperty.call(message, "bytesType")) - $root.google.bigtable.v2.Type.Bytes.encode(message.bytesType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BigEndianBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.verify|verify} messages. + * Encodes the specified Singleton message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.Singleton.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton * @static - * @param {google.bigtable.v2.Type.Int64.Encoding.IBigEndianBytes} message BigEndianBytes message or plain object to encode + * @param {google.bigtable.v2.Type.Struct.Encoding.ISingleton} message Singleton message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BigEndianBytes.encodeDelimited = function encodeDelimited(message, writer) { + Singleton.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BigEndianBytes message from the specified reader or buffer. + * Decodes a Singleton message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes + * @returns {google.bigtable.v2.Type.Struct.Encoding.Singleton} Singleton * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BigEndianBytes.decode = function decode(reader, length, error) { + Singleton.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Struct.Encoding.Singleton(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 1: { - message.bytesType = $root.google.bigtable.v2.Type.Bytes.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -63502,840 +69514,507 @@ }; /** - * Decodes a BigEndianBytes message from the specified reader or buffer, length delimited. + * Decodes a Singleton message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes + * @returns {google.bigtable.v2.Type.Struct.Encoding.Singleton} Singleton * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BigEndianBytes.decodeDelimited = function decodeDelimited(reader) { + Singleton.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BigEndianBytes message. - * @function verify - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BigEndianBytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bytesType != null && message.hasOwnProperty("bytesType")) { - var error = $root.google.bigtable.v2.Type.Bytes.verify(message.bytesType); - if (error) - return "bytesType." + error; - } - return null; - }; - - /** - * Creates a BigEndianBytes message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} BigEndianBytes - */ - BigEndianBytes.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes) - return object; - var message = new $root.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes(); - if (object.bytesType != null) { - if (typeof object.bytesType !== "object") - throw TypeError(".google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes.bytesType: object expected"); - message.bytesType = $root.google.bigtable.v2.Type.Bytes.fromObject(object.bytesType); - } - return message; - }; - - /** - * Creates a plain object from a BigEndianBytes message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes} message BigEndianBytes - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BigEndianBytes.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.bytesType = null; - if (message.bytesType != null && message.hasOwnProperty("bytesType")) - object.bytesType = $root.google.bigtable.v2.Type.Bytes.toObject(message.bytesType, options); - return object; - }; - - /** - * Converts this BigEndianBytes to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes - * @instance - * @returns {Object.} JSON object - */ - BigEndianBytes.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for BigEndianBytes - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BigEndianBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes"; - }; - - return BigEndianBytes; - })(); - - return Encoding; - })(); - - return Int64; - })(); - - Type.Bool = (function() { - - /** - * Properties of a Bool. - * @memberof google.bigtable.v2.Type - * @interface IBool - */ - - /** - * Constructs a new Bool. - * @memberof google.bigtable.v2.Type - * @classdesc Represents a Bool. - * @implements IBool - * @constructor - * @param {google.bigtable.v2.Type.IBool=} [properties] Properties to set - */ - function Bool(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new Bool instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {google.bigtable.v2.Type.IBool=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Bool} Bool instance - */ - Bool.create = function create(properties) { - return new Bool(properties); - }; - - /** - * Encodes the specified Bool message. Does not implicitly {@link google.bigtable.v2.Type.Bool.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {google.bigtable.v2.Type.IBool} message Bool message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bool.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified Bool message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Bool.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {google.bigtable.v2.Type.IBool} message Bool message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Bool.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Bool message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Bool} Bool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bool.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Bool(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Bool message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Bool} Bool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Bool.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Bool message. - * @function verify - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Bool.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a Bool message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Bool} Bool - */ - Bool.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Bool) - return object; - return new $root.google.bigtable.v2.Type.Bool(); - }; - - /** - * Creates a plain object from a Bool message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {google.bigtable.v2.Type.Bool} message Bool - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Bool.toObject = function toObject() { - return {}; - }; - - /** - * Converts this Bool to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.Bool - * @instance - * @returns {Object.} JSON object - */ - Bool.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Bool - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Bool - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Bool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.Bool"; - }; - - return Bool; - })(); - - Type.Float32 = (function() { - - /** - * Properties of a Float32. - * @memberof google.bigtable.v2.Type - * @interface IFloat32 - */ - - /** - * Constructs a new Float32. - * @memberof google.bigtable.v2.Type - * @classdesc Represents a Float32. - * @implements IFloat32 - * @constructor - * @param {google.bigtable.v2.Type.IFloat32=} [properties] Properties to set - */ - function Float32(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new Float32 instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {google.bigtable.v2.Type.IFloat32=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Float32} Float32 instance - */ - Float32.create = function create(properties) { - return new Float32(properties); - }; - - /** - * Encodes the specified Float32 message. Does not implicitly {@link google.bigtable.v2.Type.Float32.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {google.bigtable.v2.Type.IFloat32} message Float32 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Float32.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified Float32 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Float32.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {google.bigtable.v2.Type.IFloat32} message Float32 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Float32.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Float32 message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Float32} Float32 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Float32.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Float32(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Float32 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Float32} Float32 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Float32.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Float32 message. - * @function verify - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Float32.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a Float32 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Float32} Float32 - */ - Float32.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Float32) - return object; - return new $root.google.bigtable.v2.Type.Float32(); - }; - - /** - * Creates a plain object from a Float32 message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {google.bigtable.v2.Type.Float32} message Float32 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Float32.toObject = function toObject() { - return {}; - }; - - /** - * Converts this Float32 to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.Float32 - * @instance - * @returns {Object.} JSON object - */ - Float32.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + }; - /** - * Gets the default type url for Float32 - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Float32 - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Float32.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.Float32"; - }; + /** + * Verifies a Singleton message. + * @function verify + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Singleton.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - return Float32; - })(); + /** + * Creates a Singleton message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Struct.Encoding.Singleton} Singleton + */ + Singleton.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Struct.Encoding.Singleton) + return object; + return new $root.google.bigtable.v2.Type.Struct.Encoding.Singleton(); + }; - Type.Float64 = (function() { + /** + * Creates a plain object from a Singleton message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.Singleton} message Singleton + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Singleton.toObject = function toObject() { + return {}; + }; - /** - * Properties of a Float64. - * @memberof google.bigtable.v2.Type - * @interface IFloat64 - */ + /** + * Converts this Singleton to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton + * @instance + * @returns {Object.} JSON object + */ + Singleton.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Float64. - * @memberof google.bigtable.v2.Type - * @classdesc Represents a Float64. - * @implements IFloat64 - * @constructor - * @param {google.bigtable.v2.Type.IFloat64=} [properties] Properties to set - */ - function Float64(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Gets the default type url for Singleton + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Struct.Encoding.Singleton + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Singleton.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Struct.Encoding.Singleton"; + }; - /** - * Creates a new Float64 instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {google.bigtable.v2.Type.IFloat64=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Float64} Float64 instance - */ - Float64.create = function create(properties) { - return new Float64(properties); - }; + return Singleton; + })(); - /** - * Encodes the specified Float64 message. Does not implicitly {@link google.bigtable.v2.Type.Float64.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {google.bigtable.v2.Type.IFloat64} message Float64 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Float64.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + Encoding.DelimitedBytes = (function() { - /** - * Encodes the specified Float64 message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Float64.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {google.bigtable.v2.Type.IFloat64} message Float64 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Float64.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a DelimitedBytes. + * @memberof google.bigtable.v2.Type.Struct.Encoding + * @interface IDelimitedBytes + * @property {Uint8Array|null} [delimiter] DelimitedBytes delimiter + */ - /** - * Decodes a Float64 message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Float64} Float64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Float64.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Float64(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Constructs a new DelimitedBytes. + * @memberof google.bigtable.v2.Type.Struct.Encoding + * @classdesc Represents a DelimitedBytes. + * @implements IDelimitedBytes + * @constructor + * @param {google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes=} [properties] Properties to set + */ + function DelimitedBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - } - return message; - }; - /** - * Decodes a Float64 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Float64} Float64 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Float64.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * DelimitedBytes delimiter. + * @member {Uint8Array} delimiter + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @instance + */ + DelimitedBytes.prototype.delimiter = $util.newBuffer([]); - /** - * Verifies a Float64 message. - * @function verify - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Float64.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Creates a new DelimitedBytes instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes instance + */ + DelimitedBytes.create = function create(properties) { + return new DelimitedBytes(properties); + }; - /** - * Creates a Float64 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Float64} Float64 - */ - Float64.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Float64) - return object; - return new $root.google.bigtable.v2.Type.Float64(); - }; + /** + * Encodes the specified DelimitedBytes message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes} message DelimitedBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DelimitedBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.delimiter != null && Object.hasOwnProperty.call(message, "delimiter")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.delimiter); + return writer; + }; - /** - * Creates a plain object from a Float64 message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {google.bigtable.v2.Type.Float64} message Float64 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Float64.toObject = function toObject() { - return {}; - }; + /** + * Encodes the specified DelimitedBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.IDelimitedBytes} message DelimitedBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DelimitedBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this Float64 to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.Float64 - * @instance - * @returns {Object.} JSON object - */ - Float64.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a DelimitedBytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DelimitedBytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.delimiter = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Gets the default type url for Float64 - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Float64 - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Float64.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.Float64"; - }; + /** + * Decodes a DelimitedBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DelimitedBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return Float64; - })(); + /** + * Verifies a DelimitedBytes message. + * @function verify + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DelimitedBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.delimiter != null && message.hasOwnProperty("delimiter")) + if (!(message.delimiter && typeof message.delimiter.length === "number" || $util.isString(message.delimiter))) + return "delimiter: buffer expected"; + return null; + }; - Type.Timestamp = (function() { + /** + * Creates a DelimitedBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes} DelimitedBytes + */ + DelimitedBytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes) + return object; + var message = new $root.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes(); + if (object.delimiter != null) + if (typeof object.delimiter === "string") + $util.base64.decode(object.delimiter, message.delimiter = $util.newBuffer($util.base64.length(object.delimiter)), 0); + else if (object.delimiter.length >= 0) + message.delimiter = object.delimiter; + return message; + }; - /** - * Properties of a Timestamp. - * @memberof google.bigtable.v2.Type - * @interface ITimestamp - */ + /** + * Creates a plain object from a DelimitedBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes} message DelimitedBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DelimitedBytes.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.delimiter = ""; + else { + object.delimiter = []; + if (options.bytes !== Array) + object.delimiter = $util.newBuffer(object.delimiter); + } + if (message.delimiter != null && message.hasOwnProperty("delimiter")) + object.delimiter = options.bytes === String ? $util.base64.encode(message.delimiter, 0, message.delimiter.length) : options.bytes === Array ? Array.prototype.slice.call(message.delimiter) : message.delimiter; + return object; + }; - /** - * Constructs a new Timestamp. - * @memberof google.bigtable.v2.Type - * @classdesc Represents a Timestamp. - * @implements ITimestamp - * @constructor - * @param {google.bigtable.v2.Type.ITimestamp=} [properties] Properties to set - */ - function Timestamp(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this DelimitedBytes to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @instance + * @returns {Object.} JSON object + */ + DelimitedBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new Timestamp instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {google.bigtable.v2.Type.ITimestamp=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Timestamp} Timestamp instance - */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); - }; + /** + * Gets the default type url for DelimitedBytes + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DelimitedBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes"; + }; - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.bigtable.v2.Type.Timestamp.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {google.bigtable.v2.Type.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + return DelimitedBytes; + })(); - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Timestamp.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {google.bigtable.v2.Type.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Encoding.OrderedCodeBytes = (function() { - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Timestamp(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + /** + * Properties of an OrderedCodeBytes. + * @memberof google.bigtable.v2.Type.Struct.Encoding + * @interface IOrderedCodeBytes + */ + + /** + * Constructs a new OrderedCodeBytes. + * @memberof google.bigtable.v2.Type.Struct.Encoding + * @classdesc Represents an OrderedCodeBytes. + * @implements IOrderedCodeBytes + * @constructor + * @param {google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes=} [properties] Properties to set + */ + function OrderedCodeBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - } - return message; - }; - /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new OrderedCodeBytes instance using the specified properties. + * @function create + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes instance + */ + OrderedCodeBytes.create = function create(properties) { + return new OrderedCodeBytes(properties); + }; + + /** + * Encodes the specified OrderedCodeBytes message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. + * @function encode + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrderedCodeBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified OrderedCodeBytes message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.IOrderedCodeBytes} message OrderedCodeBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OrderedCodeBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer. + * @function decode + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrderedCodeBytes.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OrderedCodeBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OrderedCodeBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OrderedCodeBytes message. + * @function verify + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OrderedCodeBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Verifies a Timestamp message. - * @function verify - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Timestamp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Creates an OrderedCodeBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {Object.} object Plain object + * @returns {google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes} OrderedCodeBytes + */ + OrderedCodeBytes.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes) + return object; + return new $root.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes(); + }; - /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Timestamp} Timestamp - */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Timestamp) - return object; - return new $root.google.bigtable.v2.Type.Timestamp(); - }; + /** + * Creates a plain object from an OrderedCodeBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes} message OrderedCodeBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OrderedCodeBytes.toObject = function toObject() { + return {}; + }; - /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {google.bigtable.v2.Type.Timestamp} message Timestamp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Timestamp.toObject = function toObject() { - return {}; - }; + /** + * Converts this OrderedCodeBytes to JSON. + * @function toJSON + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @instance + * @returns {Object.} JSON object + */ + OrderedCodeBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this Timestamp to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.Timestamp - * @instance - * @returns {Object.} JSON object - */ - Timestamp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for OrderedCodeBytes + * @function getTypeUrl + * @memberof google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OrderedCodeBytes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes"; + }; - /** - * Gets the default type url for Timestamp - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Timestamp - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.Timestamp"; - }; + return OrderedCodeBytes; + })(); - return Timestamp; + return Encoding; + })(); + + return Struct; })(); - Type.Date = (function() { + Type.Proto = (function() { /** - * Properties of a Date. + * Properties of a Proto. * @memberof google.bigtable.v2.Type - * @interface IDate + * @interface IProto + * @property {string|null} [schemaBundleId] Proto schemaBundleId + * @property {string|null} [messageName] Proto messageName */ /** - * Constructs a new Date. + * Constructs a new Proto. * @memberof google.bigtable.v2.Type - * @classdesc Represents a Date. - * @implements IDate + * @classdesc Represents a Proto. + * @implements IProto * @constructor - * @param {google.bigtable.v2.Type.IDate=} [properties] Properties to set + * @param {google.bigtable.v2.Type.IProto=} [properties] Properties to set */ - function Date(properties) { + function Proto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64343,65 +70022,93 @@ } /** - * Creates a new Date instance using the specified properties. + * Proto schemaBundleId. + * @member {string} schemaBundleId + * @memberof google.bigtable.v2.Type.Proto + * @instance + */ + Proto.prototype.schemaBundleId = ""; + + /** + * Proto messageName. + * @member {string} messageName + * @memberof google.bigtable.v2.Type.Proto + * @instance + */ + Proto.prototype.messageName = ""; + + /** + * Creates a new Proto instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static - * @param {google.bigtable.v2.Type.IDate=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Date} Date instance + * @param {google.bigtable.v2.Type.IProto=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Proto} Proto instance */ - Date.create = function create(properties) { - return new Date(properties); + Proto.create = function create(properties) { + return new Proto(properties); }; /** - * Encodes the specified Date message. Does not implicitly {@link google.bigtable.v2.Type.Date.verify|verify} messages. + * Encodes the specified Proto message. Does not implicitly {@link google.bigtable.v2.Type.Proto.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static - * @param {google.bigtable.v2.Type.IDate} message Date message or plain object to encode + * @param {google.bigtable.v2.Type.IProto} message Proto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Date.encode = function encode(message, writer) { + Proto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.schemaBundleId != null && Object.hasOwnProperty.call(message, "schemaBundleId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaBundleId); + if (message.messageName != null && Object.hasOwnProperty.call(message, "messageName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.messageName); return writer; }; /** - * Encodes the specified Date message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Date.verify|verify} messages. + * Encodes the specified Proto message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Proto.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static - * @param {google.bigtable.v2.Type.IDate} message Date message or plain object to encode + * @param {google.bigtable.v2.Type.IProto} message Proto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Date.encodeDelimited = function encodeDelimited(message, writer) { + Proto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Date message from the specified reader or buffer. + * Decodes a Proto message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Date} Date + * @returns {google.bigtable.v2.Type.Proto} Proto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Date.decode = function decode(reader, length, error) { + Proto.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Date(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Proto(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 1: { + message.schemaBundleId = reader.string(); + break; + } + case 2: { + message.messageName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -64411,110 +70118,132 @@ }; /** - * Decodes a Date message from the specified reader or buffer, length delimited. + * Decodes a Proto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Date} Date + * @returns {google.bigtable.v2.Type.Proto} Proto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Date.decodeDelimited = function decodeDelimited(reader) { + Proto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Date message. + * Verifies a Proto message. * @function verify - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Date.verify = function verify(message) { + Proto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + if (!$util.isString(message.schemaBundleId)) + return "schemaBundleId: string expected"; + if (message.messageName != null && message.hasOwnProperty("messageName")) + if (!$util.isString(message.messageName)) + return "messageName: string expected"; return null; }; /** - * Creates a Date message from a plain object. Also converts values to their respective internal types. + * Creates a Proto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Date} Date + * @returns {google.bigtable.v2.Type.Proto} Proto */ - Date.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Date) + Proto.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Proto) return object; - return new $root.google.bigtable.v2.Type.Date(); + var message = new $root.google.bigtable.v2.Type.Proto(); + if (object.schemaBundleId != null) + message.schemaBundleId = String(object.schemaBundleId); + if (object.messageName != null) + message.messageName = String(object.messageName); + return message; }; /** - * Creates a plain object from a Date message. Also converts values to other types if specified. + * Creates a plain object from a Proto message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static - * @param {google.bigtable.v2.Type.Date} message Date + * @param {google.bigtable.v2.Type.Proto} message Proto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Date.toObject = function toObject() { - return {}; + Proto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.schemaBundleId = ""; + object.messageName = ""; + } + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + object.schemaBundleId = message.schemaBundleId; + if (message.messageName != null && message.hasOwnProperty("messageName")) + object.messageName = message.messageName; + return object; }; /** - * Converts this Date to JSON. + * Converts this Proto to JSON. * @function toJSON - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @instance * @returns {Object.} JSON object */ - Date.prototype.toJSON = function toJSON() { + Proto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Date + * Gets the default type url for Proto * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Date + * @memberof google.bigtable.v2.Type.Proto * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Date.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Proto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Type.Date"; + return typeUrlPrefix + "/google.bigtable.v2.Type.Proto"; }; - return Date; + return Proto; })(); - Type.Struct = (function() { + Type.Enum = (function() { /** - * Properties of a Struct. + * Properties of an Enum. * @memberof google.bigtable.v2.Type - * @interface IStruct - * @property {Array.|null} [fields] Struct fields + * @interface IEnum + * @property {string|null} [schemaBundleId] Enum schemaBundleId + * @property {string|null} [enumName] Enum enumName */ /** - * Constructs a new Struct. + * Constructs a new Enum. * @memberof google.bigtable.v2.Type - * @classdesc Represents a Struct. - * @implements IStruct + * @classdesc Represents an Enum. + * @implements IEnum * @constructor - * @param {google.bigtable.v2.Type.IStruct=} [properties] Properties to set + * @param {google.bigtable.v2.Type.IEnum=} [properties] Properties to set */ - function Struct(properties) { - this.fields = []; + function Enum(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64522,80 +70251,91 @@ } /** - * Struct fields. - * @member {Array.} fields - * @memberof google.bigtable.v2.Type.Struct + * Enum schemaBundleId. + * @member {string} schemaBundleId + * @memberof google.bigtable.v2.Type.Enum * @instance */ - Struct.prototype.fields = $util.emptyArray; + Enum.prototype.schemaBundleId = ""; /** - * Creates a new Struct instance using the specified properties. + * Enum enumName. + * @member {string} enumName + * @memberof google.bigtable.v2.Type.Enum + * @instance + */ + Enum.prototype.enumName = ""; + + /** + * Creates a new Enum instance using the specified properties. * @function create - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static - * @param {google.bigtable.v2.Type.IStruct=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Struct} Struct instance + * @param {google.bigtable.v2.Type.IEnum=} [properties] Properties to set + * @returns {google.bigtable.v2.Type.Enum} Enum instance */ - Struct.create = function create(properties) { - return new Struct(properties); + Enum.create = function create(properties) { + return new Enum(properties); }; /** - * Encodes the specified Struct message. Does not implicitly {@link google.bigtable.v2.Type.Struct.verify|verify} messages. + * Encodes the specified Enum message. Does not implicitly {@link google.bigtable.v2.Type.Enum.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static - * @param {google.bigtable.v2.Type.IStruct} message Struct message or plain object to encode + * @param {google.bigtable.v2.Type.IEnum} message Enum message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Struct.encode = function encode(message, writer) { + Enum.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fields != null && message.fields.length) - for (var i = 0; i < message.fields.length; ++i) - $root.google.bigtable.v2.Type.Struct.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.schemaBundleId != null && Object.hasOwnProperty.call(message, "schemaBundleId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaBundleId); + if (message.enumName != null && Object.hasOwnProperty.call(message, "enumName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.enumName); return writer; }; /** - * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.verify|verify} messages. + * Encodes the specified Enum message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Enum.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static - * @param {google.bigtable.v2.Type.IStruct} message Struct message or plain object to encode + * @param {google.bigtable.v2.Type.IEnum} message Enum message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Struct.encodeDelimited = function encodeDelimited(message, writer) { + Enum.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Struct message from the specified reader or buffer. + * Decodes an Enum message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Struct} Struct + * @returns {google.bigtable.v2.Type.Enum} Enum * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Struct.decode = function decode(reader, length, error) { + Enum.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Struct(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Enum(); 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.bigtable.v2.Type.Struct.Field.decode(reader, reader.uint32())); + message.schemaBundleId = reader.string(); + break; + } + case 2: { + message.enumName = reader.string(); break; } default: @@ -64607,353 +70347,111 @@ }; /** - * Decodes a Struct message from the specified reader or buffer, length delimited. + * Decodes an Enum message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Struct} Struct + * @returns {google.bigtable.v2.Type.Enum} Enum * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Struct.decodeDelimited = function decodeDelimited(reader) { + Enum.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Struct message. + * Verifies an Enum message. * @function verify - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Struct.verify = function verify(message) { + Enum.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (var i = 0; i < message.fields.length; ++i) { - var error = $root.google.bigtable.v2.Type.Struct.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } - } + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + if (!$util.isString(message.schemaBundleId)) + return "schemaBundleId: string expected"; + if (message.enumName != null && message.hasOwnProperty("enumName")) + if (!$util.isString(message.enumName)) + return "enumName: string expected"; return null; }; /** - * Creates a Struct message from a plain object. Also converts values to their respective internal types. + * Creates an Enum message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Struct} Struct + * @returns {google.bigtable.v2.Type.Enum} Enum */ - Struct.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Struct) + Enum.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.Type.Enum) return object; - var message = new $root.google.bigtable.v2.Type.Struct(); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".google.bigtable.v2.Type.Struct.fields: array expected"); - message.fields = []; - for (var i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".google.bigtable.v2.Type.Struct.fields: object expected"); - message.fields[i] = $root.google.bigtable.v2.Type.Struct.Field.fromObject(object.fields[i]); - } - } + var message = new $root.google.bigtable.v2.Type.Enum(); + if (object.schemaBundleId != null) + message.schemaBundleId = String(object.schemaBundleId); + if (object.enumName != null) + message.enumName = String(object.enumName); return message; }; /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. + * Creates a plain object from an Enum message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static - * @param {google.bigtable.v2.Type.Struct} message Struct + * @param {google.bigtable.v2.Type.Enum} message Enum * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Struct.toObject = function toObject(message, options) { + Enum.toObject = function toObject(message, options) { if (!options) options = {}; 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] = $root.google.bigtable.v2.Type.Struct.Field.toObject(message.fields[j], options); + if (options.defaults) { + object.schemaBundleId = ""; + object.enumName = ""; } + if (message.schemaBundleId != null && message.hasOwnProperty("schemaBundleId")) + object.schemaBundleId = message.schemaBundleId; + if (message.enumName != null && message.hasOwnProperty("enumName")) + object.enumName = message.enumName; return object; }; /** - * Converts this Struct to JSON. + * Converts this Enum to JSON. * @function toJSON - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @instance * @returns {Object.} JSON object */ - Struct.prototype.toJSON = function toJSON() { + Enum.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Struct + * Gets the default type url for Enum * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Struct + * @memberof google.bigtable.v2.Type.Enum * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Enum.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.Type.Struct"; + return typeUrlPrefix + "/google.bigtable.v2.Type.Enum"; }; - Struct.Field = (function() { - - /** - * Properties of a Field. - * @memberof google.bigtable.v2.Type.Struct - * @interface IField - * @property {string|null} [fieldName] Field fieldName - * @property {google.bigtable.v2.IType|null} [type] Field type - */ - - /** - * Constructs a new Field. - * @memberof google.bigtable.v2.Type.Struct - * @classdesc Represents a Field. - * @implements IField - * @constructor - * @param {google.bigtable.v2.Type.Struct.IField=} [properties] Properties to set - */ - function Field(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Field fieldName. - * @member {string} fieldName - * @memberof google.bigtable.v2.Type.Struct.Field - * @instance - */ - Field.prototype.fieldName = ""; - - /** - * Field type. - * @member {google.bigtable.v2.IType|null|undefined} type - * @memberof google.bigtable.v2.Type.Struct.Field - * @instance - */ - Field.prototype.type = null; - - /** - * Creates a new Field instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {google.bigtable.v2.Type.Struct.IField=} [properties] Properties to set - * @returns {google.bigtable.v2.Type.Struct.Field} Field instance - */ - Field.create = function create(properties) { - return new Field(properties); - }; - - /** - * Encodes the specified Field message. Does not implicitly {@link google.bigtable.v2.Type.Struct.Field.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {google.bigtable.v2.Type.Struct.IField} message Field message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Field.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - $root.google.bigtable.v2.Type.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link google.bigtable.v2.Type.Struct.Field.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {google.bigtable.v2.Type.Struct.IField} message Field message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Field.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Field message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.Type.Struct.Field} Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Field.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.Type.Struct.Field(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.fieldName = reader.string(); - break; - } - case 2: { - message.type = $root.google.bigtable.v2.Type.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Field message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.Type.Struct.Field} Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Field.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Field message. - * @function verify - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Field.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - if (!$util.isString(message.fieldName)) - return "fieldName: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.google.bigtable.v2.Type.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.Type.Struct.Field} Field - */ - Field.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.Type.Struct.Field) - return object; - var message = new $root.google.bigtable.v2.Type.Struct.Field(); - if (object.fieldName != null) - message.fieldName = String(object.fieldName); - if (object.type != null) { - if (typeof object.type !== "object") - throw TypeError(".google.bigtable.v2.Type.Struct.Field.type: object expected"); - message.type = $root.google.bigtable.v2.Type.fromObject(object.type); - } - return message; - }; - - /** - * Creates a plain object from a Field message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {google.bigtable.v2.Type.Struct.Field} message Field - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Field.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.fieldName = ""; - object.type = null; - } - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - object.fieldName = message.fieldName; - if (message.type != null && message.hasOwnProperty("type")) - object.type = $root.google.bigtable.v2.Type.toObject(message.type, options); - return object; - }; - - /** - * Converts this Field to JSON. - * @function toJSON - * @memberof google.bigtable.v2.Type.Struct.Field - * @instance - * @returns {Object.} JSON object - */ - Field.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Field - * @function getTypeUrl - * @memberof google.bigtable.v2.Type.Struct.Field - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Field.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.Type.Struct.Field"; - }; - - return Field; - })(); - - return Struct; + return Enum; })(); Type.Array = (function() { diff --git a/protos/protos.json b/protos/protos.json index b0987e5be..08d9a3a21 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -1578,6 +1578,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "proto3_optional": true } + }, + "tags": { + "keyType": "string", + "type": "string", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -1966,6 +1974,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "deletionProtection": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -2619,7 +2634,7 @@ "options": { "(google.api.http).post": "/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy", + "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:getIamPolicy", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "resource" }, @@ -2628,10 +2643,20 @@ "(google.api.http)": { "post": "/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy", "body": "*", - "additional_bindings": { - "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy", + "body": "*" + }, + { + "post": "/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:getIamPolicy", + "body": "*" + }, + { + "post": "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:getIamPolicy", + "body": "*" + } + ] } }, { @@ -2645,7 +2670,7 @@ "options": { "(google.api.http).post": "/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy", + "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:setIamPolicy", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "resource,policy" }, @@ -2654,10 +2679,20 @@ "(google.api.http)": { "post": "/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy", "body": "*", - "additional_bindings": { - "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy", + "body": "*" + }, + { + "post": "/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:setIamPolicy", + "body": "*" + }, + { + "post": "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:setIamPolicy", + "body": "*" + } + ] } }, { @@ -2671,7 +2706,7 @@ "options": { "(google.api.http).post": "/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions", + "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:testIamPermissions", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "resource,permissions" }, @@ -2680,16 +2715,136 @@ "(google.api.http)": { "post": "/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions", "body": "*", - "additional_bindings": { - "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions", + "body": "*" + }, + { + "post": "/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:testIamPermissions", + "body": "*" + }, + { + "post": "/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:testIamPermissions", + "body": "*" + } + ] } }, { "(google.api.method_signature)": "resource,permissions" } ] + }, + "CreateSchemaBundle": { + "requestType": "CreateSchemaBundleRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles", + "(google.api.http).body": "schema_bundle", + "(google.api.method_signature)": "parent,schema_bundle_id,schema_bundle", + "(google.longrunning.operation_info).response_type": "SchemaBundle", + "(google.longrunning.operation_info).metadata_type": "CreateSchemaBundleMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles", + "body": "schema_bundle" + } + }, + { + "(google.api.method_signature)": "parent,schema_bundle_id,schema_bundle" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "SchemaBundle", + "metadata_type": "CreateSchemaBundleMetadata" + } + } + ] + }, + "UpdateSchemaBundle": { + "requestType": "UpdateSchemaBundleRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v2/{schema_bundle.name=projects/*/instances/*/tables/*/schemaBundles/*}", + "(google.api.http).body": "schema_bundle", + "(google.api.method_signature)": "schema_bundle,update_mask", + "(google.longrunning.operation_info).response_type": "SchemaBundle", + "(google.longrunning.operation_info).metadata_type": "UpdateSchemaBundleMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v2/{schema_bundle.name=projects/*/instances/*/tables/*/schemaBundles/*}", + "body": "schema_bundle" + } + }, + { + "(google.api.method_signature)": "schema_bundle,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "SchemaBundle", + "metadata_type": "UpdateSchemaBundleMetadata" + } + } + ] + }, + "GetSchemaBundle": { + "requestType": "GetSchemaBundleRequest", + "responseType": "SchemaBundle", + "options": { + "(google.api.http).get": "/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListSchemaBundles": { + "requestType": "ListSchemaBundlesRequest", + "responseType": "ListSchemaBundlesResponse", + "options": { + "(google.api.http).get": "/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteSchemaBundle": { + "requestType": "DeleteSchemaBundleRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, @@ -3606,6 +3761,153 @@ } } }, + "CreateSchemaBundleRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "bigtableadmin.googleapis.com/Table" + } + }, + "schemaBundleId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "schemaBundle": { + "type": "SchemaBundle", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CreateSchemaBundleMetadata": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + } + } + }, + "UpdateSchemaBundleRequest": { + "fields": { + "schemaBundle": { + "type": "SchemaBundle", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "ignoreWarnings": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "UpdateSchemaBundleMetadata": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + } + } + }, + "GetSchemaBundleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "bigtableadmin.googleapis.com/SchemaBundle" + } + } + } + }, + "ListSchemaBundlesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "bigtableadmin.googleapis.com/SchemaBundle" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListSchemaBundlesResponse": { + "fields": { + "schemaBundles": { + "rule": "repeated", + "type": "SchemaBundle", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteSchemaBundleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "bigtableadmin.googleapis.com/SchemaBundle" + } + }, + "etag": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "RestoreInfo": { "oneofs": { "sourceInfo": { @@ -4127,6 +4429,52 @@ "BACKUP": 1 } }, + "ProtoSchema": { + "fields": { + "protoDescriptors": { + "type": "bytes", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SchemaBundle": { + "options": { + "(google.api.resource).type": "bigtableadmin.googleapis.com/SchemaBundle", + "(google.api.resource).pattern": "projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}", + "(google.api.resource).plural": "schemaBundles", + "(google.api.resource).singular": "schemaBundle" + }, + "oneofs": { + "type": { + "oneof": [ + "protoSchema" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IDENTIFIER" + } + }, + "protoSchema": { + "type": "ProtoSchema", + "id": 2 + }, + "etag": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "Type": { "oneofs": { "kind": { @@ -4142,7 +4490,9 @@ "aggregateType", "structType", "arrayType", - "mapType" + "mapType", + "protoType", + "enumType" ] } }, @@ -4194,6 +4544,14 @@ "mapType": { "type": "Map", "id": 4 + }, + "protoType": { + "type": "Proto", + "id": 13 + }, + "enumType": { + "type": "Enum", + "id": 14 } }, "nested": { @@ -4422,6 +4780,30 @@ } } }, + "Proto": { + "fields": { + "schemaBundleId": { + "type": "string", + "id": 1 + }, + "messageName": { + "type": "string", + "id": 2 + } + } + }, + "Enum": { + "fields": { + "schemaBundleId": { + "type": "string", + "id": 1 + }, + "enumName": { + "type": "string", + "id": 2 + } + } + }, "Array": { "fields": { "elementType": { @@ -4529,10 +4911,10 @@ "options": { "(google.api.http).post": "/v2/{table_name=projects/*/instances/*/tables/*}:readRows", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows", + "(google.api.http).additional_bindings.post": "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows", "(google.api.http).additional_bindings.body": "*", - "(google.api.routing).routing_parameters.field": "authorized_view_name", - "(google.api.routing).routing_parameters.path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}", + "(google.api.routing).routing_parameters.field": "materialized_view_name", + "(google.api.routing).routing_parameters.path_template": "{name=projects/*/instances/*}/**", "(google.api.method_signature)": "table_name,app_profile_id" }, "parsedOptions": [ @@ -4540,10 +4922,16 @@ "(google.api.http)": { "post": "/v2/{table_name=projects/*/instances/*/tables/*}:readRows", "body": "*", - "additional_bindings": { - "post": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows", + "body": "*" + }, + { + "post": "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows", + "body": "*" + } + ] } }, { @@ -4558,7 +4946,11 @@ }, { "field": "authorized_view_name", - "path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + "path_template": "{table_name=projects/*/instances/*/tables/*}/**" + }, + { + "field": "materialized_view_name", + "path_template": "{name=projects/*/instances/*}/**" } ] } @@ -4577,18 +4969,23 @@ "responseStream": true, "options": { "(google.api.http).get": "/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys", - "(google.api.http).additional_bindings.get": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys", - "(google.api.routing).routing_parameters.field": "authorized_view_name", - "(google.api.routing).routing_parameters.path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}", + "(google.api.http).additional_bindings.get": "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys", + "(google.api.routing).routing_parameters.field": "materialized_view_name", + "(google.api.routing).routing_parameters.path_template": "{name=projects/*/instances/*}/**", "(google.api.method_signature)": "table_name,app_profile_id" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys", - "additional_bindings": { - "get": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys" - } + "additional_bindings": [ + { + "get": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys" + }, + { + "get": "/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys" + } + ] } }, { @@ -4603,7 +5000,11 @@ }, { "field": "authorized_view_name", - "path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + "path_template": "{table_name=projects/*/instances/*/tables/*}/**" + }, + { + "field": "materialized_view_name", + "path_template": "{name=projects/*/instances/*}/**" } ] } @@ -4625,7 +5026,7 @@ "(google.api.http).additional_bindings.post": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRow", "(google.api.http).additional_bindings.body": "*", "(google.api.routing).routing_parameters.field": "authorized_view_name", - "(google.api.routing).routing_parameters.path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}", + "(google.api.routing).routing_parameters.path_template": "{table_name=projects/*/instances/*/tables/*}/**", "(google.api.method_signature)": "table_name,row_key,mutations,app_profile_id" }, "parsedOptions": [ @@ -4651,7 +5052,7 @@ }, { "field": "authorized_view_name", - "path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + "path_template": "{table_name=projects/*/instances/*/tables/*}/**" } ] } @@ -4674,7 +5075,7 @@ "(google.api.http).additional_bindings.post": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRows", "(google.api.http).additional_bindings.body": "*", "(google.api.routing).routing_parameters.field": "authorized_view_name", - "(google.api.routing).routing_parameters.path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}", + "(google.api.routing).routing_parameters.path_template": "{table_name=projects/*/instances/*/tables/*}/**", "(google.api.method_signature)": "table_name,entries,app_profile_id" }, "parsedOptions": [ @@ -4700,7 +5101,7 @@ }, { "field": "authorized_view_name", - "path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + "path_template": "{table_name=projects/*/instances/*/tables/*}/**" } ] } @@ -4722,7 +5123,7 @@ "(google.api.http).additional_bindings.post": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:checkAndMutateRow", "(google.api.http).additional_bindings.body": "*", "(google.api.routing).routing_parameters.field": "authorized_view_name", - "(google.api.routing).routing_parameters.path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}", + "(google.api.routing).routing_parameters.path_template": "{table_name=projects/*/instances/*/tables/*}/**", "(google.api.method_signature)": "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id" }, "parsedOptions": [ @@ -4748,7 +5149,7 @@ }, { "field": "authorized_view_name", - "path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + "path_template": "{table_name=projects/*/instances/*/tables/*}/**" } ] } @@ -4808,7 +5209,7 @@ "(google.api.http).additional_bindings.post": "/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readModifyWriteRow", "(google.api.http).additional_bindings.body": "*", "(google.api.routing).routing_parameters.field": "authorized_view_name", - "(google.api.routing).routing_parameters.path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}", + "(google.api.routing).routing_parameters.path_template": "{table_name=projects/*/instances/*/tables/*}/**", "(google.api.method_signature)": "table_name,row_key,rules,app_profile_id" }, "parsedOptions": [ @@ -4834,7 +5235,7 @@ }, { "field": "authorized_view_name", - "path_template": "{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}" + "path_template": "{table_name=projects/*/instances/*/tables/*}/**" } ] } @@ -5183,6 +5584,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "idempotency": { + "type": "Idempotency", + "id": 8 } } }, @@ -5234,6 +5639,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "idempotency": { + "type": "Idempotency", + "id": 3 } } } @@ -6437,6 +6846,18 @@ } } }, + "Idempotency": { + "fields": { + "token": { + "type": "bytes", + "id": 1 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, "Type": { "oneofs": { "kind": { @@ -6452,7 +6873,9 @@ "aggregateType", "structType", "arrayType", - "mapType" + "mapType", + "protoType", + "enumType" ] } }, @@ -6504,6 +6927,14 @@ "mapType": { "type": "Map", "id": 4 + }, + "protoType": { + "type": "Proto", + "id": 13 + }, + "enumType": { + "type": "Enum", + "id": 14 } }, "nested": { @@ -6531,7 +6962,12 @@ }, "nested": { "Raw": { - "fields": {} + "fields": { + "escapeNulls": { + "type": "bool", + "id": 1 + } + } } } } @@ -6575,7 +7011,12 @@ "fields": {} }, "Utf8Bytes": { - "fields": {} + "fields": { + "nullEscapeChar": { + "type": "string", + "id": 1 + } + } } } } @@ -6593,7 +7034,8 @@ "oneofs": { "encoding": { "oneof": [ - "bigEndianBytes" + "bigEndianBytes", + "orderedCodeBytes" ] } }, @@ -6601,6 +7043,10 @@ "bigEndianBytes": { "type": "BigEndianBytes", "id": 1 + }, + "orderedCodeBytes": { + "type": "OrderedCodeBytes", + "id": 2 } }, "nested": { @@ -6608,9 +7054,15 @@ "fields": { "bytesType": { "type": "Bytes", - "id": 1 + "id": 1, + "options": { + "deprecated": true + } } } + }, + "OrderedCodeBytes": { + "fields": {} } } } @@ -6626,7 +7078,29 @@ "fields": {} }, "Timestamp": { - "fields": {} + "fields": { + "encoding": { + "type": "Encoding", + "id": 1 + } + }, + "nested": { + "Encoding": { + "oneofs": { + "encoding": { + "oneof": [ + "unixMicrosInt64" + ] + } + }, + "fields": { + "unixMicrosInt64": { + "type": "Int64.Encoding", + "id": 1 + } + } + } + } }, "Date": { "fields": {} @@ -6637,6 +7111,10 @@ "rule": "repeated", "type": "Field", "id": 1 + }, + "encoding": { + "type": "Encoding", + "id": 2 } }, "nested": { @@ -6651,6 +7129,71 @@ "id": 2 } } + }, + "Encoding": { + "oneofs": { + "encoding": { + "oneof": [ + "singleton", + "delimitedBytes", + "orderedCodeBytes" + ] + } + }, + "fields": { + "singleton": { + "type": "Singleton", + "id": 1 + }, + "delimitedBytes": { + "type": "DelimitedBytes", + "id": 2 + }, + "orderedCodeBytes": { + "type": "OrderedCodeBytes", + "id": 3 + } + }, + "nested": { + "Singleton": { + "fields": {} + }, + "DelimitedBytes": { + "fields": { + "delimiter": { + "type": "bytes", + "id": 1 + } + } + }, + "OrderedCodeBytes": { + "fields": {} + } + } + } + } + }, + "Proto": { + "fields": { + "schemaBundleId": { + "type": "string", + "id": 1 + }, + "messageName": { + "type": "string", + "id": 2 + } + } + }, + "Enum": { + "fields": { + "schemaBundleId": { + "type": "string", + "id": 1 + }, + "enumName": { + "type": "string", + "id": 2 } } }, diff --git a/samples/generated/v2/bigtable_instance_admin.create_app_profile.js b/samples/generated/admin/v2/bigtable_instance_admin.create_app_profile.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.create_app_profile.js rename to samples/generated/admin/v2/bigtable_instance_admin.create_app_profile.js diff --git a/samples/generated/v2/bigtable_instance_admin.create_cluster.js b/samples/generated/admin/v2/bigtable_instance_admin.create_cluster.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.create_cluster.js rename to samples/generated/admin/v2/bigtable_instance_admin.create_cluster.js diff --git a/samples/generated/v2/bigtable_instance_admin.create_instance.js b/samples/generated/admin/v2/bigtable_instance_admin.create_instance.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.create_instance.js rename to samples/generated/admin/v2/bigtable_instance_admin.create_instance.js diff --git a/samples/generated/v2/bigtable_instance_admin.create_logical_view.js b/samples/generated/admin/v2/bigtable_instance_admin.create_logical_view.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.create_logical_view.js rename to samples/generated/admin/v2/bigtable_instance_admin.create_logical_view.js diff --git a/samples/generated/v2/bigtable_instance_admin.create_materialized_view.js b/samples/generated/admin/v2/bigtable_instance_admin.create_materialized_view.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.create_materialized_view.js rename to samples/generated/admin/v2/bigtable_instance_admin.create_materialized_view.js diff --git a/samples/generated/v2/bigtable_instance_admin.delete_app_profile.js b/samples/generated/admin/v2/bigtable_instance_admin.delete_app_profile.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.delete_app_profile.js rename to samples/generated/admin/v2/bigtable_instance_admin.delete_app_profile.js diff --git a/samples/generated/v2/bigtable_instance_admin.delete_cluster.js b/samples/generated/admin/v2/bigtable_instance_admin.delete_cluster.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.delete_cluster.js rename to samples/generated/admin/v2/bigtable_instance_admin.delete_cluster.js diff --git a/samples/generated/v2/bigtable_instance_admin.delete_instance.js b/samples/generated/admin/v2/bigtable_instance_admin.delete_instance.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.delete_instance.js rename to samples/generated/admin/v2/bigtable_instance_admin.delete_instance.js diff --git a/samples/generated/v2/bigtable_instance_admin.delete_logical_view.js b/samples/generated/admin/v2/bigtable_instance_admin.delete_logical_view.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.delete_logical_view.js rename to samples/generated/admin/v2/bigtable_instance_admin.delete_logical_view.js diff --git a/samples/generated/v2/bigtable_instance_admin.delete_materialized_view.js b/samples/generated/admin/v2/bigtable_instance_admin.delete_materialized_view.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.delete_materialized_view.js rename to samples/generated/admin/v2/bigtable_instance_admin.delete_materialized_view.js diff --git a/samples/generated/v2/bigtable_instance_admin.get_app_profile.js b/samples/generated/admin/v2/bigtable_instance_admin.get_app_profile.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.get_app_profile.js rename to samples/generated/admin/v2/bigtable_instance_admin.get_app_profile.js diff --git a/samples/generated/v2/bigtable_instance_admin.get_cluster.js b/samples/generated/admin/v2/bigtable_instance_admin.get_cluster.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.get_cluster.js rename to samples/generated/admin/v2/bigtable_instance_admin.get_cluster.js diff --git a/samples/generated/v2/bigtable_instance_admin.get_iam_policy.js b/samples/generated/admin/v2/bigtable_instance_admin.get_iam_policy.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.get_iam_policy.js rename to samples/generated/admin/v2/bigtable_instance_admin.get_iam_policy.js diff --git a/samples/generated/v2/bigtable_instance_admin.get_instance.js b/samples/generated/admin/v2/bigtable_instance_admin.get_instance.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.get_instance.js rename to samples/generated/admin/v2/bigtable_instance_admin.get_instance.js diff --git a/samples/generated/v2/bigtable_instance_admin.get_logical_view.js b/samples/generated/admin/v2/bigtable_instance_admin.get_logical_view.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.get_logical_view.js rename to samples/generated/admin/v2/bigtable_instance_admin.get_logical_view.js diff --git a/samples/generated/v2/bigtable_instance_admin.get_materialized_view.js b/samples/generated/admin/v2/bigtable_instance_admin.get_materialized_view.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.get_materialized_view.js rename to samples/generated/admin/v2/bigtable_instance_admin.get_materialized_view.js diff --git a/samples/generated/v2/bigtable_instance_admin.list_app_profiles.js b/samples/generated/admin/v2/bigtable_instance_admin.list_app_profiles.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.list_app_profiles.js rename to samples/generated/admin/v2/bigtable_instance_admin.list_app_profiles.js diff --git a/samples/generated/v2/bigtable_instance_admin.list_clusters.js b/samples/generated/admin/v2/bigtable_instance_admin.list_clusters.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.list_clusters.js rename to samples/generated/admin/v2/bigtable_instance_admin.list_clusters.js diff --git a/samples/generated/v2/bigtable_instance_admin.list_hot_tablets.js b/samples/generated/admin/v2/bigtable_instance_admin.list_hot_tablets.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.list_hot_tablets.js rename to samples/generated/admin/v2/bigtable_instance_admin.list_hot_tablets.js diff --git a/samples/generated/v2/bigtable_instance_admin.list_instances.js b/samples/generated/admin/v2/bigtable_instance_admin.list_instances.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.list_instances.js rename to samples/generated/admin/v2/bigtable_instance_admin.list_instances.js diff --git a/samples/generated/v2/bigtable_instance_admin.list_logical_views.js b/samples/generated/admin/v2/bigtable_instance_admin.list_logical_views.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.list_logical_views.js rename to samples/generated/admin/v2/bigtable_instance_admin.list_logical_views.js diff --git a/samples/generated/v2/bigtable_instance_admin.list_materialized_views.js b/samples/generated/admin/v2/bigtable_instance_admin.list_materialized_views.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.list_materialized_views.js rename to samples/generated/admin/v2/bigtable_instance_admin.list_materialized_views.js diff --git a/samples/generated/v2/bigtable_instance_admin.partial_update_cluster.js b/samples/generated/admin/v2/bigtable_instance_admin.partial_update_cluster.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.partial_update_cluster.js rename to samples/generated/admin/v2/bigtable_instance_admin.partial_update_cluster.js diff --git a/samples/generated/v2/bigtable_instance_admin.partial_update_instance.js b/samples/generated/admin/v2/bigtable_instance_admin.partial_update_instance.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.partial_update_instance.js rename to samples/generated/admin/v2/bigtable_instance_admin.partial_update_instance.js diff --git a/samples/generated/v2/bigtable_instance_admin.set_iam_policy.js b/samples/generated/admin/v2/bigtable_instance_admin.set_iam_policy.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.set_iam_policy.js rename to samples/generated/admin/v2/bigtable_instance_admin.set_iam_policy.js diff --git a/samples/generated/v2/bigtable_instance_admin.test_iam_permissions.js b/samples/generated/admin/v2/bigtable_instance_admin.test_iam_permissions.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.test_iam_permissions.js rename to samples/generated/admin/v2/bigtable_instance_admin.test_iam_permissions.js diff --git a/samples/generated/v2/bigtable_instance_admin.update_app_profile.js b/samples/generated/admin/v2/bigtable_instance_admin.update_app_profile.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.update_app_profile.js rename to samples/generated/admin/v2/bigtable_instance_admin.update_app_profile.js diff --git a/samples/generated/v2/bigtable_instance_admin.update_cluster.js b/samples/generated/admin/v2/bigtable_instance_admin.update_cluster.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.update_cluster.js rename to samples/generated/admin/v2/bigtable_instance_admin.update_cluster.js diff --git a/samples/generated/v2/bigtable_instance_admin.update_instance.js b/samples/generated/admin/v2/bigtable_instance_admin.update_instance.js similarity index 87% rename from samples/generated/v2/bigtable_instance_admin.update_instance.js rename to samples/generated/admin/v2/bigtable_instance_admin.update_instance.js index 2e212a7d4..f56effdc2 100644 --- a/samples/generated/v2/bigtable_instance_admin.update_instance.js +++ b/samples/generated/admin/v2/bigtable_instance_admin.update_instance.js @@ -20,7 +20,7 @@ 'use strict'; -function main(displayName, state, createTime, satisfiesPzs, satisfiesPzi) { +function main(displayName, state, createTime, satisfiesPzs, satisfiesPzi, tags) { // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_async] /** * This snippet has been automatically generated and should be regarded as a code template only. @@ -74,6 +74,17 @@ function main(displayName, state, createTime, satisfiesPzs, satisfiesPzi) { * Output only. Reserved for future use. */ // const satisfiesPzi = true + /** + * Optional. Input only. Immutable. Tag keys/values directly bound to this + * resource. For example: + * - "123/environment": "production", + * - "123/costCenter": "marketing" + * Tags and Labels (above) are both used to bind metadata to resources, with + * different use-cases. See + * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + * in-depth overview on the difference between tags and labels. + */ + // const tags = [1,2,3,4] // Imports the Admin library const {BigtableInstanceAdminClient} = require('@google-cloud/bigtable').v2; @@ -89,6 +100,7 @@ function main(displayName, state, createTime, satisfiesPzs, satisfiesPzi) { createTime, satisfiesPzs, satisfiesPzi, + tags, }; // Run request diff --git a/samples/generated/v2/bigtable_instance_admin.update_logical_view.js b/samples/generated/admin/v2/bigtable_instance_admin.update_logical_view.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.update_logical_view.js rename to samples/generated/admin/v2/bigtable_instance_admin.update_logical_view.js diff --git a/samples/generated/v2/bigtable_instance_admin.update_materialized_view.js b/samples/generated/admin/v2/bigtable_instance_admin.update_materialized_view.js similarity index 100% rename from samples/generated/v2/bigtable_instance_admin.update_materialized_view.js rename to samples/generated/admin/v2/bigtable_instance_admin.update_materialized_view.js diff --git a/samples/generated/v2/bigtable_table_admin.check_consistency.js b/samples/generated/admin/v2/bigtable_table_admin.check_consistency.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.check_consistency.js rename to samples/generated/admin/v2/bigtable_table_admin.check_consistency.js diff --git a/samples/generated/v2/bigtable_table_admin.copy_backup.js b/samples/generated/admin/v2/bigtable_table_admin.copy_backup.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.copy_backup.js rename to samples/generated/admin/v2/bigtable_table_admin.copy_backup.js diff --git a/samples/generated/v2/bigtable_table_admin.create_authorized_view.js b/samples/generated/admin/v2/bigtable_table_admin.create_authorized_view.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.create_authorized_view.js rename to samples/generated/admin/v2/bigtable_table_admin.create_authorized_view.js diff --git a/samples/generated/v2/bigtable_table_admin.create_backup.js b/samples/generated/admin/v2/bigtable_table_admin.create_backup.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.create_backup.js rename to samples/generated/admin/v2/bigtable_table_admin.create_backup.js diff --git a/samples/generated/admin/v2/bigtable_table_admin.create_schema_bundle.js b/samples/generated/admin/v2/bigtable_table_admin.create_schema_bundle.js new file mode 100644 index 000000000..328cee730 --- /dev/null +++ b/samples/generated/admin/v2/bigtable_table_admin.create_schema_bundle.js @@ -0,0 +1,75 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT 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'; + +function main(parent, schemaBundleId, schemaBundle) { + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource where this schema bundle will be created. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + */ + // const parent = 'abc123' + /** + * Required. The unique ID to use for the schema bundle, which will become the + * final component of the schema bundle's resource name. + */ + // const schemaBundleId = 'abc123' + /** + * Required. The schema bundle to create. + */ + // const schemaBundle = {} + + // Imports the Admin library + const {BigtableTableAdminClient} = require('@google-cloud/bigtable').v2; + + // Instantiates a client + const adminClient = new BigtableTableAdminClient(); + + async function callCreateSchemaBundle() { + // Construct request + const request = { + parent, + schemaBundleId, + schemaBundle, + }; + + // Run request + const [operation] = await adminClient.createSchemaBundle(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateSchemaBundle(); + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v2/bigtable_table_admin.create_table.js b/samples/generated/admin/v2/bigtable_table_admin.create_table.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.create_table.js rename to samples/generated/admin/v2/bigtable_table_admin.create_table.js diff --git a/samples/generated/v2/bigtable_table_admin.create_table_from_snapshot.js b/samples/generated/admin/v2/bigtable_table_admin.create_table_from_snapshot.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.create_table_from_snapshot.js rename to samples/generated/admin/v2/bigtable_table_admin.create_table_from_snapshot.js diff --git a/samples/generated/v2/bigtable_table_admin.delete_authorized_view.js b/samples/generated/admin/v2/bigtable_table_admin.delete_authorized_view.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.delete_authorized_view.js rename to samples/generated/admin/v2/bigtable_table_admin.delete_authorized_view.js diff --git a/samples/generated/v2/bigtable_table_admin.delete_backup.js b/samples/generated/admin/v2/bigtable_table_admin.delete_backup.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.delete_backup.js rename to samples/generated/admin/v2/bigtable_table_admin.delete_backup.js diff --git a/samples/generated/admin/v2/bigtable_table_admin.delete_schema_bundle.js b/samples/generated/admin/v2/bigtable_table_admin.delete_schema_bundle.js new file mode 100644 index 000000000..cb927ebb0 --- /dev/null +++ b/samples/generated/admin/v2/bigtable_table_admin.delete_schema_bundle.js @@ -0,0 +1,69 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** 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'; + +function main(name) { + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The unique name of the schema bundle to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + */ + // const name = 'abc123' + /** + * Optional. The etag of the schema bundle. + * If this is provided, it must match the server's etag. The server + * returns an ABORTED error on a mismatched etag. + */ + // const etag = 'abc123' + + // Imports the Admin library + const {BigtableTableAdminClient} = require('@google-cloud/bigtable').v2; + + // Instantiates a client + const adminClient = new BigtableTableAdminClient(); + + async function callDeleteSchemaBundle() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteSchemaBundle(request); + console.log(response); + } + + callDeleteSchemaBundle(); + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v2/bigtable_table_admin.delete_snapshot.js b/samples/generated/admin/v2/bigtable_table_admin.delete_snapshot.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.delete_snapshot.js rename to samples/generated/admin/v2/bigtable_table_admin.delete_snapshot.js diff --git a/samples/generated/v2/bigtable_table_admin.delete_table.js b/samples/generated/admin/v2/bigtable_table_admin.delete_table.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.delete_table.js rename to samples/generated/admin/v2/bigtable_table_admin.delete_table.js diff --git a/samples/generated/v2/bigtable_table_admin.drop_row_range.js b/samples/generated/admin/v2/bigtable_table_admin.drop_row_range.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.drop_row_range.js rename to samples/generated/admin/v2/bigtable_table_admin.drop_row_range.js diff --git a/samples/generated/v2/bigtable_table_admin.generate_consistency_token.js b/samples/generated/admin/v2/bigtable_table_admin.generate_consistency_token.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.generate_consistency_token.js rename to samples/generated/admin/v2/bigtable_table_admin.generate_consistency_token.js diff --git a/samples/generated/v2/bigtable_table_admin.get_authorized_view.js b/samples/generated/admin/v2/bigtable_table_admin.get_authorized_view.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.get_authorized_view.js rename to samples/generated/admin/v2/bigtable_table_admin.get_authorized_view.js diff --git a/samples/generated/v2/bigtable_table_admin.get_backup.js b/samples/generated/admin/v2/bigtable_table_admin.get_backup.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.get_backup.js rename to samples/generated/admin/v2/bigtable_table_admin.get_backup.js diff --git a/samples/generated/v2/bigtable_table_admin.get_iam_policy.js b/samples/generated/admin/v2/bigtable_table_admin.get_iam_policy.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.get_iam_policy.js rename to samples/generated/admin/v2/bigtable_table_admin.get_iam_policy.js diff --git a/samples/generated/admin/v2/bigtable_table_admin.get_schema_bundle.js b/samples/generated/admin/v2/bigtable_table_admin.get_schema_bundle.js new file mode 100644 index 000000000..9d810f4c4 --- /dev/null +++ b/samples/generated/admin/v2/bigtable_table_admin.get_schema_bundle.js @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** 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'; + +function main(name) { + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The unique name of the schema bundle to retrieve. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + */ + // const name = 'abc123' + + // Imports the Admin library + const {BigtableTableAdminClient} = require('@google-cloud/bigtable').v2; + + // Instantiates a client + const adminClient = new BigtableTableAdminClient(); + + async function callGetSchemaBundle() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getSchemaBundle(request); + console.log(response); + } + + callGetSchemaBundle(); + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v2/bigtable_table_admin.get_snapshot.js b/samples/generated/admin/v2/bigtable_table_admin.get_snapshot.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.get_snapshot.js rename to samples/generated/admin/v2/bigtable_table_admin.get_snapshot.js diff --git a/samples/generated/v2/bigtable_table_admin.get_table.js b/samples/generated/admin/v2/bigtable_table_admin.get_table.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.get_table.js rename to samples/generated/admin/v2/bigtable_table_admin.get_table.js diff --git a/samples/generated/v2/bigtable_table_admin.list_authorized_views.js b/samples/generated/admin/v2/bigtable_table_admin.list_authorized_views.js similarity index 98% rename from samples/generated/v2/bigtable_table_admin.list_authorized_views.js rename to samples/generated/admin/v2/bigtable_table_admin.list_authorized_views.js index a2a81e6eb..188c73441 100644 --- a/samples/generated/v2/bigtable_table_admin.list_authorized_views.js +++ b/samples/generated/admin/v2/bigtable_table_admin.list_authorized_views.js @@ -49,8 +49,8 @@ function main(parent) { */ // const pageToken = 'abc123' /** - * Optional. The resource_view to be applied to the returned views' fields. - * Default to NAME_ONLY. + * Optional. The resource_view to be applied to the returned AuthorizedViews' + * fields. Default to NAME_ONLY. */ // const view = {} diff --git a/samples/generated/v2/bigtable_table_admin.list_backups.js b/samples/generated/admin/v2/bigtable_table_admin.list_backups.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.list_backups.js rename to samples/generated/admin/v2/bigtable_table_admin.list_backups.js diff --git a/samples/generated/admin/v2/bigtable_table_admin.list_schema_bundles.js b/samples/generated/admin/v2/bigtable_table_admin.list_schema_bundles.js new file mode 100644 index 000000000..3747094ae --- /dev/null +++ b/samples/generated/admin/v2/bigtable_table_admin.list_schema_bundles.js @@ -0,0 +1,78 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT 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'; + +function main(parent) { + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + */ + // const parent = 'abc123' + /** + * The maximum number of schema bundles to return. If the value is positive, + * the server may return at most this value. If unspecified, the server will + * return the maximum allowed page size. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListSchemaBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSchemaBundles` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {BigtableTableAdminClient} = require('@google-cloud/bigtable').v2; + + // Instantiates a client + const adminClient = new BigtableTableAdminClient(); + + async function callListSchemaBundles() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = adminClient.listSchemaBundlesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListSchemaBundles(); + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v2/bigtable_table_admin.list_snapshots.js b/samples/generated/admin/v2/bigtable_table_admin.list_snapshots.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.list_snapshots.js rename to samples/generated/admin/v2/bigtable_table_admin.list_snapshots.js diff --git a/samples/generated/v2/bigtable_table_admin.list_tables.js b/samples/generated/admin/v2/bigtable_table_admin.list_tables.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.list_tables.js rename to samples/generated/admin/v2/bigtable_table_admin.list_tables.js diff --git a/samples/generated/v2/bigtable_table_admin.modify_column_families.js b/samples/generated/admin/v2/bigtable_table_admin.modify_column_families.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.modify_column_families.js rename to samples/generated/admin/v2/bigtable_table_admin.modify_column_families.js diff --git a/samples/generated/v2/bigtable_table_admin.restore_table.js b/samples/generated/admin/v2/bigtable_table_admin.restore_table.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.restore_table.js rename to samples/generated/admin/v2/bigtable_table_admin.restore_table.js diff --git a/samples/generated/v2/bigtable_table_admin.set_iam_policy.js b/samples/generated/admin/v2/bigtable_table_admin.set_iam_policy.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.set_iam_policy.js rename to samples/generated/admin/v2/bigtable_table_admin.set_iam_policy.js diff --git a/samples/generated/v2/bigtable_table_admin.snapshot_table.js b/samples/generated/admin/v2/bigtable_table_admin.snapshot_table.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.snapshot_table.js rename to samples/generated/admin/v2/bigtable_table_admin.snapshot_table.js diff --git a/samples/generated/v2/bigtable_table_admin.test_iam_permissions.js b/samples/generated/admin/v2/bigtable_table_admin.test_iam_permissions.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.test_iam_permissions.js rename to samples/generated/admin/v2/bigtable_table_admin.test_iam_permissions.js diff --git a/samples/generated/v2/bigtable_table_admin.undelete_table.js b/samples/generated/admin/v2/bigtable_table_admin.undelete_table.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.undelete_table.js rename to samples/generated/admin/v2/bigtable_table_admin.undelete_table.js diff --git a/samples/generated/v2/bigtable_table_admin.update_authorized_view.js b/samples/generated/admin/v2/bigtable_table_admin.update_authorized_view.js similarity index 96% rename from samples/generated/v2/bigtable_table_admin.update_authorized_view.js rename to samples/generated/admin/v2/bigtable_table_admin.update_authorized_view.js index 5d226b695..621ae408a 100644 --- a/samples/generated/v2/bigtable_table_admin.update_authorized_view.js +++ b/samples/generated/admin/v2/bigtable_table_admin.update_authorized_view.js @@ -31,8 +31,8 @@ function main(authorizedView) { /** * Required. The AuthorizedView to update. The `name` in `authorized_view` is * used to identify the AuthorizedView. AuthorizedView name must in this - * format - * projects//instances//tables/
/authorizedViews/ + * format: + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. */ // const authorizedView = {} /** diff --git a/samples/generated/v2/bigtable_table_admin.update_backup.js b/samples/generated/admin/v2/bigtable_table_admin.update_backup.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.update_backup.js rename to samples/generated/admin/v2/bigtable_table_admin.update_backup.js diff --git a/samples/generated/admin/v2/bigtable_table_admin.update_schema_bundle.js b/samples/generated/admin/v2/bigtable_table_admin.update_schema_bundle.js new file mode 100644 index 000000000..e241b63ad --- /dev/null +++ b/samples/generated/admin/v2/bigtable_table_admin.update_schema_bundle.js @@ -0,0 +1,76 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT 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'; + +function main(schemaBundle) { + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The schema bundle to update. + * The schema bundle's `name` field is used to identify the schema bundle to + * update. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + */ + // const schemaBundle = {} + /** + * Optional. The list of fields to update. + */ + // const updateMask = {} + /** + * Optional. If set, ignore the safety checks when updating the Schema Bundle. + * The safety checks are: + * - The new Schema Bundle is backwards compatible with the existing Schema + * Bundle. + */ + // const ignoreWarnings = true + + // Imports the Admin library + const {BigtableTableAdminClient} = require('@google-cloud/bigtable').v2; + + // Instantiates a client + const adminClient = new BigtableTableAdminClient(); + + async function callUpdateSchemaBundle() { + // Construct request + const request = { + schemaBundle, + }; + + // Run request + const [operation] = await adminClient.updateSchemaBundle(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateSchemaBundle(); + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v2/bigtable_table_admin.update_table.js b/samples/generated/admin/v2/bigtable_table_admin.update_table.js similarity index 100% rename from samples/generated/v2/bigtable_table_admin.update_table.js rename to samples/generated/admin/v2/bigtable_table_admin.update_table.js diff --git a/samples/generated/admin/v2/snippet_metadata_google.bigtable.admin.v2.json b/samples/generated/admin/v2/snippet_metadata_google.bigtable.admin.v2.json new file mode 100644 index 000000000..cc9e3e410 --- /dev/null +++ b/samples/generated/admin/v2/snippet_metadata_google.bigtable.admin.v2.json @@ -0,0 +1,3087 @@ +{ + "clientLibrary": { + "name": "nodejs-admin", + "version": "0.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.bigtable.admin.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async", + "title": "bigtable createInstance Sample", + "origin": "API_DEFINITION", + "description": " Create an instance within a project. Note that exactly one of Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled.", + "canonical": true, + "file": "bigtable_instance_admin.create_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 76, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "instance_id", + "type": "TYPE_STRING" + }, + { + "name": "instance", + "type": ".google.bigtable.admin.v2.Instance" + }, + { + "name": "clusters", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async", + "title": "bigtable getInstance Sample", + "origin": "API_DEFINITION", + "description": " Gets information about an instance.", + "canonical": true, + "file": "bigtable_instance_admin.get_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.Instance", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async", + "title": "bigtable listInstances Sample", + "origin": "API_DEFINITION", + "description": " Lists information about instances in a project.", + "canonical": true, + "file": "bigtable_instance_admin.list_instances.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListInstancesResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_async", + "title": "bigtable updateInstance Sample", + "origin": "API_DEFINITION", + "description": " Updates an instance within a project. This method updates only the display name and type for an Instance. To update other Instance properties, such as labels, use PartialUpdateInstance.", + "canonical": true, + "file": "bigtable_instance_admin.update_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 111, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "display_name", + "type": "TYPE_STRING" + }, + { + "name": "state", + "type": ".google.bigtable.admin.v2.Instance.State" + }, + { + "name": "type", + "type": ".google.bigtable.admin.v2.Instance.Type" + }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "create_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "satisfies_pzs", + "type": "TYPE_BOOL" + }, + { + "name": "satisfies_pzi", + "type": "TYPE_BOOL" + }, + { + "name": "tags", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.bigtable.admin.v2.Instance", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_async", + "title": "bigtable partialUpdateInstance Sample", + "origin": "API_DEFINITION", + "description": " Partially updates an instance within a project. This method can modify all fields of an Instance and is the preferred way to update an Instance.", + "canonical": true, + "file": "bigtable_instance_admin.partial_update_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PartialUpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "async": true, + "parameters": [ + { + "name": "instance", + "type": ".google.bigtable.admin.v2.Instance" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async", + "title": "bigtable deleteInstance Sample", + "origin": "API_DEFINITION", + "description": " Delete an instance from a project.", + "canonical": true, + "file": "bigtable_instance_admin.delete_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async", + "title": "bigtable createCluster Sample", + "origin": "API_DEFINITION", + "description": " Creates a cluster within an instance. Note that exactly one of Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled.", + "canonical": true, + "file": "bigtable_instance_admin.create_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "cluster", + "type": ".google.bigtable.admin.v2.Cluster" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async", + "title": "bigtable getCluster Sample", + "origin": "API_DEFINITION", + "description": " Gets information about a cluster.", + "canonical": true, + "file": "bigtable_instance_admin.get_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.Cluster", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async", + "title": "bigtable listClusters Sample", + "origin": "API_DEFINITION", + "description": " Lists information about clusters in an instance.", + "canonical": true, + "file": "bigtable_instance_admin.list_clusters.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListClusters", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListClustersResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_async", + "title": "bigtable updateCluster Sample", + "origin": "API_DEFINITION", + "description": " Updates a cluster within an instance. Note that UpdateCluster does not support updating cluster_config.cluster_autoscaling_config. In order to update it, you must use PartialUpdateCluster.", + "canonical": true, + "file": "bigtable_instance_admin.update_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 93, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "location", + "type": "TYPE_STRING" + }, + { + "name": "state", + "type": ".google.bigtable.admin.v2.Cluster.State" + }, + { + "name": "serve_nodes", + "type": "TYPE_INT32" + }, + { + "name": "node_scaling_factor", + "type": ".google.bigtable.admin.v2.Cluster.NodeScalingFactor" + }, + { + "name": "cluster_config", + "type": ".google.bigtable.admin.v2.Cluster.ClusterConfig" + }, + { + "name": "default_storage_type", + "type": ".google.bigtable.admin.v2.StorageType" + }, + { + "name": "encryption_config", + "type": ".google.bigtable.admin.v2.Cluster.EncryptionConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_async", + "title": "bigtable partialUpdateCluster Sample", + "origin": "API_DEFINITION", + "description": " Partially updates a cluster within a project. This method is the preferred way to update a Cluster. To enable and update autoscaling, set cluster_config.cluster_autoscaling_config. When autoscaling is enabled, serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it are ignored. Note that an update cannot simultaneously set serve_nodes to non-zero and cluster_config.cluster_autoscaling_config to non-empty, and also specify both in the update_mask. To disable autoscaling, clear cluster_config.cluster_autoscaling_config, and explicitly set a serve_node count via the update_mask.", + "canonical": true, + "file": "bigtable_instance_admin.partial_update_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PartialUpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "async": true, + "parameters": [ + { + "name": "cluster", + "type": ".google.bigtable.admin.v2.Cluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async", + "title": "bigtable deleteCluster Sample", + "origin": "API_DEFINITION", + "description": " Deletes a cluster from an instance.", + "canonical": true, + "file": "bigtable_instance_admin.delete_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async", + "title": "bigtable createAppProfile Sample", + "origin": "API_DEFINITION", + "description": " Creates an app profile within an instance.", + "canonical": true, + "file": "bigtable_instance_admin.create_app_profile.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "app_profile_id", + "type": "TYPE_STRING" + }, + { + "name": "app_profile", + "type": ".google.bigtable.admin.v2.AppProfile" + }, + { + "name": "ignore_warnings", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.bigtable.admin.v2.AppProfile", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async", + "title": "bigtable getAppProfile Sample", + "origin": "API_DEFINITION", + "description": " Gets information about an app profile.", + "canonical": true, + "file": "bigtable_instance_admin.get_app_profile.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.AppProfile", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async", + "title": "bigtable listAppProfiles Sample", + "origin": "API_DEFINITION", + "description": " Lists information about app profiles in an instance.", + "canonical": true, + "file": "bigtable_instance_admin.list_app_profiles.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAppProfiles", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListAppProfilesResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListAppProfiles", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_async", + "title": "bigtable updateAppProfile Sample", + "origin": "API_DEFINITION", + "description": " Updates an app profile within an instance.", + "canonical": true, + "file": "bigtable_instance_admin.update_app_profile.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "async": true, + "parameters": [ + { + "name": "app_profile", + "type": ".google.bigtable.admin.v2.AppProfile" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "ignore_warnings", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async", + "title": "bigtable deleteAppProfile Sample", + "origin": "API_DEFINITION", + "description": " Deletes an app profile from an instance.", + "canonical": true, + "file": "bigtable_instance_admin.delete_app_profile.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "ignore_warnings", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async", + "title": "bigtable getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set.", + "canonical": true, + "file": "bigtable_instance_admin.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "options", + "type": ".google.iam.v1.GetPolicyOptions" + } + ], + "resultType": ".google.iam.v1.Policy", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async", + "title": "bigtable setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on an instance resource. Replaces any existing policy.", + "canonical": true, + "file": "bigtable_instance_admin.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "policy", + "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.iam.v1.Policy", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async", + "title": "bigtable testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that the caller has on the specified instance resource.", + "canonical": true, + "file": "bigtable_instance_admin.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "permissions", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.iam.v1.TestIamPermissionsResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async", + "title": "bigtable listHotTablets Sample", + "origin": "API_DEFINITION", + "description": " Lists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based on CPU usage.", + "canonical": true, + "file": "bigtable_instance_admin.list_hot_tablets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 84, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListHotTablets", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "start_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "end_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListHotTabletsResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListHotTablets", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_async", + "title": "bigtable createLogicalView Sample", + "origin": "API_DEFINITION", + "description": " Creates a logical view within an instance.", + "canonical": true, + "file": "bigtable_instance_admin.create_logical_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateLogicalView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "logical_view_id", + "type": "TYPE_STRING" + }, + { + "name": "logical_view", + "type": ".google.bigtable.admin.v2.LogicalView" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateLogicalView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_async", + "title": "bigtable getLogicalView Sample", + "origin": "API_DEFINITION", + "description": " Gets information about a logical view.", + "canonical": true, + "file": "bigtable_instance_admin.get_logical_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetLogicalView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.LogicalView", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetLogicalView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_async", + "title": "bigtable listLogicalViews Sample", + "origin": "API_DEFINITION", + "description": " Lists information about logical views in an instance.", + "canonical": true, + "file": "bigtable_instance_admin.list_logical_views.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListLogicalViews", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListLogicalViewsResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListLogicalViews", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_async", + "title": "bigtable updateLogicalView Sample", + "origin": "API_DEFINITION", + "description": " Updates a logical view within an instance.", + "canonical": true, + "file": "bigtable_instance_admin.update_logical_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateLogicalView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", + "async": true, + "parameters": [ + { + "name": "logical_view", + "type": ".google.bigtable.admin.v2.LogicalView" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateLogicalView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_async", + "title": "bigtable deleteLogicalView Sample", + "origin": "API_DEFINITION", + "description": " Deletes a logical view from an instance.", + "canonical": true, + "file": "bigtable_instance_admin.delete_logical_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteLogicalView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteLogicalView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_async", + "title": "bigtable createMaterializedView Sample", + "origin": "API_DEFINITION", + "description": " Creates a materialized view within an instance.", + "canonical": true, + "file": "bigtable_instance_admin.create_materialized_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateMaterializedView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "materialized_view_id", + "type": "TYPE_STRING" + }, + { + "name": "materialized_view", + "type": ".google.bigtable.admin.v2.MaterializedView" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateMaterializedView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_async", + "title": "bigtable getMaterializedView Sample", + "origin": "API_DEFINITION", + "description": " Gets information about a materialized view.", + "canonical": true, + "file": "bigtable_instance_admin.get_materialized_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetMaterializedView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.MaterializedView", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetMaterializedView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_async", + "title": "bigtable listMaterializedViews Sample", + "origin": "API_DEFINITION", + "description": " Lists information about materialized views in an instance.", + "canonical": true, + "file": "bigtable_instance_admin.list_materialized_views.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListMaterializedViews", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListMaterializedViewsResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListMaterializedViews", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_async", + "title": "bigtable updateMaterializedView Sample", + "origin": "API_DEFINITION", + "description": " Updates a materialized view within an instance.", + "canonical": true, + "file": "bigtable_instance_admin.update_materialized_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateMaterializedView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", + "async": true, + "parameters": [ + { + "name": "materialized_view", + "type": ".google.bigtable.admin.v2.MaterializedView" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateMaterializedView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_async", + "title": "bigtable deleteMaterializedView Sample", + "origin": "API_DEFINITION", + "description": " Deletes a materialized view from an instance.", + "canonical": true, + "file": "bigtable_instance_admin.delete_materialized_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteMaterializedView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteMaterializedView", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async", + "title": "bigtable createTable Sample", + "origin": "API_DEFINITION", + "description": " Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.", + "canonical": true, + "file": "bigtable_table_admin.create_table.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 83, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "table_id", + "type": "TYPE_STRING" + }, + { + "name": "table", + "type": ".google.bigtable.admin.v2.Table" + }, + { + "name": "initial_splits", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.bigtable.admin.v2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async", + "title": "bigtable createTableFromSnapshot Sample", + "origin": "API_DEFINITION", + "description": " Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", + "canonical": true, + "file": "bigtable_table_admin.create_table_from_snapshot.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateTableFromSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "table_id", + "type": "TYPE_STRING" + }, + { + "name": "source_snapshot", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTableFromSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async", + "title": "bigtable listTables Sample", + "origin": "API_DEFINITION", + "description": " Lists all tables served from a specified instance.", + "canonical": true, + "file": "bigtable_table_admin.list_tables.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListTables", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.bigtable.admin.v2.Table.View" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListTablesResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListTables", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async", + "title": "bigtable getTable Sample", + "origin": "API_DEFINITION", + "description": " Gets metadata information about the specified table.", + "canonical": true, + "file": "bigtable_table_admin.get_table.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.bigtable.admin.v2.Table.View" + } + ], + "resultType": ".google.bigtable.admin.v2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_async", + "title": "bigtable updateTable Sample", + "origin": "API_DEFINITION", + "description": " Updates a specified table.", + "canonical": true, + "file": "bigtable_table_admin.update_table.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "async": true, + "parameters": [ + { + "name": "table", + "type": ".google.bigtable.admin.v2.Table" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "ignore_warnings", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async", + "title": "bigtable deleteTable Sample", + "origin": "API_DEFINITION", + "description": " Permanently deletes a specified table and all of its data.", + "canonical": true, + "file": "bigtable_table_admin.delete_table.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async", + "title": "bigtable undeleteTable Sample", + "origin": "API_DEFINITION", + "description": " Restores a specified table which was accidentally deleted.", + "canonical": true, + "file": "bigtable_table_admin.undelete_table.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UndeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UndeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async", + "title": "bigtable createAuthorizedView Sample", + "origin": "API_DEFINITION", + "description": " Creates a new AuthorizedView in a table.", + "canonical": true, + "file": "bigtable_table_admin.create_authorized_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "authorized_view_id", + "type": "TYPE_STRING" + }, + { + "name": "authorized_view", + "type": ".google.bigtable.admin.v2.AuthorizedView" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async", + "title": "bigtable listAuthorizedViews Sample", + "origin": "API_DEFINITION", + "description": " Lists all AuthorizedViews from a specific table.", + "canonical": true, + "file": "bigtable_table_admin.list_authorized_views.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 76, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAuthorizedViews", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.bigtable.admin.v2.AuthorizedView.ResponseView" + } + ], + "resultType": ".google.bigtable.admin.v2.ListAuthorizedViewsResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListAuthorizedViews", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async", + "title": "bigtable getAuthorizedView Sample", + "origin": "API_DEFINITION", + "description": " Gets information from a specified AuthorizedView.", + "canonical": true, + "file": "bigtable_table_admin.get_authorized_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.bigtable.admin.v2.AuthorizedView.ResponseView" + } + ], + "resultType": ".google.bigtable.admin.v2.AuthorizedView", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_async", + "title": "bigtable updateAuthorizedView Sample", + "origin": "API_DEFINITION", + "description": " Updates an AuthorizedView in a table.", + "canonical": true, + "file": "bigtable_table_admin.update_authorized_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "async": true, + "parameters": [ + { + "name": "authorized_view", + "type": ".google.bigtable.admin.v2.AuthorizedView" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "ignore_warnings", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async", + "title": "bigtable deleteAuthorizedView Sample", + "origin": "API_DEFINITION", + "description": " Permanently deletes a specified AuthorizedView.", + "canonical": true, + "file": "bigtable_table_admin.delete_authorized_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async", + "title": "bigtable modifyColumnFamilies Sample", + "origin": "API_DEFINITION", + "description": " Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.", + "canonical": true, + "file": "bigtable_table_admin.modify_column_families.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ModifyColumnFamilies", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "modifications", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "ignore_warnings", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.bigtable.admin.v2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ModifyColumnFamilies", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_async", + "title": "bigtable dropRowRange Sample", + "origin": "API_DEFINITION", + "description": " Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix.", + "canonical": true, + "file": "bigtable_table_admin.drop_row_range.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DropRowRange", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "row_key_prefix", + "type": "TYPE_BYTES" + }, + { + "name": "delete_all_data_from_table", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DropRowRange", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async", + "title": "bigtable generateConsistencyToken Sample", + "origin": "API_DEFINITION", + "description": " Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.", + "canonical": true, + "file": "bigtable_table_admin.generate_consistency_token.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GenerateConsistencyToken", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.GenerateConsistencyTokenResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GenerateConsistencyToken", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async", + "title": "bigtable checkConsistency Sample", + "origin": "API_DEFINITION", + "description": " Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.", + "canonical": true, + "file": "bigtable_table_admin.check_consistency.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CheckConsistency", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "consistency_token", + "type": "TYPE_STRING" + }, + { + "name": "standard_read_remote_writes", + "type": ".google.bigtable.admin.v2.StandardReadRemoteWrites" + }, + { + "name": "data_boost_read_local_writes", + "type": ".google.bigtable.admin.v2.DataBoostReadLocalWrites" + } + ], + "resultType": ".google.bigtable.admin.v2.CheckConsistencyResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CheckConsistency", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async", + "title": "bigtable snapshotTable Sample", + "origin": "API_DEFINITION", + "description": " Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", + "canonical": true, + "file": "bigtable_table_admin.snapshot_table.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SnapshotTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "cluster", + "type": "TYPE_STRING" + }, + { + "name": "snapshot_id", + "type": "TYPE_STRING" + }, + { + "name": "ttl", + "type": ".google.protobuf.Duration" + }, + { + "name": "description", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SnapshotTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async", + "title": "bigtable getSnapshot Sample", + "origin": "API_DEFINITION", + "description": " Gets metadata information about the specified snapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", + "canonical": true, + "file": "bigtable_table_admin.get_snapshot.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.Snapshot", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async", + "title": "bigtable listSnapshots Sample", + "origin": "API_DEFINITION", + "description": " Lists all snapshots associated with the specified cluster. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", + "canonical": true, + "file": "bigtable_table_admin.list_snapshots.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListSnapshots", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListSnapshotsResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListSnapshots", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async", + "title": "bigtable deleteSnapshot Sample", + "origin": "API_DEFINITION", + "description": " Permanently deletes the specified snapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", + "canonical": true, + "file": "bigtable_table_admin.delete_snapshot.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async", + "title": "bigtable createBackup Sample", + "origin": "API_DEFINITION", + "description": " Starts creating a new Cloud Bigtable Backup. The returned backup [long-running operation][google.longrunning.Operation] can be used to track creation of the backup. The [metadata][google.longrunning.Operation.metadata] field type is [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the creation and delete the backup.", + "canonical": true, + "file": "bigtable_table_admin.create_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "backup_id", + "type": "TYPE_STRING" + }, + { + "name": "backup", + "type": ".google.bigtable.admin.v2.Backup" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async", + "title": "bigtable getBackup Sample", + "origin": "API_DEFINITION", + "description": " Gets metadata on a pending or completed Cloud Bigtable Backup.", + "canonical": true, + "file": "bigtable_table_admin.get_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.Backup", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_async", + "title": "bigtable updateBackup Sample", + "origin": "API_DEFINITION", + "description": " Updates a pending or completed Cloud Bigtable Backup.", + "canonical": true, + "file": "bigtable_table_admin.update_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "async": true, + "parameters": [ + { + "name": "backup", + "type": ".google.bigtable.admin.v2.Backup" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.bigtable.admin.v2.Backup", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async", + "title": "bigtable deleteBackup Sample", + "origin": "API_DEFINITION", + "description": " Deletes a pending or completed Cloud Bigtable backup.", + "canonical": true, + "file": "bigtable_table_admin.delete_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async", + "title": "bigtable listBackups Sample", + "origin": "API_DEFINITION", + "description": " Lists Cloud Bigtable backups. Returns both completed and pending backups.", + "canonical": true, + "file": "bigtable_table_admin.list_backups.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 123, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListBackups", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListBackupsResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_async", + "title": "bigtable restoreTable Sample", + "origin": "API_DEFINITION", + "description": " Create a new table by restoring from a completed backup. The returned table [long-running operation][google.longrunning.Operation] can be used to track the progress of the operation, and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The [response][google.longrunning.Operation.response] type is [Table][google.bigtable.admin.v2.Table], if successful.", + "canonical": true, + "file": "bigtable_table_admin.restore_table.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RestoreTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "table_id", + "type": "TYPE_STRING" + }, + { + "name": "backup", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "RestoreTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async", + "title": "bigtable copyBackup Sample", + "origin": "API_DEFINITION", + "description": " Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.", + "canonical": true, + "file": "bigtable_table_admin.copy_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 86, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CopyBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "backup_id", + "type": "TYPE_STRING" + }, + { + "name": "source_backup", + "type": "TYPE_STRING" + }, + { + "name": "expire_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CopyBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async", + "title": "bigtable getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.", + "canonical": true, + "file": "bigtable_table_admin.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "options", + "type": ".google.iam.v1.GetPolicyOptions" + } + ], + "resultType": ".google.iam.v1.Policy", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async", + "title": "bigtable setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on a Bigtable resource. Replaces any existing policy.", + "canonical": true, + "file": "bigtable_table_admin.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 69, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "policy", + "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.iam.v1.Policy", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async", + "title": "bigtable testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that the caller has on the specified Bigtable resource.", + "canonical": true, + "file": "bigtable_table_admin.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "permissions", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.iam.v1.TestIamPermissionsResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_async", + "title": "bigtable createSchemaBundle Sample", + "origin": "API_DEFINITION", + "description": " Creates a new schema bundle in the specified table.", + "canonical": true, + "file": "bigtable_table_admin.create_schema_bundle.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateSchemaBundle", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "schema_bundle_id", + "type": "TYPE_STRING" + }, + { + "name": "schema_bundle", + "type": ".google.bigtable.admin.v2.SchemaBundle" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateSchemaBundle", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_async", + "title": "bigtable updateSchemaBundle Sample", + "origin": "API_DEFINITION", + "description": " Updates a schema bundle in the specified table.", + "canonical": true, + "file": "bigtable_table_admin.update_schema_bundle.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateSchemaBundle", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", + "async": true, + "parameters": [ + { + "name": "schema_bundle", + "type": ".google.bigtable.admin.v2.SchemaBundle" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "ignore_warnings", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateSchemaBundle", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_async", + "title": "bigtable getSchemaBundle Sample", + "origin": "API_DEFINITION", + "description": " Gets metadata information about the specified schema bundle.", + "canonical": true, + "file": "bigtable_table_admin.get_schema_bundle.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetSchemaBundle", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.SchemaBundle", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetSchemaBundle", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_async", + "title": "bigtable listSchemaBundles Sample", + "origin": "API_DEFINITION", + "description": " Lists all schema bundles associated with the specified table.", + "canonical": true, + "file": "bigtable_table_admin.list_schema_bundles.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListSchemaBundles", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.bigtable.admin.v2.ListSchemaBundlesResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListSchemaBundles", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_async", + "title": "bigtable deleteSchemaBundle Sample", + "origin": "API_DEFINITION", + "description": " Deletes a schema bundle in the specified table.", + "canonical": true, + "file": "bigtable_table_admin.delete_schema_bundle.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteSchemaBundle", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "etag", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteSchemaBundle", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + } + } + ] +} diff --git a/samples/generated/v2/bigtable.mutate_row.js b/samples/generated/v2/bigtable.mutate_row.js index 9a7883f77..e5002fc15 100644 --- a/samples/generated/v2/bigtable.mutate_row.js +++ b/samples/generated/v2/bigtable.mutate_row.js @@ -61,6 +61,11 @@ function main(rowKey, mutations) { * ones. Must contain at least one entry and at most 100000. */ // const mutations = [1,2,3,4] + /** + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + */ + // const idempotency = {} // Imports the Bigtable library const {BigtableClient} = require('@google-cloud/bigtable').v2; diff --git a/samples/generated/v2/bigtable.read_change_stream.js b/samples/generated/v2/bigtable.read_change_stream.js index 778bf3607..8de8bd60e 100644 --- a/samples/generated/v2/bigtable.read_change_stream.js +++ b/samples/generated/v2/bigtable.read_change_stream.js @@ -61,10 +61,10 @@ function main(tableName) { * previously left off. If specified, changes will be read starting at the * the position. Tokens are delivered on the stream as part of `Heartbeat` * and `CloseStream` messages. - * If a single token is provided, the token’s partition must exactly match - * the request’s partition. If multiple tokens are provided, as in the case + * If a single token is provided, the token's partition must exactly match + * the request's partition. If multiple tokens are provided, as in the case * of a partition merge, the union of the token partitions must exactly - * cover the request’s partition. Otherwise, INVALID_ARGUMENT will be + * cover the request's partition. Otherwise, INVALID_ARGUMENT will be * returned. */ // const continuationTokens = {} diff --git a/samples/generated/v2/bigtable.read_modify_write_row.js b/samples/generated/v2/bigtable.read_modify_write_row.js index 29c327f07..bf980eb33 100644 --- a/samples/generated/v2/bigtable.read_modify_write_row.js +++ b/samples/generated/v2/bigtable.read_modify_write_row.js @@ -59,7 +59,8 @@ function main(rowKey, rules) { /** * Required. Rules specifying how the specified row's contents are to be * transformed into writes. Entries are applied in order, meaning that earlier - * rules will affect the results of later ones. + * rules will affect the results of later ones. At least one entry must be + * specified, and there can be at most 100000 rules. */ // const rules = [1,2,3,4] diff --git a/samples/generated/v2/snippet_metadata_google.bigtable.v2.json b/samples/generated/v2/snippet_metadata_google.bigtable.v2.json index dffaaa7f4..1d4713000 100644 --- a/samples/generated/v2/snippet_metadata_google.bigtable.v2.json +++ b/samples/generated/v2/snippet_metadata_google.bigtable.v2.json @@ -146,7 +146,7 @@ "segments": [ { "start": 29, - "end": 83, + "end": 88, "type": "FULL" } ], @@ -174,6 +174,10 @@ { "name": "mutations", "type": "TYPE_MESSAGE[]" + }, + { + "name": "idempotency", + "type": ".google.bigtable.v2.Idempotency" } ], "resultType": ".google.bigtable.v2.MutateRowResponse", @@ -362,7 +366,7 @@ "segments": [ { "start": 29, - "end": 84, + "end": 85, "type": "FULL" } ], @@ -411,7 +415,7 @@ "regionTag": "bigtable_v2_generated_Bigtable_GenerateInitialChangeStreamPartitions_async", "title": "bigtable generateInitialChangeStreamPartitions Sample", "origin": "API_DEFINITION", - "description": " NOTE: This API is intended to be used by Apache Beam BigtableIO. Returns the current list of partitions that make up the table's change stream. The union of partitions will cover the entire keyspace. Partitions can be read with `ReadChangeStream`.", + "description": " Returns the current list of partitions that make up the table's change stream. The union of partitions will cover the entire keyspace. Partitions can be read with `ReadChangeStream`. NOTE: This API is only intended to be used by Apache Beam BigtableIO.", "canonical": false, "file": "bigtable.generate_initial_change_stream_partitions.js", "language": "JAVASCRIPT", @@ -455,7 +459,7 @@ "regionTag": "bigtable_v2_generated_Bigtable_ReadChangeStream_async", "title": "bigtable readChangeStream Sample", "origin": "API_DEFINITION", - "description": " NOTE: This API is intended to be used by Apache Beam BigtableIO. Reads changes from a table's change stream. Changes will reflect both user-initiated mutations and mutations that are caused by garbage collection.", + "description": " Reads changes from a table's change stream. Changes will reflect both user-initiated mutations and mutations that are caused by garbage collection. NOTE: This API is only intended to be used by Apache Beam BigtableIO.", "canonical": false, "file": "bigtable.read_change_stream.js", "language": "JAVASCRIPT", diff --git a/src/admin/index.ts b/src/admin/index.ts new file mode 100644 index 000000000..0c876a62a --- /dev/null +++ b/src/admin/index.ts @@ -0,0 +1,15 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +export * as v2 from './v2'; diff --git a/src/v2/bigtable_instance_admin_client.ts b/src/admin/v2/bigtable_instance_admin_client.ts similarity index 95% rename from src/v2/bigtable_instance_admin_client.ts rename to src/admin/v2/bigtable_instance_admin_client.ts index 853aa8556..18251284e 100644 --- a/src/v2/bigtable_instance_admin_client.ts +++ b/src/admin/v2/bigtable_instance_admin_client.ts @@ -29,9 +29,9 @@ import type { GaxCall, } from 'google-gax'; import {Transform} from 'stream'; -import * as protos from '../../protos/protos'; -import jsonProtos = require('../../protos/protos.json'); -import {loggingUtils as logging} from 'google-gax'; +import * as protos from '../../../protos/protos'; +import jsonProtos = require('../../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; /** * Client JSON configuration object, loaded from @@ -39,7 +39,7 @@ import {loggingUtils as logging} from 'google-gax'; * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './bigtable_instance_admin_client_config.json'; -const version = require('../../../package.json').version; +const version = require('../../../../package.json').version; /** * Service for creating, configuring, and deleting Cloud Bigtable Instances and @@ -235,6 +235,9 @@ export class BigtableInstanceAdminClient { projectPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}', ), + schemaBundlePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}', + ), snapshotPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}', ), @@ -269,7 +272,7 @@ export class BigtableInstanceAdminClient { ), }; - const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos); // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. @@ -744,7 +747,23 @@ export class BigtableInstanceAdminClient { this._log.info('getInstance response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Lists information about instances in a project. @@ -859,7 +878,23 @@ export class BigtableInstanceAdminClient { this._log.info('listInstances response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Updates an instance within a project. This method updates only the display @@ -899,6 +934,16 @@ export class BigtableInstanceAdminClient { * Output only. Reserved for future use. * @param {boolean} request.satisfiesPzi * Output only. Reserved for future use. + * @param {number[]} request.tags + * Optional. Input only. Immutable. Tag keys/values directly bound to this + * resource. For example: + * - "123/environment": "production", + * - "123/costCenter": "marketing" + * + * Tags and Labels (above) are both used to bind metadata to resources, with + * different use-cases. See + * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + * in-depth overview on the difference between tags and labels. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -998,7 +1043,23 @@ export class BigtableInstanceAdminClient { this._log.info('updateInstance response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Delete an instance from a project. @@ -1111,7 +1172,23 @@ export class BigtableInstanceAdminClient { this._log.info('deleteInstance response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets information about a cluster. @@ -1220,7 +1297,23 @@ export class BigtableInstanceAdminClient { this._log.info('getCluster response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Lists information about clusters in an instance. @@ -1338,7 +1431,23 @@ export class BigtableInstanceAdminClient { this._log.info('listClusters response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Deletes a cluster from an instance. @@ -1451,7 +1560,23 @@ export class BigtableInstanceAdminClient { this._log.info('deleteCluster response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Creates an app profile within an instance. @@ -1579,7 +1704,23 @@ export class BigtableInstanceAdminClient { this._log.info('createAppProfile response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets information about an app profile. @@ -1692,7 +1833,23 @@ export class BigtableInstanceAdminClient { this._log.info('getAppProfile response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Deletes an app profile from an instance. @@ -1814,7 +1971,23 @@ export class BigtableInstanceAdminClient { this._log.info('deleteAppProfile response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets the access control policy for an instance resource. Returns an empty @@ -1927,7 +2100,23 @@ export class BigtableInstanceAdminClient { this._log.info('getIamPolicy response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Sets the access control policy on an instance resource. Replaces any @@ -2048,7 +2237,23 @@ export class BigtableInstanceAdminClient { this._log.info('setIamPolicy response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Returns permissions that the caller has on the specified instance resource. @@ -2162,7 +2367,23 @@ export class BigtableInstanceAdminClient { this._log.info('testIamPermissions response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets information about a logical view. @@ -2275,7 +2496,23 @@ export class BigtableInstanceAdminClient { this._log.info('getLogicalView response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Deletes a logical view from an instance. @@ -2400,7 +2637,23 @@ export class BigtableInstanceAdminClient { this._log.info('deleteLogicalView response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets information about a materialized view. @@ -2523,7 +2776,23 @@ export class BigtableInstanceAdminClient { this._log.info('getMaterializedView response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Deletes a materialized view from an instance. @@ -2657,7 +2926,23 @@ export class BigtableInstanceAdminClient { this._log.info('deleteMaterializedView response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** @@ -5959,6 +6244,77 @@ export class BigtableInstanceAdminClient { return this.pathTemplates.projectPathTemplate.match(projectName).project; } + /** + * Return a fully-qualified schemaBundle resource name string. + * + * @param {string} project + * @param {string} instance + * @param {string} table + * @param {string} schema_bundle + * @returns {string} Resource name string. + */ + schemaBundlePath( + project: string, + instance: string, + table: string, + schemaBundle: string, + ) { + return this.pathTemplates.schemaBundlePathTemplate.render({ + project: project, + instance: instance, + table: table, + schema_bundle: schemaBundle, + }); + } + + /** + * Parse the project from SchemaBundle resource. + * + * @param {string} schemaBundleName + * A fully-qualified path representing SchemaBundle resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSchemaBundleName(schemaBundleName: string) { + return this.pathTemplates.schemaBundlePathTemplate.match(schemaBundleName) + .project; + } + + /** + * Parse the instance from SchemaBundle resource. + * + * @param {string} schemaBundleName + * A fully-qualified path representing SchemaBundle resource. + * @returns {string} A string representing the instance. + */ + matchInstanceFromSchemaBundleName(schemaBundleName: string) { + return this.pathTemplates.schemaBundlePathTemplate.match(schemaBundleName) + .instance; + } + + /** + * Parse the table from SchemaBundle resource. + * + * @param {string} schemaBundleName + * A fully-qualified path representing SchemaBundle resource. + * @returns {string} A string representing the table. + */ + matchTableFromSchemaBundleName(schemaBundleName: string) { + return this.pathTemplates.schemaBundlePathTemplate.match(schemaBundleName) + .table; + } + + /** + * Parse the schema_bundle from SchemaBundle resource. + * + * @param {string} schemaBundleName + * A fully-qualified path representing SchemaBundle resource. + * @returns {string} A string representing the schema_bundle. + */ + matchSchemaBundleFromSchemaBundleName(schemaBundleName: string) { + return this.pathTemplates.schemaBundlePathTemplate.match(schemaBundleName) + .schema_bundle; + } + /** * Return a fully-qualified snapshot resource name string. * @@ -6087,7 +6443,7 @@ export class BigtableInstanceAdminClient { this._log.info('ending gRPC channel'); this._terminated = true; stub.close(); - this.operationsClient.close(); + void this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/src/v2/bigtable_instance_admin_client_config.json b/src/admin/v2/bigtable_instance_admin_client_config.json similarity index 100% rename from src/v2/bigtable_instance_admin_client_config.json rename to src/admin/v2/bigtable_instance_admin_client_config.json diff --git a/src/admin/v2/bigtable_instance_admin_proto_list.json b/src/admin/v2/bigtable_instance_admin_proto_list.json new file mode 100644 index 000000000..64ece0d4c --- /dev/null +++ b/src/admin/v2/bigtable_instance_admin_proto_list.json @@ -0,0 +1,8 @@ +[ + "../../../protos/google/bigtable/admin/v2/bigtable_instance_admin.proto", + "../../../protos/google/bigtable/admin/v2/bigtable_table_admin.proto", + "../../../protos/google/bigtable/admin/v2/common.proto", + "../../../protos/google/bigtable/admin/v2/instance.proto", + "../../../protos/google/bigtable/admin/v2/table.proto", + "../../../protos/google/bigtable/admin/v2/types.proto" +] diff --git a/src/v2/bigtable_table_admin_client.ts b/src/admin/v2/bigtable_table_admin_client.ts similarity index 83% rename from src/v2/bigtable_table_admin_client.ts rename to src/admin/v2/bigtable_table_admin_client.ts index 88d45a49d..a654d5df8 100644 --- a/src/v2/bigtable_table_admin_client.ts +++ b/src/admin/v2/bigtable_table_admin_client.ts @@ -29,9 +29,9 @@ import type { GaxCall, } from 'google-gax'; import {Transform} from 'stream'; -import * as protos from '../../protos/protos'; -import jsonProtos = require('../../protos/protos.json'); -import {loggingUtils as logging} from 'google-gax'; +import * as protos from '../../../protos/protos'; +import jsonProtos = require('../../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; /** * Client JSON configuration object, loaded from @@ -39,7 +39,7 @@ import {loggingUtils as logging} from 'google-gax'; * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './bigtable_table_admin_client_config.json'; -const version = require('../../../package.json').version; +const version = require('../../../../package.json').version; /** * Service for creating, configuring, and deleting Cloud Bigtable tables. @@ -236,6 +236,9 @@ export class BigtableTableAdminClient { projectPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}', ), + schemaBundlePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}', + ), snapshotPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}', ), @@ -268,9 +271,14 @@ export class BigtableTableAdminClient { 'nextPageToken', 'backups', ), + listSchemaBundles: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'schemaBundles', + ), }; - const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos); // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. @@ -356,6 +364,18 @@ export class BigtableTableAdminClient { const copyBackupMetadata = protoFilesRoot.lookup( '.google.bigtable.admin.v2.CopyBackupMetadata', ) as gax.protobuf.Type; + const createSchemaBundleResponse = protoFilesRoot.lookup( + '.google.bigtable.admin.v2.SchemaBundle', + ) as gax.protobuf.Type; + const createSchemaBundleMetadata = protoFilesRoot.lookup( + '.google.bigtable.admin.v2.CreateSchemaBundleMetadata', + ) as gax.protobuf.Type; + const updateSchemaBundleResponse = protoFilesRoot.lookup( + '.google.bigtable.admin.v2.SchemaBundle', + ) as gax.protobuf.Type; + const updateSchemaBundleMetadata = protoFilesRoot.lookup( + '.google.bigtable.admin.v2.UpdateSchemaBundleMetadata', + ) as gax.protobuf.Type; this.descriptors.longrunning = { createTableFromSnapshot: new this._gaxModule.LongrunningDescriptor( @@ -407,6 +427,16 @@ export class BigtableTableAdminClient { copyBackupResponse.decode.bind(copyBackupResponse), copyBackupMetadata.decode.bind(copyBackupMetadata), ), + createSchemaBundle: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createSchemaBundleResponse.decode.bind(createSchemaBundleResponse), + createSchemaBundleMetadata.decode.bind(createSchemaBundleMetadata), + ), + updateSchemaBundle: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateSchemaBundleResponse.decode.bind(updateSchemaBundleResponse), + updateSchemaBundleMetadata.decode.bind(updateSchemaBundleMetadata), + ), }; // Put together the default options sent with requests. @@ -489,6 +519,11 @@ export class BigtableTableAdminClient { 'getIamPolicy', 'setIamPolicy', 'testIamPermissions', + 'createSchemaBundle', + 'updateSchemaBundle', + 'getSchemaBundle', + 'listSchemaBundles', + 'deleteSchemaBundle', ]; for (const methodName of bigtableTableAdminStubMethods) { const callPromise = this.bigtableTableAdminStub.then( @@ -749,7 +784,23 @@ export class BigtableTableAdminClient { this._log.info('createTable response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets metadata information about the specified table. @@ -862,7 +913,23 @@ export class BigtableTableAdminClient { this._log.info('getTable response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Permanently deletes a specified table and all of its data. @@ -976,7 +1043,23 @@ export class BigtableTableAdminClient { this._log.info('deleteTable response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets information from a specified AuthorizedView. @@ -1099,7 +1182,23 @@ export class BigtableTableAdminClient { this._log.info('getAuthorizedView response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Permanently deletes a specified AuthorizedView. @@ -1227,7 +1326,23 @@ export class BigtableTableAdminClient { this._log.info('deleteAuthorizedView response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Performs a series of column family modifications on the specified table. @@ -1360,7 +1475,23 @@ export class BigtableTableAdminClient { this._log.info('modifyColumnFamilies response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Permanently drop/delete a row range from a specified table. The request can @@ -1481,7 +1612,23 @@ export class BigtableTableAdminClient { this._log.info('dropRowRange response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Generates a consistency token for a Table, which can be used in @@ -1613,7 +1760,23 @@ export class BigtableTableAdminClient { this._log.info('generateConsistencyToken response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Checks replication consistency based on a consistency token, that is, if @@ -1745,7 +1908,23 @@ export class BigtableTableAdminClient { this._log.info('checkConsistency response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets metadata information about the specified snapshot. @@ -1865,7 +2044,23 @@ export class BigtableTableAdminClient { this._log.info('getSnapshot response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Permanently deletes the specified snapshot. @@ -1985,7 +2180,23 @@ export class BigtableTableAdminClient { this._log.info('deleteSnapshot response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Gets metadata on a pending or completed Cloud Bigtable Backup. @@ -2095,7 +2306,23 @@ export class BigtableTableAdminClient { this._log.info('getBackup response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Updates a pending or completed Cloud Bigtable Backup. @@ -2217,7 +2444,23 @@ export class BigtableTableAdminClient { this._log.info('updateBackup response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Deletes a pending or completed Cloud Bigtable backup. @@ -2331,10 +2574,26 @@ export class BigtableTableAdminClient { this._log.info('deleteBackup response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** - * Gets the access control policy for a Table or Backup resource. + * Gets the access control policy for a Bigtable resource. * Returns an empty policy if the resource exists but does not have a policy * set. * @@ -2445,10 +2704,26 @@ export class BigtableTableAdminClient { this._log.info('getIamPolicy response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** - * Sets the access control policy on a Table or Backup resource. + * Sets the access control policy on a Bigtable resource. * Replaces any existing policy. * * @param {Object} request @@ -2566,10 +2841,26 @@ export class BigtableTableAdminClient { this._log.info('setIamPolicy response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** - * Returns permissions that the caller has on the specified Table or Backup + * Returns permissions that the caller has on the specified Bigtable * resource. * * @param {Object} request @@ -2681,7 +2972,302 @@ export class BigtableTableAdminClient { this._log.info('testIamPermissions response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); + } + /** + * Gets metadata information about the specified schema bundle. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The unique name of the schema bundle to retrieve. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.bigtable.admin.v2.SchemaBundle|SchemaBundle}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example + * region_tag:bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_async + */ + getSchemaBundle( + request?: protos.google.bigtable.admin.v2.IGetSchemaBundleRequest, + options?: CallOptions, + ): Promise< + [ + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IGetSchemaBundleRequest | undefined, + {} | undefined, + ] + >; + getSchemaBundle( + request: protos.google.bigtable.admin.v2.IGetSchemaBundleRequest, + options: CallOptions, + callback: Callback< + protos.google.bigtable.admin.v2.ISchemaBundle, + | protos.google.bigtable.admin.v2.IGetSchemaBundleRequest + | null + | undefined, + {} | null | undefined + >, + ): void; + getSchemaBundle( + request: protos.google.bigtable.admin.v2.IGetSchemaBundleRequest, + callback: Callback< + protos.google.bigtable.admin.v2.ISchemaBundle, + | protos.google.bigtable.admin.v2.IGetSchemaBundleRequest + | null + | undefined, + {} | null | undefined + >, + ): void; + getSchemaBundle( + request?: protos.google.bigtable.admin.v2.IGetSchemaBundleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.bigtable.admin.v2.ISchemaBundle, + | protos.google.bigtable.admin.v2.IGetSchemaBundleRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.bigtable.admin.v2.ISchemaBundle, + | protos.google.bigtable.admin.v2.IGetSchemaBundleRequest + | null + | undefined, + {} | null | undefined + >, + ): Promise< + [ + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IGetSchemaBundleRequest | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize().catch(err => { + throw err; + }); + this._log.info('getSchemaBundle request %j', request); + const wrappedCallback: + | Callback< + protos.google.bigtable.admin.v2.ISchemaBundle, + | protos.google.bigtable.admin.v2.IGetSchemaBundleRequest + | null + | undefined, + {} | null | undefined + > + | undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('getSchemaBundle response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls + .getSchemaBundle(request, options, wrappedCallback) + ?.then( + ([response, options, rawResponse]: [ + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IGetSchemaBundleRequest | undefined, + {} | undefined, + ]) => { + this._log.info('getSchemaBundle response %j', response); + return [response, options, rawResponse]; + }, + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); + } + /** + * Deletes a schema bundle in the specified table. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The unique name of the schema bundle to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @param {string} [request.etag] + * Optional. The etag of the schema bundle. + * If this is provided, it must match the server's etag. The server + * returns an ABORTED error on a mismatched etag. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example + * region_tag:bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_async + */ + deleteSchemaBundle( + request?: protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest, + options?: CallOptions, + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest | undefined, + {} | undefined, + ] + >; + deleteSchemaBundle( + request: protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest + | null + | undefined, + {} | null | undefined + >, + ): void; + deleteSchemaBundle( + request: protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest + | null + | undefined, + {} | null | undefined + >, + ): void; + deleteSchemaBundle( + request?: protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest + | null + | undefined, + {} | null | undefined + >, + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize().catch(err => { + throw err; + }); + this._log.info('deleteSchemaBundle request %j', request); + const wrappedCallback: + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest + | null + | undefined, + {} | null | undefined + > + | undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('deleteSchemaBundle response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls + .deleteSchemaBundle(request, options, wrappedCallback) + ?.then( + ([response, options, rawResponse]: [ + protos.google.protobuf.IEmpty, + ( + | protos.google.bigtable.admin.v2.IDeleteSchemaBundleRequest + | undefined + ), + {} | undefined, + ]) => { + this._log.info('deleteSchemaBundle response %j', response); + return [response, options, rawResponse]; + }, + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** @@ -3412,8 +3998,8 @@ export class BigtableTableAdminClient { * @param {google.bigtable.admin.v2.AuthorizedView} request.authorizedView * Required. The AuthorizedView to update. The `name` in `authorized_view` is * used to identify the AuthorizedView. AuthorizedView name must in this - * format - * projects//instances//tables/
include:samples/generated/v2/bigtable_table_admin.get_schema_bundle.jsinclude:samples/generated/v2/bigtable_table_admin.delete_schema_bundle.js
/authorizedViews/ + * format: + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. * @param {google.protobuf.FieldMask} [request.updateMask] * Optional. The list of fields to update. * A mask specifying which fields in the AuthorizedView resource should be @@ -4346,15 +4932,371 @@ export class BigtableTableAdminClient { >; } /** - * Lists all tables served from a specified instance. + * Creates a new schema bundle in the specified table. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The unique name of the instance for which tables should be - * listed. Values are of the form `projects/{project}/instances/{instance}`. - * @param {google.bigtable.admin.v2.Table.View} request.view - * The view to be applied to the returned tables' fields. + * Required. The parent resource where this schema bundle will be created. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @param {string} request.schemaBundleId + * Required. The unique ID to use for the schema bundle, which will become the + * final component of the schema bundle's resource name. + * @param {google.bigtable.admin.v2.SchemaBundle} request.schemaBundle + * Required. The schema bundle to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example + * region_tag:bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_async + */ + createSchemaBundle( + request?: protos.google.bigtable.admin.v2.ICreateSchemaBundleRequest, + options?: CallOptions, + ): Promise< + [ + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createSchemaBundle( + request: protos.google.bigtable.admin.v2.ICreateSchemaBundleRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + ): void; + createSchemaBundle( + request: protos.google.bigtable.admin.v2.ICreateSchemaBundleRequest, + callback: Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + ): void; + createSchemaBundle( + request?: protos.google.bigtable.admin.v2.ICreateSchemaBundleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + ): Promise< + [ + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize().catch(err => { + throw err; + }); + const wrappedCallback: + | Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + | undefined = callback + ? (error, response, rawResponse, _) => { + this._log.info('createSchemaBundle response %j', rawResponse); + callback!(error, response, rawResponse, _); // We verified callback above. + } + : undefined; + this._log.info('createSchemaBundle request %j', request); + return this.innerApiCalls + .createSchemaBundle(request, options, wrappedCallback) + ?.then( + ([response, rawResponse, _]: [ + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ]) => { + this._log.info('createSchemaBundle response %j', rawResponse); + return [response, rawResponse, _]; + }, + ); + } + /** + * Check the status of the long running operation returned by `createSchemaBundle()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example + * region_tag:bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_async + */ + async checkCreateSchemaBundleProgress( + name: string, + ): Promise< + LROperation< + protos.google.bigtable.admin.v2.SchemaBundle, + protos.google.bigtable.admin.v2.CreateSchemaBundleMetadata + > + > { + this._log.info('createSchemaBundle long-running'); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name}, + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.createSchemaBundle, + this._gaxModule.createDefaultBackoffSettings(), + ); + return decodeOperation as LROperation< + protos.google.bigtable.admin.v2.SchemaBundle, + protos.google.bigtable.admin.v2.CreateSchemaBundleMetadata + >; + } + /** + * Updates a schema bundle in the specified table. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.bigtable.admin.v2.SchemaBundle} request.schemaBundle + * Required. The schema bundle to update. + * + * The schema bundle's `name` field is used to identify the schema bundle to + * update. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @param {google.protobuf.FieldMask} [request.updateMask] + * Optional. The list of fields to update. + * @param {boolean} [request.ignoreWarnings] + * Optional. If set, ignore the safety checks when updating the Schema Bundle. + * The safety checks are: + * - The new Schema Bundle is backwards compatible with the existing Schema + * Bundle. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example + * region_tag:bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_async + */ + updateSchemaBundle( + request?: protos.google.bigtable.admin.v2.IUpdateSchemaBundleRequest, + options?: CallOptions, + ): Promise< + [ + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateSchemaBundle( + request: protos.google.bigtable.admin.v2.IUpdateSchemaBundleRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + ): void; + updateSchemaBundle( + request: protos.google.bigtable.admin.v2.IUpdateSchemaBundleRequest, + callback: Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + ): void; + updateSchemaBundle( + request?: protos.google.bigtable.admin.v2.IUpdateSchemaBundleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + ): Promise< + [ + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'schema_bundle.name': request.schemaBundle!.name ?? '', + }); + this.initialize().catch(err => { + throw err; + }); + const wrappedCallback: + | Callback< + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + | undefined = callback + ? (error, response, rawResponse, _) => { + this._log.info('updateSchemaBundle response %j', rawResponse); + callback!(error, response, rawResponse, _); // We verified callback above. + } + : undefined; + this._log.info('updateSchemaBundle request %j', request); + return this.innerApiCalls + .updateSchemaBundle(request, options, wrappedCallback) + ?.then( + ([response, rawResponse, _]: [ + LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ]) => { + this._log.info('updateSchemaBundle response %j', rawResponse); + return [response, rawResponse, _]; + }, + ); + } + /** + * Check the status of the long running operation returned by `updateSchemaBundle()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example + * region_tag:bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_async + */ + async checkUpdateSchemaBundleProgress( + name: string, + ): Promise< + LROperation< + protos.google.bigtable.admin.v2.SchemaBundle, + protos.google.bigtable.admin.v2.UpdateSchemaBundleMetadata + > + > { + this._log.info('updateSchemaBundle long-running'); + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name}, + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.updateSchemaBundle, + this._gaxModule.createDefaultBackoffSettings(), + ); + return decodeOperation as LROperation< + protos.google.bigtable.admin.v2.SchemaBundle, + protos.google.bigtable.admin.v2.UpdateSchemaBundleMetadata + >; + } + /** + * Lists all tables served from a specified instance. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The unique name of the instance for which tables should be + * listed. Values are of the form `projects/{project}/instances/{instance}`. + * @param {google.bigtable.admin.v2.Table.View} request.view + * The view to be applied to the returned tables' fields. * NAME_ONLY view (default) and REPLICATION_VIEW are supported. * @param {number} request.pageSize * Maximum number of results per page. @@ -4617,8 +5559,8 @@ export class BigtableTableAdminClient { * @param {string} [request.pageToken] * Optional. The value of `next_page_token` returned by a previous call. * @param {google.bigtable.admin.v2.AuthorizedView.ResponseView} [request.view] - * Optional. The resource_view to be applied to the returned views' fields. - * Default to NAME_ONLY. + * Optional. The resource_view to be applied to the returned AuthorizedViews' + * fields. Default to NAME_ONLY. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4755,8 +5697,8 @@ export class BigtableTableAdminClient { * @param {string} [request.pageToken] * Optional. The value of `next_page_token` returned by a previous call. * @param {google.bigtable.admin.v2.AuthorizedView.ResponseView} [request.view] - * Optional. The resource_view to be applied to the returned views' fields. - * Default to NAME_ONLY. + * Optional. The resource_view to be applied to the returned AuthorizedViews' + * fields. Default to NAME_ONLY. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -4816,8 +5758,8 @@ export class BigtableTableAdminClient { * @param {string} [request.pageToken] * Optional. The value of `next_page_token` returned by a previous call. * @param {google.bigtable.admin.v2.AuthorizedView.ResponseView} [request.view] - * Optional. The resource_view to be applied to the returned views' fields. - * Default to NAME_ONLY. + * Optional. The resource_view to be applied to the returned AuthorizedViews' + * fields. Default to NAME_ONLY. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -5499,6 +6441,250 @@ export class BigtableTableAdminClient { callSettings, ) as AsyncIterable; } + /** + * Lists all schema bundles associated with the specified table. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @param {number} request.pageSize + * The maximum number of schema bundles to return. If the value is positive, + * the server may return at most this value. If unspecified, the server will + * return the maximum allowed page size. + * @param {string} request.pageToken + * A page token, received from a previous `ListSchemaBundles` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListSchemaBundles` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.bigtable.admin.v2.SchemaBundle|SchemaBundle}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listSchemaBundlesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listSchemaBundles( + request?: protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + options?: CallOptions, + ): Promise< + [ + protos.google.bigtable.admin.v2.ISchemaBundle[], + protos.google.bigtable.admin.v2.IListSchemaBundlesRequest | null, + protos.google.bigtable.admin.v2.IListSchemaBundlesResponse, + ] + >; + listSchemaBundles( + request: protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + | protos.google.bigtable.admin.v2.IListSchemaBundlesResponse + | null + | undefined, + protos.google.bigtable.admin.v2.ISchemaBundle + >, + ): void; + listSchemaBundles( + request: protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + callback: PaginationCallback< + protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + | protos.google.bigtable.admin.v2.IListSchemaBundlesResponse + | null + | undefined, + protos.google.bigtable.admin.v2.ISchemaBundle + >, + ): void; + listSchemaBundles( + request?: protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + | protos.google.bigtable.admin.v2.IListSchemaBundlesResponse + | null + | undefined, + protos.google.bigtable.admin.v2.ISchemaBundle + >, + callback?: PaginationCallback< + protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + | protos.google.bigtable.admin.v2.IListSchemaBundlesResponse + | null + | undefined, + protos.google.bigtable.admin.v2.ISchemaBundle + >, + ): Promise< + [ + protos.google.bigtable.admin.v2.ISchemaBundle[], + protos.google.bigtable.admin.v2.IListSchemaBundlesRequest | null, + protos.google.bigtable.admin.v2.IListSchemaBundlesResponse, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize().catch(err => { + throw err; + }); + const wrappedCallback: + | PaginationCallback< + protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + | protos.google.bigtable.admin.v2.IListSchemaBundlesResponse + | null + | undefined, + protos.google.bigtable.admin.v2.ISchemaBundle + > + | undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('listSchemaBundles values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('listSchemaBundles request %j', request); + return this.innerApiCalls + .listSchemaBundles(request, options, wrappedCallback) + ?.then( + ([response, input, output]: [ + protos.google.bigtable.admin.v2.ISchemaBundle[], + protos.google.bigtable.admin.v2.IListSchemaBundlesRequest | null, + protos.google.bigtable.admin.v2.IListSchemaBundlesResponse, + ]) => { + this._log.info('listSchemaBundles values %j', response); + return [response, input, output]; + }, + ); + } + + /** + * Equivalent to `listSchemaBundles`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @param {number} request.pageSize + * The maximum number of schema bundles to return. If the value is positive, + * the server may return at most this value. If unspecified, the server will + * return the maximum allowed page size. + * @param {string} request.pageToken + * A page token, received from a previous `ListSchemaBundles` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListSchemaBundles` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.bigtable.admin.v2.SchemaBundle|SchemaBundle} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listSchemaBundlesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listSchemaBundlesStream( + request?: protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + options?: CallOptions, + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listSchemaBundles']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => { + throw err; + }); + this._log.info('listSchemaBundles stream %j', request); + return this.descriptors.page.listSchemaBundles.createStream( + this.innerApiCalls.listSchemaBundles as GaxCall, + request, + callSettings, + ); + } + + /** + * Equivalent to `listSchemaBundles`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @param {number} request.pageSize + * The maximum number of schema bundles to return. If the value is positive, + * the server may return at most this value. If unspecified, the server will + * return the maximum allowed page size. + * @param {string} request.pageToken + * A page token, received from a previous `ListSchemaBundles` call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListSchemaBundles` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.bigtable.admin.v2.SchemaBundle|SchemaBundle}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example + * region_tag:bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_async + */ + listSchemaBundlesAsync( + request?: protos.google.bigtable.admin.v2.IListSchemaBundlesRequest, + options?: CallOptions, + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listSchemaBundles']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => { + throw err; + }); + this._log.info('listSchemaBundles iterate %j', request); + return this.descriptors.page.listSchemaBundles.asyncIterate( + this.innerApiCalls['listSchemaBundles'] as GaxCall, + request as {}, + callSettings, + ) as AsyncIterable; + } // -------------------- // -- Path templates -- // -------------------- @@ -5987,6 +7173,77 @@ export class BigtableTableAdminClient { return this.pathTemplates.projectPathTemplate.match(projectName).project; } + /** + * Return a fully-qualified schemaBundle resource name string. + * + * @param {string} project + * @param {string} instance + * @param {string} table + * @param {string} schema_bundle + * @returns {string} Resource name string. + */ + schemaBundlePath( + project: string, + instance: string, + table: string, + schemaBundle: string, + ) { + return this.pathTemplates.schemaBundlePathTemplate.render({ + project: project, + instance: instance, + table: table, + schema_bundle: schemaBundle, + }); + } + + /** + * Parse the project from SchemaBundle resource. + * + * @param {string} schemaBundleName + * A fully-qualified path representing SchemaBundle resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSchemaBundleName(schemaBundleName: string) { + return this.pathTemplates.schemaBundlePathTemplate.match(schemaBundleName) + .project; + } + + /** + * Parse the instance from SchemaBundle resource. + * + * @param {string} schemaBundleName + * A fully-qualified path representing SchemaBundle resource. + * @returns {string} A string representing the instance. + */ + matchInstanceFromSchemaBundleName(schemaBundleName: string) { + return this.pathTemplates.schemaBundlePathTemplate.match(schemaBundleName) + .instance; + } + + /** + * Parse the table from SchemaBundle resource. + * + * @param {string} schemaBundleName + * A fully-qualified path representing SchemaBundle resource. + * @returns {string} A string representing the table. + */ + matchTableFromSchemaBundleName(schemaBundleName: string) { + return this.pathTemplates.schemaBundlePathTemplate.match(schemaBundleName) + .table; + } + + /** + * Parse the schema_bundle from SchemaBundle resource. + * + * @param {string} schemaBundleName + * A fully-qualified path representing SchemaBundle resource. + * @returns {string} A string representing the schema_bundle. + */ + matchSchemaBundleFromSchemaBundleName(schemaBundleName: string) { + return this.pathTemplates.schemaBundlePathTemplate.match(schemaBundleName) + .schema_bundle; + } + /** * Return a fully-qualified snapshot resource name string. * @@ -6115,7 +7372,7 @@ export class BigtableTableAdminClient { this._log.info('ending gRPC channel'); this._terminated = true; stub.close(); - this.operationsClient.close(); + void this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/src/v2/bigtable_table_admin_client_config.json b/src/admin/v2/bigtable_table_admin_client_config.json similarity index 89% rename from src/v2/bigtable_table_admin_client_config.json rename to src/admin/v2/bigtable_table_admin_client_config.json index e53890d1e..57ad564bf 100644 --- a/src/v2/bigtable_table_admin_client_config.json +++ b/src/admin/v2/bigtable_table_admin_client_config.json @@ -168,6 +168,26 @@ "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "264268458a9e88347dbacbd9398202ff5885a40b" + }, + "CreateSchemaBundle": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateSchemaBundle": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetSchemaBundle": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListSchemaBundles": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteSchemaBundle": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/src/admin/v2/bigtable_table_admin_proto_list.json b/src/admin/v2/bigtable_table_admin_proto_list.json new file mode 100644 index 000000000..64ece0d4c --- /dev/null +++ b/src/admin/v2/bigtable_table_admin_proto_list.json @@ -0,0 +1,8 @@ +[ + "../../../protos/google/bigtable/admin/v2/bigtable_instance_admin.proto", + "../../../protos/google/bigtable/admin/v2/bigtable_table_admin.proto", + "../../../protos/google/bigtable/admin/v2/common.proto", + "../../../protos/google/bigtable/admin/v2/instance.proto", + "../../../protos/google/bigtable/admin/v2/table.proto", + "../../../protos/google/bigtable/admin/v2/types.proto" +] diff --git a/src/admin/v2/gapic_metadata.json b/src/admin/v2/gapic_metadata.json new file mode 100644 index 000000000..354d051fa --- /dev/null +++ b/src/admin/v2/gapic_metadata.json @@ -0,0 +1,733 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "typescript", + "protoPackage": "google.bigtable.admin.v2", + "libraryPackage": "@google-cloud/bigtable", + "services": { + "BigtableInstanceAdmin": { + "clients": { + "grpc": { + "libraryClient": "BigtableInstanceAdminClient", + "rpcs": { + "GetInstance": { + "methods": [ + "getInstance" + ] + }, + "ListInstances": { + "methods": [ + "listInstances" + ] + }, + "UpdateInstance": { + "methods": [ + "updateInstance" + ] + }, + "DeleteInstance": { + "methods": [ + "deleteInstance" + ] + }, + "GetCluster": { + "methods": [ + "getCluster" + ] + }, + "ListClusters": { + "methods": [ + "listClusters" + ] + }, + "DeleteCluster": { + "methods": [ + "deleteCluster" + ] + }, + "CreateAppProfile": { + "methods": [ + "createAppProfile" + ] + }, + "GetAppProfile": { + "methods": [ + "getAppProfile" + ] + }, + "DeleteAppProfile": { + "methods": [ + "deleteAppProfile" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "GetLogicalView": { + "methods": [ + "getLogicalView" + ] + }, + "DeleteLogicalView": { + "methods": [ + "deleteLogicalView" + ] + }, + "GetMaterializedView": { + "methods": [ + "getMaterializedView" + ] + }, + "DeleteMaterializedView": { + "methods": [ + "deleteMaterializedView" + ] + }, + "CreateInstance": { + "methods": [ + "createInstance" + ] + }, + "PartialUpdateInstance": { + "methods": [ + "partialUpdateInstance" + ] + }, + "CreateCluster": { + "methods": [ + "createCluster" + ] + }, + "UpdateCluster": { + "methods": [ + "updateCluster" + ] + }, + "PartialUpdateCluster": { + "methods": [ + "partialUpdateCluster" + ] + }, + "UpdateAppProfile": { + "methods": [ + "updateAppProfile" + ] + }, + "CreateLogicalView": { + "methods": [ + "createLogicalView" + ] + }, + "UpdateLogicalView": { + "methods": [ + "updateLogicalView" + ] + }, + "CreateMaterializedView": { + "methods": [ + "createMaterializedView" + ] + }, + "UpdateMaterializedView": { + "methods": [ + "updateMaterializedView" + ] + }, + "ListAppProfiles": { + "methods": [ + "listAppProfiles", + "listAppProfilesStream", + "listAppProfilesAsync" + ] + }, + "ListHotTablets": { + "methods": [ + "listHotTablets", + "listHotTabletsStream", + "listHotTabletsAsync" + ] + }, + "ListLogicalViews": { + "methods": [ + "listLogicalViews", + "listLogicalViewsStream", + "listLogicalViewsAsync" + ] + }, + "ListMaterializedViews": { + "methods": [ + "listMaterializedViews", + "listMaterializedViewsStream", + "listMaterializedViewsAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "BigtableInstanceAdminClient", + "rpcs": { + "GetInstance": { + "methods": [ + "getInstance" + ] + }, + "ListInstances": { + "methods": [ + "listInstances" + ] + }, + "UpdateInstance": { + "methods": [ + "updateInstance" + ] + }, + "DeleteInstance": { + "methods": [ + "deleteInstance" + ] + }, + "GetCluster": { + "methods": [ + "getCluster" + ] + }, + "ListClusters": { + "methods": [ + "listClusters" + ] + }, + "DeleteCluster": { + "methods": [ + "deleteCluster" + ] + }, + "CreateAppProfile": { + "methods": [ + "createAppProfile" + ] + }, + "GetAppProfile": { + "methods": [ + "getAppProfile" + ] + }, + "DeleteAppProfile": { + "methods": [ + "deleteAppProfile" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "GetLogicalView": { + "methods": [ + "getLogicalView" + ] + }, + "DeleteLogicalView": { + "methods": [ + "deleteLogicalView" + ] + }, + "GetMaterializedView": { + "methods": [ + "getMaterializedView" + ] + }, + "DeleteMaterializedView": { + "methods": [ + "deleteMaterializedView" + ] + }, + "CreateInstance": { + "methods": [ + "createInstance" + ] + }, + "PartialUpdateInstance": { + "methods": [ + "partialUpdateInstance" + ] + }, + "CreateCluster": { + "methods": [ + "createCluster" + ] + }, + "UpdateCluster": { + "methods": [ + "updateCluster" + ] + }, + "PartialUpdateCluster": { + "methods": [ + "partialUpdateCluster" + ] + }, + "UpdateAppProfile": { + "methods": [ + "updateAppProfile" + ] + }, + "CreateLogicalView": { + "methods": [ + "createLogicalView" + ] + }, + "UpdateLogicalView": { + "methods": [ + "updateLogicalView" + ] + }, + "CreateMaterializedView": { + "methods": [ + "createMaterializedView" + ] + }, + "UpdateMaterializedView": { + "methods": [ + "updateMaterializedView" + ] + }, + "ListAppProfiles": { + "methods": [ + "listAppProfiles", + "listAppProfilesStream", + "listAppProfilesAsync" + ] + }, + "ListHotTablets": { + "methods": [ + "listHotTablets", + "listHotTabletsStream", + "listHotTabletsAsync" + ] + }, + "ListLogicalViews": { + "methods": [ + "listLogicalViews", + "listLogicalViewsStream", + "listLogicalViewsAsync" + ] + }, + "ListMaterializedViews": { + "methods": [ + "listMaterializedViews", + "listMaterializedViewsStream", + "listMaterializedViewsAsync" + ] + } + } + } + } + }, + "BigtableTableAdmin": { + "clients": { + "grpc": { + "libraryClient": "BigtableTableAdminClient", + "rpcs": { + "CreateTable": { + "methods": [ + "createTable" + ] + }, + "GetTable": { + "methods": [ + "getTable" + ] + }, + "DeleteTable": { + "methods": [ + "deleteTable" + ] + }, + "GetAuthorizedView": { + "methods": [ + "getAuthorizedView" + ] + }, + "DeleteAuthorizedView": { + "methods": [ + "deleteAuthorizedView" + ] + }, + "ModifyColumnFamilies": { + "methods": [ + "modifyColumnFamilies" + ] + }, + "DropRowRange": { + "methods": [ + "dropRowRange" + ] + }, + "GenerateConsistencyToken": { + "methods": [ + "generateConsistencyToken" + ] + }, + "CheckConsistency": { + "methods": [ + "checkConsistency" + ] + }, + "GetSnapshot": { + "methods": [ + "getSnapshot" + ] + }, + "DeleteSnapshot": { + "methods": [ + "deleteSnapshot" + ] + }, + "GetBackup": { + "methods": [ + "getBackup" + ] + }, + "UpdateBackup": { + "methods": [ + "updateBackup" + ] + }, + "DeleteBackup": { + "methods": [ + "deleteBackup" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "GetSchemaBundle": { + "methods": [ + "getSchemaBundle" + ] + }, + "DeleteSchemaBundle": { + "methods": [ + "deleteSchemaBundle" + ] + }, + "CreateTableFromSnapshot": { + "methods": [ + "createTableFromSnapshot" + ] + }, + "UpdateTable": { + "methods": [ + "updateTable" + ] + }, + "UndeleteTable": { + "methods": [ + "undeleteTable" + ] + }, + "CreateAuthorizedView": { + "methods": [ + "createAuthorizedView" + ] + }, + "UpdateAuthorizedView": { + "methods": [ + "updateAuthorizedView" + ] + }, + "SnapshotTable": { + "methods": [ + "snapshotTable" + ] + }, + "CreateBackup": { + "methods": [ + "createBackup" + ] + }, + "RestoreTable": { + "methods": [ + "restoreTable" + ] + }, + "CopyBackup": { + "methods": [ + "copyBackup" + ] + }, + "CreateSchemaBundle": { + "methods": [ + "createSchemaBundle" + ] + }, + "UpdateSchemaBundle": { + "methods": [ + "updateSchemaBundle" + ] + }, + "ListTables": { + "methods": [ + "listTables", + "listTablesStream", + "listTablesAsync" + ] + }, + "ListAuthorizedViews": { + "methods": [ + "listAuthorizedViews", + "listAuthorizedViewsStream", + "listAuthorizedViewsAsync" + ] + }, + "ListSnapshots": { + "methods": [ + "listSnapshots", + "listSnapshotsStream", + "listSnapshotsAsync" + ] + }, + "ListBackups": { + "methods": [ + "listBackups", + "listBackupsStream", + "listBackupsAsync" + ] + }, + "ListSchemaBundles": { + "methods": [ + "listSchemaBundles", + "listSchemaBundlesStream", + "listSchemaBundlesAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "BigtableTableAdminClient", + "rpcs": { + "CreateTable": { + "methods": [ + "createTable" + ] + }, + "GetTable": { + "methods": [ + "getTable" + ] + }, + "DeleteTable": { + "methods": [ + "deleteTable" + ] + }, + "GetAuthorizedView": { + "methods": [ + "getAuthorizedView" + ] + }, + "DeleteAuthorizedView": { + "methods": [ + "deleteAuthorizedView" + ] + }, + "ModifyColumnFamilies": { + "methods": [ + "modifyColumnFamilies" + ] + }, + "DropRowRange": { + "methods": [ + "dropRowRange" + ] + }, + "GenerateConsistencyToken": { + "methods": [ + "generateConsistencyToken" + ] + }, + "CheckConsistency": { + "methods": [ + "checkConsistency" + ] + }, + "GetSnapshot": { + "methods": [ + "getSnapshot" + ] + }, + "DeleteSnapshot": { + "methods": [ + "deleteSnapshot" + ] + }, + "GetBackup": { + "methods": [ + "getBackup" + ] + }, + "UpdateBackup": { + "methods": [ + "updateBackup" + ] + }, + "DeleteBackup": { + "methods": [ + "deleteBackup" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "GetSchemaBundle": { + "methods": [ + "getSchemaBundle" + ] + }, + "DeleteSchemaBundle": { + "methods": [ + "deleteSchemaBundle" + ] + }, + "CreateTableFromSnapshot": { + "methods": [ + "createTableFromSnapshot" + ] + }, + "UpdateTable": { + "methods": [ + "updateTable" + ] + }, + "UndeleteTable": { + "methods": [ + "undeleteTable" + ] + }, + "CreateAuthorizedView": { + "methods": [ + "createAuthorizedView" + ] + }, + "UpdateAuthorizedView": { + "methods": [ + "updateAuthorizedView" + ] + }, + "SnapshotTable": { + "methods": [ + "snapshotTable" + ] + }, + "CreateBackup": { + "methods": [ + "createBackup" + ] + }, + "RestoreTable": { + "methods": [ + "restoreTable" + ] + }, + "CopyBackup": { + "methods": [ + "copyBackup" + ] + }, + "CreateSchemaBundle": { + "methods": [ + "createSchemaBundle" + ] + }, + "UpdateSchemaBundle": { + "methods": [ + "updateSchemaBundle" + ] + }, + "ListTables": { + "methods": [ + "listTables", + "listTablesStream", + "listTablesAsync" + ] + }, + "ListAuthorizedViews": { + "methods": [ + "listAuthorizedViews", + "listAuthorizedViewsStream", + "listAuthorizedViewsAsync" + ] + }, + "ListSnapshots": { + "methods": [ + "listSnapshots", + "listSnapshotsStream", + "listSnapshotsAsync" + ] + }, + "ListBackups": { + "methods": [ + "listBackups", + "listBackupsStream", + "listBackupsAsync" + ] + }, + "ListSchemaBundles": { + "methods": [ + "listSchemaBundles", + "listSchemaBundlesStream", + "listSchemaBundlesAsync" + ] + } + } + } + } + } + } +} diff --git a/src/admin/v2/index.ts b/src/admin/v2/index.ts new file mode 100644 index 000000000..a9cddbf4e --- /dev/null +++ b/src/admin/v2/index.ts @@ -0,0 +1,20 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT 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. ** + +export {BigtableInstanceAdminClient} from './bigtable_instance_admin_client'; +export {BigtableTableAdminClient} from './bigtable_table_admin_client'; diff --git a/src/v2/bigtable_client.ts b/src/v2/bigtable_client.ts index 623d48b0f..1782b4f9e 100644 --- a/src/v2/bigtable_client.ts +++ b/src/v2/bigtable_client.ts @@ -27,7 +27,7 @@ import type { import {PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); -import {loggingUtils as logging} from 'google-gax'; +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; /** * Client JSON configuration object, loaded from @@ -471,6 +471,9 @@ export class BigtableClient { * Required. Changes to be atomically applied to the specified row. Entries * are applied in order, meaning that earlier mutations can be masked by later * ones. Must contain at least one entry and at most 100000. + * @param {google.bigtable.v2.Idempotency} request.idempotency + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -573,15 +576,12 @@ export class BigtableClient { .toString() .match( RegExp( - '(?projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+)', + '(?projects/[^/]+/instances/[^/]+/tables/[^/]+)(?:/.*)?', ), ); if (match) { - const parameterValue = - match.groups?.['authorized_view_name'] ?? fieldValue; - Object.assign(routingParameter, { - authorized_view_name: parameterValue, - }); + const parameterValue = match.groups?.['table_name'] ?? fieldValue; + Object.assign(routingParameter, {table_name: parameterValue}); } } } @@ -614,7 +614,23 @@ export class BigtableClient { this._log.info('mutateRow response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Mutates a row atomically based on the output of a predicate Reader filter. @@ -760,15 +776,12 @@ export class BigtableClient { .toString() .match( RegExp( - '(?projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+)', + '(?projects/[^/]+/instances/[^/]+/tables/[^/]+)(?:/.*)?', ), ); if (match) { - const parameterValue = - match.groups?.['authorized_view_name'] ?? fieldValue; - Object.assign(routingParameter, { - authorized_view_name: parameterValue, - }); + const parameterValue = match.groups?.['table_name'] ?? fieldValue; + Object.assign(routingParameter, {table_name: parameterValue}); } } } @@ -803,7 +816,23 @@ export class BigtableClient { this._log.info('checkAndMutateRow response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Warm up associated instance metadata for this connection. @@ -938,7 +967,23 @@ export class BigtableClient { this._log.info('pingAndWarm response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Modifies a row atomically on the server. The method reads the latest @@ -970,7 +1015,8 @@ export class BigtableClient { * @param {number[]} request.rules * Required. Rules specifying how the specified row's contents are to be * transformed into writes. Entries are applied in order, meaning that earlier - * rules will affect the results of later ones. + * rules will affect the results of later ones. At least one entry must be + * specified, and there can be at most 100000 rules. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1075,15 +1121,12 @@ export class BigtableClient { .toString() .match( RegExp( - '(?projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+)', + '(?projects/[^/]+/instances/[^/]+/tables/[^/]+)(?:/.*)?', ), ); if (match) { - const parameterValue = - match.groups?.['authorized_view_name'] ?? fieldValue; - Object.assign(routingParameter, { - authorized_view_name: parameterValue, - }); + const parameterValue = match.groups?.['table_name'] ?? fieldValue; + Object.assign(routingParameter, {table_name: parameterValue}); } } } @@ -1118,7 +1161,23 @@ export class BigtableClient { this._log.info('readModifyWriteRow response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** * Prepares a GoogleSQL query for execution on a particular Bigtable instance. @@ -1271,7 +1330,23 @@ export class BigtableClient { this._log.info('prepareQuery response %j', response); return [response, options, rawResponse]; }, - ); + ) + .catch((error: any) => { + if ( + error && + 'statusDetails' in error && + error.statusDetails instanceof Array + ) { + const protos = this._gaxModule.protobuf.Root.fromJSON( + jsonProtos, + ) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray( + error.statusDetails, + protos, + ); + } + throw error; + }); } /** @@ -1376,15 +1451,24 @@ export class BigtableClient { .toString() .match( RegExp( - '(?projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+)', + '(?projects/[^/]+/instances/[^/]+/tables/[^/]+)(?:/.*)?', ), ); if (match) { - const parameterValue = - match.groups?.['authorized_view_name'] ?? fieldValue; - Object.assign(routingParameter, { - authorized_view_name: parameterValue, - }); + const parameterValue = match.groups?.['table_name'] ?? fieldValue; + Object.assign(routingParameter, {table_name: parameterValue}); + } + } + } + { + const fieldValue = request.materializedViewName; + if (fieldValue !== undefined && fieldValue !== null) { + const match = fieldValue + .toString() + .match(RegExp('(?projects/[^/]+/instances/[^/]+)(?:/.*)?')); + if (match) { + const parameterValue = match.groups?.['name'] ?? fieldValue; + Object.assign(routingParameter, {name: parameterValue}); } } } @@ -1475,15 +1559,24 @@ export class BigtableClient { .toString() .match( RegExp( - '(?projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+)', + '(?projects/[^/]+/instances/[^/]+/tables/[^/]+)(?:/.*)?', ), ); if (match) { - const parameterValue = - match.groups?.['authorized_view_name'] ?? fieldValue; - Object.assign(routingParameter, { - authorized_view_name: parameterValue, - }); + const parameterValue = match.groups?.['table_name'] ?? fieldValue; + Object.assign(routingParameter, {table_name: parameterValue}); + } + } + } + { + const fieldValue = request.materializedViewName; + if (fieldValue !== undefined && fieldValue !== null) { + const match = fieldValue + .toString() + .match(RegExp('(?projects/[^/]+/instances/[^/]+)(?:/.*)?')); + if (match) { + const parameterValue = match.groups?.['name'] ?? fieldValue; + Object.assign(routingParameter, {name: parameterValue}); } } } @@ -1575,15 +1668,12 @@ export class BigtableClient { .toString() .match( RegExp( - '(?projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+)', + '(?projects/[^/]+/instances/[^/]+/tables/[^/]+)(?:/.*)?', ), ); if (match) { - const parameterValue = - match.groups?.['authorized_view_name'] ?? fieldValue; - Object.assign(routingParameter, { - authorized_view_name: parameterValue, - }); + const parameterValue = match.groups?.['table_name'] ?? fieldValue; + Object.assign(routingParameter, {table_name: parameterValue}); } } } @@ -1597,10 +1687,10 @@ export class BigtableClient { } /** - * NOTE: This API is intended to be used by Apache Beam BigtableIO. * Returns the current list of partitions that make up the table's * change stream. The union of partitions will cover the entire keyspace. * Partitions can be read with `ReadChangeStream`. + * NOTE: This API is only intended to be used by Apache Beam BigtableIO. * * @param {Object} request * The request object that will be sent. @@ -1643,10 +1733,10 @@ export class BigtableClient { } /** - * NOTE: This API is intended to be used by Apache Beam BigtableIO. * Reads changes from a table's change stream. Changes will * reflect both user-initiated mutations and mutations that are caused by * garbage collection. + * NOTE: This API is only intended to be used by Apache Beam BigtableIO. * * @param {Object} request * The request object that will be sent. @@ -1672,10 +1762,10 @@ export class BigtableClient { * the position. Tokens are delivered on the stream as part of `Heartbeat` * and `CloseStream` messages. * - * If a single token is provided, the token’s partition must exactly match - * the request’s partition. If multiple tokens are provided, as in the case + * If a single token is provided, the token's partition must exactly match + * the request's partition. If multiple tokens are provided, as in the case * of a partition merge, the union of the token partitions must exactly - * cover the request’s partition. Otherwise, INVALID_ARGUMENT will be + * cover the request's partition. Otherwise, INVALID_ARGUMENT will be * returned. * @param {google.protobuf.Timestamp} request.endTime * If specified, OK will be returned when the stream advances beyond diff --git a/src/v2/bigtable_instance_admin_proto_list.json b/src/v2/bigtable_instance_admin_proto_list.json deleted file mode 100644 index 6a7b737f3..000000000 --- a/src/v2/bigtable_instance_admin_proto_list.json +++ /dev/null @@ -1,8 +0,0 @@ -[ - "../../protos/google/bigtable/admin/v2/bigtable_instance_admin.proto", - "../../protos/google/bigtable/admin/v2/bigtable_table_admin.proto", - "../../protos/google/bigtable/admin/v2/common.proto", - "../../protos/google/bigtable/admin/v2/instance.proto", - "../../protos/google/bigtable/admin/v2/table.proto", - "../../protos/google/bigtable/admin/v2/types.proto" -] diff --git a/src/v2/bigtable_table_admin_proto_list.json b/src/v2/bigtable_table_admin_proto_list.json deleted file mode 100644 index 6a7b737f3..000000000 --- a/src/v2/bigtable_table_admin_proto_list.json +++ /dev/null @@ -1,8 +0,0 @@ -[ - "../../protos/google/bigtable/admin/v2/bigtable_instance_admin.proto", - "../../protos/google/bigtable/admin/v2/bigtable_table_admin.proto", - "../../protos/google/bigtable/admin/v2/common.proto", - "../../protos/google/bigtable/admin/v2/instance.proto", - "../../protos/google/bigtable/admin/v2/table.proto", - "../../protos/google/bigtable/admin/v2/types.proto" -] diff --git a/src/v2/gapic_metadata.json b/src/v2/gapic_metadata.json index 4413739c5..84052e03a 100644 --- a/src/v2/gapic_metadata.json +++ b/src/v2/gapic_metadata.json @@ -2,673 +2,97 @@ "schema": "1.0", "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", "language": "typescript", - "protoPackage": "google.bigtable.admin.v2", + "protoPackage": "google.bigtable.v2", "libraryPackage": "@google-cloud/bigtable", "services": { - "BigtableInstanceAdmin": { + "Bigtable": { "clients": { "grpc": { - "libraryClient": "BigtableInstanceAdminClient", + "libraryClient": "BigtableClient", "rpcs": { - "GetInstance": { + "MutateRow": { "methods": [ - "getInstance" + "mutateRow" ] }, - "ListInstances": { + "CheckAndMutateRow": { "methods": [ - "listInstances" + "checkAndMutateRow" ] }, - "UpdateInstance": { + "PingAndWarm": { "methods": [ - "updateInstance" + "pingAndWarm" ] }, - "DeleteInstance": { + "ReadModifyWriteRow": { "methods": [ - "deleteInstance" + "readModifyWriteRow" ] }, - "GetCluster": { + "PrepareQuery": { "methods": [ - "getCluster" + "prepareQuery" ] }, - "ListClusters": { + "ReadRows": { "methods": [ - "listClusters" + "readRows" ] }, - "DeleteCluster": { + "SampleRowKeys": { "methods": [ - "deleteCluster" + "sampleRowKeys" ] }, - "CreateAppProfile": { + "MutateRows": { "methods": [ - "createAppProfile" + "mutateRows" ] }, - "GetAppProfile": { + "GenerateInitialChangeStreamPartitions": { "methods": [ - "getAppProfile" + "generateInitialChangeStreamPartitions" ] }, - "DeleteAppProfile": { + "ReadChangeStream": { "methods": [ - "deleteAppProfile" + "readChangeStream" ] }, - "GetIamPolicy": { + "ExecuteQuery": { "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "GetLogicalView": { - "methods": [ - "getLogicalView" - ] - }, - "DeleteLogicalView": { - "methods": [ - "deleteLogicalView" - ] - }, - "GetMaterializedView": { - "methods": [ - "getMaterializedView" - ] - }, - "DeleteMaterializedView": { - "methods": [ - "deleteMaterializedView" - ] - }, - "CreateInstance": { - "methods": [ - "createInstance" - ] - }, - "PartialUpdateInstance": { - "methods": [ - "partialUpdateInstance" - ] - }, - "CreateCluster": { - "methods": [ - "createCluster" - ] - }, - "UpdateCluster": { - "methods": [ - "updateCluster" - ] - }, - "PartialUpdateCluster": { - "methods": [ - "partialUpdateCluster" - ] - }, - "UpdateAppProfile": { - "methods": [ - "updateAppProfile" - ] - }, - "CreateLogicalView": { - "methods": [ - "createLogicalView" - ] - }, - "UpdateLogicalView": { - "methods": [ - "updateLogicalView" - ] - }, - "CreateMaterializedView": { - "methods": [ - "createMaterializedView" - ] - }, - "UpdateMaterializedView": { - "methods": [ - "updateMaterializedView" - ] - }, - "ListAppProfiles": { - "methods": [ - "listAppProfiles", - "listAppProfilesStream", - "listAppProfilesAsync" - ] - }, - "ListHotTablets": { - "methods": [ - "listHotTablets", - "listHotTabletsStream", - "listHotTabletsAsync" - ] - }, - "ListLogicalViews": { - "methods": [ - "listLogicalViews", - "listLogicalViewsStream", - "listLogicalViewsAsync" - ] - }, - "ListMaterializedViews": { - "methods": [ - "listMaterializedViews", - "listMaterializedViewsStream", - "listMaterializedViewsAsync" - ] - } - } - }, - "grpc-fallback": { - "libraryClient": "BigtableInstanceAdminClient", - "rpcs": { - "GetInstance": { - "methods": [ - "getInstance" - ] - }, - "ListInstances": { - "methods": [ - "listInstances" - ] - }, - "UpdateInstance": { - "methods": [ - "updateInstance" - ] - }, - "DeleteInstance": { - "methods": [ - "deleteInstance" - ] - }, - "GetCluster": { - "methods": [ - "getCluster" - ] - }, - "ListClusters": { - "methods": [ - "listClusters" - ] - }, - "DeleteCluster": { - "methods": [ - "deleteCluster" - ] - }, - "CreateAppProfile": { - "methods": [ - "createAppProfile" - ] - }, - "GetAppProfile": { - "methods": [ - "getAppProfile" - ] - }, - "DeleteAppProfile": { - "methods": [ - "deleteAppProfile" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "GetLogicalView": { - "methods": [ - "getLogicalView" - ] - }, - "DeleteLogicalView": { - "methods": [ - "deleteLogicalView" - ] - }, - "GetMaterializedView": { - "methods": [ - "getMaterializedView" - ] - }, - "DeleteMaterializedView": { - "methods": [ - "deleteMaterializedView" - ] - }, - "CreateInstance": { - "methods": [ - "createInstance" - ] - }, - "PartialUpdateInstance": { - "methods": [ - "partialUpdateInstance" - ] - }, - "CreateCluster": { - "methods": [ - "createCluster" - ] - }, - "UpdateCluster": { - "methods": [ - "updateCluster" - ] - }, - "PartialUpdateCluster": { - "methods": [ - "partialUpdateCluster" - ] - }, - "UpdateAppProfile": { - "methods": [ - "updateAppProfile" - ] - }, - "CreateLogicalView": { - "methods": [ - "createLogicalView" - ] - }, - "UpdateLogicalView": { - "methods": [ - "updateLogicalView" - ] - }, - "CreateMaterializedView": { - "methods": [ - "createMaterializedView" - ] - }, - "UpdateMaterializedView": { - "methods": [ - "updateMaterializedView" - ] - }, - "ListAppProfiles": { - "methods": [ - "listAppProfiles", - "listAppProfilesStream", - "listAppProfilesAsync" - ] - }, - "ListHotTablets": { - "methods": [ - "listHotTablets", - "listHotTabletsStream", - "listHotTabletsAsync" - ] - }, - "ListLogicalViews": { - "methods": [ - "listLogicalViews", - "listLogicalViewsStream", - "listLogicalViewsAsync" - ] - }, - "ListMaterializedViews": { - "methods": [ - "listMaterializedViews", - "listMaterializedViewsStream", - "listMaterializedViewsAsync" - ] - } - } - } - } - }, - "BigtableTableAdmin": { - "clients": { - "grpc": { - "libraryClient": "BigtableTableAdminClient", - "rpcs": { - "CreateTable": { - "methods": [ - "createTable" - ] - }, - "GetTable": { - "methods": [ - "getTable" - ] - }, - "DeleteTable": { - "methods": [ - "deleteTable" - ] - }, - "GetAuthorizedView": { - "methods": [ - "getAuthorizedView" - ] - }, - "DeleteAuthorizedView": { - "methods": [ - "deleteAuthorizedView" - ] - }, - "ModifyColumnFamilies": { - "methods": [ - "modifyColumnFamilies" - ] - }, - "DropRowRange": { - "methods": [ - "dropRowRange" - ] - }, - "GenerateConsistencyToken": { - "methods": [ - "generateConsistencyToken" - ] - }, - "CheckConsistency": { - "methods": [ - "checkConsistency" - ] - }, - "GetSnapshot": { - "methods": [ - "getSnapshot" - ] - }, - "DeleteSnapshot": { - "methods": [ - "deleteSnapshot" - ] - }, - "GetBackup": { - "methods": [ - "getBackup" - ] - }, - "UpdateBackup": { - "methods": [ - "updateBackup" - ] - }, - "DeleteBackup": { - "methods": [ - "deleteBackup" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "CreateTableFromSnapshot": { - "methods": [ - "createTableFromSnapshot" - ] - }, - "UpdateTable": { - "methods": [ - "updateTable" - ] - }, - "UndeleteTable": { - "methods": [ - "undeleteTable" - ] - }, - "CreateAuthorizedView": { - "methods": [ - "createAuthorizedView" - ] - }, - "UpdateAuthorizedView": { - "methods": [ - "updateAuthorizedView" - ] - }, - "SnapshotTable": { - "methods": [ - "snapshotTable" - ] - }, - "CreateBackup": { - "methods": [ - "createBackup" - ] - }, - "RestoreTable": { - "methods": [ - "restoreTable" - ] - }, - "CopyBackup": { - "methods": [ - "copyBackup" - ] - }, - "ListTables": { - "methods": [ - "listTables", - "listTablesStream", - "listTablesAsync" - ] - }, - "ListAuthorizedViews": { - "methods": [ - "listAuthorizedViews", - "listAuthorizedViewsStream", - "listAuthorizedViewsAsync" - ] - }, - "ListSnapshots": { - "methods": [ - "listSnapshots", - "listSnapshotsStream", - "listSnapshotsAsync" - ] - }, - "ListBackups": { - "methods": [ - "listBackups", - "listBackupsStream", - "listBackupsAsync" + "executeQuery" ] } } }, "grpc-fallback": { - "libraryClient": "BigtableTableAdminClient", + "libraryClient": "BigtableClient", "rpcs": { - "CreateTable": { - "methods": [ - "createTable" - ] - }, - "GetTable": { - "methods": [ - "getTable" - ] - }, - "DeleteTable": { - "methods": [ - "deleteTable" - ] - }, - "GetAuthorizedView": { - "methods": [ - "getAuthorizedView" - ] - }, - "DeleteAuthorizedView": { - "methods": [ - "deleteAuthorizedView" - ] - }, - "ModifyColumnFamilies": { - "methods": [ - "modifyColumnFamilies" - ] - }, - "DropRowRange": { - "methods": [ - "dropRowRange" - ] - }, - "GenerateConsistencyToken": { - "methods": [ - "generateConsistencyToken" - ] - }, - "CheckConsistency": { - "methods": [ - "checkConsistency" - ] - }, - "GetSnapshot": { - "methods": [ - "getSnapshot" - ] - }, - "DeleteSnapshot": { - "methods": [ - "deleteSnapshot" - ] - }, - "GetBackup": { - "methods": [ - "getBackup" - ] - }, - "UpdateBackup": { - "methods": [ - "updateBackup" - ] - }, - "DeleteBackup": { - "methods": [ - "deleteBackup" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "CreateTableFromSnapshot": { - "methods": [ - "createTableFromSnapshot" - ] - }, - "UpdateTable": { - "methods": [ - "updateTable" - ] - }, - "UndeleteTable": { - "methods": [ - "undeleteTable" - ] - }, - "CreateAuthorizedView": { - "methods": [ - "createAuthorizedView" - ] - }, - "UpdateAuthorizedView": { - "methods": [ - "updateAuthorizedView" - ] - }, - "SnapshotTable": { - "methods": [ - "snapshotTable" - ] - }, - "CreateBackup": { - "methods": [ - "createBackup" - ] - }, - "RestoreTable": { - "methods": [ - "restoreTable" - ] - }, - "CopyBackup": { + "MutateRow": { "methods": [ - "copyBackup" + "mutateRow" ] }, - "ListTables": { + "CheckAndMutateRow": { "methods": [ - "listTables", - "listTablesStream", - "listTablesAsync" + "checkAndMutateRow" ] }, - "ListAuthorizedViews": { + "PingAndWarm": { "methods": [ - "listAuthorizedViews", - "listAuthorizedViewsStream", - "listAuthorizedViewsAsync" + "pingAndWarm" ] }, - "ListSnapshots": { + "ReadModifyWriteRow": { "methods": [ - "listSnapshots", - "listSnapshotsStream", - "listSnapshotsAsync" + "readModifyWriteRow" ] }, - "ListBackups": { + "PrepareQuery": { "methods": [ - "listBackups", - "listBackupsStream", - "listBackupsAsync" + "prepareQuery" ] } } diff --git a/src/v2/index.ts b/src/v2/index.ts index 5ad012de7..693dfacef 100644 --- a/src/v2/index.ts +++ b/src/v2/index.ts @@ -16,6 +16,6 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** -export {BigtableInstanceAdminClient} from './bigtable_instance_admin_client'; -export {BigtableTableAdminClient} from './bigtable_table_admin_client'; +export {BigtableInstanceAdminClient} from '../admin/v2/bigtable_instance_admin_client'; +export {BigtableTableAdminClient} from '../admin/v2/bigtable_table_admin_client'; export {BigtableClient} from './bigtable_client'; diff --git a/test/gapic_bigtable_instance_admin_v2.ts b/test/admin/v2/gapic_bigtable_instance_admin_v2.ts similarity index 98% rename from test/gapic_bigtable_instance_admin_v2.ts rename to test/admin/v2/gapic_bigtable_instance_admin_v2.ts index 48a2ee719..10ef61d48 100644 --- a/test/gapic_bigtable_instance_admin_v2.ts +++ b/test/admin/v2/gapic_bigtable_instance_admin_v2.ts @@ -16,12 +16,12 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** -import * as protos from '../protos/protos'; +import * as protos from '../../../protos/protos'; import * as assert from 'assert'; import * as sinon from 'sinon'; import {SinonStub} from 'sinon'; import {describe, it} from 'mocha'; -import * as bigtableinstanceadminModule from '../src'; +import * as bigtableinstanceadminModule from '../../../src'; import {PassThrough} from 'stream'; @@ -30,7 +30,7 @@ import {protobuf, LROperation, operationsProtos} from 'google-gax'; // Dynamically loaded proto JSON is needed to get the type information // to fill in default values for request objects const root = protobuf.Root.fromJSON( - require('../protos/protos.json'), + require('../../../protos/protos.json'), ).resolveAll(); // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -6611,6 +6611,83 @@ describe('v2.BigtableInstanceAdminClient', () => { }); }); + describe('schemaBundle', async () => { + const fakePath = '/rendered/path/schemaBundle'; + const expectedParameters = { + project: 'projectValue', + instance: 'instanceValue', + table: 'tableValue', + schema_bundle: 'schemaBundleValue', + }; + const client = + new bigtableinstanceadminModule.v2.BigtableInstanceAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + client.pathTemplates.schemaBundlePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.schemaBundlePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('schemaBundlePath', () => { + const result = client.schemaBundlePath( + 'projectValue', + 'instanceValue', + 'tableValue', + 'schemaBundleValue', + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.schemaBundlePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters), + ); + }); + + it('matchProjectFromSchemaBundleName', () => { + const result = client.matchProjectFromSchemaBundleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.schemaBundlePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath), + ); + }); + + it('matchInstanceFromSchemaBundleName', () => { + const result = client.matchInstanceFromSchemaBundleName(fakePath); + assert.strictEqual(result, 'instanceValue'); + assert( + (client.pathTemplates.schemaBundlePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath), + ); + }); + + it('matchTableFromSchemaBundleName', () => { + const result = client.matchTableFromSchemaBundleName(fakePath); + assert.strictEqual(result, 'tableValue'); + assert( + (client.pathTemplates.schemaBundlePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath), + ); + }); + + it('matchSchemaBundleFromSchemaBundleName', () => { + const result = client.matchSchemaBundleFromSchemaBundleName(fakePath); + assert.strictEqual(result, 'schemaBundleValue'); + assert( + (client.pathTemplates.schemaBundlePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath), + ); + }); + }); + describe('snapshot', async () => { const fakePath = '/rendered/path/snapshot'; const expectedParameters = { diff --git a/test/gapic_bigtable_table_admin_v2.ts b/test/admin/v2/gapic_bigtable_table_admin_v2.ts similarity index 85% rename from test/gapic_bigtable_table_admin_v2.ts rename to test/admin/v2/gapic_bigtable_table_admin_v2.ts index 3fb60a4cd..9a8e7cf7c 100644 --- a/test/gapic_bigtable_table_admin_v2.ts +++ b/test/admin/v2/gapic_bigtable_table_admin_v2.ts @@ -16,12 +16,12 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** -import * as protos from '../protos/protos'; +import * as protos from '../../../protos/protos'; import * as assert from 'assert'; import * as sinon from 'sinon'; import {SinonStub} from 'sinon'; import {describe, it} from 'mocha'; -import * as bigtabletableadminModule from '../src'; +import * as bigtabletableadminModule from '../../../src'; import {PassThrough} from 'stream'; @@ -30,7 +30,7 @@ import {protobuf, LROperation, operationsProtos} from 'google-gax'; // Dynamically loaded proto JSON is needed to get the type information // to fill in default values for request objects const root = protobuf.Root.fromJSON( - require('../protos/protos.json'), + require('../../../protos/protos.json'), ).resolveAll(); // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -2606,6 +2606,271 @@ describe('v2.BigtableTableAdminClient', () => { }); }); + describe('getSchemaBundle', () => { + it('invokes getSchemaBundle without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.GetSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.GetSchemaBundleRequest', + ['name'], + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1 ?? ''}`; + const expectedResponse = generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ); + client.innerApiCalls.getSchemaBundle = stubSimpleCall(expectedResponse); + const [response] = await client.getSchemaBundle(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSchemaBundle without error using callback', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.GetSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.GetSchemaBundleRequest', + ['name'], + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1 ?? ''}`; + const expectedResponse = generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ); + client.innerApiCalls.getSchemaBundle = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getSchemaBundle( + request, + ( + err?: Error | null, + result?: protos.google.bigtable.admin.v2.ISchemaBundle | null, + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }, + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSchemaBundle with error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.GetSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.GetSchemaBundleRequest', + ['name'], + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getSchemaBundle = stubSimpleCall( + undefined, + expectedError, + ); + await assert.rejects(client.getSchemaBundle(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getSchemaBundle with closed client', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.GetSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.GetSchemaBundleRequest', + ['name'], + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => { + throw err; + }); + await assert.rejects(client.getSchemaBundle(request), expectedError); + }); + }); + + describe('deleteSchemaBundle', () => { + it('invokes deleteSchemaBundle without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.DeleteSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.DeleteSchemaBundleRequest', + ['name'], + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1 ?? ''}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty(), + ); + client.innerApiCalls.deleteSchemaBundle = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteSchemaBundle(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteSchemaBundle without error using callback', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.DeleteSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.DeleteSchemaBundleRequest', + ['name'], + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1 ?? ''}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty(), + ); + client.innerApiCalls.deleteSchemaBundle = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteSchemaBundle( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null, + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }, + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteSchemaBundle with error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.DeleteSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.DeleteSchemaBundleRequest', + ['name'], + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteSchemaBundle = stubSimpleCall( + undefined, + expectedError, + ); + await assert.rejects(client.deleteSchemaBundle(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteSchemaBundle with closed client', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.DeleteSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.DeleteSchemaBundleRequest', + ['name'], + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => { + throw err; + }); + await assert.rejects(client.deleteSchemaBundle(request), expectedError); + }); + }); + describe('createTableFromSnapshot', () => { it('invokes createTableFromSnapshot without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ @@ -4348,68 +4613,69 @@ describe('v2.BigtableTableAdminClient', () => { }); }); - describe('listTables', () => { - it('invokes listTables without error', async () => { + describe('createSchemaBundle', () => { + it('invokes createSchemaBundle without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListTablesRequest(), + new protos.google.bigtable.admin.v2.CreateSchemaBundleRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListTablesRequest', + '.google.bigtable.admin.v2.CreateSchemaBundleRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; - const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - ]; - client.innerApiCalls.listTables = stubSimpleCall(expectedResponse); - const [response] = await client.listTables(request); + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation(), + ); + client.innerApiCalls.createSchemaBundle = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createSchemaBundle(request); + const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listTables as SinonStub + client.innerApiCalls.createSchemaBundle as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listTables as SinonStub + client.innerApiCalls.createSchemaBundle as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listTables without error using callback', async () => { + it('invokes createSchemaBundle without error using callback', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListTablesRequest(), + new protos.google.bigtable.admin.v2.CreateSchemaBundleRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListTablesRequest', + '.google.bigtable.admin.v2.CreateSchemaBundleRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; - const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - ]; - client.innerApiCalls.listTables = - stubSimpleCallWithCallback(expectedResponse); + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation(), + ); + client.innerApiCalls.createSchemaBundle = + stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listTables( + client.createSchemaBundle( request, ( err?: Error | null, - result?: protos.google.bigtable.admin.v2.ITable[] | null, + result?: LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + > | null, ) => { if (err) { reject(err); @@ -4419,77 +4685,789 @@ describe('v2.BigtableTableAdminClient', () => { }, ); }); - const response = await promise; + const operation = (await promise) as LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.ICreateSchemaBundleMetadata + >; + const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listTables as SinonStub + client.innerApiCalls.createSchemaBundle as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listTables as SinonStub + client.innerApiCalls.createSchemaBundle as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listTables with error', async () => { + it('invokes createSchemaBundle with call error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListTablesRequest(), + new protos.google.bigtable.admin.v2.CreateSchemaBundleRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListTablesRequest', + '.google.bigtable.admin.v2.CreateSchemaBundleRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.innerApiCalls.listTables = stubSimpleCall( + client.innerApiCalls.createSchemaBundle = stubLongRunningCall( + undefined, + expectedError, + ); + await assert.rejects(client.createSchemaBundle(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createSchemaBundle with LRO error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.CreateSchemaBundleRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.CreateSchemaBundleRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createSchemaBundle = stubLongRunningCall( + undefined, + undefined, + expectedError, + ); + const [operation] = await client.createSchemaBundle(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateSchemaBundleProgress without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation(), + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkCreateSchemaBundleProgress( + expectedResponse.name, + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateSchemaBundleProgress with error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError, + ); + await assert.rejects( + client.checkCreateSchemaBundleProgress(''), + expectedError, + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateSchemaBundle', () => { + it('invokes updateSchemaBundle without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.UpdateSchemaBundleRequest(), + ); + request.schemaBundle ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.UpdateSchemaBundleRequest', + ['schemaBundle', 'name'], + ); + request.schemaBundle.name = defaultValue1; + const expectedHeaderRequestParams = `schema_bundle.name=${defaultValue1 ?? ''}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation(), + ); + client.innerApiCalls.updateSchemaBundle = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateSchemaBundle(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateSchemaBundle without error using callback', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.UpdateSchemaBundleRequest(), + ); + request.schemaBundle ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.UpdateSchemaBundleRequest', + ['schemaBundle', 'name'], + ); + request.schemaBundle.name = defaultValue1; + const expectedHeaderRequestParams = `schema_bundle.name=${defaultValue1 ?? ''}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation(), + ); + client.innerApiCalls.updateSchemaBundle = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateSchemaBundle( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + > | null, + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }, + ); + }); + const operation = (await promise) as LROperation< + protos.google.bigtable.admin.v2.ISchemaBundle, + protos.google.bigtable.admin.v2.IUpdateSchemaBundleMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateSchemaBundle with call error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.UpdateSchemaBundleRequest(), + ); + request.schemaBundle ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.UpdateSchemaBundleRequest', + ['schemaBundle', 'name'], + ); + request.schemaBundle.name = defaultValue1; + const expectedHeaderRequestParams = `schema_bundle.name=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateSchemaBundle = stubLongRunningCall( + undefined, + expectedError, + ); + await assert.rejects(client.updateSchemaBundle(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateSchemaBundle with LRO error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.UpdateSchemaBundleRequest(), + ); + request.schemaBundle ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.UpdateSchemaBundleRequest', + ['schemaBundle', 'name'], + ); + request.schemaBundle.name = defaultValue1; + const expectedHeaderRequestParams = `schema_bundle.name=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateSchemaBundle = stubLongRunningCall( + undefined, + undefined, + expectedError, + ); + const [operation] = await client.updateSchemaBundle(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateSchemaBundle as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateSchemaBundle as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateSchemaBundleProgress without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation(), + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkUpdateSchemaBundleProgress( + expectedResponse.name, + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateSchemaBundleProgress with error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError, + ); + await assert.rejects( + client.checkUpdateSchemaBundleProgress(''), + expectedError, + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listTables', () => { + it('invokes listTables without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListTablesRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListTablesRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + ]; + client.innerApiCalls.listTables = stubSimpleCall(expectedResponse); + const [response] = await client.listTables(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listTables as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listTables as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listTables without error using callback', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListTablesRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListTablesRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + ]; + client.innerApiCalls.listTables = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listTables( + request, + ( + err?: Error | null, + result?: protos.google.bigtable.admin.v2.ITable[] | null, + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }, + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listTables as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listTables as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listTables with error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListTablesRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListTablesRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listTables = stubSimpleCall( undefined, expectedError, ); await assert.rejects(client.listTables(request), expectedError); const actualRequest = ( - client.innerApiCalls.listTables as SinonStub + client.innerApiCalls.listTables as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listTables as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listTablesStream without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListTablesRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListTablesRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + ]; + client.descriptors.page.listTables.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listTablesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.bigtable.admin.v2.Table[] = []; + stream.on('data', (response: protos.google.bigtable.admin.v2.Table) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listTables.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listTables, request), + ); + assert( + (client.descriptors.page.listTables.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams), + ); + }); + + it('invokes listTablesStream with error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListTablesRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListTablesRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.descriptors.page.listTables.createStream = stubPageStreamingCall( + undefined, + expectedError, + ); + const stream = client.listTablesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.bigtable.admin.v2.Table[] = []; + stream.on('data', (response: protos.google.bigtable.admin.v2.Table) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listTables.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listTables, request), + ); + assert( + (client.descriptors.page.listTables.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams), + ); + }); + + it('uses async iteration with listTables without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListTablesRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListTablesRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + ]; + client.descriptors.page.listTables.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.bigtable.admin.v2.ITable[] = []; + const iterable = client.listTablesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listTables.asyncIterate as SinonStub).getCall( + 0, + ).args[1], + request, + ); + assert( + (client.descriptors.page.listTables.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams), + ); + }); + + it('uses async iteration with listTables with error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListTablesRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListTablesRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.descriptors.page.listTables.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError, + ); + const iterable = client.listTablesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.bigtable.admin.v2.ITable[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listTables.asyncIterate as SinonStub).getCall( + 0, + ).args[1], + request, + ); + assert( + (client.descriptors.page.listTables.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams), + ); + }); + }); + + describe('listAuthorizedViews', () => { + it('invokes listAuthorizedViews without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + ]; + client.innerApiCalls.listAuthorizedViews = + stubSimpleCall(expectedResponse); + const [response] = await client.listAuthorizedViews(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listAuthorizedViews as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listTables as SinonStub + client.innerApiCalls.listAuthorizedViews as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listTablesStream without error', async () => { + it('invokes listAuthorizedViews without error using callback', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListTablesRequest(), + new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListTablesRequest', + '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), ]; - client.descriptors.page.listTables.createStream = + client.innerApiCalls.listAuthorizedViews = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAuthorizedViews( + request, + ( + err?: Error | null, + result?: protos.google.bigtable.admin.v2.IAuthorizedView[] | null, + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }, + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listAuthorizedViews as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listAuthorizedViews as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listAuthorizedViews with error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listAuthorizedViews = stubSimpleCall( + undefined, + expectedError, + ); + await assert.rejects(client.listAuthorizedViews(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listAuthorizedViews as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listAuthorizedViews as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listAuthorizedViewsStream without error', async () => { + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + ); + const defaultValue1 = getTypeDefaultValue( + '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + ['parent'], + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + ]; + client.descriptors.page.listAuthorizedViews.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listTablesStream(request); + const stream = client.listAuthorizedViewsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.bigtable.admin.v2.Table[] = []; - stream.on('data', (response: protos.google.bigtable.admin.v2.Table) => { - responses.push(response); - }); + const responses: protos.google.bigtable.admin.v2.AuthorizedView[] = []; + stream.on( + 'data', + (response: protos.google.bigtable.admin.v2.AuthorizedView) => { + responses.push(response); + }, + ); stream.on('end', () => { resolve(responses); }); @@ -4500,12 +5478,12 @@ describe('v2.BigtableTableAdminClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listTables.createStream as SinonStub) + (client.descriptors.page.listAuthorizedViews.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listTables, request), + .calledWith(client.innerApiCalls.listAuthorizedViews, request), ); assert( - (client.descriptors.page.listTables.createStream as SinonStub) + (client.descriptors.page.listAuthorizedViews.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4513,32 +5491,33 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('invokes listTablesStream with error', async () => { + it('invokes listAuthorizedViewsStream with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListTablesRequest(), + new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListTablesRequest', + '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.descriptors.page.listTables.createStream = stubPageStreamingCall( - undefined, - expectedError, - ); - const stream = client.listTablesStream(request); + client.descriptors.page.listAuthorizedViews.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAuthorizedViewsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.bigtable.admin.v2.Table[] = []; - stream.on('data', (response: protos.google.bigtable.admin.v2.Table) => { - responses.push(response); - }); + const responses: protos.google.bigtable.admin.v2.AuthorizedView[] = []; + stream.on( + 'data', + (response: protos.google.bigtable.admin.v2.AuthorizedView) => { + responses.push(response); + }, + ); stream.on('end', () => { resolve(responses); }); @@ -4548,12 +5527,12 @@ describe('v2.BigtableTableAdminClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listTables.createStream as SinonStub) + (client.descriptors.page.listAuthorizedViews.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listTables, request), + .calledWith(client.innerApiCalls.listAuthorizedViews, request), ); assert( - (client.descriptors.page.listTables.createStream as SinonStub) + (client.descriptors.page.listAuthorizedViews.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4561,42 +5540,48 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('uses async iteration with listTables without error', async () => { + it('uses async iteration with listAuthorizedViews without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListTablesRequest(), + new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListTablesRequest', + '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Table()), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.AuthorizedView(), + ), ]; - client.descriptors.page.listTables.asyncIterate = + client.descriptors.page.listAuthorizedViews.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.bigtable.admin.v2.ITable[] = []; - const iterable = client.listTablesAsync(request); + const responses: protos.google.bigtable.admin.v2.IAuthorizedView[] = []; + const iterable = client.listAuthorizedViewsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listTables.asyncIterate as SinonStub).getCall( - 0, - ).args[1], + ( + client.descriptors.page.listAuthorizedViews.asyncIterate as SinonStub + ).getCall(0).args[1], request, ); assert( - (client.descriptors.page.listTables.asyncIterate as SinonStub) + (client.descriptors.page.listAuthorizedViews.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4604,41 +5589,39 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('uses async iteration with listTables with error', async () => { + it('uses async iteration with listAuthorizedViews with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListTablesRequest(), + new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListTablesRequest', + '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.descriptors.page.listTables.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError, - ); - const iterable = client.listTablesAsync(request); + client.descriptors.page.listAuthorizedViews.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAuthorizedViewsAsync(request); await assert.rejects(async () => { - const responses: protos.google.bigtable.admin.v2.ITable[] = []; + const responses: protos.google.bigtable.admin.v2.IAuthorizedView[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listTables.asyncIterate as SinonStub).getCall( - 0, - ).args[1], + ( + client.descriptors.page.listAuthorizedViews.asyncIterate as SinonStub + ).getCall(0).args[1], request, ); assert( - (client.descriptors.page.listTables.asyncIterate as SinonStub) + (client.descriptors.page.listAuthorizedViews.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4647,81 +5630,68 @@ describe('v2.BigtableTableAdminClient', () => { }); }); - describe('listAuthorizedViews', () => { - it('invokes listAuthorizedViews without error', async () => { + describe('listSnapshots', () => { + it('invokes listSnapshots without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + '.google.bigtable.admin.v2.ListSnapshotsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), ]; - client.innerApiCalls.listAuthorizedViews = - stubSimpleCall(expectedResponse); - const [response] = await client.listAuthorizedViews(request); + client.innerApiCalls.listSnapshots = stubSimpleCall(expectedResponse); + const [response] = await client.listSnapshots(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listAuthorizedViews as SinonStub + client.innerApiCalls.listSnapshots as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAuthorizedViews as SinonStub + client.innerApiCalls.listSnapshots as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAuthorizedViews without error using callback', async () => { + it('invokes listSnapshots without error using callback', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + '.google.bigtable.admin.v2.ListSnapshotsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), ]; - client.innerApiCalls.listAuthorizedViews = + client.innerApiCalls.listSnapshots = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAuthorizedViews( + client.listSnapshots( request, ( err?: Error | null, - result?: protos.google.bigtable.admin.v2.IAuthorizedView[] | null, + result?: protos.google.bigtable.admin.v2.ISnapshot[] | null, ) => { if (err) { reject(err); @@ -4734,80 +5704,74 @@ describe('v2.BigtableTableAdminClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listAuthorizedViews as SinonStub + client.innerApiCalls.listSnapshots as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAuthorizedViews as SinonStub + client.innerApiCalls.listSnapshots as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAuthorizedViews with error', async () => { + it('invokes listSnapshots with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + '.google.bigtable.admin.v2.ListSnapshotsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.innerApiCalls.listAuthorizedViews = stubSimpleCall( + client.innerApiCalls.listSnapshots = stubSimpleCall( undefined, expectedError, ); - await assert.rejects(client.listAuthorizedViews(request), expectedError); + await assert.rejects(client.listSnapshots(request), expectedError); const actualRequest = ( - client.innerApiCalls.listAuthorizedViews as SinonStub + client.innerApiCalls.listSnapshots as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAuthorizedViews as SinonStub + client.innerApiCalls.listSnapshots as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAuthorizedViewsStream without error', async () => { + it('invokes listSnapshotsStream without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + '.google.bigtable.admin.v2.ListSnapshotsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), ]; - client.descriptors.page.listAuthorizedViews.createStream = + client.descriptors.page.listSnapshots.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAuthorizedViewsStream(request); + const stream = client.listSnapshotsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.bigtable.admin.v2.AuthorizedView[] = []; + const responses: protos.google.bigtable.admin.v2.Snapshot[] = []; stream.on( 'data', - (response: protos.google.bigtable.admin.v2.AuthorizedView) => { + (response: protos.google.bigtable.admin.v2.Snapshot) => { responses.push(response); }, ); @@ -4821,12 +5785,12 @@ describe('v2.BigtableTableAdminClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAuthorizedViews.createStream as SinonStub) + (client.descriptors.page.listSnapshots.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAuthorizedViews, request), + .calledWith(client.innerApiCalls.listSnapshots, request), ); assert( - (client.descriptors.page.listAuthorizedViews.createStream as SinonStub) + (client.descriptors.page.listSnapshots.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4834,30 +5798,30 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('invokes listAuthorizedViewsStream with error', async () => { + it('invokes listSnapshotsStream with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + '.google.bigtable.admin.v2.ListSnapshotsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.descriptors.page.listAuthorizedViews.createStream = + client.descriptors.page.listSnapshots.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAuthorizedViewsStream(request); + const stream = client.listSnapshotsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.bigtable.admin.v2.AuthorizedView[] = []; + const responses: protos.google.bigtable.admin.v2.Snapshot[] = []; stream.on( 'data', - (response: protos.google.bigtable.admin.v2.AuthorizedView) => { + (response: protos.google.bigtable.admin.v2.Snapshot) => { responses.push(response); }, ); @@ -4870,12 +5834,12 @@ describe('v2.BigtableTableAdminClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAuthorizedViews.createStream as SinonStub) + (client.descriptors.page.listSnapshots.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAuthorizedViews, request), + .calledWith(client.innerApiCalls.listSnapshots, request), ); assert( - (client.descriptors.page.listAuthorizedViews.createStream as SinonStub) + (client.descriptors.page.listSnapshots.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4883,48 +5847,42 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('uses async iteration with listAuthorizedViews without error', async () => { + it('uses async iteration with listSnapshots without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + '.google.bigtable.admin.v2.ListSnapshotsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), - generateSampleMessage( - new protos.google.bigtable.admin.v2.AuthorizedView(), - ), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), ]; - client.descriptors.page.listAuthorizedViews.asyncIterate = + client.descriptors.page.listSnapshots.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.bigtable.admin.v2.IAuthorizedView[] = []; - const iterable = client.listAuthorizedViewsAsync(request); + const responses: protos.google.bigtable.admin.v2.ISnapshot[] = []; + const iterable = client.listSnapshotsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAuthorizedViews.asyncIterate as SinonStub + client.descriptors.page.listSnapshots.asyncIterate as SinonStub ).getCall(0).args[1], request, ); assert( - (client.descriptors.page.listAuthorizedViews.asyncIterate as SinonStub) + (client.descriptors.page.listSnapshots.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4932,39 +5890,39 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('uses async iteration with listAuthorizedViews with error', async () => { + it('uses async iteration with listSnapshots with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListAuthorizedViewsRequest(), + new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListAuthorizedViewsRequest', + '.google.bigtable.admin.v2.ListSnapshotsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.descriptors.page.listAuthorizedViews.asyncIterate = + client.descriptors.page.listSnapshots.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAuthorizedViewsAsync(request); + const iterable = client.listSnapshotsAsync(request); await assert.rejects(async () => { - const responses: protos.google.bigtable.admin.v2.IAuthorizedView[] = []; + const responses: protos.google.bigtable.admin.v2.ISnapshot[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAuthorizedViews.asyncIterate as SinonStub + client.descriptors.page.listSnapshots.asyncIterate as SinonStub ).getCall(0).args[1], request, ); assert( - (client.descriptors.page.listAuthorizedViews.asyncIterate as SinonStub) + (client.descriptors.page.listSnapshots.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -4973,68 +5931,68 @@ describe('v2.BigtableTableAdminClient', () => { }); }); - describe('listSnapshots', () => { - it('invokes listSnapshots without error', async () => { + describe('listBackups', () => { + it('invokes listBackups without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), + new protos.google.bigtable.admin.v2.ListBackupsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListSnapshotsRequest', + '.google.bigtable.admin.v2.ListBackupsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), ]; - client.innerApiCalls.listSnapshots = stubSimpleCall(expectedResponse); - const [response] = await client.listSnapshots(request); + client.innerApiCalls.listBackups = stubSimpleCall(expectedResponse); + const [response] = await client.listBackups(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listSnapshots as SinonStub + client.innerApiCalls.listBackups as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSnapshots as SinonStub + client.innerApiCalls.listBackups as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSnapshots without error using callback', async () => { + it('invokes listBackups without error using callback', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), + new protos.google.bigtable.admin.v2.ListBackupsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListSnapshotsRequest', + '.google.bigtable.admin.v2.ListBackupsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), ]; - client.innerApiCalls.listSnapshots = + client.innerApiCalls.listBackups = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listSnapshots( + client.listBackups( request, ( err?: Error | null, - result?: protos.google.bigtable.admin.v2.ISnapshot[] | null, + result?: protos.google.bigtable.admin.v2.IBackup[] | null, ) => { if (err) { reject(err); @@ -5047,74 +6005,74 @@ describe('v2.BigtableTableAdminClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listSnapshots as SinonStub + client.innerApiCalls.listBackups as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSnapshots as SinonStub + client.innerApiCalls.listBackups as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSnapshots with error', async () => { + it('invokes listBackups with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), + new protos.google.bigtable.admin.v2.ListBackupsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListSnapshotsRequest', + '.google.bigtable.admin.v2.ListBackupsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.innerApiCalls.listSnapshots = stubSimpleCall( + client.innerApiCalls.listBackups = stubSimpleCall( undefined, expectedError, ); - await assert.rejects(client.listSnapshots(request), expectedError); + await assert.rejects(client.listBackups(request), expectedError); const actualRequest = ( - client.innerApiCalls.listSnapshots as SinonStub + client.innerApiCalls.listBackups as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSnapshots as SinonStub + client.innerApiCalls.listBackups as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSnapshotsStream without error', async () => { + it('invokes listBackupsStream without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), + new protos.google.bigtable.admin.v2.ListBackupsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListSnapshotsRequest', + '.google.bigtable.admin.v2.ListBackupsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), ]; - client.descriptors.page.listSnapshots.createStream = + client.descriptors.page.listBackups.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listSnapshotsStream(request); + const stream = client.listBackupsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.bigtable.admin.v2.Snapshot[] = []; + const responses: protos.google.bigtable.admin.v2.Backup[] = []; stream.on( 'data', - (response: protos.google.bigtable.admin.v2.Snapshot) => { + (response: protos.google.bigtable.admin.v2.Backup) => { responses.push(response); }, ); @@ -5128,12 +6086,12 @@ describe('v2.BigtableTableAdminClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listSnapshots.createStream as SinonStub) + (client.descriptors.page.listBackups.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listSnapshots, request), + .calledWith(client.innerApiCalls.listBackups, request), ); assert( - (client.descriptors.page.listSnapshots.createStream as SinonStub) + (client.descriptors.page.listBackups.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5141,30 +6099,32 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('invokes listSnapshotsStream with error', async () => { + it('invokes listBackupsStream with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), + new protos.google.bigtable.admin.v2.ListBackupsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListSnapshotsRequest', + '.google.bigtable.admin.v2.ListBackupsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.descriptors.page.listSnapshots.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listSnapshotsStream(request); + client.descriptors.page.listBackups.createStream = stubPageStreamingCall( + undefined, + expectedError, + ); + const stream = client.listBackupsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.bigtable.admin.v2.Snapshot[] = []; + const responses: protos.google.bigtable.admin.v2.Backup[] = []; stream.on( 'data', - (response: protos.google.bigtable.admin.v2.Snapshot) => { + (response: protos.google.bigtable.admin.v2.Backup) => { responses.push(response); }, ); @@ -5177,12 +6137,12 @@ describe('v2.BigtableTableAdminClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listSnapshots.createStream as SinonStub) + (client.descriptors.page.listBackups.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listSnapshots, request), + .calledWith(client.innerApiCalls.listBackups, request), ); assert( - (client.descriptors.page.listSnapshots.createStream as SinonStub) + (client.descriptors.page.listBackups.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5190,42 +6150,42 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('uses async iteration with listSnapshots without error', async () => { + it('uses async iteration with listBackups without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), + new protos.google.bigtable.admin.v2.ListBackupsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListSnapshotsRequest', + '.google.bigtable.admin.v2.ListBackupsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Snapshot()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), ]; - client.descriptors.page.listSnapshots.asyncIterate = + client.descriptors.page.listBackups.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.bigtable.admin.v2.ISnapshot[] = []; - const iterable = client.listSnapshotsAsync(request); + const responses: protos.google.bigtable.admin.v2.IBackup[] = []; + const iterable = client.listBackupsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - ( - client.descriptors.page.listSnapshots.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listBackups.asyncIterate as SinonStub).getCall( + 0, + ).args[1], request, ); assert( - (client.descriptors.page.listSnapshots.asyncIterate as SinonStub) + (client.descriptors.page.listBackups.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5233,39 +6193,41 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('uses async iteration with listSnapshots with error', async () => { + it('uses async iteration with listBackups with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListSnapshotsRequest(), + new protos.google.bigtable.admin.v2.ListBackupsRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListSnapshotsRequest', + '.google.bigtable.admin.v2.ListBackupsRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.descriptors.page.listSnapshots.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listSnapshotsAsync(request); + client.descriptors.page.listBackups.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError, + ); + const iterable = client.listBackupsAsync(request); await assert.rejects(async () => { - const responses: protos.google.bigtable.admin.v2.ISnapshot[] = []; + const responses: protos.google.bigtable.admin.v2.IBackup[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - ( - client.descriptors.page.listSnapshots.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listBackups.asyncIterate as SinonStub).getCall( + 0, + ).args[1], request, ); assert( - (client.descriptors.page.listSnapshots.asyncIterate as SinonStub) + (client.descriptors.page.listBackups.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5274,68 +6236,80 @@ describe('v2.BigtableTableAdminClient', () => { }); }); - describe('listBackups', () => { - it('invokes listBackups without error', async () => { + describe('listSchemaBundles', () => { + it('invokes listSchemaBundles without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListBackupsRequest(), + new protos.google.bigtable.admin.v2.ListSchemaBundlesRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListBackupsRequest', + '.google.bigtable.admin.v2.ListSchemaBundlesRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), ]; - client.innerApiCalls.listBackups = stubSimpleCall(expectedResponse); - const [response] = await client.listBackups(request); + client.innerApiCalls.listSchemaBundles = stubSimpleCall(expectedResponse); + const [response] = await client.listSchemaBundles(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listBackups as SinonStub + client.innerApiCalls.listSchemaBundles as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listBackups as SinonStub + client.innerApiCalls.listSchemaBundles as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listBackups without error using callback', async () => { + it('invokes listSchemaBundles without error using callback', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListBackupsRequest(), + new protos.google.bigtable.admin.v2.ListSchemaBundlesRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListBackupsRequest', + '.google.bigtable.admin.v2.ListSchemaBundlesRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), ]; - client.innerApiCalls.listBackups = + client.innerApiCalls.listSchemaBundles = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listBackups( + client.listSchemaBundles( request, ( err?: Error | null, - result?: protos.google.bigtable.admin.v2.IBackup[] | null, + result?: protos.google.bigtable.admin.v2.ISchemaBundle[] | null, ) => { if (err) { reject(err); @@ -5348,74 +6322,80 @@ describe('v2.BigtableTableAdminClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listBackups as SinonStub + client.innerApiCalls.listSchemaBundles as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listBackups as SinonStub + client.innerApiCalls.listSchemaBundles as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listBackups with error', async () => { + it('invokes listSchemaBundles with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListBackupsRequest(), + new protos.google.bigtable.admin.v2.ListSchemaBundlesRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListBackupsRequest', + '.google.bigtable.admin.v2.ListSchemaBundlesRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.innerApiCalls.listBackups = stubSimpleCall( + client.innerApiCalls.listSchemaBundles = stubSimpleCall( undefined, expectedError, ); - await assert.rejects(client.listBackups(request), expectedError); + await assert.rejects(client.listSchemaBundles(request), expectedError); const actualRequest = ( - client.innerApiCalls.listBackups as SinonStub + client.innerApiCalls.listSchemaBundles as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listBackups as SinonStub + client.innerApiCalls.listSchemaBundles as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listBackupsStream without error', async () => { + it('invokes listSchemaBundlesStream without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListBackupsRequest(), + new protos.google.bigtable.admin.v2.ListSchemaBundlesRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListBackupsRequest', + '.google.bigtable.admin.v2.ListSchemaBundlesRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), ]; - client.descriptors.page.listBackups.createStream = + client.descriptors.page.listSchemaBundles.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listBackupsStream(request); + const stream = client.listSchemaBundlesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.bigtable.admin.v2.Backup[] = []; + const responses: protos.google.bigtable.admin.v2.SchemaBundle[] = []; stream.on( 'data', - (response: protos.google.bigtable.admin.v2.Backup) => { + (response: protos.google.bigtable.admin.v2.SchemaBundle) => { responses.push(response); }, ); @@ -5429,12 +6409,12 @@ describe('v2.BigtableTableAdminClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listBackups.createStream as SinonStub) + (client.descriptors.page.listSchemaBundles.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listBackups, request), + .calledWith(client.innerApiCalls.listSchemaBundles, request), ); assert( - (client.descriptors.page.listBackups.createStream as SinonStub) + (client.descriptors.page.listSchemaBundles.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5442,32 +6422,30 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('invokes listBackupsStream with error', async () => { + it('invokes listSchemaBundlesStream with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListBackupsRequest(), + new protos.google.bigtable.admin.v2.ListSchemaBundlesRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListBackupsRequest', + '.google.bigtable.admin.v2.ListSchemaBundlesRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.descriptors.page.listBackups.createStream = stubPageStreamingCall( - undefined, - expectedError, - ); - const stream = client.listBackupsStream(request); + client.descriptors.page.listSchemaBundles.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listSchemaBundlesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.bigtable.admin.v2.Backup[] = []; + const responses: protos.google.bigtable.admin.v2.SchemaBundle[] = []; stream.on( 'data', - (response: protos.google.bigtable.admin.v2.Backup) => { + (response: protos.google.bigtable.admin.v2.SchemaBundle) => { responses.push(response); }, ); @@ -5480,12 +6458,12 @@ describe('v2.BigtableTableAdminClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listBackups.createStream as SinonStub) + (client.descriptors.page.listSchemaBundles.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listBackups, request), + .calledWith(client.innerApiCalls.listSchemaBundles, request), ); assert( - (client.descriptors.page.listBackups.createStream as SinonStub) + (client.descriptors.page.listSchemaBundles.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5493,42 +6471,48 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('uses async iteration with listBackups without error', async () => { + it('uses async iteration with listSchemaBundles without error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListBackupsRequest(), + new protos.google.bigtable.admin.v2.ListSchemaBundlesRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListBackupsRequest', + '.google.bigtable.admin.v2.ListSchemaBundlesRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedResponse = [ - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), - generateSampleMessage(new protos.google.bigtable.admin.v2.Backup()), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), + generateSampleMessage( + new protos.google.bigtable.admin.v2.SchemaBundle(), + ), ]; - client.descriptors.page.listBackups.asyncIterate = + client.descriptors.page.listSchemaBundles.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.bigtable.admin.v2.IBackup[] = []; - const iterable = client.listBackupsAsync(request); + const responses: protos.google.bigtable.admin.v2.ISchemaBundle[] = []; + const iterable = client.listSchemaBundlesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listBackups.asyncIterate as SinonStub).getCall( - 0, - ).args[1], + ( + client.descriptors.page.listSchemaBundles.asyncIterate as SinonStub + ).getCall(0).args[1], request, ); assert( - (client.descriptors.page.listBackups.asyncIterate as SinonStub) + (client.descriptors.page.listSchemaBundles.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -5536,41 +6520,39 @@ describe('v2.BigtableTableAdminClient', () => { ); }); - it('uses async iteration with listBackups with error', async () => { + it('uses async iteration with listSchemaBundles with error', async () => { const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); await client.initialize(); const request = generateSampleMessage( - new protos.google.bigtable.admin.v2.ListBackupsRequest(), + new protos.google.bigtable.admin.v2.ListSchemaBundlesRequest(), ); const defaultValue1 = getTypeDefaultValue( - '.google.bigtable.admin.v2.ListBackupsRequest', + '.google.bigtable.admin.v2.ListSchemaBundlesRequest', ['parent'], ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1 ?? ''}`; const expectedError = new Error('expected'); - client.descriptors.page.listBackups.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError, - ); - const iterable = client.listBackupsAsync(request); + client.descriptors.page.listSchemaBundles.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listSchemaBundlesAsync(request); await assert.rejects(async () => { - const responses: protos.google.bigtable.admin.v2.IBackup[] = []; + const responses: protos.google.bigtable.admin.v2.ISchemaBundle[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - (client.descriptors.page.listBackups.asyncIterate as SinonStub).getCall( - 0, - ).args[1], + ( + client.descriptors.page.listSchemaBundles.asyncIterate as SinonStub + ).getCall(0).args[1], request, ); assert( - (client.descriptors.page.listBackups.asyncIterate as SinonStub) + (client.descriptors.page.listSchemaBundles.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -6156,6 +7138,82 @@ describe('v2.BigtableTableAdminClient', () => { }); }); + describe('schemaBundle', async () => { + const fakePath = '/rendered/path/schemaBundle'; + const expectedParameters = { + project: 'projectValue', + instance: 'instanceValue', + table: 'tableValue', + schema_bundle: 'schemaBundleValue', + }; + const client = new bigtabletableadminModule.v2.BigtableTableAdminClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + client.pathTemplates.schemaBundlePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.schemaBundlePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('schemaBundlePath', () => { + const result = client.schemaBundlePath( + 'projectValue', + 'instanceValue', + 'tableValue', + 'schemaBundleValue', + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.schemaBundlePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters), + ); + }); + + it('matchProjectFromSchemaBundleName', () => { + const result = client.matchProjectFromSchemaBundleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.schemaBundlePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath), + ); + }); + + it('matchInstanceFromSchemaBundleName', () => { + const result = client.matchInstanceFromSchemaBundleName(fakePath); + assert.strictEqual(result, 'instanceValue'); + assert( + (client.pathTemplates.schemaBundlePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath), + ); + }); + + it('matchTableFromSchemaBundleName', () => { + const result = client.matchTableFromSchemaBundleName(fakePath); + assert.strictEqual(result, 'tableValue'); + assert( + (client.pathTemplates.schemaBundlePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath), + ); + }); + + it('matchSchemaBundleFromSchemaBundleName', () => { + const result = client.matchSchemaBundleFromSchemaBundleName(fakePath); + assert.strictEqual(result, 'schemaBundleValue'); + assert( + (client.pathTemplates.schemaBundlePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath), + ); + }); + }); + describe('snapshot', async () => { const fakePath = '/rendered/path/snapshot'; const expectedParameters = { diff --git a/test/gapic_bigtable_v2.ts b/test/gapic_bigtable_v2.ts index afda10f6b..39fe62490 100644 --- a/test/gapic_bigtable_v2.ts +++ b/test/gapic_bigtable_v2.ts @@ -285,11 +285,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.MutateRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.MutateRowResponse(), ); @@ -315,11 +315,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.MutateRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.MutateRowResponse(), ); @@ -361,11 +361,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.MutateRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedError = new Error('expected'); client.innerApiCalls.mutateRow = stubSimpleCall(undefined, expectedError); await assert.rejects(client.mutateRow(request), expectedError); @@ -388,9 +388,9 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.MutateRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedError = new Error('The client has already been closed.'); client.close().catch(err => { throw err; @@ -409,11 +409,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.CheckAndMutateRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.CheckAndMutateRowResponse(), ); @@ -439,11 +439,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.CheckAndMutateRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.CheckAndMutateRowResponse(), ); @@ -485,11 +485,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.CheckAndMutateRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedError = new Error('expected'); client.innerApiCalls.checkAndMutateRow = stubSimpleCall( undefined, @@ -515,9 +515,9 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.CheckAndMutateRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedError = new Error('The client has already been closed.'); client.close().catch(err => { throw err; @@ -656,11 +656,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.ReadModifyWriteRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.ReadModifyWriteRowResponse(), ); @@ -687,11 +687,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.ReadModifyWriteRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.ReadModifyWriteRowResponse(), ); @@ -733,11 +733,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.ReadModifyWriteRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedError = new Error('expected'); client.innerApiCalls.readModifyWriteRow = stubSimpleCall( undefined, @@ -763,9 +763,9 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.ReadModifyWriteRowRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedError = new Error('The client has already been closed.'); client.close().catch(err => { throw err; @@ -904,11 +904,10 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.ReadRowsRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} - request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + // path template: {name=projects/*/instances/*}/** + request.materializedViewName = 'projects/value/instances/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'name=projects%2Fvalue%2Finstances%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.ReadRowsResponse(), ); @@ -947,11 +946,10 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.ReadRowsRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} - request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + // path template: {name=projects/*/instances/*}/** + request.materializedViewName = 'projects/value/instances/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'name=projects%2Fvalue%2Finstances%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.ReadRowsResponse(), ); @@ -989,11 +987,10 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.ReadRowsRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} - request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + // path template: {name=projects/*/instances/*}/** + request.materializedViewName = 'projects/value/instances/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'name=projects%2Fvalue%2Finstances%2Fvalue'; const expectedError = new Error('expected'); client.innerApiCalls.readRows = stubServerStreamingCall( undefined, @@ -1031,9 +1028,8 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.ReadRowsRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} - request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + // path template: {name=projects/*/instances/*}/** + request.materializedViewName = 'projects/value/instances/value/value'; const expectedError = new Error('The client has already been closed.'); client.close().catch(err => { throw err; @@ -1072,11 +1068,10 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.SampleRowKeysRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} - request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + // path template: {name=projects/*/instances/*}/** + request.materializedViewName = 'projects/value/instances/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'name=projects%2Fvalue%2Finstances%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.SampleRowKeysResponse(), ); @@ -1116,11 +1111,10 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.SampleRowKeysRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} - request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + // path template: {name=projects/*/instances/*}/** + request.materializedViewName = 'projects/value/instances/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'name=projects%2Fvalue%2Finstances%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.SampleRowKeysResponse(), ); @@ -1159,11 +1153,10 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.SampleRowKeysRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} - request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + // path template: {name=projects/*/instances/*}/** + request.materializedViewName = 'projects/value/instances/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'name=projects%2Fvalue%2Finstances%2Fvalue'; const expectedError = new Error('expected'); client.innerApiCalls.sampleRowKeys = stubServerStreamingCall( undefined, @@ -1201,9 +1194,8 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.SampleRowKeysRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} - request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + // path template: {name=projects/*/instances/*}/** + request.materializedViewName = 'projects/value/instances/value/value'; const expectedError = new Error('The client has already been closed.'); client.close().catch(err => { throw err; @@ -1242,11 +1234,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.MutateRowsRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.MutateRowsResponse(), ); @@ -1286,11 +1278,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.MutateRowsRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedResponse = generateSampleMessage( new protos.google.bigtable.v2.MutateRowsResponse(), ); @@ -1329,11 +1321,11 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.MutateRowsRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedHeaderRequestParams = - 'authorized_view_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue%2FauthorizedViews%2Fvalue'; + 'table_name=projects%2Fvalue%2Finstances%2Fvalue%2Ftables%2Fvalue'; const expectedError = new Error('expected'); client.innerApiCalls.mutateRows = stubServerStreamingCall( undefined, @@ -1371,9 +1363,9 @@ describe('v2.BigtableClient', () => { const request = generateSampleMessage( new protos.google.bigtable.v2.MutateRowsRequest(), ); - // path template: {authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*} + // path template: {table_name=projects/*/instances/*/tables/*}/** request.authorizedViewName = - 'projects/value/instances/value/tables/value/authorizedViews/value'; + 'projects/value/instances/value/tables/value/value'; const expectedError = new Error('The client has already been closed.'); client.close().catch(err => { throw err; diff --git a/test/index.ts b/test/index.ts index 085b60b17..973d84e43 100644 --- a/test/index.ts +++ b/test/index.ts @@ -1138,7 +1138,7 @@ describe('Bigtable', () => { }); }); - it('should emit resmonse from GAX stream', done => { + it('should emit response from GAX stream', done => { const response = {}; const requestStream = bigtable.request(config); requestStream.emit('reading'); diff --git a/tsconfig.json b/tsconfig.json index c0c10fd48..1896d9670 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,8 +18,8 @@ "testproxy/*.ts", "testproxy/**/*.ts", "src/v2/bigtable_client_config.json", - "src/v2/bigtable_table_admin_client_config.json", - "src/v2/bigtable_instance_admin_client_config.json", + "src/admin/v2/bigtable_table_admin_client_config.json", + "src/admin/v2/bigtable_instance_admin_client_config.json", "test-common/*.ts", "test-common/**/*.ts", "protos/protos.json" diff --git a/webpack.config.js b/webpack.config.js index eea8fc11f..42e316fc8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.
include:samples/generated/v2/bigtable_table_admin.create_schema_bundle.jsinclude:samples/generated/v2/bigtable_table_admin.create_schema_bundle.jsinclude:samples/generated/v2/bigtable_table_admin.update_schema_bundle.jsinclude:samples/generated/v2/bigtable_table_admin.update_schema_bundle.jsinclude:samples/generated/v2/bigtable_table_admin.list_schema_bundles.js