diff --git a/.jsdoc.js b/.jsdoc.js index 7cb0f52a2..3b3569bb7 100644 --- a/.jsdoc.js +++ b/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2022 Google LLC', + copyright: 'Copyright 2023 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/bigtable', diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e657edd7..1150a5034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/bigtable?activeTab=versions +## [4.2.0](https://github.com/googleapis/nodejs-bigtable/compare/v4.1.1...v4.2.0) (2023-01-31) + + +### Features + +* Added SuggestConversationSummary RPC ([#1182](https://github.com/googleapis/nodejs-bigtable/issues/1182)) ([355925e](https://github.com/googleapis/nodejs-bigtable/commit/355925ee519fa27e216a76c500ab8c94de1d2c96)) + ## [4.1.1](https://github.com/googleapis/nodejs-bigtable/compare/v4.1.0...v4.1.1) (2023-01-30) diff --git a/package.json b/package.json index 04effa014..48fecd3f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/bigtable", - "version": "4.1.1", + "version": "4.2.0", "description": "Cloud Bigtable Client Library for Node.js", "keywords": [ "bigtable", @@ -76,7 +76,7 @@ "@types/proxyquire": "^1.3.28", "@types/pumpify": "^1.4.1", "@types/sinon": "^10.0.0", - "@types/uuid": "^8.0.0", + "@types/uuid": "^9.0.0", "c8": "^7.1.0", "codecov": "^3.6.5", "gts": "^3.1.0", @@ -96,7 +96,7 @@ "typescript": "^4.6.4", "uuid": "^9.0.0", "webpack": "^5.0.0", - "webpack-cli": "^4.0.0" + "webpack-cli": "^5.0.0" }, "engines": { "node": ">=12.0.0" diff --git a/protos/google/bigtable/v2/bigtable.proto b/protos/google/bigtable/v2/bigtable.proto index 090c60eb7..955a05611 100644 --- a/protos/google/bigtable/v2/bigtable.proto +++ b/protos/google/bigtable/v2/bigtable.proto @@ -68,7 +68,9 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { field: "app_profile_id" } + routing_parameters { + field: "app_profile_id" + } }; option (google.api.method_signature) = "table_name"; option (google.api.method_signature) = "table_name,app_profile_id"; @@ -78,8 +80,7 @@ service Bigtable { // delimit contiguous sections of the table of approximately equal size, // which can be used to break up the data for distributed tasks like // mapreduces. - rpc SampleRowKeys(SampleRowKeysRequest) - returns (stream SampleRowKeysResponse) { + rpc SampleRowKeys(SampleRowKeysRequest) returns (stream SampleRowKeysResponse) { option (google.api.http) = { get: "/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys" }; @@ -88,7 +89,9 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { field: "app_profile_id" } + routing_parameters { + field: "app_profile_id" + } }; option (google.api.method_signature) = "table_name"; option (google.api.method_signature) = "table_name,app_profile_id"; @@ -106,11 +109,12 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { field: "app_profile_id" } + routing_parameters { + field: "app_profile_id" + } }; option (google.api.method_signature) = "table_name,row_key,mutations"; - option (google.api.method_signature) = - "table_name,row_key,mutations,app_profile_id"; + option (google.api.method_signature) = "table_name,row_key,mutations,app_profile_id"; } // Mutates multiple rows in a batch. Each individual row is mutated @@ -126,15 +130,16 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { field: "app_profile_id" } + routing_parameters { + field: "app_profile_id" + } }; option (google.api.method_signature) = "table_name,entries"; option (google.api.method_signature) = "table_name,entries,app_profile_id"; } // Mutates a row atomically based on the output of a predicate Reader filter. - rpc CheckAndMutateRow(CheckAndMutateRowRequest) - returns (CheckAndMutateRowResponse) { + rpc CheckAndMutateRow(CheckAndMutateRowRequest) returns (CheckAndMutateRowResponse) { option (google.api.http) = { post: "/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow" body: "*" @@ -144,12 +149,12 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { field: "app_profile_id" } + routing_parameters { + field: "app_profile_id" + } }; - option (google.api.method_signature) = - "table_name,row_key,predicate_filter,true_mutations,false_mutations"; - option (google.api.method_signature) = - "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id"; + option (google.api.method_signature) = "table_name,row_key,predicate_filter,true_mutations,false_mutations"; + option (google.api.method_signature) = "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id"; } // Warm up associated instance metadata for this connection. @@ -164,7 +169,9 @@ service Bigtable { field: "name" path_template: "{name=projects/*/instances/*}" } - routing_parameters { field: "app_profile_id" } + routing_parameters { + field: "app_profile_id" + } }; option (google.api.method_signature) = "name"; option (google.api.method_signature) = "name,app_profile_id"; @@ -175,8 +182,7 @@ service Bigtable { // entry based on pre-defined read/modify/write rules. The new value for the // timestamp is the greater of the existing timestamp or the current server // time. The method returns the new contents of all modified cells. - rpc ReadModifyWriteRow(ReadModifyWriteRowRequest) - returns (ReadModifyWriteRowResponse) { + rpc ReadModifyWriteRow(ReadModifyWriteRowRequest) returns (ReadModifyWriteRowResponse) { option (google.api.http) = { post: "/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow" body: "*" @@ -186,11 +192,12 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { field: "app_profile_id" } + routing_parameters { + field: "app_profile_id" + } }; option (google.api.method_signature) = "table_name,row_key,rules"; - option (google.api.method_signature) = - "table_name,row_key,rules,app_profile_id"; + option (google.api.method_signature) = "table_name,row_key,rules,app_profile_id"; } } @@ -208,12 +215,9 @@ message ReadRowsRequest { // RequestStats embedded message unset in the response. REQUEST_STATS_NONE = 1; - // Include stats related to the efficiency of the read. - REQUEST_STATS_EFFICIENCY = 2; - // Include the full set of available RequestStats in the response, // applicable to this read. - REQUEST_STATS_FULL = 3; + REQUEST_STATS_FULL = 2; } // Required. The unique name of the table from which to read. @@ -384,8 +388,8 @@ message SampleRowKeysResponse { // Request message for Bigtable.MutateRow. message MutateRowRequest { - // Required. The unique name of the table to which the mutation should be - // applied. Values are of the form + // Required. The unique name of the table to which the mutation should be applied. + // Values are of the form // `projects//instances//tables/`. string table_name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -401,14 +405,16 @@ message MutateRowRequest { // Required. The key of the row to which the mutation should be applied. bytes row_key = 2 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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. repeated Mutation mutations = 3 [(google.api.field_behavior) = REQUIRED]; } // Response message for Bigtable.MutateRow. -message MutateRowResponse {} +message MutateRowResponse { + +} // Request message for BigtableService.MutateRows. message MutateRowsRequest { @@ -417,14 +423,14 @@ message MutateRowsRequest { // The key of the row to which the `mutations` should be applied. bytes row_key = 1; - // Required. Changes to be atomically applied to the specified row. - // Mutations are applied in order, meaning that earlier mutations can be - // masked by later ones. You must specify at least one mutation. + // Required. Changes to be atomically applied to the specified row. 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]; } - // Required. The unique name of the table to which the mutations should be - // applied. + // Required. The unique name of the table to which the mutations should be applied. string table_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -465,8 +471,9 @@ message MutateRowsResponse { // Request message for Bigtable.CheckAndMutateRow. message CheckAndMutateRowRequest { - // Required. The unique name of the table to which the conditional mutation - // should be applied. Values are of the form + // Required. The unique name of the table to which the conditional mutation should be + // applied. + // Values are of the form // `projects//instances//tables/
`. string table_name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -479,8 +486,7 @@ message CheckAndMutateRowRequest { // "default" application profile will be used. string app_profile_id = 7; - // Required. The key of the row to which the conditional mutation should be - // applied. + // Required. The key of the row to which the conditional mutation should be applied. bytes row_key = 2 [(google.api.field_behavior) = REQUIRED]; // The filter to be applied to the contents of the specified row. Depending @@ -513,9 +519,8 @@ message CheckAndMutateRowResponse { // Request message for client connection keep-alive and warming. message PingAndWarmRequest { - // Required. The unique name of the instance to check permissions for as well - // as respond. Values are of the form - // `projects//instances/`. + // Required. The unique name of the instance to check permissions for as well as + // respond. Values are of the form `projects//instances/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -533,8 +538,9 @@ message PingAndWarmResponse {} // Request message for Bigtable.ReadModifyWriteRow. message ReadModifyWriteRowRequest { - // Required. The unique name of the table to which the read/modify/write rules - // should be applied. Values are of the form + // Required. The unique name of the table to which the read/modify/write rules should be + // applied. + // Values are of the form // `projects//instances//tables/
`. string table_name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -547,15 +553,13 @@ message ReadModifyWriteRowRequest { // "default" application profile will be used. string app_profile_id = 4; - // Required. The key of the row to which the read/modify/write rules should be - // applied. + // Required. The key of the row to which the read/modify/write rules should be applied. bytes row_key = 2 [(google.api.field_behavior) = REQUIRED]; - // 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. - repeated ReadModifyWriteRule rules = 3 - [(google.api.field_behavior) = REQUIRED]; + // 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. + repeated ReadModifyWriteRule rules = 3 [(google.api.field_behavior) = REQUIRED]; } // Response message for Bigtable.ReadModifyWriteRow. diff --git a/protos/google/bigtable/v2/request_stats.proto b/protos/google/bigtable/v2/request_stats.proto index 101603504..f650abe09 100644 --- a/protos/google/bigtable/v2/request_stats.proto +++ b/protos/google/bigtable/v2/request_stats.proto @@ -27,13 +27,23 @@ option php_namespace = "Google\\Cloud\\Bigtable\\V2"; option ruby_package = "Google::Cloud::Bigtable::V2"; // -// Messages related to RequestStats, part of the Slow Queries feature, that can +// Messages related to RequestStats, part of the Query Stats feature, that can // help understand the performance of requests. - -// ReadIteratorStats captures information about the iteration of rows or cells +// +// The layout of requests below is as follows: +// * RequestStats serves as the top-level container for statistics and +// measures related to Bigtable requests. This common object is returned as +// part of methods in the Data API. +// * RequestStats contains multiple *views* of related data, chosen by an +// option in the source Data API method. The view that is returned is +// designed to have all submessages (and their submessages, and so on) +// filled-in, to provide a comprehensive selection of statistics and +// measures related to the requested view. + +// ReadIterationStats captures information about the iteration of rows or cells // over the course of a read, e.g. how many results were scanned in a read // operation versus the results returned. -message ReadIteratorStats { +message ReadIterationStats { // The rows seen (scanned) as part of the request. This includes the count of // rows returned, as captured below. int64 rows_seen_count = 1; @@ -47,9 +57,6 @@ message ReadIteratorStats { // The cells returned as part of the request. int64 cells_returned_count = 4; - - // The deletes seen as part of the request. - int64 deletes_seen_count = 5; } // RequestLatencyStats provides a measurement of the latency of the request as @@ -66,29 +73,23 @@ message RequestLatencyStats { // (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value // needs to be sent in the response before the latency measurement including // that transmission is finalized. + // + // Note: This value includes the end-to-end latency of contacting nodes in + // the targeted cluster, e.g. measuring from when the first byte arrives at + // the frontend server, to when this value is sent back as the last value in + // the response, including any latency incurred by contacting nodes, waiting + // for results from nodes, and finally sending results from nodes back to the + // caller. google.protobuf.Duration frontend_server_latency = 1; } -// ReadEfficiencyStats captures information about the efficiency of a read. -message ReadEfficiencyStats { +// FullReadStatsView captures all known information about a read. +message FullReadStatsView { // Iteration stats describe how efficient the read is, e.g. comparing // rows seen vs. rows returned or cells seen vs cells returned can provide an // indication of read efficiency (the higher the ratio of seen to retuned the // better). - ReadIteratorStats read_iterator_stats = 1; - - // Request latency stats describe the time taken to complete a request, from - // the server side. - RequestLatencyStats request_latency_stats = 2; -} - -// AllReadStats captures all known information about a read. -message AllReadStats { - // Iteration stats describe how efficient the read is, e.g. comparing - // rows seen vs. rows returned or cells seen vs cells returned can provide an - // indication of read efficiency (the higher the ratio of seen to retuned the - // better). - ReadIteratorStats read_iterator_stats = 1; + ReadIterationStats read_iteration_stats = 1; // Request latency stats describe the time taken to complete a request, from // the server side. @@ -104,14 +105,9 @@ message RequestStats { // based on the requested view. // // See the messages above for additional context. - oneof stats { - // Available with the - // ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see - // package google.bigtable.v2. - ReadEfficiencyStats read_efficiency_stats = 1; - + oneof stats_view { // Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL // view, see package google.bigtable.v2. - AllReadStats all_read_stats = 2; + FullReadStatsView full_read_stats_view = 1; } } diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 6b972aa6c..f23e46cd1 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -10613,8 +10613,7 @@ export namespace google { enum RequestStatsView { REQUEST_STATS_VIEW_UNSPECIFIED = 0, REQUEST_STATS_NONE = 1, - REQUEST_STATS_EFFICIENCY = 2, - REQUEST_STATS_FULL = 3 + REQUEST_STATS_FULL = 2 } } @@ -14496,121 +14495,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadIteratorStats. */ - interface IReadIteratorStats { + /** Properties of a ReadIterationStats. */ + interface IReadIterationStats { - /** ReadIteratorStats rowsSeenCount */ + /** ReadIterationStats rowsSeenCount */ rowsSeenCount?: (number|Long|string|null); - /** ReadIteratorStats rowsReturnedCount */ + /** ReadIterationStats rowsReturnedCount */ rowsReturnedCount?: (number|Long|string|null); - /** ReadIteratorStats cellsSeenCount */ + /** ReadIterationStats cellsSeenCount */ cellsSeenCount?: (number|Long|string|null); - /** ReadIteratorStats cellsReturnedCount */ + /** ReadIterationStats cellsReturnedCount */ cellsReturnedCount?: (number|Long|string|null); - - /** ReadIteratorStats deletesSeenCount */ - deletesSeenCount?: (number|Long|string|null); } - /** Represents a ReadIteratorStats. */ - class ReadIteratorStats implements IReadIteratorStats { + /** Represents a ReadIterationStats. */ + class ReadIterationStats implements IReadIterationStats { /** - * Constructs a new ReadIteratorStats. + * Constructs a new ReadIterationStats. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IReadIteratorStats); + constructor(properties?: google.bigtable.v2.IReadIterationStats); - /** ReadIteratorStats rowsSeenCount. */ + /** ReadIterationStats rowsSeenCount. */ public rowsSeenCount: (number|Long|string); - /** ReadIteratorStats rowsReturnedCount. */ + /** ReadIterationStats rowsReturnedCount. */ public rowsReturnedCount: (number|Long|string); - /** ReadIteratorStats cellsSeenCount. */ + /** ReadIterationStats cellsSeenCount. */ public cellsSeenCount: (number|Long|string); - /** ReadIteratorStats cellsReturnedCount. */ + /** ReadIterationStats cellsReturnedCount. */ public cellsReturnedCount: (number|Long|string); - /** ReadIteratorStats deletesSeenCount. */ - public deletesSeenCount: (number|Long|string); - /** - * Creates a new ReadIteratorStats instance using the specified properties. + * Creates a new ReadIterationStats instance using the specified properties. * @param [properties] Properties to set - * @returns ReadIteratorStats instance + * @returns ReadIterationStats instance */ - public static create(properties?: google.bigtable.v2.IReadIteratorStats): google.bigtable.v2.ReadIteratorStats; + public static create(properties?: google.bigtable.v2.IReadIterationStats): google.bigtable.v2.ReadIterationStats; /** - * Encodes the specified ReadIteratorStats message. Does not implicitly {@link google.bigtable.v2.ReadIteratorStats.verify|verify} messages. - * @param message ReadIteratorStats message or plain object to encode + * Encodes the specified ReadIterationStats message. Does not implicitly {@link google.bigtable.v2.ReadIterationStats.verify|verify} messages. + * @param message ReadIterationStats message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IReadIteratorStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IReadIterationStats, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadIteratorStats message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadIteratorStats.verify|verify} messages. - * @param message ReadIteratorStats message or plain object to encode + * Encodes the specified ReadIterationStats message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadIterationStats.verify|verify} messages. + * @param message ReadIterationStats message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IReadIteratorStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IReadIterationStats, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadIteratorStats message from the specified reader or buffer. + * Decodes a ReadIterationStats message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadIteratorStats + * @returns ReadIterationStats * @throws {Error} If the payload is not 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.ReadIteratorStats; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.ReadIterationStats; /** - * Decodes a ReadIteratorStats message from the specified reader or buffer, length delimited. + * Decodes a ReadIterationStats message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadIteratorStats + * @returns ReadIterationStats * @throws {Error} If the payload 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.ReadIteratorStats; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.ReadIterationStats; /** - * Verifies a ReadIteratorStats message. + * Verifies a ReadIterationStats message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadIteratorStats message from a plain object. Also converts values to their respective internal types. + * Creates a ReadIterationStats message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadIteratorStats + * @returns ReadIterationStats */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadIteratorStats; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadIterationStats; /** - * Creates a plain object from a ReadIteratorStats message. Also converts values to other types if specified. - * @param message ReadIteratorStats + * Creates a plain object from a ReadIterationStats message. Also converts values to other types if specified. + * @param message ReadIterationStats * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ReadIteratorStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.ReadIterationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadIteratorStats to JSON. + * Converts this ReadIterationStats to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadIteratorStats + * Gets the default type url for ReadIterationStats * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -14714,206 +14707,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadEfficiencyStats. */ - interface IReadEfficiencyStats { + /** Properties of a FullReadStatsView. */ + interface IFullReadStatsView { - /** ReadEfficiencyStats readIteratorStats */ - readIteratorStats?: (google.bigtable.v2.IReadIteratorStats|null); + /** FullReadStatsView readIterationStats */ + readIterationStats?: (google.bigtable.v2.IReadIterationStats|null); - /** ReadEfficiencyStats requestLatencyStats */ + /** FullReadStatsView requestLatencyStats */ requestLatencyStats?: (google.bigtable.v2.IRequestLatencyStats|null); } - /** Represents a ReadEfficiencyStats. */ - class ReadEfficiencyStats implements IReadEfficiencyStats { + /** Represents a FullReadStatsView. */ + class FullReadStatsView implements IFullReadStatsView { /** - * Constructs a new ReadEfficiencyStats. + * Constructs a new FullReadStatsView. * @param [properties] Properties to set */ - constructor(properties?: google.bigtable.v2.IReadEfficiencyStats); + constructor(properties?: google.bigtable.v2.IFullReadStatsView); - /** ReadEfficiencyStats readIteratorStats. */ - public readIteratorStats?: (google.bigtable.v2.IReadIteratorStats|null); + /** FullReadStatsView readIterationStats. */ + public readIterationStats?: (google.bigtable.v2.IReadIterationStats|null); - /** ReadEfficiencyStats requestLatencyStats. */ + /** FullReadStatsView requestLatencyStats. */ public requestLatencyStats?: (google.bigtable.v2.IRequestLatencyStats|null); /** - * Creates a new ReadEfficiencyStats instance using the specified properties. + * Creates a new FullReadStatsView instance using the specified properties. * @param [properties] Properties to set - * @returns ReadEfficiencyStats instance + * @returns FullReadStatsView instance */ - public static create(properties?: google.bigtable.v2.IReadEfficiencyStats): google.bigtable.v2.ReadEfficiencyStats; + public static create(properties?: google.bigtable.v2.IFullReadStatsView): google.bigtable.v2.FullReadStatsView; /** - * Encodes the specified ReadEfficiencyStats message. Does not implicitly {@link google.bigtable.v2.ReadEfficiencyStats.verify|verify} messages. - * @param message ReadEfficiencyStats message or plain object to encode + * Encodes the specified FullReadStatsView message. Does not implicitly {@link google.bigtable.v2.FullReadStatsView.verify|verify} messages. + * @param message FullReadStatsView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.bigtable.v2.IReadEfficiencyStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.bigtable.v2.IFullReadStatsView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadEfficiencyStats message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadEfficiencyStats.verify|verify} messages. - * @param message ReadEfficiencyStats message or plain object to encode + * Encodes the specified FullReadStatsView message, length delimited. Does not implicitly {@link google.bigtable.v2.FullReadStatsView.verify|verify} messages. + * @param message FullReadStatsView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.bigtable.v2.IReadEfficiencyStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.bigtable.v2.IFullReadStatsView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadEfficiencyStats message from the specified reader or buffer. + * Decodes a FullReadStatsView message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadEfficiencyStats + * @returns FullReadStatsView * @throws {Error} If the payload is not 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.ReadEfficiencyStats; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.bigtable.v2.FullReadStatsView; /** - * Decodes a ReadEfficiencyStats message from the specified reader or buffer, length delimited. + * Decodes a FullReadStatsView message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadEfficiencyStats + * @returns FullReadStatsView * @throws {Error} If the payload 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.ReadEfficiencyStats; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.bigtable.v2.FullReadStatsView; /** - * Verifies a ReadEfficiencyStats message. + * Verifies a FullReadStatsView message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadEfficiencyStats message from a plain object. Also converts values to their respective internal types. + * Creates a FullReadStatsView message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadEfficiencyStats + * @returns FullReadStatsView */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.ReadEfficiencyStats; + public static fromObject(object: { [k: string]: any }): google.bigtable.v2.FullReadStatsView; /** - * Creates a plain object from a ReadEfficiencyStats message. Also converts values to other types if specified. - * @param message ReadEfficiencyStats + * Creates a plain object from a FullReadStatsView message. Also converts values to other types if specified. + * @param message FullReadStatsView * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.bigtable.v2.ReadEfficiencyStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.bigtable.v2.FullReadStatsView, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadEfficiencyStats to JSON. + * Converts this FullReadStatsView to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadEfficiencyStats - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AllReadStats. */ - interface IAllReadStats { - - /** AllReadStats readIteratorStats */ - readIteratorStats?: (google.bigtable.v2.IReadIteratorStats|null); - - /** AllReadStats requestLatencyStats */ - requestLatencyStats?: (google.bigtable.v2.IRequestLatencyStats|null); - } - - /** Represents an AllReadStats. */ - class AllReadStats implements IAllReadStats { - - /** - * Constructs a new AllReadStats. - * @param [properties] Properties to set - */ - constructor(properties?: google.bigtable.v2.IAllReadStats); - - /** AllReadStats readIteratorStats. */ - public readIteratorStats?: (google.bigtable.v2.IReadIteratorStats|null); - - /** AllReadStats requestLatencyStats. */ - public requestLatencyStats?: (google.bigtable.v2.IRequestLatencyStats|null); - - /** - * Creates a new AllReadStats instance using the specified properties. - * @param [properties] Properties to set - * @returns AllReadStats instance - */ - public static create(properties?: google.bigtable.v2.IAllReadStats): google.bigtable.v2.AllReadStats; - - /** - * Encodes the specified AllReadStats message. Does not implicitly {@link google.bigtable.v2.AllReadStats.verify|verify} messages. - * @param message AllReadStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.bigtable.v2.IAllReadStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AllReadStats message, length delimited. Does not implicitly {@link google.bigtable.v2.AllReadStats.verify|verify} messages. - * @param message AllReadStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.bigtable.v2.IAllReadStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AllReadStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AllReadStats - * @throws {Error} If the payload is not 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.AllReadStats; - - /** - * Decodes an AllReadStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AllReadStats - * @throws {Error} If the payload 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.AllReadStats; - - /** - * Verifies an AllReadStats message. - * @param message Plain 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 AllReadStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AllReadStats - */ - public static fromObject(object: { [k: string]: any }): google.bigtable.v2.AllReadStats; - - /** - * Creates a plain object from an AllReadStats message. Also converts values to other types if specified. - * @param message AllReadStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.bigtable.v2.AllReadStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AllReadStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AllReadStats + * Gets the default type url for FullReadStatsView * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -14923,11 +14813,8 @@ export namespace google { /** Properties of a RequestStats. */ interface IRequestStats { - /** RequestStats readEfficiencyStats */ - readEfficiencyStats?: (google.bigtable.v2.IReadEfficiencyStats|null); - - /** RequestStats allReadStats */ - allReadStats?: (google.bigtable.v2.IAllReadStats|null); + /** RequestStats fullReadStatsView */ + fullReadStatsView?: (google.bigtable.v2.IFullReadStatsView|null); } /** Represents a RequestStats. */ @@ -14939,14 +14826,11 @@ export namespace google { */ constructor(properties?: google.bigtable.v2.IRequestStats); - /** RequestStats readEfficiencyStats. */ - public readEfficiencyStats?: (google.bigtable.v2.IReadEfficiencyStats|null); - - /** RequestStats allReadStats. */ - public allReadStats?: (google.bigtable.v2.IAllReadStats|null); + /** RequestStats fullReadStatsView. */ + public fullReadStatsView?: (google.bigtable.v2.IFullReadStatsView|null); - /** RequestStats stats. */ - public stats?: ("readEfficiencyStats"|"allReadStats"); + /** RequestStats statsView. */ + public statsView?: "fullReadStatsView"; /** * Creates a new RequestStats instance using the specified properties. diff --git a/protos/protos.js b/protos/protos.js index 8632f4f24..e44d92fd8 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -24625,7 +24625,6 @@ case 0: case 1: case 2: - case 3: break; } return null; @@ -24681,14 +24680,10 @@ case 1: message.requestStatsView = 1; break; - case "REQUEST_STATS_EFFICIENCY": + case "REQUEST_STATS_FULL": case 2: message.requestStatsView = 2; break; - case "REQUEST_STATS_FULL": - case 3: - message.requestStatsView = 3; - break; } return message; }; @@ -24768,15 +24763,13 @@ * @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_EFFICIENCY=2 REQUEST_STATS_EFFICIENCY value - * @property {number} REQUEST_STATS_FULL=3 REQUEST_STATS_FULL 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_EFFICIENCY"] = 2; - values[valuesById[3] = "REQUEST_STATS_FULL"] = 3; + values[valuesById[2] = "REQUEST_STATS_FULL"] = 2; return values; })(); @@ -34675,28 +34668,27 @@ return ReadModifyWriteRule; })(); - v2.ReadIteratorStats = (function() { + v2.ReadIterationStats = (function() { /** - * Properties of a ReadIteratorStats. + * Properties of a ReadIterationStats. * @memberof google.bigtable.v2 - * @interface IReadIteratorStats - * @property {number|Long|null} [rowsSeenCount] ReadIteratorStats rowsSeenCount - * @property {number|Long|null} [rowsReturnedCount] ReadIteratorStats rowsReturnedCount - * @property {number|Long|null} [cellsSeenCount] ReadIteratorStats cellsSeenCount - * @property {number|Long|null} [cellsReturnedCount] ReadIteratorStats cellsReturnedCount - * @property {number|Long|null} [deletesSeenCount] ReadIteratorStats deletesSeenCount + * @interface IReadIterationStats + * @property {number|Long|null} [rowsSeenCount] ReadIterationStats rowsSeenCount + * @property {number|Long|null} [rowsReturnedCount] ReadIterationStats rowsReturnedCount + * @property {number|Long|null} [cellsSeenCount] ReadIterationStats cellsSeenCount + * @property {number|Long|null} [cellsReturnedCount] ReadIterationStats cellsReturnedCount */ /** - * Constructs a new ReadIteratorStats. + * Constructs a new ReadIterationStats. * @memberof google.bigtable.v2 - * @classdesc Represents a ReadIteratorStats. - * @implements IReadIteratorStats + * @classdesc Represents a ReadIterationStats. + * @implements IReadIterationStats * @constructor - * @param {google.bigtable.v2.IReadIteratorStats=} [properties] Properties to set + * @param {google.bigtable.v2.IReadIterationStats=} [properties] Properties to set */ - function ReadIteratorStats(properties) { + function ReadIterationStats(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34704,67 +34696,59 @@ } /** - * ReadIteratorStats rowsSeenCount. + * ReadIterationStats rowsSeenCount. * @member {number|Long} rowsSeenCount - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @instance */ - ReadIteratorStats.prototype.rowsSeenCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadIterationStats.prototype.rowsSeenCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReadIteratorStats rowsReturnedCount. + * ReadIterationStats rowsReturnedCount. * @member {number|Long} rowsReturnedCount - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @instance */ - ReadIteratorStats.prototype.rowsReturnedCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadIterationStats.prototype.rowsReturnedCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReadIteratorStats cellsSeenCount. + * ReadIterationStats cellsSeenCount. * @member {number|Long} cellsSeenCount - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @instance */ - ReadIteratorStats.prototype.cellsSeenCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadIterationStats.prototype.cellsSeenCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReadIteratorStats cellsReturnedCount. + * ReadIterationStats cellsReturnedCount. * @member {number|Long} cellsReturnedCount - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @instance */ - ReadIteratorStats.prototype.cellsReturnedCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadIterationStats.prototype.cellsReturnedCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReadIteratorStats deletesSeenCount. - * @member {number|Long} deletesSeenCount - * @memberof google.bigtable.v2.ReadIteratorStats - * @instance - */ - ReadIteratorStats.prototype.deletesSeenCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new ReadIteratorStats instance using the specified properties. + * Creates a new ReadIterationStats instance using the specified properties. * @function create - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static - * @param {google.bigtable.v2.IReadIteratorStats=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadIteratorStats} ReadIteratorStats instance + * @param {google.bigtable.v2.IReadIterationStats=} [properties] Properties to set + * @returns {google.bigtable.v2.ReadIterationStats} ReadIterationStats instance */ - ReadIteratorStats.create = function create(properties) { - return new ReadIteratorStats(properties); + ReadIterationStats.create = function create(properties) { + return new ReadIterationStats(properties); }; /** - * Encodes the specified ReadIteratorStats message. Does not implicitly {@link google.bigtable.v2.ReadIteratorStats.verify|verify} messages. + * Encodes the specified ReadIterationStats message. Does not implicitly {@link google.bigtable.v2.ReadIterationStats.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static - * @param {google.bigtable.v2.IReadIteratorStats} message ReadIteratorStats message or plain object to encode + * @param {google.bigtable.v2.IReadIterationStats} message ReadIterationStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadIteratorStats.encode = function encode(message, writer) { + ReadIterationStats.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.rowsSeenCount != null && Object.hasOwnProperty.call(message, "rowsSeenCount")) @@ -34775,39 +34759,37 @@ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.cellsSeenCount); if (message.cellsReturnedCount != null && Object.hasOwnProperty.call(message, "cellsReturnedCount")) writer.uint32(/* id 4, wireType 0 =*/32).int64(message.cellsReturnedCount); - if (message.deletesSeenCount != null && Object.hasOwnProperty.call(message, "deletesSeenCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.deletesSeenCount); return writer; }; /** - * Encodes the specified ReadIteratorStats message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadIteratorStats.verify|verify} messages. + * Encodes the specified ReadIterationStats message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadIterationStats.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static - * @param {google.bigtable.v2.IReadIteratorStats} message ReadIteratorStats message or plain object to encode + * @param {google.bigtable.v2.IReadIterationStats} message ReadIterationStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadIteratorStats.encodeDelimited = function encodeDelimited(message, writer) { + ReadIterationStats.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadIteratorStats message from the specified reader or buffer. + * Decodes a ReadIterationStats message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadIteratorStats} ReadIteratorStats + * @returns {google.bigtable.v2.ReadIterationStats} ReadIterationStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadIteratorStats.decode = function decode(reader, length) { + ReadIterationStats.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadIteratorStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadIterationStats(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -34827,10 +34809,6 @@ message.cellsReturnedCount = reader.int64(); break; } - case 5: { - message.deletesSeenCount = reader.int64(); - break; - } default: reader.skipType(tag & 7); break; @@ -34840,30 +34818,30 @@ }; /** - * Decodes a ReadIteratorStats message from the specified reader or buffer, length delimited. + * Decodes a ReadIterationStats message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadIteratorStats} ReadIteratorStats + * @returns {google.bigtable.v2.ReadIterationStats} ReadIterationStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadIteratorStats.decodeDelimited = function decodeDelimited(reader) { + ReadIterationStats.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadIteratorStats message. + * Verifies a ReadIterationStats message. * @function verify - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadIteratorStats.verify = function verify(message) { + ReadIterationStats.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.rowsSeenCount != null && message.hasOwnProperty("rowsSeenCount")) @@ -34878,24 +34856,21 @@ if (message.cellsReturnedCount != null && message.hasOwnProperty("cellsReturnedCount")) if (!$util.isInteger(message.cellsReturnedCount) && !(message.cellsReturnedCount && $util.isInteger(message.cellsReturnedCount.low) && $util.isInteger(message.cellsReturnedCount.high))) return "cellsReturnedCount: integer|Long expected"; - if (message.deletesSeenCount != null && message.hasOwnProperty("deletesSeenCount")) - if (!$util.isInteger(message.deletesSeenCount) && !(message.deletesSeenCount && $util.isInteger(message.deletesSeenCount.low) && $util.isInteger(message.deletesSeenCount.high))) - return "deletesSeenCount: integer|Long expected"; return null; }; /** - * Creates a ReadIteratorStats message from a plain object. Also converts values to their respective internal types. + * Creates a ReadIterationStats message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadIteratorStats} ReadIteratorStats + * @returns {google.bigtable.v2.ReadIterationStats} ReadIterationStats */ - ReadIteratorStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadIteratorStats) + ReadIterationStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.ReadIterationStats) return object; - var message = new $root.google.bigtable.v2.ReadIteratorStats(); + var message = new $root.google.bigtable.v2.ReadIterationStats(); if (object.rowsSeenCount != null) if ($util.Long) (message.rowsSeenCount = $util.Long.fromValue(object.rowsSeenCount)).unsigned = false; @@ -34932,28 +34907,19 @@ message.cellsReturnedCount = object.cellsReturnedCount; else if (typeof object.cellsReturnedCount === "object") message.cellsReturnedCount = new $util.LongBits(object.cellsReturnedCount.low >>> 0, object.cellsReturnedCount.high >>> 0).toNumber(); - if (object.deletesSeenCount != null) - if ($util.Long) - (message.deletesSeenCount = $util.Long.fromValue(object.deletesSeenCount)).unsigned = false; - else if (typeof object.deletesSeenCount === "string") - message.deletesSeenCount = parseInt(object.deletesSeenCount, 10); - else if (typeof object.deletesSeenCount === "number") - message.deletesSeenCount = object.deletesSeenCount; - else if (typeof object.deletesSeenCount === "object") - message.deletesSeenCount = new $util.LongBits(object.deletesSeenCount.low >>> 0, object.deletesSeenCount.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ReadIteratorStats message. Also converts values to other types if specified. + * Creates a plain object from a ReadIterationStats message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static - * @param {google.bigtable.v2.ReadIteratorStats} message ReadIteratorStats + * @param {google.bigtable.v2.ReadIterationStats} message ReadIterationStats * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadIteratorStats.toObject = function toObject(message, options) { + ReadIterationStats.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -34978,11 +34944,6 @@ object.cellsReturnedCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.cellsReturnedCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.deletesSeenCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deletesSeenCount = options.longs === String ? "0" : 0; } if (message.rowsSeenCount != null && message.hasOwnProperty("rowsSeenCount")) if (typeof message.rowsSeenCount === "number") @@ -35004,41 +34965,36 @@ object.cellsReturnedCount = options.longs === String ? String(message.cellsReturnedCount) : message.cellsReturnedCount; else object.cellsReturnedCount = options.longs === String ? $util.Long.prototype.toString.call(message.cellsReturnedCount) : options.longs === Number ? new $util.LongBits(message.cellsReturnedCount.low >>> 0, message.cellsReturnedCount.high >>> 0).toNumber() : message.cellsReturnedCount; - if (message.deletesSeenCount != null && message.hasOwnProperty("deletesSeenCount")) - if (typeof message.deletesSeenCount === "number") - object.deletesSeenCount = options.longs === String ? String(message.deletesSeenCount) : message.deletesSeenCount; - else - object.deletesSeenCount = options.longs === String ? $util.Long.prototype.toString.call(message.deletesSeenCount) : options.longs === Number ? new $util.LongBits(message.deletesSeenCount.low >>> 0, message.deletesSeenCount.high >>> 0).toNumber() : message.deletesSeenCount; return object; }; /** - * Converts this ReadIteratorStats to JSON. + * Converts this ReadIterationStats to JSON. * @function toJSON - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @instance * @returns {Object.} JSON object */ - ReadIteratorStats.prototype.toJSON = function toJSON() { + ReadIterationStats.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadIteratorStats + * Gets the default type url for ReadIterationStats * @function getTypeUrl - * @memberof google.bigtable.v2.ReadIteratorStats + * @memberof google.bigtable.v2.ReadIterationStats * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadIteratorStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadIterationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.ReadIteratorStats"; + return typeUrlPrefix + "/google.bigtable.v2.ReadIterationStats"; }; - return ReadIteratorStats; + return ReadIterationStats; })(); v2.RequestLatencyStats = (function() { @@ -35249,262 +35205,25 @@ return RequestLatencyStats; })(); - v2.ReadEfficiencyStats = (function() { - - /** - * Properties of a ReadEfficiencyStats. - * @memberof google.bigtable.v2 - * @interface IReadEfficiencyStats - * @property {google.bigtable.v2.IReadIteratorStats|null} [readIteratorStats] ReadEfficiencyStats readIteratorStats - * @property {google.bigtable.v2.IRequestLatencyStats|null} [requestLatencyStats] ReadEfficiencyStats requestLatencyStats - */ - - /** - * Constructs a new ReadEfficiencyStats. - * @memberof google.bigtable.v2 - * @classdesc Represents a ReadEfficiencyStats. - * @implements IReadEfficiencyStats - * @constructor - * @param {google.bigtable.v2.IReadEfficiencyStats=} [properties] Properties to set - */ - function ReadEfficiencyStats(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]]; - } - - /** - * ReadEfficiencyStats readIteratorStats. - * @member {google.bigtable.v2.IReadIteratorStats|null|undefined} readIteratorStats - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @instance - */ - ReadEfficiencyStats.prototype.readIteratorStats = null; - - /** - * ReadEfficiencyStats requestLatencyStats. - * @member {google.bigtable.v2.IRequestLatencyStats|null|undefined} requestLatencyStats - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @instance - */ - ReadEfficiencyStats.prototype.requestLatencyStats = null; - - /** - * Creates a new ReadEfficiencyStats instance using the specified properties. - * @function create - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {google.bigtable.v2.IReadEfficiencyStats=} [properties] Properties to set - * @returns {google.bigtable.v2.ReadEfficiencyStats} ReadEfficiencyStats instance - */ - ReadEfficiencyStats.create = function create(properties) { - return new ReadEfficiencyStats(properties); - }; - - /** - * Encodes the specified ReadEfficiencyStats message. Does not implicitly {@link google.bigtable.v2.ReadEfficiencyStats.verify|verify} messages. - * @function encode - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {google.bigtable.v2.IReadEfficiencyStats} message ReadEfficiencyStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadEfficiencyStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.readIteratorStats != null && Object.hasOwnProperty.call(message, "readIteratorStats")) - $root.google.bigtable.v2.ReadIteratorStats.encode(message.readIteratorStats, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.requestLatencyStats != null && Object.hasOwnProperty.call(message, "requestLatencyStats")) - $root.google.bigtable.v2.RequestLatencyStats.encode(message.requestLatencyStats, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ReadEfficiencyStats message, length delimited. Does not implicitly {@link google.bigtable.v2.ReadEfficiencyStats.verify|verify} messages. - * @function encodeDelimited - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {google.bigtable.v2.IReadEfficiencyStats} message ReadEfficiencyStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadEfficiencyStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ReadEfficiencyStats message from the specified reader or buffer. - * @function decode - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.ReadEfficiencyStats} ReadEfficiencyStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadEfficiencyStats.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.ReadEfficiencyStats(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.readIteratorStats = $root.google.bigtable.v2.ReadIteratorStats.decode(reader, reader.uint32()); - break; - } - case 2: { - message.requestLatencyStats = $root.google.bigtable.v2.RequestLatencyStats.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ReadEfficiencyStats message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.ReadEfficiencyStats} ReadEfficiencyStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadEfficiencyStats.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReadEfficiencyStats message. - * @function verify - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReadEfficiencyStats.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.readIteratorStats != null && message.hasOwnProperty("readIteratorStats")) { - var error = $root.google.bigtable.v2.ReadIteratorStats.verify(message.readIteratorStats); - if (error) - return "readIteratorStats." + error; - } - if (message.requestLatencyStats != null && message.hasOwnProperty("requestLatencyStats")) { - var error = $root.google.bigtable.v2.RequestLatencyStats.verify(message.requestLatencyStats); - if (error) - return "requestLatencyStats." + error; - } - return null; - }; - - /** - * Creates a ReadEfficiencyStats message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {Object.} object Plain object - * @returns {google.bigtable.v2.ReadEfficiencyStats} ReadEfficiencyStats - */ - ReadEfficiencyStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.ReadEfficiencyStats) - return object; - var message = new $root.google.bigtable.v2.ReadEfficiencyStats(); - if (object.readIteratorStats != null) { - if (typeof object.readIteratorStats !== "object") - throw TypeError(".google.bigtable.v2.ReadEfficiencyStats.readIteratorStats: object expected"); - message.readIteratorStats = $root.google.bigtable.v2.ReadIteratorStats.fromObject(object.readIteratorStats); - } - if (object.requestLatencyStats != null) { - if (typeof object.requestLatencyStats !== "object") - throw TypeError(".google.bigtable.v2.ReadEfficiencyStats.requestLatencyStats: object expected"); - message.requestLatencyStats = $root.google.bigtable.v2.RequestLatencyStats.fromObject(object.requestLatencyStats); - } - return message; - }; - - /** - * Creates a plain object from a ReadEfficiencyStats message. Also converts values to other types if specified. - * @function toObject - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {google.bigtable.v2.ReadEfficiencyStats} message ReadEfficiencyStats - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReadEfficiencyStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.readIteratorStats = null; - object.requestLatencyStats = null; - } - if (message.readIteratorStats != null && message.hasOwnProperty("readIteratorStats")) - object.readIteratorStats = $root.google.bigtable.v2.ReadIteratorStats.toObject(message.readIteratorStats, options); - if (message.requestLatencyStats != null && message.hasOwnProperty("requestLatencyStats")) - object.requestLatencyStats = $root.google.bigtable.v2.RequestLatencyStats.toObject(message.requestLatencyStats, options); - return object; - }; - - /** - * Converts this ReadEfficiencyStats to JSON. - * @function toJSON - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @instance - * @returns {Object.} JSON object - */ - ReadEfficiencyStats.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ReadEfficiencyStats - * @function getTypeUrl - * @memberof google.bigtable.v2.ReadEfficiencyStats - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ReadEfficiencyStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.bigtable.v2.ReadEfficiencyStats"; - }; - - return ReadEfficiencyStats; - })(); - - v2.AllReadStats = (function() { + v2.FullReadStatsView = (function() { /** - * Properties of an AllReadStats. + * Properties of a FullReadStatsView. * @memberof google.bigtable.v2 - * @interface IAllReadStats - * @property {google.bigtable.v2.IReadIteratorStats|null} [readIteratorStats] AllReadStats readIteratorStats - * @property {google.bigtable.v2.IRequestLatencyStats|null} [requestLatencyStats] AllReadStats requestLatencyStats + * @interface IFullReadStatsView + * @property {google.bigtable.v2.IReadIterationStats|null} [readIterationStats] FullReadStatsView readIterationStats + * @property {google.bigtable.v2.IRequestLatencyStats|null} [requestLatencyStats] FullReadStatsView requestLatencyStats */ /** - * Constructs a new AllReadStats. + * Constructs a new FullReadStatsView. * @memberof google.bigtable.v2 - * @classdesc Represents an AllReadStats. - * @implements IAllReadStats + * @classdesc Represents a FullReadStatsView. + * @implements IFullReadStatsView * @constructor - * @param {google.bigtable.v2.IAllReadStats=} [properties] Properties to set + * @param {google.bigtable.v2.IFullReadStatsView=} [properties] Properties to set */ - function AllReadStats(properties) { + function FullReadStatsView(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35512,85 +35231,85 @@ } /** - * AllReadStats readIteratorStats. - * @member {google.bigtable.v2.IReadIteratorStats|null|undefined} readIteratorStats - * @memberof google.bigtable.v2.AllReadStats + * FullReadStatsView readIterationStats. + * @member {google.bigtable.v2.IReadIterationStats|null|undefined} readIterationStats + * @memberof google.bigtable.v2.FullReadStatsView * @instance */ - AllReadStats.prototype.readIteratorStats = null; + FullReadStatsView.prototype.readIterationStats = null; /** - * AllReadStats requestLatencyStats. + * FullReadStatsView requestLatencyStats. * @member {google.bigtable.v2.IRequestLatencyStats|null|undefined} requestLatencyStats - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @instance */ - AllReadStats.prototype.requestLatencyStats = null; + FullReadStatsView.prototype.requestLatencyStats = null; /** - * Creates a new AllReadStats instance using the specified properties. + * Creates a new FullReadStatsView instance using the specified properties. * @function create - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static - * @param {google.bigtable.v2.IAllReadStats=} [properties] Properties to set - * @returns {google.bigtable.v2.AllReadStats} AllReadStats instance + * @param {google.bigtable.v2.IFullReadStatsView=} [properties] Properties to set + * @returns {google.bigtable.v2.FullReadStatsView} FullReadStatsView instance */ - AllReadStats.create = function create(properties) { - return new AllReadStats(properties); + FullReadStatsView.create = function create(properties) { + return new FullReadStatsView(properties); }; /** - * Encodes the specified AllReadStats message. Does not implicitly {@link google.bigtable.v2.AllReadStats.verify|verify} messages. + * Encodes the specified FullReadStatsView message. Does not implicitly {@link google.bigtable.v2.FullReadStatsView.verify|verify} messages. * @function encode - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static - * @param {google.bigtable.v2.IAllReadStats} message AllReadStats message or plain object to encode + * @param {google.bigtable.v2.IFullReadStatsView} message FullReadStatsView message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AllReadStats.encode = function encode(message, writer) { + FullReadStatsView.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.readIteratorStats != null && Object.hasOwnProperty.call(message, "readIteratorStats")) - $root.google.bigtable.v2.ReadIteratorStats.encode(message.readIteratorStats, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.readIterationStats != null && Object.hasOwnProperty.call(message, "readIterationStats")) + $root.google.bigtable.v2.ReadIterationStats.encode(message.readIterationStats, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.requestLatencyStats != null && Object.hasOwnProperty.call(message, "requestLatencyStats")) $root.google.bigtable.v2.RequestLatencyStats.encode(message.requestLatencyStats, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified AllReadStats message, length delimited. Does not implicitly {@link google.bigtable.v2.AllReadStats.verify|verify} messages. + * Encodes the specified FullReadStatsView message, length delimited. Does not implicitly {@link google.bigtable.v2.FullReadStatsView.verify|verify} messages. * @function encodeDelimited - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static - * @param {google.bigtable.v2.IAllReadStats} message AllReadStats message or plain object to encode + * @param {google.bigtable.v2.IFullReadStatsView} message FullReadStatsView message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AllReadStats.encodeDelimited = function encodeDelimited(message, writer) { + FullReadStatsView.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AllReadStats message from the specified reader or buffer. + * Decodes a FullReadStatsView message from the specified reader or buffer. * @function decode - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.bigtable.v2.AllReadStats} AllReadStats + * @returns {google.bigtable.v2.FullReadStatsView} FullReadStatsView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AllReadStats.decode = function decode(reader, length) { + FullReadStatsView.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.AllReadStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.bigtable.v2.FullReadStatsView(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.readIteratorStats = $root.google.bigtable.v2.ReadIteratorStats.decode(reader, reader.uint32()); + message.readIterationStats = $root.google.bigtable.v2.ReadIterationStats.decode(reader, reader.uint32()); break; } case 2: { @@ -35606,36 +35325,36 @@ }; /** - * Decodes an AllReadStats message from the specified reader or buffer, length delimited. + * Decodes a FullReadStatsView message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.bigtable.v2.AllReadStats} AllReadStats + * @returns {google.bigtable.v2.FullReadStatsView} FullReadStatsView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AllReadStats.decodeDelimited = function decodeDelimited(reader) { + FullReadStatsView.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AllReadStats message. + * Verifies a FullReadStatsView message. * @function verify - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AllReadStats.verify = function verify(message) { + FullReadStatsView.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.readIteratorStats != null && message.hasOwnProperty("readIteratorStats")) { - var error = $root.google.bigtable.v2.ReadIteratorStats.verify(message.readIteratorStats); + if (message.readIterationStats != null && message.hasOwnProperty("readIterationStats")) { + var error = $root.google.bigtable.v2.ReadIterationStats.verify(message.readIterationStats); if (error) - return "readIteratorStats." + error; + return "readIterationStats." + error; } if (message.requestLatencyStats != null && message.hasOwnProperty("requestLatencyStats")) { var error = $root.google.bigtable.v2.RequestLatencyStats.verify(message.requestLatencyStats); @@ -35646,81 +35365,81 @@ }; /** - * Creates an AllReadStats message from a plain object. Also converts values to their respective internal types. + * Creates a FullReadStatsView message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static * @param {Object.} object Plain object - * @returns {google.bigtable.v2.AllReadStats} AllReadStats + * @returns {google.bigtable.v2.FullReadStatsView} FullReadStatsView */ - AllReadStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.bigtable.v2.AllReadStats) + FullReadStatsView.fromObject = function fromObject(object) { + if (object instanceof $root.google.bigtable.v2.FullReadStatsView) return object; - var message = new $root.google.bigtable.v2.AllReadStats(); - if (object.readIteratorStats != null) { - if (typeof object.readIteratorStats !== "object") - throw TypeError(".google.bigtable.v2.AllReadStats.readIteratorStats: object expected"); - message.readIteratorStats = $root.google.bigtable.v2.ReadIteratorStats.fromObject(object.readIteratorStats); + var message = new $root.google.bigtable.v2.FullReadStatsView(); + if (object.readIterationStats != null) { + if (typeof object.readIterationStats !== "object") + throw TypeError(".google.bigtable.v2.FullReadStatsView.readIterationStats: object expected"); + message.readIterationStats = $root.google.bigtable.v2.ReadIterationStats.fromObject(object.readIterationStats); } if (object.requestLatencyStats != null) { if (typeof object.requestLatencyStats !== "object") - throw TypeError(".google.bigtable.v2.AllReadStats.requestLatencyStats: object expected"); + throw TypeError(".google.bigtable.v2.FullReadStatsView.requestLatencyStats: object expected"); message.requestLatencyStats = $root.google.bigtable.v2.RequestLatencyStats.fromObject(object.requestLatencyStats); } return message; }; /** - * Creates a plain object from an AllReadStats message. Also converts values to other types if specified. + * Creates a plain object from a FullReadStatsView message. Also converts values to other types if specified. * @function toObject - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static - * @param {google.bigtable.v2.AllReadStats} message AllReadStats + * @param {google.bigtable.v2.FullReadStatsView} message FullReadStatsView * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AllReadStats.toObject = function toObject(message, options) { + FullReadStatsView.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.readIteratorStats = null; + object.readIterationStats = null; object.requestLatencyStats = null; } - if (message.readIteratorStats != null && message.hasOwnProperty("readIteratorStats")) - object.readIteratorStats = $root.google.bigtable.v2.ReadIteratorStats.toObject(message.readIteratorStats, options); + if (message.readIterationStats != null && message.hasOwnProperty("readIterationStats")) + object.readIterationStats = $root.google.bigtable.v2.ReadIterationStats.toObject(message.readIterationStats, options); if (message.requestLatencyStats != null && message.hasOwnProperty("requestLatencyStats")) object.requestLatencyStats = $root.google.bigtable.v2.RequestLatencyStats.toObject(message.requestLatencyStats, options); return object; }; /** - * Converts this AllReadStats to JSON. + * Converts this FullReadStatsView to JSON. * @function toJSON - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @instance * @returns {Object.} JSON object */ - AllReadStats.prototype.toJSON = function toJSON() { + FullReadStatsView.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AllReadStats + * Gets the default type url for FullReadStatsView * @function getTypeUrl - * @memberof google.bigtable.v2.AllReadStats + * @memberof google.bigtable.v2.FullReadStatsView * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AllReadStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FullReadStatsView.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.bigtable.v2.AllReadStats"; + return typeUrlPrefix + "/google.bigtable.v2.FullReadStatsView"; }; - return AllReadStats; + return FullReadStatsView; })(); v2.RequestStats = (function() { @@ -35729,8 +35448,7 @@ * Properties of a RequestStats. * @memberof google.bigtable.v2 * @interface IRequestStats - * @property {google.bigtable.v2.IReadEfficiencyStats|null} [readEfficiencyStats] RequestStats readEfficiencyStats - * @property {google.bigtable.v2.IAllReadStats|null} [allReadStats] RequestStats allReadStats + * @property {google.bigtable.v2.IFullReadStatsView|null} [fullReadStatsView] RequestStats fullReadStatsView */ /** @@ -35749,32 +35467,24 @@ } /** - * RequestStats readEfficiencyStats. - * @member {google.bigtable.v2.IReadEfficiencyStats|null|undefined} readEfficiencyStats - * @memberof google.bigtable.v2.RequestStats - * @instance - */ - RequestStats.prototype.readEfficiencyStats = null; - - /** - * RequestStats allReadStats. - * @member {google.bigtable.v2.IAllReadStats|null|undefined} allReadStats + * RequestStats fullReadStatsView. + * @member {google.bigtable.v2.IFullReadStatsView|null|undefined} fullReadStatsView * @memberof google.bigtable.v2.RequestStats * @instance */ - RequestStats.prototype.allReadStats = null; + RequestStats.prototype.fullReadStatsView = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * RequestStats stats. - * @member {"readEfficiencyStats"|"allReadStats"|undefined} stats + * RequestStats statsView. + * @member {"fullReadStatsView"|undefined} statsView * @memberof google.bigtable.v2.RequestStats * @instance */ - Object.defineProperty(RequestStats.prototype, "stats", { - get: $util.oneOfGetter($oneOfFields = ["readEfficiencyStats", "allReadStats"]), + Object.defineProperty(RequestStats.prototype, "statsView", { + get: $util.oneOfGetter($oneOfFields = ["fullReadStatsView"]), set: $util.oneOfSetter($oneOfFields) }); @@ -35802,10 +35512,8 @@ RequestStats.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.readEfficiencyStats != null && Object.hasOwnProperty.call(message, "readEfficiencyStats")) - $root.google.bigtable.v2.ReadEfficiencyStats.encode(message.readEfficiencyStats, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.allReadStats != null && Object.hasOwnProperty.call(message, "allReadStats")) - $root.google.bigtable.v2.AllReadStats.encode(message.allReadStats, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fullReadStatsView != null && Object.hasOwnProperty.call(message, "fullReadStatsView")) + $root.google.bigtable.v2.FullReadStatsView.encode(message.fullReadStatsView, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -35841,11 +35549,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.readEfficiencyStats = $root.google.bigtable.v2.ReadEfficiencyStats.decode(reader, reader.uint32()); - break; - } - case 2: { - message.allReadStats = $root.google.bigtable.v2.AllReadStats.decode(reader, reader.uint32()); + message.fullReadStatsView = $root.google.bigtable.v2.FullReadStatsView.decode(reader, reader.uint32()); break; } default: @@ -35884,22 +35588,12 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.readEfficiencyStats != null && message.hasOwnProperty("readEfficiencyStats")) { - properties.stats = 1; - { - var error = $root.google.bigtable.v2.ReadEfficiencyStats.verify(message.readEfficiencyStats); - if (error) - return "readEfficiencyStats." + error; - } - } - if (message.allReadStats != null && message.hasOwnProperty("allReadStats")) { - if (properties.stats === 1) - return "stats: multiple values"; - properties.stats = 1; + if (message.fullReadStatsView != null && message.hasOwnProperty("fullReadStatsView")) { + properties.statsView = 1; { - var error = $root.google.bigtable.v2.AllReadStats.verify(message.allReadStats); + var error = $root.google.bigtable.v2.FullReadStatsView.verify(message.fullReadStatsView); if (error) - return "allReadStats." + error; + return "fullReadStatsView." + error; } } return null; @@ -35917,15 +35611,10 @@ if (object instanceof $root.google.bigtable.v2.RequestStats) return object; var message = new $root.google.bigtable.v2.RequestStats(); - if (object.readEfficiencyStats != null) { - if (typeof object.readEfficiencyStats !== "object") - throw TypeError(".google.bigtable.v2.RequestStats.readEfficiencyStats: object expected"); - message.readEfficiencyStats = $root.google.bigtable.v2.ReadEfficiencyStats.fromObject(object.readEfficiencyStats); - } - if (object.allReadStats != null) { - if (typeof object.allReadStats !== "object") - throw TypeError(".google.bigtable.v2.RequestStats.allReadStats: object expected"); - message.allReadStats = $root.google.bigtable.v2.AllReadStats.fromObject(object.allReadStats); + if (object.fullReadStatsView != null) { + if (typeof object.fullReadStatsView !== "object") + throw TypeError(".google.bigtable.v2.RequestStats.fullReadStatsView: object expected"); + message.fullReadStatsView = $root.google.bigtable.v2.FullReadStatsView.fromObject(object.fullReadStatsView); } return message; }; @@ -35943,15 +35632,10 @@ if (!options) options = {}; var object = {}; - if (message.readEfficiencyStats != null && message.hasOwnProperty("readEfficiencyStats")) { - object.readEfficiencyStats = $root.google.bigtable.v2.ReadEfficiencyStats.toObject(message.readEfficiencyStats, options); - if (options.oneofs) - object.stats = "readEfficiencyStats"; - } - if (message.allReadStats != null && message.hasOwnProperty("allReadStats")) { - object.allReadStats = $root.google.bigtable.v2.AllReadStats.toObject(message.allReadStats, options); + if (message.fullReadStatsView != null && message.hasOwnProperty("fullReadStatsView")) { + object.fullReadStatsView = $root.google.bigtable.v2.FullReadStatsView.toObject(message.fullReadStatsView, options); if (options.oneofs) - object.stats = "allReadStats"; + object.statsView = "fullReadStatsView"; } return object; }; diff --git a/protos/protos.json b/protos/protos.json index 7bdbde64b..19b3e2b67 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -3155,8 +3155,7 @@ "values": { "REQUEST_STATS_VIEW_UNSPECIFIED": 0, "REQUEST_STATS_NONE": 1, - "REQUEST_STATS_EFFICIENCY": 2, - "REQUEST_STATS_FULL": 3 + "REQUEST_STATS_FULL": 2 } } } @@ -3895,7 +3894,7 @@ } } }, - "ReadIteratorStats": { + "ReadIterationStats": { "fields": { "rowsSeenCount": { "type": "int64", @@ -3912,10 +3911,6 @@ "cellsReturnedCount": { "type": "int64", "id": 4 - }, - "deletesSeenCount": { - "type": "int64", - "id": 5 } } }, @@ -3927,22 +3922,10 @@ } } }, - "ReadEfficiencyStats": { - "fields": { - "readIteratorStats": { - "type": "ReadIteratorStats", - "id": 1 - }, - "requestLatencyStats": { - "type": "RequestLatencyStats", - "id": 2 - } - } - }, - "AllReadStats": { + "FullReadStatsView": { "fields": { - "readIteratorStats": { - "type": "ReadIteratorStats", + "readIterationStats": { + "type": "ReadIterationStats", "id": 1 }, "requestLatencyStats": { @@ -3953,21 +3936,16 @@ }, "RequestStats": { "oneofs": { - "stats": { + "statsView": { "oneof": [ - "readEfficiencyStats", - "allReadStats" + "fullReadStatsView" ] } }, "fields": { - "readEfficiencyStats": { - "type": "ReadEfficiencyStats", + "fullReadStatsView": { + "type": "FullReadStatsView", "id": 1 - }, - "allReadStats": { - "type": "AllReadStats", - "id": 2 } } }, diff --git a/samples/generated/v2/bigtable.check_and_mutate_row.js b/samples/generated/v2/bigtable.check_and_mutate_row.js index 79809d1b6..ea5e2cc6f 100644 --- a/samples/generated/v2/bigtable.check_and_mutate_row.js +++ b/samples/generated/v2/bigtable.check_and_mutate_row.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,8 +33,9 @@ function main(tableName, rowKey) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The unique name of the table to which the conditional mutation - * should be applied. Values are of the form + * Required. The unique name of the table to which the conditional mutation should be + * applied. + * Values are of the form * `projects//instances//tables/
`. */ // const tableName = 'abc123' @@ -44,8 +45,7 @@ function main(tableName, rowKey) { */ // const appProfileId = 'abc123' /** - * Required. The key of the row to which the conditional mutation should be - * applied. + * Required. The key of the row to which the conditional mutation should be applied. */ // const rowKey = 'Buffer.from('string')' /** diff --git a/samples/generated/v2/bigtable.mutate_row.js b/samples/generated/v2/bigtable.mutate_row.js index 3aa250862..b0e92a924 100644 --- a/samples/generated/v2/bigtable.mutate_row.js +++ b/samples/generated/v2/bigtable.mutate_row.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,8 +33,8 @@ function main(tableName, rowKey, mutations) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The unique name of the table to which the mutation should be - * applied. Values are of the form + * Required. The unique name of the table to which the mutation should be applied. + * Values are of the form * `projects//instances//tables/
`. */ // const tableName = 'abc123' @@ -48,9 +48,9 @@ function main(tableName, rowKey, mutations) { */ // const rowKey = 'Buffer.from('string')' /** - * 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. + * 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. */ // const mutations = 1234 diff --git a/samples/generated/v2/bigtable.mutate_rows.js b/samples/generated/v2/bigtable.mutate_rows.js index 47eadcf7a..b403f7219 100644 --- a/samples/generated/v2/bigtable.mutate_rows.js +++ b/samples/generated/v2/bigtable.mutate_rows.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,8 +33,7 @@ function main(tableName, entries) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The unique name of the table to which the mutations should be - * applied. + * Required. The unique name of the table to which the mutations should be applied. */ // const tableName = 'abc123' /** diff --git a/samples/generated/v2/bigtable.ping_and_warm.js b/samples/generated/v2/bigtable.ping_and_warm.js index 767426131..72edf2183 100644 --- a/samples/generated/v2/bigtable.ping_and_warm.js +++ b/samples/generated/v2/bigtable.ping_and_warm.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,9 +33,8 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The unique name of the instance to check permissions for as well - * as respond. Values are of the form - * `projects//instances/`. + * Required. The unique name of the instance to check permissions for as well as + * respond. Values are of the form `projects//instances/`. */ // const name = 'abc123' /** diff --git a/samples/generated/v2/bigtable.read_modify_write_row.js b/samples/generated/v2/bigtable.read_modify_write_row.js index fe4055852..2a95f4d11 100644 --- a/samples/generated/v2/bigtable.read_modify_write_row.js +++ b/samples/generated/v2/bigtable.read_modify_write_row.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,8 +33,9 @@ function main(tableName, rowKey, rules) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The unique name of the table to which the read/modify/write rules - * should be applied. Values are of the form + * Required. The unique name of the table to which the read/modify/write rules should be + * applied. + * Values are of the form * `projects//instances//tables/
`. */ // const tableName = 'abc123' @@ -44,14 +45,13 @@ function main(tableName, rowKey, rules) { */ // const appProfileId = 'abc123' /** - * Required. The key of the row to which the read/modify/write rules should be - * applied. + * Required. The key of the row to which the read/modify/write rules should be applied. */ // const rowKey = 'Buffer.from('string')' /** - * 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. + * 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. */ // const rules = 1234 diff --git a/samples/generated/v2/bigtable.read_rows.js b/samples/generated/v2/bigtable.read_rows.js index 67d30dcd2..d0a5ee790 100644 --- a/samples/generated/v2/bigtable.read_rows.js +++ b/samples/generated/v2/bigtable.read_rows.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable.sample_row_keys.js b/samples/generated/v2/bigtable.sample_row_keys.js index ce017c6e5..4fef29214 100644 --- a/samples/generated/v2/bigtable.sample_row_keys.js +++ b/samples/generated/v2/bigtable.sample_row_keys.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.create_app_profile.js b/samples/generated/v2/bigtable_instance_admin.create_app_profile.js index 52e1173c4..c968d21eb 100644 --- a/samples/generated/v2/bigtable_instance_admin.create_app_profile.js +++ b/samples/generated/v2/bigtable_instance_admin.create_app_profile.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.create_cluster.js b/samples/generated/v2/bigtable_instance_admin.create_cluster.js index d5135ab2a..461e7d1b6 100644 --- a/samples/generated/v2/bigtable_instance_admin.create_cluster.js +++ b/samples/generated/v2/bigtable_instance_admin.create_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.create_instance.js b/samples/generated/v2/bigtable_instance_admin.create_instance.js index 6ddb48fae..993926256 100644 --- a/samples/generated/v2/bigtable_instance_admin.create_instance.js +++ b/samples/generated/v2/bigtable_instance_admin.create_instance.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.delete_app_profile.js b/samples/generated/v2/bigtable_instance_admin.delete_app_profile.js index 5266391dc..adf73908b 100644 --- a/samples/generated/v2/bigtable_instance_admin.delete_app_profile.js +++ b/samples/generated/v2/bigtable_instance_admin.delete_app_profile.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.delete_cluster.js b/samples/generated/v2/bigtable_instance_admin.delete_cluster.js index 0ca3f44bb..6c983554c 100644 --- a/samples/generated/v2/bigtable_instance_admin.delete_cluster.js +++ b/samples/generated/v2/bigtable_instance_admin.delete_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.delete_instance.js b/samples/generated/v2/bigtable_instance_admin.delete_instance.js index d647a7aac..5ee9640d3 100644 --- a/samples/generated/v2/bigtable_instance_admin.delete_instance.js +++ b/samples/generated/v2/bigtable_instance_admin.delete_instance.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.get_app_profile.js b/samples/generated/v2/bigtable_instance_admin.get_app_profile.js index c7a4a327f..5af0dc6f6 100644 --- a/samples/generated/v2/bigtable_instance_admin.get_app_profile.js +++ b/samples/generated/v2/bigtable_instance_admin.get_app_profile.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.get_cluster.js b/samples/generated/v2/bigtable_instance_admin.get_cluster.js index 0c38e5220..19c52b15b 100644 --- a/samples/generated/v2/bigtable_instance_admin.get_cluster.js +++ b/samples/generated/v2/bigtable_instance_admin.get_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.get_iam_policy.js b/samples/generated/v2/bigtable_instance_admin.get_iam_policy.js index b1bb1a562..d2548f398 100644 --- a/samples/generated/v2/bigtable_instance_admin.get_iam_policy.js +++ b/samples/generated/v2/bigtable_instance_admin.get_iam_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.get_instance.js b/samples/generated/v2/bigtable_instance_admin.get_instance.js index ed787302e..98d284289 100644 --- a/samples/generated/v2/bigtable_instance_admin.get_instance.js +++ b/samples/generated/v2/bigtable_instance_admin.get_instance.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.list_app_profiles.js b/samples/generated/v2/bigtable_instance_admin.list_app_profiles.js index 48ff037e5..3f5c8b191 100644 --- a/samples/generated/v2/bigtable_instance_admin.list_app_profiles.js +++ b/samples/generated/v2/bigtable_instance_admin.list_app_profiles.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.list_clusters.js b/samples/generated/v2/bigtable_instance_admin.list_clusters.js index b3ee58e70..6cf1f4686 100644 --- a/samples/generated/v2/bigtable_instance_admin.list_clusters.js +++ b/samples/generated/v2/bigtable_instance_admin.list_clusters.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.list_hot_tablets.js b/samples/generated/v2/bigtable_instance_admin.list_hot_tablets.js index 2d54e1457..3407af12d 100644 --- a/samples/generated/v2/bigtable_instance_admin.list_hot_tablets.js +++ b/samples/generated/v2/bigtable_instance_admin.list_hot_tablets.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.list_instances.js b/samples/generated/v2/bigtable_instance_admin.list_instances.js index a9b7d1d6f..da16ace38 100644 --- a/samples/generated/v2/bigtable_instance_admin.list_instances.js +++ b/samples/generated/v2/bigtable_instance_admin.list_instances.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.partial_update_cluster.js b/samples/generated/v2/bigtable_instance_admin.partial_update_cluster.js index 438ffbd9d..a903d1783 100644 --- a/samples/generated/v2/bigtable_instance_admin.partial_update_cluster.js +++ b/samples/generated/v2/bigtable_instance_admin.partial_update_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.partial_update_instance.js b/samples/generated/v2/bigtable_instance_admin.partial_update_instance.js index 4e9bd7290..aee3c78b3 100644 --- a/samples/generated/v2/bigtable_instance_admin.partial_update_instance.js +++ b/samples/generated/v2/bigtable_instance_admin.partial_update_instance.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.set_iam_policy.js b/samples/generated/v2/bigtable_instance_admin.set_iam_policy.js index 9869ae38b..ad7877428 100644 --- a/samples/generated/v2/bigtable_instance_admin.set_iam_policy.js +++ b/samples/generated/v2/bigtable_instance_admin.set_iam_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.test_iam_permissions.js b/samples/generated/v2/bigtable_instance_admin.test_iam_permissions.js index a0f8a643c..4cfe6d5ad 100644 --- a/samples/generated/v2/bigtable_instance_admin.test_iam_permissions.js +++ b/samples/generated/v2/bigtable_instance_admin.test_iam_permissions.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.update_app_profile.js b/samples/generated/v2/bigtable_instance_admin.update_app_profile.js index f5442889d..849e5a898 100644 --- a/samples/generated/v2/bigtable_instance_admin.update_app_profile.js +++ b/samples/generated/v2/bigtable_instance_admin.update_app_profile.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.update_cluster.js b/samples/generated/v2/bigtable_instance_admin.update_cluster.js index d2b36afe5..58a229e30 100644 --- a/samples/generated/v2/bigtable_instance_admin.update_cluster.js +++ b/samples/generated/v2/bigtable_instance_admin.update_cluster.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_instance_admin.update_instance.js b/samples/generated/v2/bigtable_instance_admin.update_instance.js index 5cb263e45..283f56a74 100644 --- a/samples/generated/v2/bigtable_instance_admin.update_instance.js +++ b/samples/generated/v2/bigtable_instance_admin.update_instance.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.check_consistency.js b/samples/generated/v2/bigtable_table_admin.check_consistency.js index c51754649..430ec5d6c 100644 --- a/samples/generated/v2/bigtable_table_admin.check_consistency.js +++ b/samples/generated/v2/bigtable_table_admin.check_consistency.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.create_backup.js b/samples/generated/v2/bigtable_table_admin.create_backup.js index cf25c196a..85add49ae 100644 --- a/samples/generated/v2/bigtable_table_admin.create_backup.js +++ b/samples/generated/v2/bigtable_table_admin.create_backup.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.create_table.js b/samples/generated/v2/bigtable_table_admin.create_table.js index d4853f9a8..feb169832 100644 --- a/samples/generated/v2/bigtable_table_admin.create_table.js +++ b/samples/generated/v2/bigtable_table_admin.create_table.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.create_table_from_snapshot.js b/samples/generated/v2/bigtable_table_admin.create_table_from_snapshot.js index 72d4db6f5..35adb49fe 100644 --- a/samples/generated/v2/bigtable_table_admin.create_table_from_snapshot.js +++ b/samples/generated/v2/bigtable_table_admin.create_table_from_snapshot.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.delete_backup.js b/samples/generated/v2/bigtable_table_admin.delete_backup.js index 8d02a9e14..1e04d1943 100644 --- a/samples/generated/v2/bigtable_table_admin.delete_backup.js +++ b/samples/generated/v2/bigtable_table_admin.delete_backup.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.delete_snapshot.js b/samples/generated/v2/bigtable_table_admin.delete_snapshot.js index 3f7099da9..0c798e390 100644 --- a/samples/generated/v2/bigtable_table_admin.delete_snapshot.js +++ b/samples/generated/v2/bigtable_table_admin.delete_snapshot.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.delete_table.js b/samples/generated/v2/bigtable_table_admin.delete_table.js index ee612ae3c..44093e3e1 100644 --- a/samples/generated/v2/bigtable_table_admin.delete_table.js +++ b/samples/generated/v2/bigtable_table_admin.delete_table.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.drop_row_range.js b/samples/generated/v2/bigtable_table_admin.drop_row_range.js index 6abba99ac..5728068f3 100644 --- a/samples/generated/v2/bigtable_table_admin.drop_row_range.js +++ b/samples/generated/v2/bigtable_table_admin.drop_row_range.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.generate_consistency_token.js b/samples/generated/v2/bigtable_table_admin.generate_consistency_token.js index 08bb43d8e..2cf1dbf4b 100644 --- a/samples/generated/v2/bigtable_table_admin.generate_consistency_token.js +++ b/samples/generated/v2/bigtable_table_admin.generate_consistency_token.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.get_backup.js b/samples/generated/v2/bigtable_table_admin.get_backup.js index 2d0fc4af1..df0a4927e 100644 --- a/samples/generated/v2/bigtable_table_admin.get_backup.js +++ b/samples/generated/v2/bigtable_table_admin.get_backup.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.get_iam_policy.js b/samples/generated/v2/bigtable_table_admin.get_iam_policy.js index a75e54197..7d51e04a9 100644 --- a/samples/generated/v2/bigtable_table_admin.get_iam_policy.js +++ b/samples/generated/v2/bigtable_table_admin.get_iam_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.get_snapshot.js b/samples/generated/v2/bigtable_table_admin.get_snapshot.js index 4549b5f2b..4d8177d32 100644 --- a/samples/generated/v2/bigtable_table_admin.get_snapshot.js +++ b/samples/generated/v2/bigtable_table_admin.get_snapshot.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.get_table.js b/samples/generated/v2/bigtable_table_admin.get_table.js index 62c6ca9b4..b28576cd0 100644 --- a/samples/generated/v2/bigtable_table_admin.get_table.js +++ b/samples/generated/v2/bigtable_table_admin.get_table.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.list_backups.js b/samples/generated/v2/bigtable_table_admin.list_backups.js index cb0c8012f..3b3a67df8 100644 --- a/samples/generated/v2/bigtable_table_admin.list_backups.js +++ b/samples/generated/v2/bigtable_table_admin.list_backups.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.list_snapshots.js b/samples/generated/v2/bigtable_table_admin.list_snapshots.js index f8f491c96..469ef6765 100644 --- a/samples/generated/v2/bigtable_table_admin.list_snapshots.js +++ b/samples/generated/v2/bigtable_table_admin.list_snapshots.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.list_tables.js b/samples/generated/v2/bigtable_table_admin.list_tables.js index 9eb1a32e8..5f2f4d16a 100644 --- a/samples/generated/v2/bigtable_table_admin.list_tables.js +++ b/samples/generated/v2/bigtable_table_admin.list_tables.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.modify_column_families.js b/samples/generated/v2/bigtable_table_admin.modify_column_families.js index ac0d6540b..1a6e74ca0 100644 --- a/samples/generated/v2/bigtable_table_admin.modify_column_families.js +++ b/samples/generated/v2/bigtable_table_admin.modify_column_families.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.restore_table.js b/samples/generated/v2/bigtable_table_admin.restore_table.js index f710ef085..627986cbf 100644 --- a/samples/generated/v2/bigtable_table_admin.restore_table.js +++ b/samples/generated/v2/bigtable_table_admin.restore_table.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.set_iam_policy.js b/samples/generated/v2/bigtable_table_admin.set_iam_policy.js index bc6319688..c803905e1 100644 --- a/samples/generated/v2/bigtable_table_admin.set_iam_policy.js +++ b/samples/generated/v2/bigtable_table_admin.set_iam_policy.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.snapshot_table.js b/samples/generated/v2/bigtable_table_admin.snapshot_table.js index e4b69cc5f..c173e9398 100644 --- a/samples/generated/v2/bigtable_table_admin.snapshot_table.js +++ b/samples/generated/v2/bigtable_table_admin.snapshot_table.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.test_iam_permissions.js b/samples/generated/v2/bigtable_table_admin.test_iam_permissions.js index 3704f7917..c08c894a1 100644 --- a/samples/generated/v2/bigtable_table_admin.test_iam_permissions.js +++ b/samples/generated/v2/bigtable_table_admin.test_iam_permissions.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.undelete_table.js b/samples/generated/v2/bigtable_table_admin.undelete_table.js index 1089a7ae1..5e6af4f05 100644 --- a/samples/generated/v2/bigtable_table_admin.undelete_table.js +++ b/samples/generated/v2/bigtable_table_admin.undelete_table.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.update_backup.js b/samples/generated/v2/bigtable_table_admin.update_backup.js index b09e31e7b..323547683 100644 --- a/samples/generated/v2/bigtable_table_admin.update_backup.js +++ b/samples/generated/v2/bigtable_table_admin.update_backup.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/bigtable_table_admin.update_table.js b/samples/generated/v2/bigtable_table_admin.update_table.js index c72eaf2d1..8431e6d93 100644 --- a/samples/generated/v2/bigtable_table_admin.update_table.js +++ b/samples/generated/v2/bigtable_table_admin.update_table.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v2/snippet_metadata.google.bigtable.v2.json b/samples/generated/v2/snippet_metadata.google.bigtable.v2.json index c2bf9849e..927bd1762 100644 --- a/samples/generated/v2/snippet_metadata.google.bigtable.v2.json +++ b/samples/generated/v2/snippet_metadata.google.bigtable.v2.json @@ -178,7 +178,7 @@ "segments": [ { "start": 29, - "end": 74, + "end": 73, "type": "FULL" } ], @@ -286,7 +286,7 @@ "segments": [ { "start": 29, - "end": 64, + "end": 63, "type": "FULL" } ], diff --git a/samples/package.json b/samples/package.json index e27694264..4f66d9340 100644 --- a/samples/package.json +++ b/samples/package.json @@ -14,7 +14,7 @@ "node": ">=12.0.0" }, "dependencies": { - "@google-cloud/bigtable": "^4.1.1", + "@google-cloud/bigtable": "^4.2.0", "uuid": "^9.0.0", "yargs": "^16.0.0" }, diff --git a/src/v2/bigtable_client.ts b/src/v2/bigtable_client.ts index 5de918e95..fe3587d9f 100644 --- a/src/v2/bigtable_client.ts +++ b/src/v2/bigtable_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -118,6 +118,9 @@ export class BigtableClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; @@ -364,8 +367,8 @@ export class BigtableClient { * @param {Object} request * The request object that will be sent. * @param {string} request.tableName - * Required. The unique name of the table to which the mutation should be - * applied. Values are of the form + * Required. The unique name of the table to which the mutation should be applied. + * Values are of the form * `projects//instances//tables/
`. * @param {string} request.appProfileId * This value specifies routing for replication. If not specified, the @@ -373,9 +376,9 @@ export class BigtableClient { * @param {Buffer} request.rowKey * Required. The key of the row to which the mutation should be applied. * @param {number[]} request.mutations - * 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. + * 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 {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. @@ -481,15 +484,15 @@ export class BigtableClient { * @param {Object} request * The request object that will be sent. * @param {string} request.tableName - * Required. The unique name of the table to which the conditional mutation - * should be applied. Values are of the form + * Required. The unique name of the table to which the conditional mutation should be + * applied. + * Values are of the form * `projects//instances//tables/
`. * @param {string} request.appProfileId * This value specifies routing for replication. If not specified, the * "default" application profile will be used. * @param {Buffer} request.rowKey - * Required. The key of the row to which the conditional mutation should be - * applied. + * Required. The key of the row to which the conditional mutation should be applied. * @param {google.bigtable.v2.RowFilter} request.predicateFilter * The filter to be applied to the contents of the specified row. Depending * on whether or not any results are yielded, either `true_mutations` or @@ -615,9 +618,8 @@ export class BigtableClient { * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The unique name of the instance to check permissions for as well - * as respond. Values are of the form - * `projects//instances/`. + * Required. The unique name of the instance to check permissions for as well as + * respond. Values are of the form `projects//instances/`. * @param {string} request.appProfileId * This value specifies routing for replication. If not specified, the * "default" application profile will be used. @@ -728,19 +730,19 @@ export class BigtableClient { * @param {Object} request * The request object that will be sent. * @param {string} request.tableName - * Required. The unique name of the table to which the read/modify/write rules - * should be applied. Values are of the form + * Required. The unique name of the table to which the read/modify/write rules should be + * applied. + * Values are of the form * `projects//instances//tables/
`. * @param {string} request.appProfileId * This value specifies routing for replication. If not specified, the * "default" application profile will be used. * @param {Buffer} request.rowKey - * Required. The key of the row to which the read/modify/write rules should be - * applied. + * Required. The key of the row to which the read/modify/write rules should be applied. * @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. + * 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. * @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. @@ -991,8 +993,7 @@ export class BigtableClient { * @param {Object} request * The request object that will be sent. * @param {string} request.tableName - * Required. The unique name of the table to which the mutations should be - * applied. + * Required. The unique name of the table to which the mutations should be applied. * @param {string} request.appProfileId * This value specifies routing for replication. If not specified, the * "default" application profile will be used. diff --git a/src/v2/bigtable_instance_admin_client.ts b/src/v2/bigtable_instance_admin_client.ts index 9c7e63c9b..ef4ff1405 100644 --- a/src/v2/bigtable_instance_admin_client.ts +++ b/src/v2/bigtable_instance_admin_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -126,6 +126,9 @@ export class BigtableInstanceAdminClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/src/v2/bigtable_table_admin_client.ts b/src/v2/bigtable_table_admin_client.ts index 908aa76f1..35d1de6d0 100644 --- a/src/v2/bigtable_table_admin_client.ts +++ b/src/v2/bigtable_table_admin_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -127,6 +127,9 @@ export class BigtableTableAdminClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/system-test/common.ts b/system-test/common.ts index b1d3c39b2..06560422f 100644 --- a/system-test/common.ts +++ b/system-test/common.ts @@ -16,10 +16,11 @@ import * as uuid from 'uuid'; import {Cluster} from '../src/cluster'; import * as inst from '../src/instance'; -export const PREFIX = 'gcloud-tests-'; +export const PREFIX = 'gt-'; export function generateId(resourceType: string) { - return PREFIX + resourceType + '-' + uuid.v1().substr(0, 8); + const newUuid = uuid.v1().substr(4, 4); + return `${PREFIX}${resourceType}-${newUuid}-${Date.now()}`; } export class FakeCluster extends Cluster { diff --git a/system-test/fixtures/sample/src/index.js b/system-test/fixtures/sample/src/index.js index 88b56b8b8..7c5750e5d 100644 --- a/system-test/fixtures/sample/src/index.js +++ b/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/system-test/fixtures/sample/src/index.ts b/system-test/fixtures/sample/src/index.ts index 7b598ec1c..50ddaea87 100644 --- a/system-test/fixtures/sample/src/index.ts +++ b/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/system-test/install.ts b/system-test/install.ts index 6dd1eaada..f61fe2364 100644 --- a/system-test/install.ts +++ b/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_bigtable_instance_admin_v2.ts b/test/gapic_bigtable_instance_admin_v2.ts index 5070b60bc..72c20de6d 100644 --- a/test/gapic_bigtable_instance_admin_v2.ts +++ b/test/gapic_bigtable_instance_admin_v2.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_bigtable_table_admin_v2.ts b/test/gapic_bigtable_table_admin_v2.ts index 4bfd0ef09..eb26b3825 100644 --- a/test/gapic_bigtable_table_admin_v2.ts +++ b/test/gapic_bigtable_table_admin_v2.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_bigtable_v2.ts b/test/gapic_bigtable_v2.ts index 24551c264..c422674b6 100644 --- a/test/gapic_bigtable_v2.ts +++ b/test/gapic_bigtable_v2.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.