@google-cloud/bigquery-storage-api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -0
- package/build/protos/google/cloud/bigquery/storage/v1/annotations.proto +28 -0
- package/build/protos/google/cloud/bigquery/storage/v1/arrow.proto +89 -0
- package/build/protos/google/cloud/bigquery/storage/v1/avro.proto +81 -0
- package/build/protos/google/cloud/bigquery/storage/v1/protobuf.proto +48 -0
- package/build/protos/google/cloud/bigquery/storage/v1/storage.proto +786 -0
- package/build/protos/google/cloud/bigquery/storage/v1/stream.proto +335 -0
- package/build/protos/google/cloud/bigquery/storage/v1/table.proto +200 -0
- package/build/protos/protos.d.ts +12699 -0
- package/build/protos/protos.js +1 -0
- package/build/protos/protos.json +1 -0
- package/build/src/index.d.ts +14 -0
- package/build/src/index.js +30 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v1/big_query_read_client.d.ts +424 -0
- package/build/src/v1/big_query_read_client.js +689 -0
- package/build/src/v1/big_query_read_client.js.map +1 -0
- package/build/src/v1/big_query_read_client_config.json +44 -0
- package/build/src/v1/big_query_read_proto_list.json +9 -0
- package/build/src/v1/big_query_write_client.d.ts +486 -0
- package/build/src/v1/big_query_write_client.js +835 -0
- package/build/src/v1/big_query_write_client.js.map +1 -0
- package/build/src/v1/big_query_write_client_config.json +73 -0
- package/build/src/v1/big_query_write_proto_list.json +9 -0
- package/build/src/v1/gapic_metadata.json +117 -0
- package/build/src/v1/index.d.ts +2 -0
- package/build/src/v1/index.js +25 -0
- package/build/src/v1/index.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"big_query_read_client.js","sourceRoot":"","sources":["../../../src/v1/big_query_read_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF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;QACpD,OAAO,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAAC,KAAK,CAAC,eAAe,CAAC;aACrE,MAAM,CAAC;IACZ,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;gBACzC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;gBACtC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AAlhCD,gDAkhCC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"interfaces": {
|
|
3
|
+
"google.cloud.bigquery.storage.v1.BigQueryRead": {
|
|
4
|
+
"retry_codes": {
|
|
5
|
+
"non_idempotent": [],
|
|
6
|
+
"idempotent": [
|
|
7
|
+
"DEADLINE_EXCEEDED",
|
|
8
|
+
"UNAVAILABLE"
|
|
9
|
+
],
|
|
10
|
+
"unavailable": [
|
|
11
|
+
"UNAVAILABLE"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"retry_params": {
|
|
15
|
+
"default": {
|
|
16
|
+
"initial_retry_delay_millis": 100,
|
|
17
|
+
"retry_delay_multiplier": 1.3,
|
|
18
|
+
"max_retry_delay_millis": 60000,
|
|
19
|
+
"initial_rpc_timeout_millis": 60000,
|
|
20
|
+
"rpc_timeout_multiplier": 1,
|
|
21
|
+
"max_rpc_timeout_millis": 60000,
|
|
22
|
+
"total_timeout_millis": 600000
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"methods": {
|
|
26
|
+
"CreateReadSession": {
|
|
27
|
+
"timeout_millis": 600000,
|
|
28
|
+
"retry_codes_name": "idempotent",
|
|
29
|
+
"retry_params_name": "default"
|
|
30
|
+
},
|
|
31
|
+
"ReadRows": {
|
|
32
|
+
"timeout_millis": 86400000,
|
|
33
|
+
"retry_codes_name": "unavailable",
|
|
34
|
+
"retry_params_name": "default"
|
|
35
|
+
},
|
|
36
|
+
"SplitReadStream": {
|
|
37
|
+
"timeout_millis": 600000,
|
|
38
|
+
"retry_codes_name": "idempotent",
|
|
39
|
+
"retry_params_name": "default"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[
|
|
2
|
+
"../../protos/google/cloud/bigquery/storage/v1/annotations.proto",
|
|
3
|
+
"../../protos/google/cloud/bigquery/storage/v1/arrow.proto",
|
|
4
|
+
"../../protos/google/cloud/bigquery/storage/v1/avro.proto",
|
|
5
|
+
"../../protos/google/cloud/bigquery/storage/v1/protobuf.proto",
|
|
6
|
+
"../../protos/google/cloud/bigquery/storage/v1/storage.proto",
|
|
7
|
+
"../../protos/google/cloud/bigquery/storage/v1/stream.proto",
|
|
8
|
+
"../../protos/google/cloud/bigquery/storage/v1/table.proto"
|
|
9
|
+
]
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import type * as gax from 'google-gax';
|
|
2
|
+
import type { Callback, CallOptions, Descriptors, ClientOptions } from 'google-gax';
|
|
3
|
+
import * as protos from '../../protos/protos';
|
|
4
|
+
/**
|
|
5
|
+
* BigQuery Write API.
|
|
6
|
+
*
|
|
7
|
+
* The Write API can be used to write data to BigQuery.
|
|
8
|
+
*
|
|
9
|
+
* For supplementary information about the Write API, see:
|
|
10
|
+
* https://cloud.google.com/bigquery/docs/write-api
|
|
11
|
+
* @class
|
|
12
|
+
* @memberof v1
|
|
13
|
+
*/
|
|
14
|
+
export declare class BigQueryWriteClient {
|
|
15
|
+
private _terminated;
|
|
16
|
+
private _opts;
|
|
17
|
+
private _providedCustomServicePath;
|
|
18
|
+
private _gaxModule;
|
|
19
|
+
private _gaxGrpc;
|
|
20
|
+
private _protos;
|
|
21
|
+
private _defaults;
|
|
22
|
+
private _universeDomain;
|
|
23
|
+
private _servicePath;
|
|
24
|
+
private _log;
|
|
25
|
+
auth: gax.GoogleAuth;
|
|
26
|
+
descriptors: Descriptors;
|
|
27
|
+
warn: (code: string, message: string, warnType?: string) => void;
|
|
28
|
+
innerApiCalls: {
|
|
29
|
+
[name: string]: Function;
|
|
30
|
+
};
|
|
31
|
+
pathTemplates: {
|
|
32
|
+
[name: string]: gax.PathTemplate;
|
|
33
|
+
};
|
|
34
|
+
bigQueryWriteStub?: Promise<{
|
|
35
|
+
[name: string]: Function;
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* Construct an instance of BigQueryWriteClient.
|
|
39
|
+
*
|
|
40
|
+
* @param {object} [options] - The configuration object.
|
|
41
|
+
* The options accepted by the constructor are described in detail
|
|
42
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
43
|
+
* The common options are:
|
|
44
|
+
* @param {object} [options.credentials] - Credentials object.
|
|
45
|
+
* @param {string} [options.credentials.client_email]
|
|
46
|
+
* @param {string} [options.credentials.private_key]
|
|
47
|
+
* @param {string} [options.email] - Account email address. Required when
|
|
48
|
+
* using a .pem or .p12 keyFilename.
|
|
49
|
+
* @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
|
|
50
|
+
* .p12 key downloaded from the Google Developers Console. If you provide
|
|
51
|
+
* a path to a JSON file, the projectId option below is not necessary.
|
|
52
|
+
* NOTE: .pem and .p12 require you to specify options.email as well.
|
|
53
|
+
* @param {number} [options.port] - The port on which to connect to
|
|
54
|
+
* the remote host.
|
|
55
|
+
* @param {string} [options.projectId] - The project ID from the Google
|
|
56
|
+
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
57
|
+
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
58
|
+
* app is running in an environment which supports
|
|
59
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
60
|
+
* your project ID will be detected automatically.
|
|
61
|
+
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
62
|
+
* API remote host.
|
|
63
|
+
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
64
|
+
* Follows the structure of {@link gapicConfig}.
|
|
65
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
66
|
+
* For more information, please check the
|
|
67
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
68
|
+
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
69
|
+
* need to avoid loading the default gRPC version and want to use the fallback
|
|
70
|
+
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
71
|
+
* ```
|
|
72
|
+
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
73
|
+
* const client = new BigQueryWriteClient({fallback: true}, gax);
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
77
|
+
/**
|
|
78
|
+
* Initialize the client.
|
|
79
|
+
* Performs asynchronous operations (such as authentication) and prepares the client.
|
|
80
|
+
* This function will be called automatically when any class method is called for the
|
|
81
|
+
* first time, but if you need to initialize it before calling an actual method,
|
|
82
|
+
* feel free to call initialize() directly.
|
|
83
|
+
*
|
|
84
|
+
* You can await on this method if you want to make sure the client is initialized.
|
|
85
|
+
*
|
|
86
|
+
* @returns {Promise} A promise that resolves to an authenticated service stub.
|
|
87
|
+
*/
|
|
88
|
+
initialize(): Promise<{
|
|
89
|
+
[name: string]: Function;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* The DNS address for this API service.
|
|
93
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
94
|
+
* @returns {string} The DNS address for this service.
|
|
95
|
+
*/
|
|
96
|
+
static get servicePath(): string;
|
|
97
|
+
/**
|
|
98
|
+
* The DNS address for this API service - same as servicePath.
|
|
99
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
100
|
+
* @returns {string} The DNS address for this service.
|
|
101
|
+
*/
|
|
102
|
+
static get apiEndpoint(): string;
|
|
103
|
+
/**
|
|
104
|
+
* The DNS address for this API service.
|
|
105
|
+
* @returns {string} The DNS address for this service.
|
|
106
|
+
*/
|
|
107
|
+
get apiEndpoint(): string;
|
|
108
|
+
get universeDomain(): string;
|
|
109
|
+
/**
|
|
110
|
+
* The port for this API service.
|
|
111
|
+
* @returns {number} The default port for this service.
|
|
112
|
+
*/
|
|
113
|
+
static get port(): number;
|
|
114
|
+
/**
|
|
115
|
+
* The scopes needed to make gRPC calls for every method defined
|
|
116
|
+
* in this service.
|
|
117
|
+
* @returns {string[]} List of default scopes.
|
|
118
|
+
*/
|
|
119
|
+
static get scopes(): string[];
|
|
120
|
+
getProjectId(): Promise<string>;
|
|
121
|
+
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
122
|
+
/**
|
|
123
|
+
* Creates a write stream to the given table.
|
|
124
|
+
* Additionally, every table has a special stream named '_default'
|
|
125
|
+
* to which data can be written. This stream doesn't need to be created using
|
|
126
|
+
* CreateWriteStream. It is a stream that can be used simultaneously by any
|
|
127
|
+
* number of clients. Data written to this stream is considered committed as
|
|
128
|
+
* soon as an acknowledgement is received.
|
|
129
|
+
*
|
|
130
|
+
* @param {Object} request
|
|
131
|
+
* The request object that will be sent.
|
|
132
|
+
* @param {string} request.parent
|
|
133
|
+
* Required. Reference to the table to which the stream belongs, in the format
|
|
134
|
+
* of `projects/{project}/datasets/{dataset}/tables/{table}`.
|
|
135
|
+
* @param {google.cloud.bigquery.storage.v1.WriteStream} request.writeStream
|
|
136
|
+
* Required. Stream to be created.
|
|
137
|
+
* @param {object} [options]
|
|
138
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
139
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
140
|
+
* The first element of the array is an object representing {@link protos.google.cloud.bigquery.storage.v1.WriteStream|WriteStream}.
|
|
141
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
142
|
+
* for more details and examples.
|
|
143
|
+
* @example <caption>include:samples/generated/v1/big_query_write.create_write_stream.js</caption>
|
|
144
|
+
* region_tag:bigquerystorage_v1_generated_BigQueryWrite_CreateWriteStream_async
|
|
145
|
+
*/
|
|
146
|
+
createWriteStream(request?: protos.google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest, options?: CallOptions): Promise<[
|
|
147
|
+
protos.google.cloud.bigquery.storage.v1.IWriteStream,
|
|
148
|
+
(protos.google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest | undefined),
|
|
149
|
+
{} | undefined
|
|
150
|
+
]>;
|
|
151
|
+
createWriteStream(request: protos.google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest, options: CallOptions, callback: Callback<protos.google.cloud.bigquery.storage.v1.IWriteStream, protos.google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest | null | undefined, {} | null | undefined>): void;
|
|
152
|
+
createWriteStream(request: protos.google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest, callback: Callback<protos.google.cloud.bigquery.storage.v1.IWriteStream, protos.google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest | null | undefined, {} | null | undefined>): void;
|
|
153
|
+
/**
|
|
154
|
+
* Gets information about a write stream.
|
|
155
|
+
*
|
|
156
|
+
* @param {Object} request
|
|
157
|
+
* The request object that will be sent.
|
|
158
|
+
* @param {string} request.name
|
|
159
|
+
* Required. Name of the stream to get, in the form of
|
|
160
|
+
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
|
|
161
|
+
* @param {google.cloud.bigquery.storage.v1.WriteStreamView} request.view
|
|
162
|
+
* Indicates whether to get full or partial view of the WriteStream. If
|
|
163
|
+
* not set, view returned will be basic.
|
|
164
|
+
* @param {object} [options]
|
|
165
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
166
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
167
|
+
* The first element of the array is an object representing {@link protos.google.cloud.bigquery.storage.v1.WriteStream|WriteStream}.
|
|
168
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
169
|
+
* for more details and examples.
|
|
170
|
+
* @example <caption>include:samples/generated/v1/big_query_write.get_write_stream.js</caption>
|
|
171
|
+
* region_tag:bigquerystorage_v1_generated_BigQueryWrite_GetWriteStream_async
|
|
172
|
+
*/
|
|
173
|
+
getWriteStream(request?: protos.google.cloud.bigquery.storage.v1.IGetWriteStreamRequest, options?: CallOptions): Promise<[
|
|
174
|
+
protos.google.cloud.bigquery.storage.v1.IWriteStream,
|
|
175
|
+
(protos.google.cloud.bigquery.storage.v1.IGetWriteStreamRequest | undefined),
|
|
176
|
+
{} | undefined
|
|
177
|
+
]>;
|
|
178
|
+
getWriteStream(request: protos.google.cloud.bigquery.storage.v1.IGetWriteStreamRequest, options: CallOptions, callback: Callback<protos.google.cloud.bigquery.storage.v1.IWriteStream, protos.google.cloud.bigquery.storage.v1.IGetWriteStreamRequest | null | undefined, {} | null | undefined>): void;
|
|
179
|
+
getWriteStream(request: protos.google.cloud.bigquery.storage.v1.IGetWriteStreamRequest, callback: Callback<protos.google.cloud.bigquery.storage.v1.IWriteStream, protos.google.cloud.bigquery.storage.v1.IGetWriteStreamRequest | null | undefined, {} | null | undefined>): void;
|
|
180
|
+
/**
|
|
181
|
+
* Finalize a write stream so that no new data can be appended to the
|
|
182
|
+
* stream. Finalize is not supported on the '_default' stream.
|
|
183
|
+
*
|
|
184
|
+
* @param {Object} request
|
|
185
|
+
* The request object that will be sent.
|
|
186
|
+
* @param {string} request.name
|
|
187
|
+
* Required. Name of the stream to finalize, in the form of
|
|
188
|
+
* `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
|
|
189
|
+
* @param {object} [options]
|
|
190
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
191
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
192
|
+
* The first element of the array is an object representing {@link protos.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse|FinalizeWriteStreamResponse}.
|
|
193
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
194
|
+
* for more details and examples.
|
|
195
|
+
* @example <caption>include:samples/generated/v1/big_query_write.finalize_write_stream.js</caption>
|
|
196
|
+
* region_tag:bigquerystorage_v1_generated_BigQueryWrite_FinalizeWriteStream_async
|
|
197
|
+
*/
|
|
198
|
+
finalizeWriteStream(request?: protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest, options?: CallOptions): Promise<[
|
|
199
|
+
protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamResponse,
|
|
200
|
+
(protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest | undefined),
|
|
201
|
+
{} | undefined
|
|
202
|
+
]>;
|
|
203
|
+
finalizeWriteStream(request: protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest, options: CallOptions, callback: Callback<protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamResponse, protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest | null | undefined, {} | null | undefined>): void;
|
|
204
|
+
finalizeWriteStream(request: protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest, callback: Callback<protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamResponse, protos.google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest | null | undefined, {} | null | undefined>): void;
|
|
205
|
+
/**
|
|
206
|
+
* Atomically commits a group of `PENDING` streams that belong to the same
|
|
207
|
+
* `parent` table.
|
|
208
|
+
*
|
|
209
|
+
* Streams must be finalized before commit and cannot be committed multiple
|
|
210
|
+
* times. Once a stream is committed, data in the stream becomes available
|
|
211
|
+
* for read operations.
|
|
212
|
+
*
|
|
213
|
+
* @param {Object} request
|
|
214
|
+
* The request object that will be sent.
|
|
215
|
+
* @param {string} request.parent
|
|
216
|
+
* Required. Parent table that all the streams should belong to, in the form
|
|
217
|
+
* of `projects/{project}/datasets/{dataset}/tables/{table}`.
|
|
218
|
+
* @param {string[]} request.writeStreams
|
|
219
|
+
* Required. The group of streams that will be committed atomically.
|
|
220
|
+
* @param {object} [options]
|
|
221
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
222
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
223
|
+
* The first element of the array is an object representing {@link protos.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse|BatchCommitWriteStreamsResponse}.
|
|
224
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
225
|
+
* for more details and examples.
|
|
226
|
+
* @example <caption>include:samples/generated/v1/big_query_write.batch_commit_write_streams.js</caption>
|
|
227
|
+
* region_tag:bigquerystorage_v1_generated_BigQueryWrite_BatchCommitWriteStreams_async
|
|
228
|
+
*/
|
|
229
|
+
batchCommitWriteStreams(request?: protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsRequest, options?: CallOptions): Promise<[
|
|
230
|
+
protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsResponse,
|
|
231
|
+
(protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsRequest | undefined),
|
|
232
|
+
{} | undefined
|
|
233
|
+
]>;
|
|
234
|
+
batchCommitWriteStreams(request: protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsRequest, options: CallOptions, callback: Callback<protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsResponse, protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsRequest | null | undefined, {} | null | undefined>): void;
|
|
235
|
+
batchCommitWriteStreams(request: protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsRequest, callback: Callback<protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsResponse, protos.google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsRequest | null | undefined, {} | null | undefined>): void;
|
|
236
|
+
/**
|
|
237
|
+
* Flushes rows to a BUFFERED stream.
|
|
238
|
+
*
|
|
239
|
+
* If users are appending rows to BUFFERED stream, flush operation is
|
|
240
|
+
* required in order for the rows to become available for reading. A
|
|
241
|
+
* Flush operation flushes up to any previously flushed offset in a BUFFERED
|
|
242
|
+
* stream, to the offset specified in the request.
|
|
243
|
+
*
|
|
244
|
+
* Flush is not supported on the _default stream, since it is not BUFFERED.
|
|
245
|
+
*
|
|
246
|
+
* @param {Object} request
|
|
247
|
+
* The request object that will be sent.
|
|
248
|
+
* @param {string} request.writeStream
|
|
249
|
+
* Required. The stream that is the target of the flush operation.
|
|
250
|
+
* @param {google.protobuf.Int64Value} request.offset
|
|
251
|
+
* Ending offset of the flush operation. Rows before this offset(including
|
|
252
|
+
* this offset) will be flushed.
|
|
253
|
+
* @param {object} [options]
|
|
254
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
255
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
256
|
+
* The first element of the array is an object representing {@link protos.google.cloud.bigquery.storage.v1.FlushRowsResponse|FlushRowsResponse}.
|
|
257
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
258
|
+
* for more details and examples.
|
|
259
|
+
* @example <caption>include:samples/generated/v1/big_query_write.flush_rows.js</caption>
|
|
260
|
+
* region_tag:bigquerystorage_v1_generated_BigQueryWrite_FlushRows_async
|
|
261
|
+
*/
|
|
262
|
+
flushRows(request?: protos.google.cloud.bigquery.storage.v1.IFlushRowsRequest, options?: CallOptions): Promise<[
|
|
263
|
+
protos.google.cloud.bigquery.storage.v1.IFlushRowsResponse,
|
|
264
|
+
protos.google.cloud.bigquery.storage.v1.IFlushRowsRequest | undefined,
|
|
265
|
+
{} | undefined
|
|
266
|
+
]>;
|
|
267
|
+
flushRows(request: protos.google.cloud.bigquery.storage.v1.IFlushRowsRequest, options: CallOptions, callback: Callback<protos.google.cloud.bigquery.storage.v1.IFlushRowsResponse, protos.google.cloud.bigquery.storage.v1.IFlushRowsRequest | null | undefined, {} | null | undefined>): void;
|
|
268
|
+
flushRows(request: protos.google.cloud.bigquery.storage.v1.IFlushRowsRequest, callback: Callback<protos.google.cloud.bigquery.storage.v1.IFlushRowsResponse, protos.google.cloud.bigquery.storage.v1.IFlushRowsRequest | null | undefined, {} | null | undefined>): void;
|
|
269
|
+
/**
|
|
270
|
+
* Appends data to the given stream.
|
|
271
|
+
*
|
|
272
|
+
* If `offset` is specified, the `offset` is checked against the end of
|
|
273
|
+
* stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
|
|
274
|
+
* attempt is made to append to an offset beyond the current end of the stream
|
|
275
|
+
* or `ALREADY_EXISTS` if user provides an `offset` that has already been
|
|
276
|
+
* written to. User can retry with adjusted offset within the same RPC
|
|
277
|
+
* connection. If `offset` is not specified, append happens at the end of the
|
|
278
|
+
* stream.
|
|
279
|
+
*
|
|
280
|
+
* The response contains an optional offset at which the append
|
|
281
|
+
* happened. No offset information will be returned for appends to a
|
|
282
|
+
* default stream.
|
|
283
|
+
*
|
|
284
|
+
* Responses are received in the same order in which requests are sent.
|
|
285
|
+
* There will be one response for each successful inserted request. Responses
|
|
286
|
+
* may optionally embed error information if the originating AppendRequest was
|
|
287
|
+
* not successfully processed.
|
|
288
|
+
*
|
|
289
|
+
* The specifics of when successfully appended data is made visible to the
|
|
290
|
+
* table are governed by the type of stream:
|
|
291
|
+
*
|
|
292
|
+
* * For COMMITTED streams (which includes the default stream), data is
|
|
293
|
+
* visible immediately upon successful append.
|
|
294
|
+
*
|
|
295
|
+
* * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
|
|
296
|
+
* rpc which advances a cursor to a newer offset in the stream.
|
|
297
|
+
*
|
|
298
|
+
* * For PENDING streams, data is not made visible until the stream itself is
|
|
299
|
+
* finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
|
|
300
|
+
* committed via the `BatchCommitWriteStreams` rpc.
|
|
301
|
+
*
|
|
302
|
+
* @param {object} [options]
|
|
303
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
304
|
+
* @returns {Stream}
|
|
305
|
+
* An object stream which is both readable and writable. It accepts objects
|
|
306
|
+
* representing {@link protos.google.cloud.bigquery.storage.v1.AppendRowsRequest|AppendRowsRequest} for write() method, and
|
|
307
|
+
* will emit objects representing {@link protos.google.cloud.bigquery.storage.v1.AppendRowsResponse|AppendRowsResponse} on 'data' event asynchronously.
|
|
308
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#bi-directional-streaming | documentation }
|
|
309
|
+
* for more details and examples.
|
|
310
|
+
* @example <caption>include:samples/generated/v1/big_query_write.append_rows.js</caption>
|
|
311
|
+
* region_tag:bigquerystorage_v1_generated_BigQueryWrite_AppendRows_async
|
|
312
|
+
*/
|
|
313
|
+
appendRows(options?: CallOptions): gax.CancellableStream;
|
|
314
|
+
/**
|
|
315
|
+
* Return a fully-qualified project resource name string.
|
|
316
|
+
*
|
|
317
|
+
* @param {string} project
|
|
318
|
+
* @returns {string} Resource name string.
|
|
319
|
+
*/
|
|
320
|
+
projectPath(project: string): string;
|
|
321
|
+
/**
|
|
322
|
+
* Parse the project from Project resource.
|
|
323
|
+
*
|
|
324
|
+
* @param {string} projectName
|
|
325
|
+
* A fully-qualified path representing Project resource.
|
|
326
|
+
* @returns {string} A string representing the project.
|
|
327
|
+
*/
|
|
328
|
+
matchProjectFromProjectName(projectName: string): string | number;
|
|
329
|
+
/**
|
|
330
|
+
* Return a fully-qualified readSession resource name string.
|
|
331
|
+
*
|
|
332
|
+
* @param {string} project
|
|
333
|
+
* @param {string} location
|
|
334
|
+
* @param {string} session
|
|
335
|
+
* @returns {string} Resource name string.
|
|
336
|
+
*/
|
|
337
|
+
readSessionPath(project: string, location: string, session: string): string;
|
|
338
|
+
/**
|
|
339
|
+
* Parse the project from ReadSession resource.
|
|
340
|
+
*
|
|
341
|
+
* @param {string} readSessionName
|
|
342
|
+
* A fully-qualified path representing ReadSession resource.
|
|
343
|
+
* @returns {string} A string representing the project.
|
|
344
|
+
*/
|
|
345
|
+
matchProjectFromReadSessionName(readSessionName: string): string | number;
|
|
346
|
+
/**
|
|
347
|
+
* Parse the location from ReadSession resource.
|
|
348
|
+
*
|
|
349
|
+
* @param {string} readSessionName
|
|
350
|
+
* A fully-qualified path representing ReadSession resource.
|
|
351
|
+
* @returns {string} A string representing the location.
|
|
352
|
+
*/
|
|
353
|
+
matchLocationFromReadSessionName(readSessionName: string): string | number;
|
|
354
|
+
/**
|
|
355
|
+
* Parse the session from ReadSession resource.
|
|
356
|
+
*
|
|
357
|
+
* @param {string} readSessionName
|
|
358
|
+
* A fully-qualified path representing ReadSession resource.
|
|
359
|
+
* @returns {string} A string representing the session.
|
|
360
|
+
*/
|
|
361
|
+
matchSessionFromReadSessionName(readSessionName: string): string | number;
|
|
362
|
+
/**
|
|
363
|
+
* Return a fully-qualified readStream resource name string.
|
|
364
|
+
*
|
|
365
|
+
* @param {string} project
|
|
366
|
+
* @param {string} location
|
|
367
|
+
* @param {string} session
|
|
368
|
+
* @param {string} stream
|
|
369
|
+
* @returns {string} Resource name string.
|
|
370
|
+
*/
|
|
371
|
+
readStreamPath(project: string, location: string, session: string, stream: string): string;
|
|
372
|
+
/**
|
|
373
|
+
* Parse the project from ReadStream resource.
|
|
374
|
+
*
|
|
375
|
+
* @param {string} readStreamName
|
|
376
|
+
* A fully-qualified path representing ReadStream resource.
|
|
377
|
+
* @returns {string} A string representing the project.
|
|
378
|
+
*/
|
|
379
|
+
matchProjectFromReadStreamName(readStreamName: string): string | number;
|
|
380
|
+
/**
|
|
381
|
+
* Parse the location from ReadStream resource.
|
|
382
|
+
*
|
|
383
|
+
* @param {string} readStreamName
|
|
384
|
+
* A fully-qualified path representing ReadStream resource.
|
|
385
|
+
* @returns {string} A string representing the location.
|
|
386
|
+
*/
|
|
387
|
+
matchLocationFromReadStreamName(readStreamName: string): string | number;
|
|
388
|
+
/**
|
|
389
|
+
* Parse the session from ReadStream resource.
|
|
390
|
+
*
|
|
391
|
+
* @param {string} readStreamName
|
|
392
|
+
* A fully-qualified path representing ReadStream resource.
|
|
393
|
+
* @returns {string} A string representing the session.
|
|
394
|
+
*/
|
|
395
|
+
matchSessionFromReadStreamName(readStreamName: string): string | number;
|
|
396
|
+
/**
|
|
397
|
+
* Parse the stream from ReadStream resource.
|
|
398
|
+
*
|
|
399
|
+
* @param {string} readStreamName
|
|
400
|
+
* A fully-qualified path representing ReadStream resource.
|
|
401
|
+
* @returns {string} A string representing the stream.
|
|
402
|
+
*/
|
|
403
|
+
matchStreamFromReadStreamName(readStreamName: string): string | number;
|
|
404
|
+
/**
|
|
405
|
+
* Return a fully-qualified table resource name string.
|
|
406
|
+
*
|
|
407
|
+
* @param {string} project
|
|
408
|
+
* @param {string} dataset
|
|
409
|
+
* @param {string} table
|
|
410
|
+
* @returns {string} Resource name string.
|
|
411
|
+
*/
|
|
412
|
+
tablePath(project: string, dataset: string, table: string): string;
|
|
413
|
+
/**
|
|
414
|
+
* Parse the project from Table resource.
|
|
415
|
+
*
|
|
416
|
+
* @param {string} tableName
|
|
417
|
+
* A fully-qualified path representing Table resource.
|
|
418
|
+
* @returns {string} A string representing the project.
|
|
419
|
+
*/
|
|
420
|
+
matchProjectFromTableName(tableName: string): string | number;
|
|
421
|
+
/**
|
|
422
|
+
* Parse the dataset from Table resource.
|
|
423
|
+
*
|
|
424
|
+
* @param {string} tableName
|
|
425
|
+
* A fully-qualified path representing Table resource.
|
|
426
|
+
* @returns {string} A string representing the dataset.
|
|
427
|
+
*/
|
|
428
|
+
matchDatasetFromTableName(tableName: string): string | number;
|
|
429
|
+
/**
|
|
430
|
+
* Parse the table from Table resource.
|
|
431
|
+
*
|
|
432
|
+
* @param {string} tableName
|
|
433
|
+
* A fully-qualified path representing Table resource.
|
|
434
|
+
* @returns {string} A string representing the table.
|
|
435
|
+
*/
|
|
436
|
+
matchTableFromTableName(tableName: string): string | number;
|
|
437
|
+
/**
|
|
438
|
+
* Return a fully-qualified writeStream resource name string.
|
|
439
|
+
*
|
|
440
|
+
* @param {string} project
|
|
441
|
+
* @param {string} dataset
|
|
442
|
+
* @param {string} table
|
|
443
|
+
* @param {string} stream
|
|
444
|
+
* @returns {string} Resource name string.
|
|
445
|
+
*/
|
|
446
|
+
writeStreamPath(project: string, dataset: string, table: string, stream: string): string;
|
|
447
|
+
/**
|
|
448
|
+
* Parse the project from WriteStream resource.
|
|
449
|
+
*
|
|
450
|
+
* @param {string} writeStreamName
|
|
451
|
+
* A fully-qualified path representing WriteStream resource.
|
|
452
|
+
* @returns {string} A string representing the project.
|
|
453
|
+
*/
|
|
454
|
+
matchProjectFromWriteStreamName(writeStreamName: string): string | number;
|
|
455
|
+
/**
|
|
456
|
+
* Parse the dataset from WriteStream resource.
|
|
457
|
+
*
|
|
458
|
+
* @param {string} writeStreamName
|
|
459
|
+
* A fully-qualified path representing WriteStream resource.
|
|
460
|
+
* @returns {string} A string representing the dataset.
|
|
461
|
+
*/
|
|
462
|
+
matchDatasetFromWriteStreamName(writeStreamName: string): string | number;
|
|
463
|
+
/**
|
|
464
|
+
* Parse the table from WriteStream resource.
|
|
465
|
+
*
|
|
466
|
+
* @param {string} writeStreamName
|
|
467
|
+
* A fully-qualified path representing WriteStream resource.
|
|
468
|
+
* @returns {string} A string representing the table.
|
|
469
|
+
*/
|
|
470
|
+
matchTableFromWriteStreamName(writeStreamName: string): string | number;
|
|
471
|
+
/**
|
|
472
|
+
* Parse the stream from WriteStream resource.
|
|
473
|
+
*
|
|
474
|
+
* @param {string} writeStreamName
|
|
475
|
+
* A fully-qualified path representing WriteStream resource.
|
|
476
|
+
* @returns {string} A string representing the stream.
|
|
477
|
+
*/
|
|
478
|
+
matchStreamFromWriteStreamName(writeStreamName: string): string | number;
|
|
479
|
+
/**
|
|
480
|
+
* Terminate the gRPC channel and close the client.
|
|
481
|
+
*
|
|
482
|
+
* The client will no longer be usable and all future behavior is undefined.
|
|
483
|
+
* @returns {Promise} A promise that resolves when the client is closed.
|
|
484
|
+
*/
|
|
485
|
+
close(): Promise<void>;
|
|
486
|
+
}
|