@girs/arrowflight-23.0 23.0.1-4.0.0-beta.41
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 +85 -0
- package/arrowflight-23.0-ambient.d.ts +9 -0
- package/arrowflight-23.0-ambient.js +2 -0
- package/arrowflight-23.0-import.d.ts +9 -0
- package/arrowflight-23.0-import.js +3 -0
- package/arrowflight-23.0.d.ts +2969 -0
- package/arrowflight-23.0.js +5 -0
- package/index.d.ts +15 -0
- package/index.js +5 -0
- package/package.json +56 -0
- package/tsconfig.json +45 -0
- package/typedoc.json +9 -0
|
@@ -0,0 +1,2969 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*
|
|
7
|
+
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import '@girs/gjs';
|
|
11
|
+
|
|
12
|
+
// Module dependencies
|
|
13
|
+
import type Arrow from '@girs/arrow-23.0';
|
|
14
|
+
import type Gio from '@girs/gio-2.0';
|
|
15
|
+
import type GObject from '@girs/gobject-2.0';
|
|
16
|
+
import type GLib from '@girs/glib-2.0';
|
|
17
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
18
|
+
|
|
19
|
+
export namespace ArrowFlight {
|
|
20
|
+
/**
|
|
21
|
+
* ArrowFlight-23.0
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The major version.
|
|
26
|
+
* @since 17.0.0
|
|
27
|
+
*/
|
|
28
|
+
const VERSION_MAJOR: number;
|
|
29
|
+
/**
|
|
30
|
+
* The micro version.
|
|
31
|
+
* @since 17.0.0
|
|
32
|
+
*/
|
|
33
|
+
const VERSION_MICRO: number;
|
|
34
|
+
/**
|
|
35
|
+
* The minor version.
|
|
36
|
+
* @since 17.0.0
|
|
37
|
+
*/
|
|
38
|
+
const VERSION_MINOR: number;
|
|
39
|
+
/**
|
|
40
|
+
* The version tag. Normally, it's an empty string. It's "SNAPSHOT"
|
|
41
|
+
* for snapshot version.
|
|
42
|
+
* @since 17.0.0
|
|
43
|
+
*/
|
|
44
|
+
const VERSION_TAG: string;
|
|
45
|
+
/**
|
|
46
|
+
* @gir-type Callback
|
|
47
|
+
*/
|
|
48
|
+
interface HeaderFunc {
|
|
49
|
+
(name: string, value: string): void;
|
|
50
|
+
}
|
|
51
|
+
namespace CallOptions {
|
|
52
|
+
// Signal signatures
|
|
53
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
54
|
+
'notify::timeout': (pspec: GObject.ParamSpec) => void;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Constructor properties interface
|
|
58
|
+
|
|
59
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
60
|
+
timeout: number;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @gir-type Class
|
|
66
|
+
*/
|
|
67
|
+
class CallOptions extends GObject.Object {
|
|
68
|
+
static $gtype: GObject.GType<CallOptions>;
|
|
69
|
+
|
|
70
|
+
// Properties
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* An optional timeout for this call. Negative durations mean an
|
|
74
|
+
* implementation-defined default behavior will be used
|
|
75
|
+
* instead. This is the default value.
|
|
76
|
+
* @since 18.0.0
|
|
77
|
+
*/
|
|
78
|
+
get timeout(): number;
|
|
79
|
+
set timeout(val: number);
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Compile-time signal type information.
|
|
83
|
+
*
|
|
84
|
+
* This instance property is generated only for TypeScript type checking.
|
|
85
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
$signals: CallOptions.SignalSignatures;
|
|
89
|
+
|
|
90
|
+
// Constructors
|
|
91
|
+
|
|
92
|
+
constructor(properties?: Partial<CallOptions.ConstructorProps>, ...args: any[]);
|
|
93
|
+
|
|
94
|
+
_init(...args: any[]): void;
|
|
95
|
+
|
|
96
|
+
static ['new'](): CallOptions;
|
|
97
|
+
|
|
98
|
+
// Signals
|
|
99
|
+
|
|
100
|
+
/** @signal */
|
|
101
|
+
connect<K extends keyof CallOptions.SignalSignatures>(
|
|
102
|
+
signal: K,
|
|
103
|
+
callback: GObject.SignalCallback<this, CallOptions.SignalSignatures[K]>,
|
|
104
|
+
): number;
|
|
105
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
106
|
+
/** @signal */
|
|
107
|
+
connect_after<K extends keyof CallOptions.SignalSignatures>(
|
|
108
|
+
signal: K,
|
|
109
|
+
callback: GObject.SignalCallback<this, CallOptions.SignalSignatures[K]>,
|
|
110
|
+
): number;
|
|
111
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
112
|
+
/** @signal */
|
|
113
|
+
emit<K extends keyof CallOptions.SignalSignatures>(
|
|
114
|
+
signal: K,
|
|
115
|
+
...args: GObject.GjsParameters<CallOptions.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
116
|
+
): void;
|
|
117
|
+
emit(signal: string, ...args: any[]): void;
|
|
118
|
+
|
|
119
|
+
// Methods
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Add a header.
|
|
123
|
+
* @param name A header name.
|
|
124
|
+
* @param value A header value.
|
|
125
|
+
*/
|
|
126
|
+
add_header(name: string, value: string): void;
|
|
127
|
+
/**
|
|
128
|
+
* Clear all headers.
|
|
129
|
+
*/
|
|
130
|
+
clear_headers(): void;
|
|
131
|
+
/**
|
|
132
|
+
* Iterates over all headers in the options.
|
|
133
|
+
* @param func The user's callback function.
|
|
134
|
+
*/
|
|
135
|
+
foreach_header(func: HeaderFunc): void;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
namespace Client {
|
|
139
|
+
// Signal signatures
|
|
140
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
141
|
+
'notify::client': (pspec: GObject.ParamSpec) => void;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Constructor properties interface
|
|
145
|
+
|
|
146
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
147
|
+
client: any;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @gir-type Class
|
|
153
|
+
*/
|
|
154
|
+
class Client extends GObject.Object {
|
|
155
|
+
static $gtype: GObject.GType<Client>;
|
|
156
|
+
|
|
157
|
+
// Properties
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @construct-only
|
|
161
|
+
*/
|
|
162
|
+
set client(val: any);
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Compile-time signal type information.
|
|
166
|
+
*
|
|
167
|
+
* This instance property is generated only for TypeScript type checking.
|
|
168
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
$signals: Client.SignalSignatures;
|
|
172
|
+
|
|
173
|
+
// Constructors
|
|
174
|
+
|
|
175
|
+
constructor(properties?: Partial<Client.ConstructorProps>, ...args: any[]);
|
|
176
|
+
|
|
177
|
+
_init(...args: any[]): void;
|
|
178
|
+
|
|
179
|
+
static ['new'](location: Location, options?: ClientOptions | null): Client;
|
|
180
|
+
|
|
181
|
+
// Signals
|
|
182
|
+
|
|
183
|
+
/** @signal */
|
|
184
|
+
connect<K extends keyof Client.SignalSignatures>(
|
|
185
|
+
signal: K,
|
|
186
|
+
callback: GObject.SignalCallback<this, Client.SignalSignatures[K]>,
|
|
187
|
+
): number;
|
|
188
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
189
|
+
/** @signal */
|
|
190
|
+
connect_after<K extends keyof Client.SignalSignatures>(
|
|
191
|
+
signal: K,
|
|
192
|
+
callback: GObject.SignalCallback<this, Client.SignalSignatures[K]>,
|
|
193
|
+
): number;
|
|
194
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
195
|
+
/** @signal */
|
|
196
|
+
emit<K extends keyof Client.SignalSignatures>(
|
|
197
|
+
signal: K,
|
|
198
|
+
...args: GObject.GjsParameters<Client.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
199
|
+
): void;
|
|
200
|
+
emit(signal: string, ...args: any[]): void;
|
|
201
|
+
|
|
202
|
+
// Methods
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Authenticates to the server using basic HTTP style authentication.
|
|
206
|
+
* @param user User name to be used.
|
|
207
|
+
* @param password Password to be used.
|
|
208
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
209
|
+
* @returns `true` on success, `false` if there was an error.
|
|
210
|
+
*/
|
|
211
|
+
authenticate_basic_token(
|
|
212
|
+
user: string,
|
|
213
|
+
password: string,
|
|
214
|
+
options: CallOptions | null,
|
|
215
|
+
): [boolean, string, string];
|
|
216
|
+
/**
|
|
217
|
+
* @returns `true` on success, `false` if there was an error.
|
|
218
|
+
*/
|
|
219
|
+
close(): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
222
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
223
|
+
* @returns The {@link ArrowFlight.StreamReader} to read record batched from the server on success, `null` on error.
|
|
224
|
+
*/
|
|
225
|
+
do_get(ticket: Ticket, options?: CallOptions | null): StreamReader | null;
|
|
226
|
+
/**
|
|
227
|
+
* Upload data to a Flight described by the given descriptor. The
|
|
228
|
+
* caller must call `garrow_record_batch_writer_close()` on the
|
|
229
|
+
* returned stream once they are done writing.
|
|
230
|
+
*
|
|
231
|
+
* The reader and writer are linked; closing the writer will also
|
|
232
|
+
* close the reader. Use `garrow_flight_stream_writer_done_writing()` to
|
|
233
|
+
* only close the write side of the channel.
|
|
234
|
+
* @param descriptor A {@link ArrowFlight.Descriptor}.
|
|
235
|
+
* @param schema A {@link Arrow.Schema}.
|
|
236
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
237
|
+
* @returns The `GAFlighDoPutResult` holding a reader and a writer on success, `null` on error.
|
|
238
|
+
*/
|
|
239
|
+
do_put(descriptor: Descriptor, schema: Arrow.Schema, options?: CallOptions | null): DoPutResult | null;
|
|
240
|
+
/**
|
|
241
|
+
* @param descriptor A {@link ArrowFlight.Descriptor} to be processed.
|
|
242
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
243
|
+
* @returns The returned {@link ArrowFlight.Info} on success, `null` on error.
|
|
244
|
+
*/
|
|
245
|
+
get_flight_info(descriptor: Descriptor, options?: CallOptions | null): Info | null;
|
|
246
|
+
/**
|
|
247
|
+
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
248
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
249
|
+
* @returns The returned list of {@link ArrowFlight.Info} on success, `null` on error.
|
|
250
|
+
*/
|
|
251
|
+
list_flights(criteria?: Criteria | null, options?: CallOptions | null): Info[] | null;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
namespace ClientOptions {
|
|
255
|
+
// Signal signatures
|
|
256
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
257
|
+
'notify::certificate-chain': (pspec: GObject.ParamSpec) => void;
|
|
258
|
+
'notify::disable-server-verification': (pspec: GObject.ParamSpec) => void;
|
|
259
|
+
'notify::override-host-name': (pspec: GObject.ParamSpec) => void;
|
|
260
|
+
'notify::private-key': (pspec: GObject.ParamSpec) => void;
|
|
261
|
+
'notify::tls-root-certificates': (pspec: GObject.ParamSpec) => void;
|
|
262
|
+
'notify::write-size-limit-bytes': (pspec: GObject.ParamSpec) => void;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// Constructor properties interface
|
|
266
|
+
|
|
267
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
268
|
+
certificate_chain: string;
|
|
269
|
+
certificateChain: string;
|
|
270
|
+
disable_server_verification: boolean;
|
|
271
|
+
disableServerVerification: boolean;
|
|
272
|
+
override_host_name: string;
|
|
273
|
+
overrideHostName: string;
|
|
274
|
+
private_key: string;
|
|
275
|
+
privateKey: string;
|
|
276
|
+
tls_root_certificates: string;
|
|
277
|
+
tlsRootCertificates: string;
|
|
278
|
+
write_size_limit_bytes: number;
|
|
279
|
+
writeSizeLimitBytes: number;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* @gir-type Class
|
|
285
|
+
*/
|
|
286
|
+
class ClientOptions extends GObject.Object {
|
|
287
|
+
static $gtype: GObject.GType<ClientOptions>;
|
|
288
|
+
|
|
289
|
+
// Properties
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* The client certificate to use if using Mutual TLS.
|
|
293
|
+
* @since 14.0.0
|
|
294
|
+
*/
|
|
295
|
+
get certificate_chain(): string;
|
|
296
|
+
set certificate_chain(val: string);
|
|
297
|
+
/**
|
|
298
|
+
* The client certificate to use if using Mutual TLS.
|
|
299
|
+
* @since 14.0.0
|
|
300
|
+
*/
|
|
301
|
+
get certificateChain(): string;
|
|
302
|
+
set certificateChain(val: string);
|
|
303
|
+
/**
|
|
304
|
+
* Whether use TLS without validating the server certificate. Use
|
|
305
|
+
* with caution.
|
|
306
|
+
* @since 9.0.0
|
|
307
|
+
*/
|
|
308
|
+
get disable_server_verification(): boolean;
|
|
309
|
+
set disable_server_verification(val: boolean);
|
|
310
|
+
/**
|
|
311
|
+
* Whether use TLS without validating the server certificate. Use
|
|
312
|
+
* with caution.
|
|
313
|
+
* @since 9.0.0
|
|
314
|
+
*/
|
|
315
|
+
get disableServerVerification(): boolean;
|
|
316
|
+
set disableServerVerification(val: boolean);
|
|
317
|
+
/**
|
|
318
|
+
* Override the host name checked by TLS. Use with caution.
|
|
319
|
+
* @since 14.0.0
|
|
320
|
+
*/
|
|
321
|
+
get override_host_name(): string;
|
|
322
|
+
set override_host_name(val: string);
|
|
323
|
+
/**
|
|
324
|
+
* Override the host name checked by TLS. Use with caution.
|
|
325
|
+
* @since 14.0.0
|
|
326
|
+
*/
|
|
327
|
+
get overrideHostName(): string;
|
|
328
|
+
set overrideHostName(val: string);
|
|
329
|
+
/**
|
|
330
|
+
* The private key associated with the client certificate for Mutual
|
|
331
|
+
* TLS.
|
|
332
|
+
* @since 14.0.0
|
|
333
|
+
*/
|
|
334
|
+
get private_key(): string;
|
|
335
|
+
set private_key(val: string);
|
|
336
|
+
/**
|
|
337
|
+
* The private key associated with the client certificate for Mutual
|
|
338
|
+
* TLS.
|
|
339
|
+
* @since 14.0.0
|
|
340
|
+
*/
|
|
341
|
+
get privateKey(): string;
|
|
342
|
+
set privateKey(val: string);
|
|
343
|
+
/**
|
|
344
|
+
* Root certificates to use for validating server certificates.
|
|
345
|
+
* @since 14.0.0
|
|
346
|
+
*/
|
|
347
|
+
get tls_root_certificates(): string;
|
|
348
|
+
set tls_root_certificates(val: string);
|
|
349
|
+
/**
|
|
350
|
+
* Root certificates to use for validating server certificates.
|
|
351
|
+
* @since 14.0.0
|
|
352
|
+
*/
|
|
353
|
+
get tlsRootCertificates(): string;
|
|
354
|
+
set tlsRootCertificates(val: string);
|
|
355
|
+
/**
|
|
356
|
+
* A soft limit on the number of bytes to write in a single batch
|
|
357
|
+
* when sending Arrow data to a server.
|
|
358
|
+
*
|
|
359
|
+
* Used to help limit server memory consumption. Only enabled if
|
|
360
|
+
* positive. When enabled, `GARROW_ERROR_IO` may be yielded.
|
|
361
|
+
* @since 14.0.0
|
|
362
|
+
*/
|
|
363
|
+
get write_size_limit_bytes(): number;
|
|
364
|
+
set write_size_limit_bytes(val: number);
|
|
365
|
+
/**
|
|
366
|
+
* A soft limit on the number of bytes to write in a single batch
|
|
367
|
+
* when sending Arrow data to a server.
|
|
368
|
+
*
|
|
369
|
+
* Used to help limit server memory consumption. Only enabled if
|
|
370
|
+
* positive. When enabled, `GARROW_ERROR_IO` may be yielded.
|
|
371
|
+
* @since 14.0.0
|
|
372
|
+
*/
|
|
373
|
+
get writeSizeLimitBytes(): number;
|
|
374
|
+
set writeSizeLimitBytes(val: number);
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Compile-time signal type information.
|
|
378
|
+
*
|
|
379
|
+
* This instance property is generated only for TypeScript type checking.
|
|
380
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
381
|
+
* @internal
|
|
382
|
+
*/
|
|
383
|
+
$signals: ClientOptions.SignalSignatures;
|
|
384
|
+
|
|
385
|
+
// Constructors
|
|
386
|
+
|
|
387
|
+
constructor(properties?: Partial<ClientOptions.ConstructorProps>, ...args: any[]);
|
|
388
|
+
|
|
389
|
+
_init(...args: any[]): void;
|
|
390
|
+
|
|
391
|
+
static ['new'](): ClientOptions;
|
|
392
|
+
|
|
393
|
+
// Signals
|
|
394
|
+
|
|
395
|
+
/** @signal */
|
|
396
|
+
connect<K extends keyof ClientOptions.SignalSignatures>(
|
|
397
|
+
signal: K,
|
|
398
|
+
callback: GObject.SignalCallback<this, ClientOptions.SignalSignatures[K]>,
|
|
399
|
+
): number;
|
|
400
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
401
|
+
/** @signal */
|
|
402
|
+
connect_after<K extends keyof ClientOptions.SignalSignatures>(
|
|
403
|
+
signal: K,
|
|
404
|
+
callback: GObject.SignalCallback<this, ClientOptions.SignalSignatures[K]>,
|
|
405
|
+
): number;
|
|
406
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
407
|
+
/** @signal */
|
|
408
|
+
emit<K extends keyof ClientOptions.SignalSignatures>(
|
|
409
|
+
signal: K,
|
|
410
|
+
...args: GObject.GjsParameters<ClientOptions.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
411
|
+
): void;
|
|
412
|
+
emit(signal: string, ...args: any[]): void;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
namespace CommandDescriptor {
|
|
416
|
+
// Signal signatures
|
|
417
|
+
interface SignalSignatures extends Descriptor.SignalSignatures {
|
|
418
|
+
'notify::descriptor': (pspec: GObject.ParamSpec) => void;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// Constructor properties interface
|
|
422
|
+
|
|
423
|
+
interface ConstructorProps extends Descriptor.ConstructorProps {}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @gir-type Class
|
|
428
|
+
*/
|
|
429
|
+
class CommandDescriptor extends Descriptor {
|
|
430
|
+
static $gtype: GObject.GType<CommandDescriptor>;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Compile-time signal type information.
|
|
434
|
+
*
|
|
435
|
+
* This instance property is generated only for TypeScript type checking.
|
|
436
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
437
|
+
* @internal
|
|
438
|
+
*/
|
|
439
|
+
$signals: CommandDescriptor.SignalSignatures;
|
|
440
|
+
|
|
441
|
+
// Constructors
|
|
442
|
+
|
|
443
|
+
constructor(properties?: Partial<CommandDescriptor.ConstructorProps>, ...args: any[]);
|
|
444
|
+
|
|
445
|
+
_init(...args: any[]): void;
|
|
446
|
+
|
|
447
|
+
static ['new'](command: string): CommandDescriptor;
|
|
448
|
+
|
|
449
|
+
// Signals
|
|
450
|
+
|
|
451
|
+
/** @signal */
|
|
452
|
+
connect<K extends keyof CommandDescriptor.SignalSignatures>(
|
|
453
|
+
signal: K,
|
|
454
|
+
callback: GObject.SignalCallback<this, CommandDescriptor.SignalSignatures[K]>,
|
|
455
|
+
): number;
|
|
456
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
457
|
+
/** @signal */
|
|
458
|
+
connect_after<K extends keyof CommandDescriptor.SignalSignatures>(
|
|
459
|
+
signal: K,
|
|
460
|
+
callback: GObject.SignalCallback<this, CommandDescriptor.SignalSignatures[K]>,
|
|
461
|
+
): number;
|
|
462
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
463
|
+
/** @signal */
|
|
464
|
+
emit<K extends keyof CommandDescriptor.SignalSignatures>(
|
|
465
|
+
signal: K,
|
|
466
|
+
...args: GObject.GjsParameters<CommandDescriptor.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
467
|
+
): void;
|
|
468
|
+
emit(signal: string, ...args: any[]): void;
|
|
469
|
+
|
|
470
|
+
// Methods
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @returns The opaque value used to express a command. It should be freed with `g_free()` when no longer needed.
|
|
474
|
+
*/
|
|
475
|
+
get_command(): string;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
namespace Criteria {
|
|
479
|
+
// Signal signatures
|
|
480
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
481
|
+
'notify::expression': (pspec: GObject.ParamSpec) => void;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// Constructor properties interface
|
|
485
|
+
|
|
486
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
487
|
+
expression: GLib.Bytes;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* @gir-type Class
|
|
493
|
+
*/
|
|
494
|
+
class Criteria extends GObject.Object {
|
|
495
|
+
static $gtype: GObject.GType<Criteria>;
|
|
496
|
+
|
|
497
|
+
// Properties
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Opaque criteria expression, dependent on server implementation.
|
|
501
|
+
* @since 5.0.0
|
|
502
|
+
*/
|
|
503
|
+
get expression(): GLib.Bytes;
|
|
504
|
+
set expression(val: GLib.Bytes);
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Compile-time signal type information.
|
|
508
|
+
*
|
|
509
|
+
* This instance property is generated only for TypeScript type checking.
|
|
510
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
511
|
+
* @internal
|
|
512
|
+
*/
|
|
513
|
+
$signals: Criteria.SignalSignatures;
|
|
514
|
+
|
|
515
|
+
// Constructors
|
|
516
|
+
|
|
517
|
+
constructor(properties?: Partial<Criteria.ConstructorProps>, ...args: any[]);
|
|
518
|
+
|
|
519
|
+
_init(...args: any[]): void;
|
|
520
|
+
|
|
521
|
+
static ['new'](expression: GLib.Bytes | Uint8Array): Criteria;
|
|
522
|
+
|
|
523
|
+
// Signals
|
|
524
|
+
|
|
525
|
+
/** @signal */
|
|
526
|
+
connect<K extends keyof Criteria.SignalSignatures>(
|
|
527
|
+
signal: K,
|
|
528
|
+
callback: GObject.SignalCallback<this, Criteria.SignalSignatures[K]>,
|
|
529
|
+
): number;
|
|
530
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
531
|
+
/** @signal */
|
|
532
|
+
connect_after<K extends keyof Criteria.SignalSignatures>(
|
|
533
|
+
signal: K,
|
|
534
|
+
callback: GObject.SignalCallback<this, Criteria.SignalSignatures[K]>,
|
|
535
|
+
): number;
|
|
536
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
537
|
+
/** @signal */
|
|
538
|
+
emit<K extends keyof Criteria.SignalSignatures>(
|
|
539
|
+
signal: K,
|
|
540
|
+
...args: GObject.GjsParameters<Criteria.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
541
|
+
): void;
|
|
542
|
+
emit(signal: string, ...args: any[]): void;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
namespace DataStream {
|
|
546
|
+
// Signal signatures
|
|
547
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
548
|
+
'notify::stream': (pspec: GObject.ParamSpec) => void;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// Constructor properties interface
|
|
552
|
+
|
|
553
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
554
|
+
stream: any;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* @gir-type Class
|
|
560
|
+
*/
|
|
561
|
+
class DataStream extends GObject.Object {
|
|
562
|
+
static $gtype: GObject.GType<DataStream>;
|
|
563
|
+
|
|
564
|
+
// Properties
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* @construct-only
|
|
568
|
+
*/
|
|
569
|
+
set stream(val: any);
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Compile-time signal type information.
|
|
573
|
+
*
|
|
574
|
+
* This instance property is generated only for TypeScript type checking.
|
|
575
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
576
|
+
* @internal
|
|
577
|
+
*/
|
|
578
|
+
$signals: DataStream.SignalSignatures;
|
|
579
|
+
|
|
580
|
+
// Constructors
|
|
581
|
+
|
|
582
|
+
constructor(properties?: Partial<DataStream.ConstructorProps>, ...args: any[]);
|
|
583
|
+
|
|
584
|
+
_init(...args: any[]): void;
|
|
585
|
+
|
|
586
|
+
// Signals
|
|
587
|
+
|
|
588
|
+
/** @signal */
|
|
589
|
+
connect<K extends keyof DataStream.SignalSignatures>(
|
|
590
|
+
signal: K,
|
|
591
|
+
callback: GObject.SignalCallback<this, DataStream.SignalSignatures[K]>,
|
|
592
|
+
): number;
|
|
593
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
594
|
+
/** @signal */
|
|
595
|
+
connect_after<K extends keyof DataStream.SignalSignatures>(
|
|
596
|
+
signal: K,
|
|
597
|
+
callback: GObject.SignalCallback<this, DataStream.SignalSignatures[K]>,
|
|
598
|
+
): number;
|
|
599
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
600
|
+
/** @signal */
|
|
601
|
+
emit<K extends keyof DataStream.SignalSignatures>(
|
|
602
|
+
signal: K,
|
|
603
|
+
...args: GObject.GjsParameters<DataStream.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
604
|
+
): void;
|
|
605
|
+
emit(signal: string, ...args: any[]): void;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
namespace Descriptor {
|
|
609
|
+
// Signal signatures
|
|
610
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
611
|
+
'notify::descriptor': (pspec: GObject.ParamSpec) => void;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// Constructor properties interface
|
|
615
|
+
|
|
616
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
617
|
+
descriptor: any;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @gir-type Class
|
|
623
|
+
*/
|
|
624
|
+
abstract class Descriptor extends GObject.Object {
|
|
625
|
+
static $gtype: GObject.GType<Descriptor>;
|
|
626
|
+
|
|
627
|
+
// Properties
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* @construct-only
|
|
631
|
+
*/
|
|
632
|
+
set descriptor(val: any);
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Compile-time signal type information.
|
|
636
|
+
*
|
|
637
|
+
* This instance property is generated only for TypeScript type checking.
|
|
638
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
639
|
+
* @internal
|
|
640
|
+
*/
|
|
641
|
+
$signals: Descriptor.SignalSignatures;
|
|
642
|
+
|
|
643
|
+
// Constructors
|
|
644
|
+
|
|
645
|
+
constructor(properties?: Partial<Descriptor.ConstructorProps>, ...args: any[]);
|
|
646
|
+
|
|
647
|
+
_init(...args: any[]): void;
|
|
648
|
+
|
|
649
|
+
// Signals
|
|
650
|
+
|
|
651
|
+
/** @signal */
|
|
652
|
+
connect<K extends keyof Descriptor.SignalSignatures>(
|
|
653
|
+
signal: K,
|
|
654
|
+
callback: GObject.SignalCallback<this, Descriptor.SignalSignatures[K]>,
|
|
655
|
+
): number;
|
|
656
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
657
|
+
/** @signal */
|
|
658
|
+
connect_after<K extends keyof Descriptor.SignalSignatures>(
|
|
659
|
+
signal: K,
|
|
660
|
+
callback: GObject.SignalCallback<this, Descriptor.SignalSignatures[K]>,
|
|
661
|
+
): number;
|
|
662
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
663
|
+
/** @signal */
|
|
664
|
+
emit<K extends keyof Descriptor.SignalSignatures>(
|
|
665
|
+
signal: K,
|
|
666
|
+
...args: GObject.GjsParameters<Descriptor.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
667
|
+
): void;
|
|
668
|
+
emit(signal: string, ...args: any[]): void;
|
|
669
|
+
|
|
670
|
+
// Methods
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* @param other_descriptor A {@link ArrowFlight.Descriptor} to be compared.
|
|
674
|
+
* @returns `true` if both of them represents the same descriptor, `false` otherwise.
|
|
675
|
+
*/
|
|
676
|
+
equal(other_descriptor: Descriptor): boolean;
|
|
677
|
+
/**
|
|
678
|
+
* @returns A descriptor as a string. It should be freed with `g_free()` when no longer needed.
|
|
679
|
+
*/
|
|
680
|
+
to_string(): string;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
namespace DoPutResult {
|
|
684
|
+
// Signal signatures
|
|
685
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
686
|
+
'notify::reader': (pspec: GObject.ParamSpec) => void;
|
|
687
|
+
'notify::result': (pspec: GObject.ParamSpec) => void;
|
|
688
|
+
'notify::writer': (pspec: GObject.ParamSpec) => void;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// Constructor properties interface
|
|
692
|
+
|
|
693
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
694
|
+
reader: MetadataReader;
|
|
695
|
+
result: any;
|
|
696
|
+
writer: StreamWriter;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @gir-type Class
|
|
702
|
+
*/
|
|
703
|
+
class DoPutResult extends GObject.Object {
|
|
704
|
+
static $gtype: GObject.GType<DoPutResult>;
|
|
705
|
+
|
|
706
|
+
// Properties
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* A reader for application metadata from the server.
|
|
710
|
+
* @since 18.0.0
|
|
711
|
+
* @read-only
|
|
712
|
+
*/
|
|
713
|
+
get reader(): MetadataReader;
|
|
714
|
+
/**
|
|
715
|
+
* @construct-only
|
|
716
|
+
*/
|
|
717
|
+
set result(val: any);
|
|
718
|
+
/**
|
|
719
|
+
* A writer to write record batches to.
|
|
720
|
+
* @since 18.0.0
|
|
721
|
+
* @read-only
|
|
722
|
+
*/
|
|
723
|
+
get writer(): StreamWriter;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Compile-time signal type information.
|
|
727
|
+
*
|
|
728
|
+
* This instance property is generated only for TypeScript type checking.
|
|
729
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
730
|
+
* @internal
|
|
731
|
+
*/
|
|
732
|
+
$signals: DoPutResult.SignalSignatures;
|
|
733
|
+
|
|
734
|
+
// Constructors
|
|
735
|
+
|
|
736
|
+
constructor(properties?: Partial<DoPutResult.ConstructorProps>, ...args: any[]);
|
|
737
|
+
|
|
738
|
+
_init(...args: any[]): void;
|
|
739
|
+
|
|
740
|
+
// Signals
|
|
741
|
+
|
|
742
|
+
/** @signal */
|
|
743
|
+
connect<K extends keyof DoPutResult.SignalSignatures>(
|
|
744
|
+
signal: K,
|
|
745
|
+
callback: GObject.SignalCallback<this, DoPutResult.SignalSignatures[K]>,
|
|
746
|
+
): number;
|
|
747
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
748
|
+
/** @signal */
|
|
749
|
+
connect_after<K extends keyof DoPutResult.SignalSignatures>(
|
|
750
|
+
signal: K,
|
|
751
|
+
callback: GObject.SignalCallback<this, DoPutResult.SignalSignatures[K]>,
|
|
752
|
+
): number;
|
|
753
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
754
|
+
/** @signal */
|
|
755
|
+
emit<K extends keyof DoPutResult.SignalSignatures>(
|
|
756
|
+
signal: K,
|
|
757
|
+
...args: GObject.GjsParameters<DoPutResult.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
758
|
+
): void;
|
|
759
|
+
emit(signal: string, ...args: any[]): void;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
namespace Endpoint {
|
|
763
|
+
// Signal signatures
|
|
764
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
765
|
+
'notify::ticket': (pspec: GObject.ParamSpec) => void;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
// Constructor properties interface
|
|
769
|
+
|
|
770
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
771
|
+
ticket: Ticket;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* @gir-type Class
|
|
777
|
+
*/
|
|
778
|
+
class Endpoint extends GObject.Object {
|
|
779
|
+
static $gtype: GObject.GType<Endpoint>;
|
|
780
|
+
|
|
781
|
+
// Properties
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Opaque ticket identify; use with DoGet RPC.
|
|
785
|
+
* @since 5.0.0
|
|
786
|
+
* @read-only
|
|
787
|
+
*/
|
|
788
|
+
get ticket(): Ticket;
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Compile-time signal type information.
|
|
792
|
+
*
|
|
793
|
+
* This instance property is generated only for TypeScript type checking.
|
|
794
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
795
|
+
* @internal
|
|
796
|
+
*/
|
|
797
|
+
$signals: Endpoint.SignalSignatures;
|
|
798
|
+
|
|
799
|
+
// Constructors
|
|
800
|
+
|
|
801
|
+
constructor(properties?: Partial<Endpoint.ConstructorProps>, ...args: any[]);
|
|
802
|
+
|
|
803
|
+
_init(...args: any[]): void;
|
|
804
|
+
|
|
805
|
+
static ['new'](ticket: Ticket, locations: Location[]): Endpoint;
|
|
806
|
+
|
|
807
|
+
// Signals
|
|
808
|
+
|
|
809
|
+
/** @signal */
|
|
810
|
+
connect<K extends keyof Endpoint.SignalSignatures>(
|
|
811
|
+
signal: K,
|
|
812
|
+
callback: GObject.SignalCallback<this, Endpoint.SignalSignatures[K]>,
|
|
813
|
+
): number;
|
|
814
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
815
|
+
/** @signal */
|
|
816
|
+
connect_after<K extends keyof Endpoint.SignalSignatures>(
|
|
817
|
+
signal: K,
|
|
818
|
+
callback: GObject.SignalCallback<this, Endpoint.SignalSignatures[K]>,
|
|
819
|
+
): number;
|
|
820
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
821
|
+
/** @signal */
|
|
822
|
+
emit<K extends keyof Endpoint.SignalSignatures>(
|
|
823
|
+
signal: K,
|
|
824
|
+
...args: GObject.GjsParameters<Endpoint.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
825
|
+
): void;
|
|
826
|
+
emit(signal: string, ...args: any[]): void;
|
|
827
|
+
|
|
828
|
+
// Methods
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* @param other_endpoint A {@link ArrowFlight.Endpoint} to be compared.
|
|
832
|
+
* @returns `true` if both of them represents the same endpoint, `false` otherwise.
|
|
833
|
+
*/
|
|
834
|
+
equal(other_endpoint: Endpoint): boolean;
|
|
835
|
+
/**
|
|
836
|
+
* @returns The locations in this endpoint. It must be freed with `g_list_free()` and `g_object_unref()` when no longer needed. You can use `g_list_free_full(locations, g_object_unref)`.
|
|
837
|
+
*/
|
|
838
|
+
get_locations(): Location[] | null;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
namespace Info {
|
|
842
|
+
// Signal signatures
|
|
843
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
844
|
+
'notify::info': (pspec: GObject.ParamSpec) => void;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
// Constructor properties interface
|
|
848
|
+
|
|
849
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
850
|
+
info: any;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* @gir-type Class
|
|
856
|
+
*/
|
|
857
|
+
class Info extends GObject.Object {
|
|
858
|
+
static $gtype: GObject.GType<Info>;
|
|
859
|
+
|
|
860
|
+
// Properties
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* @construct-only
|
|
864
|
+
*/
|
|
865
|
+
set info(val: any);
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Compile-time signal type information.
|
|
869
|
+
*
|
|
870
|
+
* This instance property is generated only for TypeScript type checking.
|
|
871
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
872
|
+
* @internal
|
|
873
|
+
*/
|
|
874
|
+
$signals: Info.SignalSignatures;
|
|
875
|
+
|
|
876
|
+
// Constructors
|
|
877
|
+
|
|
878
|
+
constructor(properties?: Partial<Info.ConstructorProps>, ...args: any[]);
|
|
879
|
+
|
|
880
|
+
_init(...args: any[]): void;
|
|
881
|
+
|
|
882
|
+
static ['new'](
|
|
883
|
+
schema: Arrow.Schema,
|
|
884
|
+
descriptor: Descriptor,
|
|
885
|
+
endpoints: Endpoint[],
|
|
886
|
+
total_records: number,
|
|
887
|
+
total_bytes: number,
|
|
888
|
+
): Info;
|
|
889
|
+
|
|
890
|
+
// Signals
|
|
891
|
+
|
|
892
|
+
/** @signal */
|
|
893
|
+
connect<K extends keyof Info.SignalSignatures>(
|
|
894
|
+
signal: K,
|
|
895
|
+
callback: GObject.SignalCallback<this, Info.SignalSignatures[K]>,
|
|
896
|
+
): number;
|
|
897
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
898
|
+
/** @signal */
|
|
899
|
+
connect_after<K extends keyof Info.SignalSignatures>(
|
|
900
|
+
signal: K,
|
|
901
|
+
callback: GObject.SignalCallback<this, Info.SignalSignatures[K]>,
|
|
902
|
+
): number;
|
|
903
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
904
|
+
/** @signal */
|
|
905
|
+
emit<K extends keyof Info.SignalSignatures>(
|
|
906
|
+
signal: K,
|
|
907
|
+
...args: GObject.GjsParameters<Info.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
908
|
+
): void;
|
|
909
|
+
emit(signal: string, ...args: any[]): void;
|
|
910
|
+
|
|
911
|
+
// Methods
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* @param other_info A {@link ArrowFlight.Info} to be compared.
|
|
915
|
+
* @returns `true` if both of them represents the same information, `false` otherwise.
|
|
916
|
+
*/
|
|
917
|
+
equal(other_info: Info): boolean;
|
|
918
|
+
/**
|
|
919
|
+
* @returns The {@link ArrowFlight.Descriptor} of the information.
|
|
920
|
+
*/
|
|
921
|
+
get_descriptor(): Descriptor;
|
|
922
|
+
/**
|
|
923
|
+
* @returns The list of {@link ArrowFlight.Endpoint} of the information.
|
|
924
|
+
*/
|
|
925
|
+
get_endpoints(): Endpoint[];
|
|
926
|
+
/**
|
|
927
|
+
* @param options A {@link Arrow.ReadOptions}.
|
|
928
|
+
* @returns Deserialized {@link Arrow.Schema}, `null` on error.
|
|
929
|
+
*/
|
|
930
|
+
get_schema(options?: Arrow.ReadOptions | null): Arrow.Schema;
|
|
931
|
+
/**
|
|
932
|
+
* @returns The number of total bytes of the information.
|
|
933
|
+
*/
|
|
934
|
+
get_total_bytes(): number;
|
|
935
|
+
/**
|
|
936
|
+
* @returns The number of total records of the information.
|
|
937
|
+
*/
|
|
938
|
+
get_total_records(): number;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
namespace Location {
|
|
942
|
+
// Signal signatures
|
|
943
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
944
|
+
|
|
945
|
+
// Constructor properties interface
|
|
946
|
+
|
|
947
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* @gir-type Class
|
|
952
|
+
*/
|
|
953
|
+
class Location extends GObject.Object {
|
|
954
|
+
static $gtype: GObject.GType<Location>;
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Compile-time signal type information.
|
|
958
|
+
*
|
|
959
|
+
* This instance property is generated only for TypeScript type checking.
|
|
960
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
961
|
+
* @internal
|
|
962
|
+
*/
|
|
963
|
+
$signals: Location.SignalSignatures;
|
|
964
|
+
|
|
965
|
+
// Constructors
|
|
966
|
+
|
|
967
|
+
constructor(properties?: Partial<Location.ConstructorProps>, ...args: any[]);
|
|
968
|
+
|
|
969
|
+
_init(...args: any[]): void;
|
|
970
|
+
|
|
971
|
+
static ['new'](uri: string): Location;
|
|
972
|
+
|
|
973
|
+
// Signals
|
|
974
|
+
|
|
975
|
+
/** @signal */
|
|
976
|
+
connect<K extends keyof Location.SignalSignatures>(
|
|
977
|
+
signal: K,
|
|
978
|
+
callback: GObject.SignalCallback<this, Location.SignalSignatures[K]>,
|
|
979
|
+
): number;
|
|
980
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
981
|
+
/** @signal */
|
|
982
|
+
connect_after<K extends keyof Location.SignalSignatures>(
|
|
983
|
+
signal: K,
|
|
984
|
+
callback: GObject.SignalCallback<this, Location.SignalSignatures[K]>,
|
|
985
|
+
): number;
|
|
986
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
987
|
+
/** @signal */
|
|
988
|
+
emit<K extends keyof Location.SignalSignatures>(
|
|
989
|
+
signal: K,
|
|
990
|
+
...args: GObject.GjsParameters<Location.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
991
|
+
): void;
|
|
992
|
+
emit(signal: string, ...args: any[]): void;
|
|
993
|
+
|
|
994
|
+
// Methods
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* @param other_location A {@link ArrowFlight.Location} to be compared.
|
|
998
|
+
* @returns `true` if both of them represents the same URI, `false` otherwise.
|
|
999
|
+
*/
|
|
1000
|
+
equal(other_location: Location): boolean;
|
|
1001
|
+
/**
|
|
1002
|
+
* @returns The scheme of this URI. It should be freed with `g_free()` when no longer needed.
|
|
1003
|
+
*/
|
|
1004
|
+
get_scheme(): string;
|
|
1005
|
+
/**
|
|
1006
|
+
* @returns A representation of this URI as a string. It should be freed with `g_free()` when no longer needed.
|
|
1007
|
+
*/
|
|
1008
|
+
to_string(): string;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
namespace MessageReader {
|
|
1012
|
+
// Signal signatures
|
|
1013
|
+
interface SignalSignatures extends RecordBatchReader.SignalSignatures {
|
|
1014
|
+
'notify::is-owner': (pspec: GObject.ParamSpec) => void;
|
|
1015
|
+
'notify::reader': (pspec: GObject.ParamSpec) => void;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
// Constructor properties interface
|
|
1019
|
+
|
|
1020
|
+
interface ConstructorProps extends RecordBatchReader.ConstructorProps {}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* @gir-type Class
|
|
1025
|
+
*/
|
|
1026
|
+
class MessageReader extends RecordBatchReader {
|
|
1027
|
+
static $gtype: GObject.GType<MessageReader>;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Compile-time signal type information.
|
|
1031
|
+
*
|
|
1032
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1033
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1034
|
+
* @internal
|
|
1035
|
+
*/
|
|
1036
|
+
$signals: MessageReader.SignalSignatures;
|
|
1037
|
+
|
|
1038
|
+
// Constructors
|
|
1039
|
+
|
|
1040
|
+
constructor(properties?: Partial<MessageReader.ConstructorProps>, ...args: any[]);
|
|
1041
|
+
|
|
1042
|
+
_init(...args: any[]): void;
|
|
1043
|
+
|
|
1044
|
+
// Signals
|
|
1045
|
+
|
|
1046
|
+
/** @signal */
|
|
1047
|
+
connect<K extends keyof MessageReader.SignalSignatures>(
|
|
1048
|
+
signal: K,
|
|
1049
|
+
callback: GObject.SignalCallback<this, MessageReader.SignalSignatures[K]>,
|
|
1050
|
+
): number;
|
|
1051
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1052
|
+
/** @signal */
|
|
1053
|
+
connect_after<K extends keyof MessageReader.SignalSignatures>(
|
|
1054
|
+
signal: K,
|
|
1055
|
+
callback: GObject.SignalCallback<this, MessageReader.SignalSignatures[K]>,
|
|
1056
|
+
): number;
|
|
1057
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1058
|
+
/** @signal */
|
|
1059
|
+
emit<K extends keyof MessageReader.SignalSignatures>(
|
|
1060
|
+
signal: K,
|
|
1061
|
+
...args: GObject.GjsParameters<MessageReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1062
|
+
): void;
|
|
1063
|
+
emit(signal: string, ...args: any[]): void;
|
|
1064
|
+
|
|
1065
|
+
// Methods
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* @returns The descriptor for this upload.
|
|
1069
|
+
*/
|
|
1070
|
+
get_descriptor(): Descriptor;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
namespace MetadataReader {
|
|
1074
|
+
// Signal signatures
|
|
1075
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1076
|
+
'notify::reader': (pspec: GObject.ParamSpec) => void;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
// Constructor properties interface
|
|
1080
|
+
|
|
1081
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1082
|
+
reader: any;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* @gir-type Class
|
|
1088
|
+
*/
|
|
1089
|
+
class MetadataReader extends GObject.Object {
|
|
1090
|
+
static $gtype: GObject.GType<MetadataReader>;
|
|
1091
|
+
|
|
1092
|
+
// Properties
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* @construct-only
|
|
1096
|
+
*/
|
|
1097
|
+
set reader(val: any);
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* Compile-time signal type information.
|
|
1101
|
+
*
|
|
1102
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1103
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1104
|
+
* @internal
|
|
1105
|
+
*/
|
|
1106
|
+
$signals: MetadataReader.SignalSignatures;
|
|
1107
|
+
|
|
1108
|
+
// Constructors
|
|
1109
|
+
|
|
1110
|
+
constructor(properties?: Partial<MetadataReader.ConstructorProps>, ...args: any[]);
|
|
1111
|
+
|
|
1112
|
+
_init(...args: any[]): void;
|
|
1113
|
+
|
|
1114
|
+
// Signals
|
|
1115
|
+
|
|
1116
|
+
/** @signal */
|
|
1117
|
+
connect<K extends keyof MetadataReader.SignalSignatures>(
|
|
1118
|
+
signal: K,
|
|
1119
|
+
callback: GObject.SignalCallback<this, MetadataReader.SignalSignatures[K]>,
|
|
1120
|
+
): number;
|
|
1121
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1122
|
+
/** @signal */
|
|
1123
|
+
connect_after<K extends keyof MetadataReader.SignalSignatures>(
|
|
1124
|
+
signal: K,
|
|
1125
|
+
callback: GObject.SignalCallback<this, MetadataReader.SignalSignatures[K]>,
|
|
1126
|
+
): number;
|
|
1127
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1128
|
+
/** @signal */
|
|
1129
|
+
emit<K extends keyof MetadataReader.SignalSignatures>(
|
|
1130
|
+
signal: K,
|
|
1131
|
+
...args: GObject.GjsParameters<MetadataReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1132
|
+
): void;
|
|
1133
|
+
emit(signal: string, ...args: any[]): void;
|
|
1134
|
+
|
|
1135
|
+
// Methods
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* @returns The metadata on success, `null` on error.
|
|
1139
|
+
*/
|
|
1140
|
+
read(): Arrow.Buffer;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
namespace MetadataWriter {
|
|
1144
|
+
// Signal signatures
|
|
1145
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1146
|
+
'notify::writer': (pspec: GObject.ParamSpec) => void;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
// Constructor properties interface
|
|
1150
|
+
|
|
1151
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1152
|
+
writer: any;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* @gir-type Class
|
|
1158
|
+
*/
|
|
1159
|
+
class MetadataWriter extends GObject.Object {
|
|
1160
|
+
static $gtype: GObject.GType<MetadataWriter>;
|
|
1161
|
+
|
|
1162
|
+
// Properties
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* @construct-only
|
|
1166
|
+
*/
|
|
1167
|
+
set writer(val: any);
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Compile-time signal type information.
|
|
1171
|
+
*
|
|
1172
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1173
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1174
|
+
* @internal
|
|
1175
|
+
*/
|
|
1176
|
+
$signals: MetadataWriter.SignalSignatures;
|
|
1177
|
+
|
|
1178
|
+
// Constructors
|
|
1179
|
+
|
|
1180
|
+
constructor(properties?: Partial<MetadataWriter.ConstructorProps>, ...args: any[]);
|
|
1181
|
+
|
|
1182
|
+
_init(...args: any[]): void;
|
|
1183
|
+
|
|
1184
|
+
// Signals
|
|
1185
|
+
|
|
1186
|
+
/** @signal */
|
|
1187
|
+
connect<K extends keyof MetadataWriter.SignalSignatures>(
|
|
1188
|
+
signal: K,
|
|
1189
|
+
callback: GObject.SignalCallback<this, MetadataWriter.SignalSignatures[K]>,
|
|
1190
|
+
): number;
|
|
1191
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1192
|
+
/** @signal */
|
|
1193
|
+
connect_after<K extends keyof MetadataWriter.SignalSignatures>(
|
|
1194
|
+
signal: K,
|
|
1195
|
+
callback: GObject.SignalCallback<this, MetadataWriter.SignalSignatures[K]>,
|
|
1196
|
+
): number;
|
|
1197
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1198
|
+
/** @signal */
|
|
1199
|
+
emit<K extends keyof MetadataWriter.SignalSignatures>(
|
|
1200
|
+
signal: K,
|
|
1201
|
+
...args: GObject.GjsParameters<MetadataWriter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1202
|
+
): void;
|
|
1203
|
+
emit(signal: string, ...args: any[]): void;
|
|
1204
|
+
|
|
1205
|
+
// Methods
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Writes metadata to the client.
|
|
1209
|
+
* @param metadata A {@link Arrow.Buffer} to be sent.
|
|
1210
|
+
* @returns `true` on success, `false` on error.
|
|
1211
|
+
*/
|
|
1212
|
+
write(metadata: Arrow.Buffer): boolean;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
namespace PathDescriptor {
|
|
1216
|
+
// Signal signatures
|
|
1217
|
+
interface SignalSignatures extends Descriptor.SignalSignatures {
|
|
1218
|
+
'notify::descriptor': (pspec: GObject.ParamSpec) => void;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
// Constructor properties interface
|
|
1222
|
+
|
|
1223
|
+
interface ConstructorProps extends Descriptor.ConstructorProps {}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* @gir-type Class
|
|
1228
|
+
*/
|
|
1229
|
+
class PathDescriptor extends Descriptor {
|
|
1230
|
+
static $gtype: GObject.GType<PathDescriptor>;
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Compile-time signal type information.
|
|
1234
|
+
*
|
|
1235
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1236
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1237
|
+
* @internal
|
|
1238
|
+
*/
|
|
1239
|
+
$signals: PathDescriptor.SignalSignatures;
|
|
1240
|
+
|
|
1241
|
+
// Constructors
|
|
1242
|
+
|
|
1243
|
+
constructor(properties?: Partial<PathDescriptor.ConstructorProps>, ...args: any[]);
|
|
1244
|
+
|
|
1245
|
+
_init(...args: any[]): void;
|
|
1246
|
+
|
|
1247
|
+
static ['new'](paths: string[]): PathDescriptor;
|
|
1248
|
+
|
|
1249
|
+
// Signals
|
|
1250
|
+
|
|
1251
|
+
/** @signal */
|
|
1252
|
+
connect<K extends keyof PathDescriptor.SignalSignatures>(
|
|
1253
|
+
signal: K,
|
|
1254
|
+
callback: GObject.SignalCallback<this, PathDescriptor.SignalSignatures[K]>,
|
|
1255
|
+
): number;
|
|
1256
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1257
|
+
/** @signal */
|
|
1258
|
+
connect_after<K extends keyof PathDescriptor.SignalSignatures>(
|
|
1259
|
+
signal: K,
|
|
1260
|
+
callback: GObject.SignalCallback<this, PathDescriptor.SignalSignatures[K]>,
|
|
1261
|
+
): number;
|
|
1262
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1263
|
+
/** @signal */
|
|
1264
|
+
emit<K extends keyof PathDescriptor.SignalSignatures>(
|
|
1265
|
+
signal: K,
|
|
1266
|
+
...args: GObject.GjsParameters<PathDescriptor.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1267
|
+
): void;
|
|
1268
|
+
emit(signal: string, ...args: any[]): void;
|
|
1269
|
+
|
|
1270
|
+
// Methods
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* @returns The paths in this descriptor. It must be freed with `g_strfreev()` when no longer needed.
|
|
1274
|
+
*/
|
|
1275
|
+
get_paths(): string[] | null;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
namespace RecordBatchReader {
|
|
1279
|
+
// Signal signatures
|
|
1280
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1281
|
+
'notify::is-owner': (pspec: GObject.ParamSpec) => void;
|
|
1282
|
+
'notify::reader': (pspec: GObject.ParamSpec) => void;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
// Constructor properties interface
|
|
1286
|
+
|
|
1287
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1288
|
+
is_owner: boolean;
|
|
1289
|
+
isOwner: boolean;
|
|
1290
|
+
reader: any;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* @gir-type Class
|
|
1296
|
+
*/
|
|
1297
|
+
abstract class RecordBatchReader extends GObject.Object {
|
|
1298
|
+
static $gtype: GObject.GType<RecordBatchReader>;
|
|
1299
|
+
|
|
1300
|
+
// Properties
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* @construct-only
|
|
1304
|
+
*/
|
|
1305
|
+
set is_owner(val: boolean);
|
|
1306
|
+
/**
|
|
1307
|
+
* @construct-only
|
|
1308
|
+
*/
|
|
1309
|
+
set isOwner(val: boolean);
|
|
1310
|
+
/**
|
|
1311
|
+
* @construct-only
|
|
1312
|
+
*/
|
|
1313
|
+
set reader(val: any);
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* Compile-time signal type information.
|
|
1317
|
+
*
|
|
1318
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1319
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1320
|
+
* @internal
|
|
1321
|
+
*/
|
|
1322
|
+
$signals: RecordBatchReader.SignalSignatures;
|
|
1323
|
+
|
|
1324
|
+
// Constructors
|
|
1325
|
+
|
|
1326
|
+
constructor(properties?: Partial<RecordBatchReader.ConstructorProps>, ...args: any[]);
|
|
1327
|
+
|
|
1328
|
+
_init(...args: any[]): void;
|
|
1329
|
+
|
|
1330
|
+
// Signals
|
|
1331
|
+
|
|
1332
|
+
/** @signal */
|
|
1333
|
+
connect<K extends keyof RecordBatchReader.SignalSignatures>(
|
|
1334
|
+
signal: K,
|
|
1335
|
+
callback: GObject.SignalCallback<this, RecordBatchReader.SignalSignatures[K]>,
|
|
1336
|
+
): number;
|
|
1337
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1338
|
+
/** @signal */
|
|
1339
|
+
connect_after<K extends keyof RecordBatchReader.SignalSignatures>(
|
|
1340
|
+
signal: K,
|
|
1341
|
+
callback: GObject.SignalCallback<this, RecordBatchReader.SignalSignatures[K]>,
|
|
1342
|
+
): number;
|
|
1343
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1344
|
+
/** @signal */
|
|
1345
|
+
emit<K extends keyof RecordBatchReader.SignalSignatures>(
|
|
1346
|
+
signal: K,
|
|
1347
|
+
...args: GObject.GjsParameters<RecordBatchReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1348
|
+
): void;
|
|
1349
|
+
emit(signal: string, ...args: any[]): void;
|
|
1350
|
+
|
|
1351
|
+
// Methods
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* @returns The all data on success, `null` on error.
|
|
1355
|
+
*/
|
|
1356
|
+
read_all(): Arrow.Table;
|
|
1357
|
+
/**
|
|
1358
|
+
* @returns The next chunk on success, `null` on end of stream, `null` on error.
|
|
1359
|
+
*/
|
|
1360
|
+
read_next(): StreamChunk;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
namespace RecordBatchStream {
|
|
1364
|
+
// Signal signatures
|
|
1365
|
+
interface SignalSignatures extends DataStream.SignalSignatures {
|
|
1366
|
+
'notify::reader': (pspec: GObject.ParamSpec) => void;
|
|
1367
|
+
'notify::stream': (pspec: GObject.ParamSpec) => void;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
// Constructor properties interface
|
|
1371
|
+
|
|
1372
|
+
interface ConstructorProps extends DataStream.ConstructorProps {
|
|
1373
|
+
reader: Arrow.RecordBatchReader;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* @gir-type Class
|
|
1379
|
+
*/
|
|
1380
|
+
class RecordBatchStream extends DataStream {
|
|
1381
|
+
static $gtype: GObject.GType<RecordBatchStream>;
|
|
1382
|
+
|
|
1383
|
+
// Properties
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* The reader that produces record batches.
|
|
1387
|
+
* @since 6.0.0
|
|
1388
|
+
* @construct-only
|
|
1389
|
+
*/
|
|
1390
|
+
get reader(): Arrow.RecordBatchReader;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Compile-time signal type information.
|
|
1394
|
+
*
|
|
1395
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1396
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1397
|
+
* @internal
|
|
1398
|
+
*/
|
|
1399
|
+
$signals: RecordBatchStream.SignalSignatures;
|
|
1400
|
+
|
|
1401
|
+
// Constructors
|
|
1402
|
+
|
|
1403
|
+
constructor(properties?: Partial<RecordBatchStream.ConstructorProps>, ...args: any[]);
|
|
1404
|
+
|
|
1405
|
+
_init(...args: any[]): void;
|
|
1406
|
+
|
|
1407
|
+
static ['new'](reader: Arrow.RecordBatchReader, options?: Arrow.WriteOptions | null): RecordBatchStream;
|
|
1408
|
+
|
|
1409
|
+
// Signals
|
|
1410
|
+
|
|
1411
|
+
/** @signal */
|
|
1412
|
+
connect<K extends keyof RecordBatchStream.SignalSignatures>(
|
|
1413
|
+
signal: K,
|
|
1414
|
+
callback: GObject.SignalCallback<this, RecordBatchStream.SignalSignatures[K]>,
|
|
1415
|
+
): number;
|
|
1416
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1417
|
+
/** @signal */
|
|
1418
|
+
connect_after<K extends keyof RecordBatchStream.SignalSignatures>(
|
|
1419
|
+
signal: K,
|
|
1420
|
+
callback: GObject.SignalCallback<this, RecordBatchStream.SignalSignatures[K]>,
|
|
1421
|
+
): number;
|
|
1422
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1423
|
+
/** @signal */
|
|
1424
|
+
emit<K extends keyof RecordBatchStream.SignalSignatures>(
|
|
1425
|
+
signal: K,
|
|
1426
|
+
...args: GObject.GjsParameters<RecordBatchStream.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1427
|
+
): void;
|
|
1428
|
+
emit(signal: string, ...args: any[]): void;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
namespace RecordBatchWriter {
|
|
1432
|
+
// Signal signatures
|
|
1433
|
+
interface SignalSignatures extends Arrow.RecordBatchWriter.SignalSignatures {
|
|
1434
|
+
'notify::record-batch-writer': (pspec: GObject.ParamSpec) => void;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
// Constructor properties interface
|
|
1438
|
+
|
|
1439
|
+
interface ConstructorProps extends Arrow.RecordBatchWriter.ConstructorProps {}
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* @gir-type Class
|
|
1444
|
+
*/
|
|
1445
|
+
abstract class RecordBatchWriter extends Arrow.RecordBatchWriter {
|
|
1446
|
+
static $gtype: GObject.GType<RecordBatchWriter>;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Compile-time signal type information.
|
|
1450
|
+
*
|
|
1451
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1452
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1453
|
+
* @internal
|
|
1454
|
+
*/
|
|
1455
|
+
$signals: RecordBatchWriter.SignalSignatures;
|
|
1456
|
+
|
|
1457
|
+
// Constructors
|
|
1458
|
+
|
|
1459
|
+
constructor(properties?: Partial<RecordBatchWriter.ConstructorProps>, ...args: any[]);
|
|
1460
|
+
|
|
1461
|
+
_init(...args: any[]): void;
|
|
1462
|
+
|
|
1463
|
+
// Signals
|
|
1464
|
+
|
|
1465
|
+
/** @signal */
|
|
1466
|
+
connect<K extends keyof RecordBatchWriter.SignalSignatures>(
|
|
1467
|
+
signal: K,
|
|
1468
|
+
callback: GObject.SignalCallback<this, RecordBatchWriter.SignalSignatures[K]>,
|
|
1469
|
+
): number;
|
|
1470
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1471
|
+
/** @signal */
|
|
1472
|
+
connect_after<K extends keyof RecordBatchWriter.SignalSignatures>(
|
|
1473
|
+
signal: K,
|
|
1474
|
+
callback: GObject.SignalCallback<this, RecordBatchWriter.SignalSignatures[K]>,
|
|
1475
|
+
): number;
|
|
1476
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1477
|
+
/** @signal */
|
|
1478
|
+
emit<K extends keyof RecordBatchWriter.SignalSignatures>(
|
|
1479
|
+
signal: K,
|
|
1480
|
+
...args: GObject.GjsParameters<RecordBatchWriter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1481
|
+
): void;
|
|
1482
|
+
emit(signal: string, ...args: any[]): void;
|
|
1483
|
+
|
|
1484
|
+
// Methods
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Begins writing data with the given schema. Only used with
|
|
1488
|
+
* `DoExchange`.
|
|
1489
|
+
* @param schema A {@link Arrow.Schema}.
|
|
1490
|
+
* @param options A {@link Arrow.WriteOptions}.
|
|
1491
|
+
* @returns `true` on success, `false` on error.
|
|
1492
|
+
*/
|
|
1493
|
+
begin(schema: Arrow.Schema, options?: Arrow.WriteOptions | null): boolean;
|
|
1494
|
+
/**
|
|
1495
|
+
* Write metadata.
|
|
1496
|
+
* @param metadata A {@link Arrow.Buffer}.
|
|
1497
|
+
* @returns `true` on success, `false` on error.
|
|
1498
|
+
*/
|
|
1499
|
+
write_metadata(metadata: Arrow.Buffer): boolean;
|
|
1500
|
+
/**
|
|
1501
|
+
* Write a record batch with metadata.
|
|
1502
|
+
* @param record_batch A {@link Arrow.RecordBatch}.
|
|
1503
|
+
* @param metadata A {@link Arrow.Buffer}.
|
|
1504
|
+
* @returns `true` on success, `false` on error.
|
|
1505
|
+
*/
|
|
1506
|
+
write_record_batch(record_batch: Arrow.RecordBatch, metadata?: Arrow.Buffer | null): boolean;
|
|
1507
|
+
/**
|
|
1508
|
+
* @param args
|
|
1509
|
+
*/
|
|
1510
|
+
// Conflicted with Arrow.RecordBatchWriter.write_record_batch
|
|
1511
|
+
write_record_batch(...args: never[]): any;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
namespace Server {
|
|
1515
|
+
// Signal signatures
|
|
1516
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
1517
|
+
|
|
1518
|
+
// Constructor properties interface
|
|
1519
|
+
|
|
1520
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps, Servable.ConstructorProps {}
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* @gir-type Class
|
|
1525
|
+
*/
|
|
1526
|
+
abstract class Server extends GObject.Object implements Servable {
|
|
1527
|
+
static $gtype: GObject.GType<Server>;
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* Compile-time signal type information.
|
|
1531
|
+
*
|
|
1532
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1533
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1534
|
+
* @internal
|
|
1535
|
+
*/
|
|
1536
|
+
$signals: Server.SignalSignatures;
|
|
1537
|
+
|
|
1538
|
+
// Constructors
|
|
1539
|
+
|
|
1540
|
+
constructor(properties?: Partial<Server.ConstructorProps>, ...args: any[]);
|
|
1541
|
+
|
|
1542
|
+
_init(...args: any[]): void;
|
|
1543
|
+
|
|
1544
|
+
// Signals
|
|
1545
|
+
|
|
1546
|
+
/** @signal */
|
|
1547
|
+
connect<K extends keyof Server.SignalSignatures>(
|
|
1548
|
+
signal: K,
|
|
1549
|
+
callback: GObject.SignalCallback<this, Server.SignalSignatures[K]>,
|
|
1550
|
+
): number;
|
|
1551
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1552
|
+
/** @signal */
|
|
1553
|
+
connect_after<K extends keyof Server.SignalSignatures>(
|
|
1554
|
+
signal: K,
|
|
1555
|
+
callback: GObject.SignalCallback<this, Server.SignalSignatures[K]>,
|
|
1556
|
+
): number;
|
|
1557
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1558
|
+
/** @signal */
|
|
1559
|
+
emit<K extends keyof Server.SignalSignatures>(
|
|
1560
|
+
signal: K,
|
|
1561
|
+
...args: GObject.GjsParameters<Server.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1562
|
+
): void;
|
|
1563
|
+
emit(signal: string, ...args: any[]): void;
|
|
1564
|
+
|
|
1565
|
+
// Virtual methods
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* A virtual function to implement `DoGet` API.
|
|
1569
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1570
|
+
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
1571
|
+
* @virtual
|
|
1572
|
+
*/
|
|
1573
|
+
vfunc_do_get(context: ServerCallContext, ticket: Ticket): DataStream;
|
|
1574
|
+
/**
|
|
1575
|
+
* Processes a stream of IPC payloads sent from a client.
|
|
1576
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1577
|
+
* @param reader A {@link ArrowFlight.MessageReader}.
|
|
1578
|
+
* @param writer A {@link ArrowFlight.MetadataWriter}.
|
|
1579
|
+
* @virtual
|
|
1580
|
+
*/
|
|
1581
|
+
vfunc_do_put(context: ServerCallContext, reader: MessageReader, writer: MetadataWriter): boolean;
|
|
1582
|
+
/**
|
|
1583
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1584
|
+
* @param request A {@link ArrowFlight.Descriptor}.
|
|
1585
|
+
* @virtual
|
|
1586
|
+
*/
|
|
1587
|
+
vfunc_get_flight_info(context: ServerCallContext, request: Descriptor): Info;
|
|
1588
|
+
/**
|
|
1589
|
+
* A virtual function to implement `ListFlights` API.
|
|
1590
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1591
|
+
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
1592
|
+
* @virtual
|
|
1593
|
+
*/
|
|
1594
|
+
vfunc_list_flights(context: ServerCallContext, criteria?: Criteria | null): Info[];
|
|
1595
|
+
|
|
1596
|
+
// Methods
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1600
|
+
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
1601
|
+
* @returns {@link ArrowFlight.DataStream} on success, `null` on error.
|
|
1602
|
+
*/
|
|
1603
|
+
do_get(context: ServerCallContext, ticket: Ticket): DataStream;
|
|
1604
|
+
/**
|
|
1605
|
+
* Processes a stream of IPC payloads sent from a client.
|
|
1606
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1607
|
+
* @param reader A {@link ArrowFlight.MessageReader}.
|
|
1608
|
+
* @param writer A {@link ArrowFlight.MetadataWriter}.
|
|
1609
|
+
* @returns `true` on success, `false` on error.
|
|
1610
|
+
*/
|
|
1611
|
+
do_put(context: ServerCallContext, reader: MessageReader, writer: MetadataWriter): boolean;
|
|
1612
|
+
/**
|
|
1613
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1614
|
+
* @param request A {@link ArrowFlight.Descriptor}.
|
|
1615
|
+
* @returns A {@link ArrowFlight.Info} on success, `null` on error.
|
|
1616
|
+
*/
|
|
1617
|
+
get_flight_info(context: ServerCallContext, request: Descriptor): Info;
|
|
1618
|
+
get_port(): number;
|
|
1619
|
+
/**
|
|
1620
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1621
|
+
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
1622
|
+
* @returns {@link GLib.List} of {@link ArrowFlight.Info} on success, `null` on error.
|
|
1623
|
+
*/
|
|
1624
|
+
list_flights(context: ServerCallContext, criteria?: Criteria | null): Info[];
|
|
1625
|
+
/**
|
|
1626
|
+
* @param options A {@link ArrowFlight.ServerOptions}.
|
|
1627
|
+
* @returns `true` on success, `false` on error.
|
|
1628
|
+
*/
|
|
1629
|
+
listen(options: ServerOptions): boolean;
|
|
1630
|
+
/**
|
|
1631
|
+
* Shuts down the serve. This function can be called from signal
|
|
1632
|
+
* handler or another thread.
|
|
1633
|
+
* @returns `true` on success, `false` on error.
|
|
1634
|
+
*/
|
|
1635
|
+
shutdown(): boolean;
|
|
1636
|
+
wait(): boolean;
|
|
1637
|
+
/**
|
|
1638
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
1639
|
+
* on `target`.
|
|
1640
|
+
*
|
|
1641
|
+
* Whenever the `source_property` is changed the `target_property` is
|
|
1642
|
+
* updated using the same value. For instance:
|
|
1643
|
+
*
|
|
1644
|
+
*
|
|
1645
|
+
* ```c
|
|
1646
|
+
* g_object_bind_property (action, "active", widget, "sensitive", 0);
|
|
1647
|
+
* ```
|
|
1648
|
+
*
|
|
1649
|
+
*
|
|
1650
|
+
* Will result in the "sensitive" property of the widget {@link GObject.Object} instance to be
|
|
1651
|
+
* updated with the same value of the "active" property of the action {@link GObject.Object}
|
|
1652
|
+
* instance.
|
|
1653
|
+
*
|
|
1654
|
+
* If `flags` contains {@link GObject.BindingFlags.BIDIRECTIONAL} then the binding will be mutual:
|
|
1655
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
1656
|
+
* will be updated as well.
|
|
1657
|
+
*
|
|
1658
|
+
* The binding will automatically be removed when either the `source` or the
|
|
1659
|
+
* `target` instances are finalized. To remove the binding without affecting the
|
|
1660
|
+
* `source` and the `target` you can just call `g_object_unref()` on the returned
|
|
1661
|
+
* {@link GObject.Binding} instance.
|
|
1662
|
+
*
|
|
1663
|
+
* Removing the binding by calling `g_object_unref()` on it must only be done if
|
|
1664
|
+
* the binding, `source` and `target` are only used from a single thread and it
|
|
1665
|
+
* is clear that both `source` and `target` outlive the binding. Especially it
|
|
1666
|
+
* is not safe to rely on this if the binding, `source` or `target` can be
|
|
1667
|
+
* finalized from different threads. Keep another reference to the binding and
|
|
1668
|
+
* use `g_binding_unbind()` instead to be on the safe side.
|
|
1669
|
+
*
|
|
1670
|
+
* A {@link GObject.Object} can have multiple bindings.
|
|
1671
|
+
* @param source_property the property on `source` to bind
|
|
1672
|
+
* @param target the target {@link GObject.Object}
|
|
1673
|
+
* @param target_property the property on `target` to bind
|
|
1674
|
+
* @param flags flags to pass to {@link GObject.Binding}
|
|
1675
|
+
* @returns the {@link GObject.Binding} instance representing the binding between the two {@link GObject.Object} instances. The binding is released whenever the {@link GObject.Binding} reference count reaches zero.
|
|
1676
|
+
*/
|
|
1677
|
+
bind_property(
|
|
1678
|
+
source_property: string,
|
|
1679
|
+
target: GObject.Object,
|
|
1680
|
+
target_property: string,
|
|
1681
|
+
flags: GObject.BindingFlags | null,
|
|
1682
|
+
): GObject.Binding;
|
|
1683
|
+
/**
|
|
1684
|
+
* Complete version of `g_object_bind_property()`.
|
|
1685
|
+
*
|
|
1686
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
1687
|
+
* on `target`, allowing you to set the transformation functions to be used by
|
|
1688
|
+
* the binding.
|
|
1689
|
+
*
|
|
1690
|
+
* If `flags` contains {@link GObject.BindingFlags.BIDIRECTIONAL} then the binding will be mutual:
|
|
1691
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
1692
|
+
* will be updated as well. The `transform_from` function is only used in case
|
|
1693
|
+
* of bidirectional bindings, otherwise it will be ignored
|
|
1694
|
+
*
|
|
1695
|
+
* The binding will automatically be removed when either the `source` or the
|
|
1696
|
+
* `target` instances are finalized. This will release the reference that is
|
|
1697
|
+
* being held on the {@link GObject.Binding} instance; if you want to hold on to the
|
|
1698
|
+
* {@link GObject.Binding} instance, you will need to hold a reference to it.
|
|
1699
|
+
*
|
|
1700
|
+
* To remove the binding, call `g_binding_unbind()`.
|
|
1701
|
+
*
|
|
1702
|
+
* A {@link GObject.Object} can have multiple bindings.
|
|
1703
|
+
*
|
|
1704
|
+
* The same `user_data` parameter will be used for both `transform_to`
|
|
1705
|
+
* and `transform_from` transformation functions; the `notify` function will
|
|
1706
|
+
* be called once, when the binding is removed. If you need different data
|
|
1707
|
+
* for each transformation function, please use
|
|
1708
|
+
* `g_object_bind_property_with_closures()` instead.
|
|
1709
|
+
* @param source_property the property on `source` to bind
|
|
1710
|
+
* @param target the target {@link GObject.Object}
|
|
1711
|
+
* @param target_property the property on `target` to bind
|
|
1712
|
+
* @param flags flags to pass to {@link GObject.Binding}
|
|
1713
|
+
* @param transform_to the transformation function from the `source` to the `target`, or `null` to use the default
|
|
1714
|
+
* @param transform_from the transformation function from the `target` to the `source`, or `null` to use the default
|
|
1715
|
+
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or `null` if not required
|
|
1716
|
+
* @returns the {@link GObject.Binding} instance representing the binding between the two {@link GObject.Object} instances. The binding is released whenever the {@link GObject.Binding} reference count reaches zero.
|
|
1717
|
+
*/
|
|
1718
|
+
bind_property_full(
|
|
1719
|
+
source_property: string,
|
|
1720
|
+
target: GObject.Object,
|
|
1721
|
+
target_property: string,
|
|
1722
|
+
flags: GObject.BindingFlags | null,
|
|
1723
|
+
transform_to?: GObject.BindingTransformFunc | null,
|
|
1724
|
+
transform_from?: GObject.BindingTransformFunc | null,
|
|
1725
|
+
notify?: GLib.DestroyNotify | null,
|
|
1726
|
+
): GObject.Binding;
|
|
1727
|
+
/**
|
|
1728
|
+
* @param args
|
|
1729
|
+
*/
|
|
1730
|
+
// Conflicted with GObject.Object.bind_property_full
|
|
1731
|
+
bind_property_full(...args: never[]): any;
|
|
1732
|
+
/**
|
|
1733
|
+
* This function is intended for {@link GObject.Object} implementations to re-enforce
|
|
1734
|
+
* a [floating](floating-refs.html) object reference. Doing this is seldom
|
|
1735
|
+
* required: all `GInitiallyUnowneds` are created with a floating reference
|
|
1736
|
+
* which usually just needs to be sunken by calling `g_object_ref_sink()`.
|
|
1737
|
+
*/
|
|
1738
|
+
force_floating(): void;
|
|
1739
|
+
/**
|
|
1740
|
+
* Increases the freeze count on `object`. If the freeze count is
|
|
1741
|
+
* non-zero, the emission of "notify" signals on `object` is
|
|
1742
|
+
* stopped. The signals are queued until the freeze count is decreased
|
|
1743
|
+
* to zero. Duplicate notifications are squashed so that at most one
|
|
1744
|
+
* {@link GObject.Object.SignalSignatures.notify | GObject.Object::notify} signal is emitted for each property modified while the
|
|
1745
|
+
* object is frozen.
|
|
1746
|
+
*
|
|
1747
|
+
* This is necessary for accessors that modify multiple properties to prevent
|
|
1748
|
+
* premature notification while the object is still being modified.
|
|
1749
|
+
*/
|
|
1750
|
+
freeze_notify(): void;
|
|
1751
|
+
/**
|
|
1752
|
+
* Gets a named field from the objects table of associations (see `g_object_set_data()`).
|
|
1753
|
+
* @param key name of the key for that association
|
|
1754
|
+
* @returns the data if found, or `null` if no such data exists.
|
|
1755
|
+
*/
|
|
1756
|
+
get_data(key: string): any | null;
|
|
1757
|
+
/**
|
|
1758
|
+
* Gets a property of an object.
|
|
1759
|
+
*
|
|
1760
|
+
* The value can be:
|
|
1761
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
1762
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
1763
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
1764
|
+
*
|
|
1765
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
1766
|
+
*
|
|
1767
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
1768
|
+
* @param property_name The name of the property to get
|
|
1769
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
1770
|
+
*/
|
|
1771
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1772
|
+
/**
|
|
1773
|
+
* This function gets back user data pointers stored via
|
|
1774
|
+
* `g_object_set_qdata()`.
|
|
1775
|
+
* @param quark A {@link GLib.Quark}, naming the user data pointer
|
|
1776
|
+
* @returns The user data pointer set, or `null`
|
|
1777
|
+
*/
|
|
1778
|
+
get_qdata(quark: GLib.Quark): any | null;
|
|
1779
|
+
/**
|
|
1780
|
+
* Gets `n_properties` properties for an `object`.
|
|
1781
|
+
* Obtained properties will be set to `values`. All properties must be valid.
|
|
1782
|
+
* Warnings will be emitted and undefined behaviour may result if invalid
|
|
1783
|
+
* properties are passed in.
|
|
1784
|
+
* @param names the names of each property to get
|
|
1785
|
+
* @param values the values of each property to get
|
|
1786
|
+
*/
|
|
1787
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
1788
|
+
/**
|
|
1789
|
+
* Checks whether `object` has a [floating](floating-refs.html) reference.
|
|
1790
|
+
* @returns `true` if `object` has a floating reference
|
|
1791
|
+
*/
|
|
1792
|
+
is_floating(): boolean;
|
|
1793
|
+
/**
|
|
1794
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
1795
|
+
*
|
|
1796
|
+
* When possible, eg. when signaling a property change from within the class
|
|
1797
|
+
* that registered the property, you should use `g_object_notify_by_pspec()`
|
|
1798
|
+
* instead.
|
|
1799
|
+
*
|
|
1800
|
+
* Note that emission of the notify signal may be blocked with
|
|
1801
|
+
* `g_object_freeze_notify()`. In this case, the signal emissions are queued
|
|
1802
|
+
* and will be emitted (in reverse order) when `g_object_thaw_notify()` is
|
|
1803
|
+
* called.
|
|
1804
|
+
* @param property_name the name of a property installed on the class of `object`.
|
|
1805
|
+
*/
|
|
1806
|
+
notify(property_name: string): void;
|
|
1807
|
+
/**
|
|
1808
|
+
* Emits a "notify" signal for the property specified by `pspec` on `object`.
|
|
1809
|
+
*
|
|
1810
|
+
* This function omits the property name lookup, hence it is faster than
|
|
1811
|
+
* `g_object_notify()`.
|
|
1812
|
+
*
|
|
1813
|
+
* One way to avoid using `g_object_notify()` from within the
|
|
1814
|
+
* class that registered the properties, and using `g_object_notify_by_pspec()`
|
|
1815
|
+
* instead, is to store the GParamSpec used with
|
|
1816
|
+
* `g_object_class_install_property()` inside a static array, e.g.:
|
|
1817
|
+
*
|
|
1818
|
+
*
|
|
1819
|
+
* ```c
|
|
1820
|
+
* typedef enum
|
|
1821
|
+
* {
|
|
1822
|
+
* PROP_FOO = 1,
|
|
1823
|
+
* PROP_LAST
|
|
1824
|
+
* } MyObjectProperty;
|
|
1825
|
+
*
|
|
1826
|
+
* static GParamSpec *properties[PROP_LAST];
|
|
1827
|
+
*
|
|
1828
|
+
* static void
|
|
1829
|
+
* my_object_class_init (MyObjectClass *klass)
|
|
1830
|
+
* {
|
|
1831
|
+
* properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
|
|
1832
|
+
* 0, 100,
|
|
1833
|
+
* 50,
|
|
1834
|
+
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
|
1835
|
+
* g_object_class_install_property (gobject_class,
|
|
1836
|
+
* PROP_FOO,
|
|
1837
|
+
* properties[PROP_FOO]);
|
|
1838
|
+
* }
|
|
1839
|
+
* ```
|
|
1840
|
+
*
|
|
1841
|
+
*
|
|
1842
|
+
* and then notify a change on the "foo" property with:
|
|
1843
|
+
*
|
|
1844
|
+
*
|
|
1845
|
+
* ```c
|
|
1846
|
+
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
|
|
1847
|
+
* ```
|
|
1848
|
+
*
|
|
1849
|
+
* @param pspec the {@link GObject.ParamSpec} of a property installed on the class of `object`.
|
|
1850
|
+
*/
|
|
1851
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
1852
|
+
/**
|
|
1853
|
+
* Increases the reference count of `object`.
|
|
1854
|
+
*
|
|
1855
|
+
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
|
|
1856
|
+
* of `object` will be propagated to the return type (using the GCC `typeof()`
|
|
1857
|
+
* extension), so any casting the caller needs to do on the return type must be
|
|
1858
|
+
* explicit.
|
|
1859
|
+
* @returns the same `object`
|
|
1860
|
+
*/
|
|
1861
|
+
ref(): GObject.Object;
|
|
1862
|
+
/**
|
|
1863
|
+
* Increase the reference count of `object`, and possibly remove the
|
|
1864
|
+
* [floating](floating-refs.html) reference, if `object` has a floating reference.
|
|
1865
|
+
*
|
|
1866
|
+
* In other words, if the object is floating, then this call "assumes
|
|
1867
|
+
* ownership" of the floating reference, converting it to a normal
|
|
1868
|
+
* reference by clearing the floating flag while leaving the reference
|
|
1869
|
+
* count unchanged. If the object is not floating, then this call
|
|
1870
|
+
* adds a new normal reference increasing the reference count by one.
|
|
1871
|
+
*
|
|
1872
|
+
* Since GLib 2.56, the type of `object` will be propagated to the return type
|
|
1873
|
+
* under the same conditions as for `g_object_ref()`.
|
|
1874
|
+
* @returns `object`
|
|
1875
|
+
*/
|
|
1876
|
+
ref_sink(): GObject.Object;
|
|
1877
|
+
/**
|
|
1878
|
+
* Releases all references to other objects. This can be used to break
|
|
1879
|
+
* reference cycles.
|
|
1880
|
+
*
|
|
1881
|
+
* This function should only be called from object system implementations.
|
|
1882
|
+
*/
|
|
1883
|
+
run_dispose(): void;
|
|
1884
|
+
/**
|
|
1885
|
+
* Each object carries around a table of associations from
|
|
1886
|
+
* strings to pointers. This function lets you set an association.
|
|
1887
|
+
*
|
|
1888
|
+
* If the object already had an association with that name,
|
|
1889
|
+
* the old association will be destroyed.
|
|
1890
|
+
*
|
|
1891
|
+
* Internally, the `key` is converted to a {@link GLib.Quark} using `g_quark_from_string()`.
|
|
1892
|
+
* This means a copy of `key` is kept permanently (even after `object` has been
|
|
1893
|
+
* finalized) — so it is recommended to only use a small, bounded set of values
|
|
1894
|
+
* for `key` in your program, to avoid the {@link GLib.Quark} storage growing unbounded.
|
|
1895
|
+
* @param key name of the key
|
|
1896
|
+
* @param data data to associate with that key
|
|
1897
|
+
*/
|
|
1898
|
+
set_data(key: string, data?: any | null): void;
|
|
1899
|
+
/**
|
|
1900
|
+
* Sets a property on an object.
|
|
1901
|
+
* @param property_name The name of the property to set
|
|
1902
|
+
* @param value The value to set the property to
|
|
1903
|
+
*/
|
|
1904
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1905
|
+
/**
|
|
1906
|
+
* Remove a specified datum from the object's data associations,
|
|
1907
|
+
* without invoking the association's destroy handler.
|
|
1908
|
+
* @param key name of the key
|
|
1909
|
+
* @returns the data if found, or `null` if no such data exists.
|
|
1910
|
+
*/
|
|
1911
|
+
steal_data(key: string): any | null;
|
|
1912
|
+
/**
|
|
1913
|
+
* This function gets back user data pointers stored via
|
|
1914
|
+
* `g_object_set_qdata()` and removes the `data` from object
|
|
1915
|
+
* without invoking its `destroy()` function (if any was
|
|
1916
|
+
* set).
|
|
1917
|
+
* Usually, calling this function is only required to update
|
|
1918
|
+
* user data pointers with a destroy notifier, for example:
|
|
1919
|
+
*
|
|
1920
|
+
* ```c
|
|
1921
|
+
* void
|
|
1922
|
+
* object_add_to_user_list (GObject *object,
|
|
1923
|
+
* const gchar *new_string)
|
|
1924
|
+
* {
|
|
1925
|
+
* // the quark, naming the object data
|
|
1926
|
+
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
|
|
1927
|
+
* // retrieve the old string list
|
|
1928
|
+
* GList *list = g_object_steal_qdata (object, quark_string_list);
|
|
1929
|
+
*
|
|
1930
|
+
* // prepend new string
|
|
1931
|
+
* list = g_list_prepend (list, g_strdup (new_string));
|
|
1932
|
+
* // this changed 'list', so we need to set it again
|
|
1933
|
+
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
|
|
1934
|
+
* }
|
|
1935
|
+
* static void
|
|
1936
|
+
* free_string_list (gpointer data)
|
|
1937
|
+
* {
|
|
1938
|
+
* GList *node, *list = data;
|
|
1939
|
+
*
|
|
1940
|
+
* for (node = list; node; node = node->next)
|
|
1941
|
+
* g_free (node->data);
|
|
1942
|
+
* g_list_free (list);
|
|
1943
|
+
* }
|
|
1944
|
+
* ```
|
|
1945
|
+
*
|
|
1946
|
+
* Using `g_object_get_qdata()` in the above example, instead of
|
|
1947
|
+
* `g_object_steal_qdata()` would have left the destroy function set,
|
|
1948
|
+
* and thus the partial string list would have been freed upon
|
|
1949
|
+
* `g_object_set_qdata_full()`.
|
|
1950
|
+
* @param quark A {@link GLib.Quark}, naming the user data pointer
|
|
1951
|
+
* @returns The user data pointer set, or `null`
|
|
1952
|
+
*/
|
|
1953
|
+
steal_qdata(quark: GLib.Quark): any | null;
|
|
1954
|
+
/**
|
|
1955
|
+
* Reverts the effect of a previous call to
|
|
1956
|
+
* `g_object_freeze_notify()`. The freeze count is decreased on `object`
|
|
1957
|
+
* and when it reaches zero, queued "notify" signals are emitted.
|
|
1958
|
+
*
|
|
1959
|
+
* Duplicate notifications for each property are squashed so that at most one
|
|
1960
|
+
* {@link GObject.Object.SignalSignatures.notify | GObject.Object::notify} signal is emitted for each property, in the reverse order
|
|
1961
|
+
* in which they have been queued.
|
|
1962
|
+
*
|
|
1963
|
+
* It is an error to call this function when the freeze count is zero.
|
|
1964
|
+
*/
|
|
1965
|
+
thaw_notify(): void;
|
|
1966
|
+
/**
|
|
1967
|
+
* Decreases the reference count of `object`. When its reference count
|
|
1968
|
+
* drops to 0, the object is finalized (i.e. its memory is freed).
|
|
1969
|
+
*
|
|
1970
|
+
* If the pointer to the {@link GObject.Object} may be reused in future (for example, if it is
|
|
1971
|
+
* an instance variable of another object), it is recommended to clear the
|
|
1972
|
+
* pointer to `null` rather than retain a dangling pointer to a potentially
|
|
1973
|
+
* invalid {@link GObject.Object} instance. Use `g_clear_object()` for this.
|
|
1974
|
+
*/
|
|
1975
|
+
unref(): void;
|
|
1976
|
+
/**
|
|
1977
|
+
* This function essentially limits the life time of the `closure` to
|
|
1978
|
+
* the life time of the object. That is, when the object is finalized,
|
|
1979
|
+
* the `closure` is invalidated by calling `g_closure_invalidate()` on
|
|
1980
|
+
* it, in order to prevent invocations of the closure with a finalized
|
|
1981
|
+
* (nonexisting) object. Also, `g_object_ref()` and `g_object_unref()` are
|
|
1982
|
+
* added as marshal guards to the `closure`, to ensure that an extra
|
|
1983
|
+
* reference count is held on `object` during invocation of the
|
|
1984
|
+
* `closure`. Usually, this function will be called on closures that
|
|
1985
|
+
* use this `object` as closure data.
|
|
1986
|
+
* @param closure {@link GObject.Closure} to watch
|
|
1987
|
+
*/
|
|
1988
|
+
watch_closure(closure: GObject.Closure): void;
|
|
1989
|
+
/**
|
|
1990
|
+
* the `constructed` function is called by `g_object_new()` as the
|
|
1991
|
+
* final step of the object creation process. At the point of the call, all
|
|
1992
|
+
* construction properties have been set on the object. The purpose of this
|
|
1993
|
+
* call is to allow for object initialisation steps that can only be performed
|
|
1994
|
+
* after construction properties have been set. `constructed` implementors
|
|
1995
|
+
* should chain up to the `constructed` call of their parent class to allow it
|
|
1996
|
+
* to complete its initialisation.
|
|
1997
|
+
* @virtual
|
|
1998
|
+
*/
|
|
1999
|
+
vfunc_constructed(): void;
|
|
2000
|
+
/**
|
|
2001
|
+
* emits property change notification for a bunch
|
|
2002
|
+
* of properties. Overriding `dispatch_properties_changed` should be rarely
|
|
2003
|
+
* needed.
|
|
2004
|
+
* @param n_pspecs
|
|
2005
|
+
* @param pspecs
|
|
2006
|
+
* @virtual
|
|
2007
|
+
*/
|
|
2008
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
2009
|
+
/**
|
|
2010
|
+
* the `dispose` function is supposed to drop all references to other
|
|
2011
|
+
* objects, but keep the instance otherwise intact, so that client method
|
|
2012
|
+
* invocations still work. It may be run multiple times (due to reference
|
|
2013
|
+
* loops). Before returning, `dispose` should chain up to the `dispose` method
|
|
2014
|
+
* of the parent class.
|
|
2015
|
+
* @virtual
|
|
2016
|
+
*/
|
|
2017
|
+
vfunc_dispose(): void;
|
|
2018
|
+
/**
|
|
2019
|
+
* instance finalization function, should finish the finalization of
|
|
2020
|
+
* the instance begun in `dispose` and chain up to the `finalize` method of the
|
|
2021
|
+
* parent class.
|
|
2022
|
+
* @virtual
|
|
2023
|
+
*/
|
|
2024
|
+
vfunc_finalize(): void;
|
|
2025
|
+
/**
|
|
2026
|
+
* the generic getter for all properties of this type. Should be
|
|
2027
|
+
* overridden for every type with properties.
|
|
2028
|
+
* @param property_id
|
|
2029
|
+
* @param value
|
|
2030
|
+
* @param pspec
|
|
2031
|
+
* @virtual
|
|
2032
|
+
*/
|
|
2033
|
+
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
2034
|
+
/**
|
|
2035
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
2036
|
+
*
|
|
2037
|
+
* When possible, eg. when signaling a property change from within the class
|
|
2038
|
+
* that registered the property, you should use `g_object_notify_by_pspec()`
|
|
2039
|
+
* instead.
|
|
2040
|
+
*
|
|
2041
|
+
* Note that emission of the notify signal may be blocked with
|
|
2042
|
+
* `g_object_freeze_notify()`. In this case, the signal emissions are queued
|
|
2043
|
+
* and will be emitted (in reverse order) when `g_object_thaw_notify()` is
|
|
2044
|
+
* called.
|
|
2045
|
+
* @param pspec
|
|
2046
|
+
* @virtual
|
|
2047
|
+
*/
|
|
2048
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
2049
|
+
/**
|
|
2050
|
+
* the generic setter for all properties of this type. Should be
|
|
2051
|
+
* overridden for every type with properties. If implementations of
|
|
2052
|
+
* `set_property` don't emit property change notification explicitly, this will
|
|
2053
|
+
* be done implicitly by the type system. However, if the notify signal is
|
|
2054
|
+
* emitted explicitly, the type system will not emit it a second time.
|
|
2055
|
+
* @param property_id
|
|
2056
|
+
* @param value
|
|
2057
|
+
* @param pspec
|
|
2058
|
+
* @virtual
|
|
2059
|
+
*/
|
|
2060
|
+
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
2061
|
+
/**
|
|
2062
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
2063
|
+
* @param id Handler ID of the handler to be disconnected
|
|
2064
|
+
*/
|
|
2065
|
+
disconnect(id: number): void;
|
|
2066
|
+
/**
|
|
2067
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
2068
|
+
* @param properties Object containing the properties to set
|
|
2069
|
+
*/
|
|
2070
|
+
set(properties: { [key: string]: any }): void;
|
|
2071
|
+
/**
|
|
2072
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
2073
|
+
* @param id Handler ID of the handler to be blocked
|
|
2074
|
+
*/
|
|
2075
|
+
block_signal_handler(id: number): void;
|
|
2076
|
+
/**
|
|
2077
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
2078
|
+
* @param id Handler ID of the handler to be unblocked
|
|
2079
|
+
*/
|
|
2080
|
+
unblock_signal_handler(id: number): void;
|
|
2081
|
+
/**
|
|
2082
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
2083
|
+
* @param detailedName Name of the signal to stop emission of
|
|
2084
|
+
*/
|
|
2085
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
namespace ServerAuthHandler {
|
|
2089
|
+
// Signal signatures
|
|
2090
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2091
|
+
'notify::handler': (pspec: GObject.ParamSpec) => void;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
// Constructor properties interface
|
|
2095
|
+
|
|
2096
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2097
|
+
handler: any;
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* @gir-type Class
|
|
2103
|
+
*/
|
|
2104
|
+
abstract class ServerAuthHandler extends GObject.Object {
|
|
2105
|
+
static $gtype: GObject.GType<ServerAuthHandler>;
|
|
2106
|
+
|
|
2107
|
+
// Properties
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* @construct-only
|
|
2111
|
+
*/
|
|
2112
|
+
set handler(val: any);
|
|
2113
|
+
|
|
2114
|
+
/**
|
|
2115
|
+
* Compile-time signal type information.
|
|
2116
|
+
*
|
|
2117
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2118
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2119
|
+
* @internal
|
|
2120
|
+
*/
|
|
2121
|
+
$signals: ServerAuthHandler.SignalSignatures;
|
|
2122
|
+
|
|
2123
|
+
// Constructors
|
|
2124
|
+
|
|
2125
|
+
constructor(properties?: Partial<ServerAuthHandler.ConstructorProps>, ...args: any[]);
|
|
2126
|
+
|
|
2127
|
+
_init(...args: any[]): void;
|
|
2128
|
+
|
|
2129
|
+
// Signals
|
|
2130
|
+
|
|
2131
|
+
/** @signal */
|
|
2132
|
+
connect<K extends keyof ServerAuthHandler.SignalSignatures>(
|
|
2133
|
+
signal: K,
|
|
2134
|
+
callback: GObject.SignalCallback<this, ServerAuthHandler.SignalSignatures[K]>,
|
|
2135
|
+
): number;
|
|
2136
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2137
|
+
/** @signal */
|
|
2138
|
+
connect_after<K extends keyof ServerAuthHandler.SignalSignatures>(
|
|
2139
|
+
signal: K,
|
|
2140
|
+
callback: GObject.SignalCallback<this, ServerAuthHandler.SignalSignatures[K]>,
|
|
2141
|
+
): number;
|
|
2142
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2143
|
+
/** @signal */
|
|
2144
|
+
emit<K extends keyof ServerAuthHandler.SignalSignatures>(
|
|
2145
|
+
signal: K,
|
|
2146
|
+
...args: GObject.GjsParameters<ServerAuthHandler.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2147
|
+
): void;
|
|
2148
|
+
emit(signal: string, ...args: any[]): void;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
namespace ServerAuthReader {
|
|
2152
|
+
// Signal signatures
|
|
2153
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2154
|
+
'notify::reader': (pspec: GObject.ParamSpec) => void;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
// Constructor properties interface
|
|
2158
|
+
|
|
2159
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2160
|
+
reader: any;
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
/**
|
|
2165
|
+
* @gir-type Class
|
|
2166
|
+
*/
|
|
2167
|
+
class ServerAuthReader extends GObject.Object {
|
|
2168
|
+
static $gtype: GObject.GType<ServerAuthReader>;
|
|
2169
|
+
|
|
2170
|
+
// Properties
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* @construct-only
|
|
2174
|
+
*/
|
|
2175
|
+
set reader(val: any);
|
|
2176
|
+
|
|
2177
|
+
/**
|
|
2178
|
+
* Compile-time signal type information.
|
|
2179
|
+
*
|
|
2180
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2181
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2182
|
+
* @internal
|
|
2183
|
+
*/
|
|
2184
|
+
$signals: ServerAuthReader.SignalSignatures;
|
|
2185
|
+
|
|
2186
|
+
// Constructors
|
|
2187
|
+
|
|
2188
|
+
constructor(properties?: Partial<ServerAuthReader.ConstructorProps>, ...args: any[]);
|
|
2189
|
+
|
|
2190
|
+
_init(...args: any[]): void;
|
|
2191
|
+
|
|
2192
|
+
// Signals
|
|
2193
|
+
|
|
2194
|
+
/** @signal */
|
|
2195
|
+
connect<K extends keyof ServerAuthReader.SignalSignatures>(
|
|
2196
|
+
signal: K,
|
|
2197
|
+
callback: GObject.SignalCallback<this, ServerAuthReader.SignalSignatures[K]>,
|
|
2198
|
+
): number;
|
|
2199
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2200
|
+
/** @signal */
|
|
2201
|
+
connect_after<K extends keyof ServerAuthReader.SignalSignatures>(
|
|
2202
|
+
signal: K,
|
|
2203
|
+
callback: GObject.SignalCallback<this, ServerAuthReader.SignalSignatures[K]>,
|
|
2204
|
+
): number;
|
|
2205
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2206
|
+
/** @signal */
|
|
2207
|
+
emit<K extends keyof ServerAuthReader.SignalSignatures>(
|
|
2208
|
+
signal: K,
|
|
2209
|
+
...args: GObject.GjsParameters<ServerAuthReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2210
|
+
): void;
|
|
2211
|
+
emit(signal: string, ...args: any[]): void;
|
|
2212
|
+
|
|
2213
|
+
// Methods
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* Reads a message from the client.
|
|
2217
|
+
* @returns Read data as {@link GLib.Bytes} on success, `null` on error.
|
|
2218
|
+
*/
|
|
2219
|
+
read(): GLib.Bytes | null;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
namespace ServerAuthSender {
|
|
2223
|
+
// Signal signatures
|
|
2224
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2225
|
+
'notify::sender': (pspec: GObject.ParamSpec) => void;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
// Constructor properties interface
|
|
2229
|
+
|
|
2230
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2231
|
+
sender: any;
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* @gir-type Class
|
|
2237
|
+
*/
|
|
2238
|
+
class ServerAuthSender extends GObject.Object {
|
|
2239
|
+
static $gtype: GObject.GType<ServerAuthSender>;
|
|
2240
|
+
|
|
2241
|
+
// Properties
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* @construct-only
|
|
2245
|
+
*/
|
|
2246
|
+
set sender(val: any);
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* Compile-time signal type information.
|
|
2250
|
+
*
|
|
2251
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2252
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2253
|
+
* @internal
|
|
2254
|
+
*/
|
|
2255
|
+
$signals: ServerAuthSender.SignalSignatures;
|
|
2256
|
+
|
|
2257
|
+
// Constructors
|
|
2258
|
+
|
|
2259
|
+
constructor(properties?: Partial<ServerAuthSender.ConstructorProps>, ...args: any[]);
|
|
2260
|
+
|
|
2261
|
+
_init(...args: any[]): void;
|
|
2262
|
+
|
|
2263
|
+
// Signals
|
|
2264
|
+
|
|
2265
|
+
/** @signal */
|
|
2266
|
+
connect<K extends keyof ServerAuthSender.SignalSignatures>(
|
|
2267
|
+
signal: K,
|
|
2268
|
+
callback: GObject.SignalCallback<this, ServerAuthSender.SignalSignatures[K]>,
|
|
2269
|
+
): number;
|
|
2270
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2271
|
+
/** @signal */
|
|
2272
|
+
connect_after<K extends keyof ServerAuthSender.SignalSignatures>(
|
|
2273
|
+
signal: K,
|
|
2274
|
+
callback: GObject.SignalCallback<this, ServerAuthSender.SignalSignatures[K]>,
|
|
2275
|
+
): number;
|
|
2276
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2277
|
+
/** @signal */
|
|
2278
|
+
emit<K extends keyof ServerAuthSender.SignalSignatures>(
|
|
2279
|
+
signal: K,
|
|
2280
|
+
...args: GObject.GjsParameters<ServerAuthSender.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2281
|
+
): void;
|
|
2282
|
+
emit(signal: string, ...args: any[]): void;
|
|
2283
|
+
|
|
2284
|
+
// Methods
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* Writes a message to the client.
|
|
2288
|
+
* @param message A {@link GLib.Bytes} to be sent.
|
|
2289
|
+
* @returns `true` on success, `false` on error.
|
|
2290
|
+
*/
|
|
2291
|
+
write(message: GLib.Bytes | Uint8Array): boolean;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
namespace ServerCallContext {
|
|
2295
|
+
// Signal signatures
|
|
2296
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2297
|
+
'notify::call-context': (pspec: GObject.ParamSpec) => void;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
// Constructor properties interface
|
|
2301
|
+
|
|
2302
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2303
|
+
call_context: any;
|
|
2304
|
+
callContext: any;
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
* @gir-type Class
|
|
2310
|
+
*/
|
|
2311
|
+
class ServerCallContext extends GObject.Object {
|
|
2312
|
+
static $gtype: GObject.GType<ServerCallContext>;
|
|
2313
|
+
|
|
2314
|
+
// Properties
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* @construct-only
|
|
2318
|
+
*/
|
|
2319
|
+
set call_context(val: any);
|
|
2320
|
+
/**
|
|
2321
|
+
* @construct-only
|
|
2322
|
+
*/
|
|
2323
|
+
set callContext(val: any);
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* Compile-time signal type information.
|
|
2327
|
+
*
|
|
2328
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2329
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2330
|
+
* @internal
|
|
2331
|
+
*/
|
|
2332
|
+
$signals: ServerCallContext.SignalSignatures;
|
|
2333
|
+
|
|
2334
|
+
// Constructors
|
|
2335
|
+
|
|
2336
|
+
constructor(properties?: Partial<ServerCallContext.ConstructorProps>, ...args: any[]);
|
|
2337
|
+
|
|
2338
|
+
_init(...args: any[]): void;
|
|
2339
|
+
|
|
2340
|
+
// Signals
|
|
2341
|
+
|
|
2342
|
+
/** @signal */
|
|
2343
|
+
connect<K extends keyof ServerCallContext.SignalSignatures>(
|
|
2344
|
+
signal: K,
|
|
2345
|
+
callback: GObject.SignalCallback<this, ServerCallContext.SignalSignatures[K]>,
|
|
2346
|
+
): number;
|
|
2347
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2348
|
+
/** @signal */
|
|
2349
|
+
connect_after<K extends keyof ServerCallContext.SignalSignatures>(
|
|
2350
|
+
signal: K,
|
|
2351
|
+
callback: GObject.SignalCallback<this, ServerCallContext.SignalSignatures[K]>,
|
|
2352
|
+
): number;
|
|
2353
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2354
|
+
/** @signal */
|
|
2355
|
+
emit<K extends keyof ServerCallContext.SignalSignatures>(
|
|
2356
|
+
signal: K,
|
|
2357
|
+
...args: GObject.GjsParameters<ServerCallContext.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2358
|
+
): void;
|
|
2359
|
+
emit(signal: string, ...args: any[]): void;
|
|
2360
|
+
|
|
2361
|
+
// Methods
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* Iterates over all incoming headers.
|
|
2365
|
+
* @param func The user's callback function.
|
|
2366
|
+
*/
|
|
2367
|
+
foreach_incoming_header(func: HeaderFunc): void;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
namespace ServerCustomAuthHandler {
|
|
2371
|
+
// Signal signatures
|
|
2372
|
+
interface SignalSignatures extends ServerAuthHandler.SignalSignatures {
|
|
2373
|
+
'notify::handler': (pspec: GObject.ParamSpec) => void;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
// Constructor properties interface
|
|
2377
|
+
|
|
2378
|
+
interface ConstructorProps extends ServerAuthHandler.ConstructorProps {}
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* @gir-type Class
|
|
2383
|
+
*/
|
|
2384
|
+
class ServerCustomAuthHandler extends ServerAuthHandler {
|
|
2385
|
+
static $gtype: GObject.GType<ServerCustomAuthHandler>;
|
|
2386
|
+
|
|
2387
|
+
/**
|
|
2388
|
+
* Compile-time signal type information.
|
|
2389
|
+
*
|
|
2390
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2391
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2392
|
+
* @internal
|
|
2393
|
+
*/
|
|
2394
|
+
$signals: ServerCustomAuthHandler.SignalSignatures;
|
|
2395
|
+
|
|
2396
|
+
// Constructors
|
|
2397
|
+
|
|
2398
|
+
constructor(properties?: Partial<ServerCustomAuthHandler.ConstructorProps>, ...args: any[]);
|
|
2399
|
+
|
|
2400
|
+
_init(...args: any[]): void;
|
|
2401
|
+
|
|
2402
|
+
// Signals
|
|
2403
|
+
|
|
2404
|
+
/** @signal */
|
|
2405
|
+
connect<K extends keyof ServerCustomAuthHandler.SignalSignatures>(
|
|
2406
|
+
signal: K,
|
|
2407
|
+
callback: GObject.SignalCallback<this, ServerCustomAuthHandler.SignalSignatures[K]>,
|
|
2408
|
+
): number;
|
|
2409
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2410
|
+
/** @signal */
|
|
2411
|
+
connect_after<K extends keyof ServerCustomAuthHandler.SignalSignatures>(
|
|
2412
|
+
signal: K,
|
|
2413
|
+
callback: GObject.SignalCallback<this, ServerCustomAuthHandler.SignalSignatures[K]>,
|
|
2414
|
+
): number;
|
|
2415
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2416
|
+
/** @signal */
|
|
2417
|
+
emit<K extends keyof ServerCustomAuthHandler.SignalSignatures>(
|
|
2418
|
+
signal: K,
|
|
2419
|
+
...args: GObject.GjsParameters<ServerCustomAuthHandler.SignalSignatures[K]> extends [any, ...infer Q]
|
|
2420
|
+
? Q
|
|
2421
|
+
: never
|
|
2422
|
+
): void;
|
|
2423
|
+
emit(signal: string, ...args: any[]): void;
|
|
2424
|
+
|
|
2425
|
+
// Virtual methods
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* Authenticates the client on initial connection. The server can send
|
|
2429
|
+
* and read responses from the client at any time.
|
|
2430
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
2431
|
+
* @param sender A {@link ArrowFlight.ServerAuthSender}.
|
|
2432
|
+
* @param reader A {@link ArrowFlight.ServerAuthReader}.
|
|
2433
|
+
* @virtual
|
|
2434
|
+
*/
|
|
2435
|
+
vfunc_authenticate(context: ServerCallContext, sender: ServerAuthSender, reader: ServerAuthReader): void;
|
|
2436
|
+
/**
|
|
2437
|
+
* Validates a per-call client token.
|
|
2438
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
2439
|
+
* @param token The client token. May be the empty string if the client does not provide a token.
|
|
2440
|
+
* @virtual
|
|
2441
|
+
*/
|
|
2442
|
+
vfunc_is_valid(context: ServerCallContext, token: GLib.Bytes | Uint8Array): GLib.Bytes | null;
|
|
2443
|
+
|
|
2444
|
+
// Methods
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Authenticates the client on initial connection. The server can send
|
|
2448
|
+
* and read responses from the client at any time.
|
|
2449
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
2450
|
+
* @param sender A {@link ArrowFlight.ServerAuthSender}.
|
|
2451
|
+
* @param reader A {@link ArrowFlight.ServerAuthReader}.
|
|
2452
|
+
*/
|
|
2453
|
+
authenticate(context: ServerCallContext, sender: ServerAuthSender, reader: ServerAuthReader): void;
|
|
2454
|
+
/**
|
|
2455
|
+
* Validates a per-call client token.
|
|
2456
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
2457
|
+
* @param token The client token. May be the empty string if the client does not provide a token.
|
|
2458
|
+
* @returns The identity of the peer, if this authentication method supports it.
|
|
2459
|
+
*/
|
|
2460
|
+
is_valid(context: ServerCallContext, token: GLib.Bytes | Uint8Array): GLib.Bytes | null;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
namespace ServerOptions {
|
|
2464
|
+
// Signal signatures
|
|
2465
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2466
|
+
'notify::auth-handler': (pspec: GObject.ParamSpec) => void;
|
|
2467
|
+
'notify::location': (pspec: GObject.ParamSpec) => void;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
// Constructor properties interface
|
|
2471
|
+
|
|
2472
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2473
|
+
auth_handler: ServerAuthHandler;
|
|
2474
|
+
authHandler: ServerAuthHandler;
|
|
2475
|
+
location: Location;
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
/**
|
|
2480
|
+
* @gir-type Class
|
|
2481
|
+
*/
|
|
2482
|
+
class ServerOptions extends GObject.Object {
|
|
2483
|
+
static $gtype: GObject.GType<ServerOptions>;
|
|
2484
|
+
|
|
2485
|
+
// Properties
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* The authentication handler.
|
|
2489
|
+
* @since 12.0.0
|
|
2490
|
+
*/
|
|
2491
|
+
get auth_handler(): ServerAuthHandler;
|
|
2492
|
+
set auth_handler(val: ServerAuthHandler);
|
|
2493
|
+
/**
|
|
2494
|
+
* The authentication handler.
|
|
2495
|
+
* @since 12.0.0
|
|
2496
|
+
*/
|
|
2497
|
+
get authHandler(): ServerAuthHandler;
|
|
2498
|
+
set authHandler(val: ServerAuthHandler);
|
|
2499
|
+
/**
|
|
2500
|
+
* The location to be listened.
|
|
2501
|
+
* @since 5.0.0
|
|
2502
|
+
* @construct-only
|
|
2503
|
+
*/
|
|
2504
|
+
get location(): Location;
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Compile-time signal type information.
|
|
2508
|
+
*
|
|
2509
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2510
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2511
|
+
* @internal
|
|
2512
|
+
*/
|
|
2513
|
+
$signals: ServerOptions.SignalSignatures;
|
|
2514
|
+
|
|
2515
|
+
// Constructors
|
|
2516
|
+
|
|
2517
|
+
constructor(properties?: Partial<ServerOptions.ConstructorProps>, ...args: any[]);
|
|
2518
|
+
|
|
2519
|
+
_init(...args: any[]): void;
|
|
2520
|
+
|
|
2521
|
+
static ['new'](location: Location): ServerOptions;
|
|
2522
|
+
|
|
2523
|
+
// Signals
|
|
2524
|
+
|
|
2525
|
+
/** @signal */
|
|
2526
|
+
connect<K extends keyof ServerOptions.SignalSignatures>(
|
|
2527
|
+
signal: K,
|
|
2528
|
+
callback: GObject.SignalCallback<this, ServerOptions.SignalSignatures[K]>,
|
|
2529
|
+
): number;
|
|
2530
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2531
|
+
/** @signal */
|
|
2532
|
+
connect_after<K extends keyof ServerOptions.SignalSignatures>(
|
|
2533
|
+
signal: K,
|
|
2534
|
+
callback: GObject.SignalCallback<this, ServerOptions.SignalSignatures[K]>,
|
|
2535
|
+
): number;
|
|
2536
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2537
|
+
/** @signal */
|
|
2538
|
+
emit<K extends keyof ServerOptions.SignalSignatures>(
|
|
2539
|
+
signal: K,
|
|
2540
|
+
...args: GObject.GjsParameters<ServerOptions.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2541
|
+
): void;
|
|
2542
|
+
emit(signal: string, ...args: any[]): void;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
namespace StreamChunk {
|
|
2546
|
+
// Signal signatures
|
|
2547
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2548
|
+
'notify::chunk': (pspec: GObject.ParamSpec) => void;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
// Constructor properties interface
|
|
2552
|
+
|
|
2553
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2554
|
+
chunk: any;
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* @gir-type Class
|
|
2560
|
+
*/
|
|
2561
|
+
class StreamChunk extends GObject.Object {
|
|
2562
|
+
static $gtype: GObject.GType<StreamChunk>;
|
|
2563
|
+
|
|
2564
|
+
// Properties
|
|
2565
|
+
|
|
2566
|
+
/**
|
|
2567
|
+
* @construct-only
|
|
2568
|
+
*/
|
|
2569
|
+
set chunk(val: any);
|
|
2570
|
+
|
|
2571
|
+
/**
|
|
2572
|
+
* Compile-time signal type information.
|
|
2573
|
+
*
|
|
2574
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2575
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2576
|
+
* @internal
|
|
2577
|
+
*/
|
|
2578
|
+
$signals: StreamChunk.SignalSignatures;
|
|
2579
|
+
|
|
2580
|
+
// Constructors
|
|
2581
|
+
|
|
2582
|
+
constructor(properties?: Partial<StreamChunk.ConstructorProps>, ...args: any[]);
|
|
2583
|
+
|
|
2584
|
+
_init(...args: any[]): void;
|
|
2585
|
+
|
|
2586
|
+
// Signals
|
|
2587
|
+
|
|
2588
|
+
/** @signal */
|
|
2589
|
+
connect<K extends keyof StreamChunk.SignalSignatures>(
|
|
2590
|
+
signal: K,
|
|
2591
|
+
callback: GObject.SignalCallback<this, StreamChunk.SignalSignatures[K]>,
|
|
2592
|
+
): number;
|
|
2593
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2594
|
+
/** @signal */
|
|
2595
|
+
connect_after<K extends keyof StreamChunk.SignalSignatures>(
|
|
2596
|
+
signal: K,
|
|
2597
|
+
callback: GObject.SignalCallback<this, StreamChunk.SignalSignatures[K]>,
|
|
2598
|
+
): number;
|
|
2599
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2600
|
+
/** @signal */
|
|
2601
|
+
emit<K extends keyof StreamChunk.SignalSignatures>(
|
|
2602
|
+
signal: K,
|
|
2603
|
+
...args: GObject.GjsParameters<StreamChunk.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2604
|
+
): void;
|
|
2605
|
+
emit(signal: string, ...args: any[]): void;
|
|
2606
|
+
|
|
2607
|
+
// Methods
|
|
2608
|
+
|
|
2609
|
+
/**
|
|
2610
|
+
* @returns The data of the chunk.
|
|
2611
|
+
*/
|
|
2612
|
+
get_data(): Arrow.RecordBatch;
|
|
2613
|
+
/**
|
|
2614
|
+
* @param args
|
|
2615
|
+
*/
|
|
2616
|
+
// Conflicted with GObject.Object.get_data
|
|
2617
|
+
get_data(...args: never[]): any;
|
|
2618
|
+
/**
|
|
2619
|
+
* @returns The metadata of the chunk. The metadata may be NULL.
|
|
2620
|
+
*/
|
|
2621
|
+
get_metadata(): Arrow.Buffer | null;
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
namespace StreamReader {
|
|
2625
|
+
// Signal signatures
|
|
2626
|
+
interface SignalSignatures extends RecordBatchReader.SignalSignatures {
|
|
2627
|
+
'notify::is-owner': (pspec: GObject.ParamSpec) => void;
|
|
2628
|
+
'notify::reader': (pspec: GObject.ParamSpec) => void;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
// Constructor properties interface
|
|
2632
|
+
|
|
2633
|
+
interface ConstructorProps extends RecordBatchReader.ConstructorProps {}
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* @gir-type Class
|
|
2638
|
+
*/
|
|
2639
|
+
class StreamReader extends RecordBatchReader {
|
|
2640
|
+
static $gtype: GObject.GType<StreamReader>;
|
|
2641
|
+
|
|
2642
|
+
/**
|
|
2643
|
+
* Compile-time signal type information.
|
|
2644
|
+
*
|
|
2645
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2646
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2647
|
+
* @internal
|
|
2648
|
+
*/
|
|
2649
|
+
$signals: StreamReader.SignalSignatures;
|
|
2650
|
+
|
|
2651
|
+
// Constructors
|
|
2652
|
+
|
|
2653
|
+
constructor(properties?: Partial<StreamReader.ConstructorProps>, ...args: any[]);
|
|
2654
|
+
|
|
2655
|
+
_init(...args: any[]): void;
|
|
2656
|
+
|
|
2657
|
+
// Signals
|
|
2658
|
+
|
|
2659
|
+
/** @signal */
|
|
2660
|
+
connect<K extends keyof StreamReader.SignalSignatures>(
|
|
2661
|
+
signal: K,
|
|
2662
|
+
callback: GObject.SignalCallback<this, StreamReader.SignalSignatures[K]>,
|
|
2663
|
+
): number;
|
|
2664
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2665
|
+
/** @signal */
|
|
2666
|
+
connect_after<K extends keyof StreamReader.SignalSignatures>(
|
|
2667
|
+
signal: K,
|
|
2668
|
+
callback: GObject.SignalCallback<this, StreamReader.SignalSignatures[K]>,
|
|
2669
|
+
): number;
|
|
2670
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2671
|
+
/** @signal */
|
|
2672
|
+
emit<K extends keyof StreamReader.SignalSignatures>(
|
|
2673
|
+
signal: K,
|
|
2674
|
+
...args: GObject.GjsParameters<StreamReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2675
|
+
): void;
|
|
2676
|
+
emit(signal: string, ...args: any[]): void;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
namespace StreamWriter {
|
|
2680
|
+
// Signal signatures
|
|
2681
|
+
interface SignalSignatures extends RecordBatchWriter.SignalSignatures {
|
|
2682
|
+
'notify::record-batch-writer': (pspec: GObject.ParamSpec) => void;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
// Constructor properties interface
|
|
2686
|
+
|
|
2687
|
+
interface ConstructorProps extends RecordBatchWriter.ConstructorProps {}
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
/**
|
|
2691
|
+
* @gir-type Class
|
|
2692
|
+
*/
|
|
2693
|
+
class StreamWriter extends RecordBatchWriter {
|
|
2694
|
+
static $gtype: GObject.GType<StreamWriter>;
|
|
2695
|
+
|
|
2696
|
+
/**
|
|
2697
|
+
* Compile-time signal type information.
|
|
2698
|
+
*
|
|
2699
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2700
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2701
|
+
* @internal
|
|
2702
|
+
*/
|
|
2703
|
+
$signals: StreamWriter.SignalSignatures;
|
|
2704
|
+
|
|
2705
|
+
// Constructors
|
|
2706
|
+
|
|
2707
|
+
constructor(properties?: Partial<StreamWriter.ConstructorProps>, ...args: any[]);
|
|
2708
|
+
|
|
2709
|
+
_init(...args: any[]): void;
|
|
2710
|
+
|
|
2711
|
+
// Signals
|
|
2712
|
+
|
|
2713
|
+
/** @signal */
|
|
2714
|
+
connect<K extends keyof StreamWriter.SignalSignatures>(
|
|
2715
|
+
signal: K,
|
|
2716
|
+
callback: GObject.SignalCallback<this, StreamWriter.SignalSignatures[K]>,
|
|
2717
|
+
): number;
|
|
2718
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2719
|
+
/** @signal */
|
|
2720
|
+
connect_after<K extends keyof StreamWriter.SignalSignatures>(
|
|
2721
|
+
signal: K,
|
|
2722
|
+
callback: GObject.SignalCallback<this, StreamWriter.SignalSignatures[K]>,
|
|
2723
|
+
): number;
|
|
2724
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2725
|
+
/** @signal */
|
|
2726
|
+
emit<K extends keyof StreamWriter.SignalSignatures>(
|
|
2727
|
+
signal: K,
|
|
2728
|
+
...args: GObject.GjsParameters<StreamWriter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2729
|
+
): void;
|
|
2730
|
+
emit(signal: string, ...args: any[]): void;
|
|
2731
|
+
|
|
2732
|
+
// Methods
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* @returns `true` on success, `false` on error.
|
|
2736
|
+
*/
|
|
2737
|
+
done_writing(): boolean;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
namespace Ticket {
|
|
2741
|
+
// Signal signatures
|
|
2742
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2743
|
+
'notify::data': (pspec: GObject.ParamSpec) => void;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
// Constructor properties interface
|
|
2747
|
+
|
|
2748
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2749
|
+
data: GLib.Bytes;
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
/**
|
|
2754
|
+
* @gir-type Class
|
|
2755
|
+
*/
|
|
2756
|
+
class Ticket extends GObject.Object {
|
|
2757
|
+
static $gtype: GObject.GType<Ticket>;
|
|
2758
|
+
|
|
2759
|
+
// Properties
|
|
2760
|
+
|
|
2761
|
+
/**
|
|
2762
|
+
* Opaque identifier or credential to use when requesting a data
|
|
2763
|
+
* stream with the DoGet RPC.
|
|
2764
|
+
* @since 5.0.0
|
|
2765
|
+
*/
|
|
2766
|
+
get data(): GLib.Bytes;
|
|
2767
|
+
set data(val: GLib.Bytes);
|
|
2768
|
+
|
|
2769
|
+
/**
|
|
2770
|
+
* Compile-time signal type information.
|
|
2771
|
+
*
|
|
2772
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2773
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2774
|
+
* @internal
|
|
2775
|
+
*/
|
|
2776
|
+
$signals: Ticket.SignalSignatures;
|
|
2777
|
+
|
|
2778
|
+
// Constructors
|
|
2779
|
+
|
|
2780
|
+
constructor(properties?: Partial<Ticket.ConstructorProps>, ...args: any[]);
|
|
2781
|
+
|
|
2782
|
+
_init(...args: any[]): void;
|
|
2783
|
+
|
|
2784
|
+
static ['new'](data: GLib.Bytes | Uint8Array): Ticket;
|
|
2785
|
+
|
|
2786
|
+
// Signals
|
|
2787
|
+
|
|
2788
|
+
/** @signal */
|
|
2789
|
+
connect<K extends keyof Ticket.SignalSignatures>(
|
|
2790
|
+
signal: K,
|
|
2791
|
+
callback: GObject.SignalCallback<this, Ticket.SignalSignatures[K]>,
|
|
2792
|
+
): number;
|
|
2793
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2794
|
+
/** @signal */
|
|
2795
|
+
connect_after<K extends keyof Ticket.SignalSignatures>(
|
|
2796
|
+
signal: K,
|
|
2797
|
+
callback: GObject.SignalCallback<this, Ticket.SignalSignatures[K]>,
|
|
2798
|
+
): number;
|
|
2799
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2800
|
+
/** @signal */
|
|
2801
|
+
emit<K extends keyof Ticket.SignalSignatures>(
|
|
2802
|
+
signal: K,
|
|
2803
|
+
...args: GObject.GjsParameters<Ticket.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
2804
|
+
): void;
|
|
2805
|
+
emit(signal: string, ...args: any[]): void;
|
|
2806
|
+
|
|
2807
|
+
// Methods
|
|
2808
|
+
|
|
2809
|
+
/**
|
|
2810
|
+
* @param other_ticket A {@link ArrowFlight.Ticket} to be compared.
|
|
2811
|
+
* @returns `true` if both of them represents the same ticket, `false` otherwise.
|
|
2812
|
+
*/
|
|
2813
|
+
equal(other_ticket: Ticket): boolean;
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* @gir-type Alias
|
|
2818
|
+
*/
|
|
2819
|
+
type CallOptionsClass = typeof CallOptions;
|
|
2820
|
+
/**
|
|
2821
|
+
* @gir-type Alias
|
|
2822
|
+
*/
|
|
2823
|
+
type ClientClass = typeof Client;
|
|
2824
|
+
/**
|
|
2825
|
+
* @gir-type Alias
|
|
2826
|
+
*/
|
|
2827
|
+
type ClientOptionsClass = typeof ClientOptions;
|
|
2828
|
+
/**
|
|
2829
|
+
* @gir-type Alias
|
|
2830
|
+
*/
|
|
2831
|
+
type CommandDescriptorClass = typeof CommandDescriptor;
|
|
2832
|
+
/**
|
|
2833
|
+
* @gir-type Alias
|
|
2834
|
+
*/
|
|
2835
|
+
type CriteriaClass = typeof Criteria;
|
|
2836
|
+
/**
|
|
2837
|
+
* @gir-type Alias
|
|
2838
|
+
*/
|
|
2839
|
+
type DataStreamClass = typeof DataStream;
|
|
2840
|
+
/**
|
|
2841
|
+
* @gir-type Alias
|
|
2842
|
+
*/
|
|
2843
|
+
type DescriptorClass = typeof Descriptor;
|
|
2844
|
+
/**
|
|
2845
|
+
* @gir-type Alias
|
|
2846
|
+
*/
|
|
2847
|
+
type DoPutResultClass = typeof DoPutResult;
|
|
2848
|
+
/**
|
|
2849
|
+
* @gir-type Alias
|
|
2850
|
+
*/
|
|
2851
|
+
type EndpointClass = typeof Endpoint;
|
|
2852
|
+
/**
|
|
2853
|
+
* @gir-type Alias
|
|
2854
|
+
*/
|
|
2855
|
+
type InfoClass = typeof Info;
|
|
2856
|
+
/**
|
|
2857
|
+
* @gir-type Alias
|
|
2858
|
+
*/
|
|
2859
|
+
type LocationClass = typeof Location;
|
|
2860
|
+
/**
|
|
2861
|
+
* @gir-type Alias
|
|
2862
|
+
*/
|
|
2863
|
+
type MessageReaderClass = typeof MessageReader;
|
|
2864
|
+
/**
|
|
2865
|
+
* @gir-type Alias
|
|
2866
|
+
*/
|
|
2867
|
+
type MetadataReaderClass = typeof MetadataReader;
|
|
2868
|
+
/**
|
|
2869
|
+
* @gir-type Alias
|
|
2870
|
+
*/
|
|
2871
|
+
type MetadataWriterClass = typeof MetadataWriter;
|
|
2872
|
+
/**
|
|
2873
|
+
* @gir-type Alias
|
|
2874
|
+
*/
|
|
2875
|
+
type PathDescriptorClass = typeof PathDescriptor;
|
|
2876
|
+
/**
|
|
2877
|
+
* @gir-type Alias
|
|
2878
|
+
*/
|
|
2879
|
+
type RecordBatchReaderClass = typeof RecordBatchReader;
|
|
2880
|
+
/**
|
|
2881
|
+
* @gir-type Alias
|
|
2882
|
+
*/
|
|
2883
|
+
type RecordBatchStreamClass = typeof RecordBatchStream;
|
|
2884
|
+
/**
|
|
2885
|
+
* @gir-type Alias
|
|
2886
|
+
*/
|
|
2887
|
+
type RecordBatchWriterClass = typeof RecordBatchWriter;
|
|
2888
|
+
/**
|
|
2889
|
+
* @gir-type Alias
|
|
2890
|
+
*/
|
|
2891
|
+
type ServableInterface = typeof Servable;
|
|
2892
|
+
/**
|
|
2893
|
+
* @gir-type Alias
|
|
2894
|
+
*/
|
|
2895
|
+
type ServerAuthHandlerClass = typeof ServerAuthHandler;
|
|
2896
|
+
/**
|
|
2897
|
+
* @gir-type Alias
|
|
2898
|
+
*/
|
|
2899
|
+
type ServerAuthReaderClass = typeof ServerAuthReader;
|
|
2900
|
+
/**
|
|
2901
|
+
* @gir-type Alias
|
|
2902
|
+
*/
|
|
2903
|
+
type ServerAuthSenderClass = typeof ServerAuthSender;
|
|
2904
|
+
/**
|
|
2905
|
+
* @gir-type Alias
|
|
2906
|
+
*/
|
|
2907
|
+
type ServerCallContextClass = typeof ServerCallContext;
|
|
2908
|
+
/**
|
|
2909
|
+
* @gir-type Alias
|
|
2910
|
+
*/
|
|
2911
|
+
type ServerClass = typeof Server;
|
|
2912
|
+
/**
|
|
2913
|
+
* @gir-type Alias
|
|
2914
|
+
*/
|
|
2915
|
+
type ServerCustomAuthHandlerClass = typeof ServerCustomAuthHandler;
|
|
2916
|
+
/**
|
|
2917
|
+
* @gir-type Alias
|
|
2918
|
+
*/
|
|
2919
|
+
type ServerOptionsClass = typeof ServerOptions;
|
|
2920
|
+
/**
|
|
2921
|
+
* @gir-type Alias
|
|
2922
|
+
*/
|
|
2923
|
+
type StreamChunkClass = typeof StreamChunk;
|
|
2924
|
+
/**
|
|
2925
|
+
* @gir-type Alias
|
|
2926
|
+
*/
|
|
2927
|
+
type StreamReaderClass = typeof StreamReader;
|
|
2928
|
+
/**
|
|
2929
|
+
* @gir-type Alias
|
|
2930
|
+
*/
|
|
2931
|
+
type StreamWriterClass = typeof StreamWriter;
|
|
2932
|
+
/**
|
|
2933
|
+
* @gir-type Alias
|
|
2934
|
+
*/
|
|
2935
|
+
type TicketClass = typeof Ticket;
|
|
2936
|
+
namespace Servable {
|
|
2937
|
+
// Constructor properties interface
|
|
2938
|
+
|
|
2939
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
export interface ServableNamespace {
|
|
2943
|
+
$gtype: GObject.GType<Servable>;
|
|
2944
|
+
prototype: Servable;
|
|
2945
|
+
}
|
|
2946
|
+
/**
|
|
2947
|
+
* @gir-type Interface
|
|
2948
|
+
*/
|
|
2949
|
+
interface Servable extends GObject.Object {}
|
|
2950
|
+
|
|
2951
|
+
export const Servable: ServableNamespace & {
|
|
2952
|
+
new (): Servable; // This allows `obj instanceof Servable`
|
|
2953
|
+
};
|
|
2954
|
+
|
|
2955
|
+
/**
|
|
2956
|
+
* Name of the imported GIR library
|
|
2957
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
2958
|
+
*/
|
|
2959
|
+
const __name__: string;
|
|
2960
|
+
/**
|
|
2961
|
+
* Version of the imported GIR library
|
|
2962
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
2963
|
+
*/
|
|
2964
|
+
const __version__: string;
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
export default ArrowFlight;
|
|
2968
|
+
|
|
2969
|
+
// END
|