firebase-functions 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/change.js +4 -4
- package/lib/common/encoding.d.ts +3 -2
- package/lib/common/encoding.js +4 -0
- package/lib/common/params.d.ts +4 -4
- package/lib/common/providers/database.js +1 -6
- package/lib/common/providers/firestore.d.ts +1 -0
- package/lib/common/providers/firestore.js +106 -0
- package/lib/common/providers/https.d.ts +3 -3
- package/lib/common/providers/https.js +28 -1
- package/lib/common/providers/identity.d.ts +3 -3
- package/lib/common/providers/tasks.d.ts +1 -1
- package/lib/common/timezone.d.ts +1 -1
- package/lib/common/utilities/path-pattern.js +5 -5
- package/lib/logger/index.d.ts +1 -1
- package/lib/params/index.d.ts +1 -1
- package/lib/params/types.d.ts +5 -5
- package/lib/v1/function-builder.d.ts +4 -2
- package/lib/v1/function-builder.js +7 -5
- package/lib/v1/function-configuration.d.ts +5 -5
- package/lib/v1/providers/auth.js +3 -3
- package/lib/v1/providers/firestore.d.ts +2 -2
- package/lib/v1/providers/firestore.js +4 -39
- package/lib/v1/providers/testLab.d.ts +4 -4
- package/lib/v2/index.d.ts +2 -1
- package/lib/v2/index.js +3 -1
- package/lib/v2/options.d.ts +8 -8
- package/lib/v2/providers/alerts/alerts.d.ts +3 -3
- package/lib/v2/providers/alerts/appDistribution.d.ts +2 -2
- package/lib/v2/providers/alerts/crashlytics.d.ts +2 -2
- package/lib/v2/providers/database.d.ts +3 -3
- package/lib/v2/providers/database.js +8 -2
- package/lib/v2/providers/eventarc.d.ts +2 -2
- package/lib/v2/providers/firestore.d.ts +91 -0
- package/lib/v2/providers/firestore.js +243 -0
- package/lib/v2/providers/https.d.ts +3 -3
- package/lib/v2/providers/identity.d.ts +2 -2
- package/lib/v2/providers/pubsub.d.ts +2 -2
- package/lib/v2/providers/remoteConfig.d.ts +2 -2
- package/lib/v2/providers/storage.d.ts +2 -2
- package/lib/v2/providers/tasks.d.ts +3 -3
- package/lib/v2/providers/testLab.d.ts +2 -2
- package/lib/v2/trace.d.ts +1 -1
- package/package.json +13 -6
- package/protos/README.md +15 -0
- package/protos/compiledFirestore.d.ts +1342 -0
- package/protos/compiledFirestore.js +3514 -0
- package/protos/update.sh +75 -0
|
@@ -0,0 +1,1342 @@
|
|
|
1
|
+
import * as $protobuf from "protobufjs";
|
|
2
|
+
import Long = require("long");
|
|
3
|
+
/** Namespace google. */
|
|
4
|
+
export namespace google {
|
|
5
|
+
|
|
6
|
+
/** Namespace protobuf. */
|
|
7
|
+
namespace protobuf {
|
|
8
|
+
|
|
9
|
+
/** Properties of a Struct. */
|
|
10
|
+
interface IStruct {
|
|
11
|
+
|
|
12
|
+
/** Struct fields */
|
|
13
|
+
fields?: ({ [k: string]: google.protobuf.IValue }|null);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Represents a Struct. */
|
|
17
|
+
class Struct implements IStruct {
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Constructs a new Struct.
|
|
21
|
+
* @param [properties] Properties to set
|
|
22
|
+
*/
|
|
23
|
+
constructor(properties?: google.protobuf.IStruct);
|
|
24
|
+
|
|
25
|
+
/** Struct fields. */
|
|
26
|
+
public fields: { [k: string]: google.protobuf.IValue };
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new Struct instance using the specified properties.
|
|
30
|
+
* @param [properties] Properties to set
|
|
31
|
+
* @returns Struct instance
|
|
32
|
+
*/
|
|
33
|
+
public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
|
|
37
|
+
* @param message Struct message or plain object to encode
|
|
38
|
+
* @param [writer] Writer to encode to
|
|
39
|
+
* @returns Writer
|
|
40
|
+
*/
|
|
41
|
+
public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
|
|
45
|
+
* @param message Struct message or plain object to encode
|
|
46
|
+
* @param [writer] Writer to encode to
|
|
47
|
+
* @returns Writer
|
|
48
|
+
*/
|
|
49
|
+
public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Decodes a Struct message from the specified reader or buffer.
|
|
53
|
+
* @param reader Reader or buffer to decode from
|
|
54
|
+
* @param [length] Message length if known beforehand
|
|
55
|
+
* @returns Struct
|
|
56
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58
|
+
*/
|
|
59
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Decodes a Struct message from the specified reader or buffer, length delimited.
|
|
63
|
+
* @param reader Reader or buffer to decode from
|
|
64
|
+
* @returns Struct
|
|
65
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67
|
+
*/
|
|
68
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Struct;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Verifies a Struct message.
|
|
72
|
+
* @param message Plain object to verify
|
|
73
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
74
|
+
*/
|
|
75
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Creates a Struct message from a plain object. Also converts values to their respective internal types.
|
|
79
|
+
* @param object Plain object
|
|
80
|
+
* @returns Struct
|
|
81
|
+
*/
|
|
82
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Creates a plain object from a Struct message. Also converts values to other types if specified.
|
|
86
|
+
* @param message Struct
|
|
87
|
+
* @param [options] Conversion options
|
|
88
|
+
* @returns Plain object
|
|
89
|
+
*/
|
|
90
|
+
public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Converts this Struct to JSON.
|
|
94
|
+
* @returns JSON object
|
|
95
|
+
*/
|
|
96
|
+
public toJSON(): { [k: string]: any };
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Gets the default type url for Struct
|
|
100
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
101
|
+
* @returns The default type url
|
|
102
|
+
*/
|
|
103
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** Properties of a Value. */
|
|
107
|
+
interface IValue {
|
|
108
|
+
|
|
109
|
+
/** Value nullValue */
|
|
110
|
+
nullValue?: (google.protobuf.NullValue|null);
|
|
111
|
+
|
|
112
|
+
/** Value numberValue */
|
|
113
|
+
numberValue?: (number|null);
|
|
114
|
+
|
|
115
|
+
/** Value stringValue */
|
|
116
|
+
stringValue?: (string|null);
|
|
117
|
+
|
|
118
|
+
/** Value boolValue */
|
|
119
|
+
boolValue?: (boolean|null);
|
|
120
|
+
|
|
121
|
+
/** Value structValue */
|
|
122
|
+
structValue?: (google.protobuf.IStruct|null);
|
|
123
|
+
|
|
124
|
+
/** Value listValue */
|
|
125
|
+
listValue?: (google.protobuf.IListValue|null);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** Represents a Value. */
|
|
129
|
+
class Value implements IValue {
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Constructs a new Value.
|
|
133
|
+
* @param [properties] Properties to set
|
|
134
|
+
*/
|
|
135
|
+
constructor(properties?: google.protobuf.IValue);
|
|
136
|
+
|
|
137
|
+
/** Value nullValue. */
|
|
138
|
+
public nullValue?: (google.protobuf.NullValue|null);
|
|
139
|
+
|
|
140
|
+
/** Value numberValue. */
|
|
141
|
+
public numberValue?: (number|null);
|
|
142
|
+
|
|
143
|
+
/** Value stringValue. */
|
|
144
|
+
public stringValue?: (string|null);
|
|
145
|
+
|
|
146
|
+
/** Value boolValue. */
|
|
147
|
+
public boolValue?: (boolean|null);
|
|
148
|
+
|
|
149
|
+
/** Value structValue. */
|
|
150
|
+
public structValue?: (google.protobuf.IStruct|null);
|
|
151
|
+
|
|
152
|
+
/** Value listValue. */
|
|
153
|
+
public listValue?: (google.protobuf.IListValue|null);
|
|
154
|
+
|
|
155
|
+
/** Value kind. */
|
|
156
|
+
public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Creates a new Value instance using the specified properties.
|
|
160
|
+
* @param [properties] Properties to set
|
|
161
|
+
* @returns Value instance
|
|
162
|
+
*/
|
|
163
|
+
public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
|
|
167
|
+
* @param message Value message or plain object to encode
|
|
168
|
+
* @param [writer] Writer to encode to
|
|
169
|
+
* @returns Writer
|
|
170
|
+
*/
|
|
171
|
+
public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
|
|
175
|
+
* @param message Value message or plain object to encode
|
|
176
|
+
* @param [writer] Writer to encode to
|
|
177
|
+
* @returns Writer
|
|
178
|
+
*/
|
|
179
|
+
public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Decodes a Value message from the specified reader or buffer.
|
|
183
|
+
* @param reader Reader or buffer to decode from
|
|
184
|
+
* @param [length] Message length if known beforehand
|
|
185
|
+
* @returns Value
|
|
186
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
187
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188
|
+
*/
|
|
189
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Decodes a Value message from the specified reader or buffer, length delimited.
|
|
193
|
+
* @param reader Reader or buffer to decode from
|
|
194
|
+
* @returns Value
|
|
195
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
196
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
197
|
+
*/
|
|
198
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Value;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Verifies a Value message.
|
|
202
|
+
* @param message Plain object to verify
|
|
203
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
204
|
+
*/
|
|
205
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Creates a Value message from a plain object. Also converts values to their respective internal types.
|
|
209
|
+
* @param object Plain object
|
|
210
|
+
* @returns Value
|
|
211
|
+
*/
|
|
212
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Creates a plain object from a Value message. Also converts values to other types if specified.
|
|
216
|
+
* @param message Value
|
|
217
|
+
* @param [options] Conversion options
|
|
218
|
+
* @returns Plain object
|
|
219
|
+
*/
|
|
220
|
+
public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Converts this Value to JSON.
|
|
224
|
+
* @returns JSON object
|
|
225
|
+
*/
|
|
226
|
+
public toJSON(): { [k: string]: any };
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Gets the default type url for Value
|
|
230
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
231
|
+
* @returns The default type url
|
|
232
|
+
*/
|
|
233
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/** NullValue enum. */
|
|
237
|
+
enum NullValue {
|
|
238
|
+
NULL_VALUE = 0
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/** Properties of a ListValue. */
|
|
242
|
+
interface IListValue {
|
|
243
|
+
|
|
244
|
+
/** ListValue values */
|
|
245
|
+
values?: (google.protobuf.IValue[]|null);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/** Represents a ListValue. */
|
|
249
|
+
class ListValue implements IListValue {
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Constructs a new ListValue.
|
|
253
|
+
* @param [properties] Properties to set
|
|
254
|
+
*/
|
|
255
|
+
constructor(properties?: google.protobuf.IListValue);
|
|
256
|
+
|
|
257
|
+
/** ListValue values. */
|
|
258
|
+
public values: google.protobuf.IValue[];
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Creates a new ListValue instance using the specified properties.
|
|
262
|
+
* @param [properties] Properties to set
|
|
263
|
+
* @returns ListValue instance
|
|
264
|
+
*/
|
|
265
|
+
public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
|
|
269
|
+
* @param message ListValue message or plain object to encode
|
|
270
|
+
* @param [writer] Writer to encode to
|
|
271
|
+
* @returns Writer
|
|
272
|
+
*/
|
|
273
|
+
public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
|
|
277
|
+
* @param message ListValue message or plain object to encode
|
|
278
|
+
* @param [writer] Writer to encode to
|
|
279
|
+
* @returns Writer
|
|
280
|
+
*/
|
|
281
|
+
public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Decodes a ListValue message from the specified reader or buffer.
|
|
285
|
+
* @param reader Reader or buffer to decode from
|
|
286
|
+
* @param [length] Message length if known beforehand
|
|
287
|
+
* @returns ListValue
|
|
288
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
289
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
290
|
+
*/
|
|
291
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Decodes a ListValue message from the specified reader or buffer, length delimited.
|
|
295
|
+
* @param reader Reader or buffer to decode from
|
|
296
|
+
* @returns ListValue
|
|
297
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
298
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
299
|
+
*/
|
|
300
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ListValue;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Verifies a ListValue message.
|
|
304
|
+
* @param message Plain object to verify
|
|
305
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
306
|
+
*/
|
|
307
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Creates a ListValue message from a plain object. Also converts values to their respective internal types.
|
|
311
|
+
* @param object Plain object
|
|
312
|
+
* @returns ListValue
|
|
313
|
+
*/
|
|
314
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Creates a plain object from a ListValue message. Also converts values to other types if specified.
|
|
318
|
+
* @param message ListValue
|
|
319
|
+
* @param [options] Conversion options
|
|
320
|
+
* @returns Plain object
|
|
321
|
+
*/
|
|
322
|
+
public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Converts this ListValue to JSON.
|
|
326
|
+
* @returns JSON object
|
|
327
|
+
*/
|
|
328
|
+
public toJSON(): { [k: string]: any };
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Gets the default type url for ListValue
|
|
332
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
333
|
+
* @returns The default type url
|
|
334
|
+
*/
|
|
335
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/** Properties of a Timestamp. */
|
|
339
|
+
interface ITimestamp {
|
|
340
|
+
|
|
341
|
+
/** Timestamp seconds */
|
|
342
|
+
seconds?: (number|Long|null);
|
|
343
|
+
|
|
344
|
+
/** Timestamp nanos */
|
|
345
|
+
nanos?: (number|null);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/** Represents a Timestamp. */
|
|
349
|
+
class Timestamp implements ITimestamp {
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Constructs a new Timestamp.
|
|
353
|
+
* @param [properties] Properties to set
|
|
354
|
+
*/
|
|
355
|
+
constructor(properties?: google.protobuf.ITimestamp);
|
|
356
|
+
|
|
357
|
+
/** Timestamp seconds. */
|
|
358
|
+
public seconds: (number|Long);
|
|
359
|
+
|
|
360
|
+
/** Timestamp nanos. */
|
|
361
|
+
public nanos: number;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Creates a new Timestamp instance using the specified properties.
|
|
365
|
+
* @param [properties] Properties to set
|
|
366
|
+
* @returns Timestamp instance
|
|
367
|
+
*/
|
|
368
|
+
public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
372
|
+
* @param message Timestamp message or plain object to encode
|
|
373
|
+
* @param [writer] Writer to encode to
|
|
374
|
+
* @returns Writer
|
|
375
|
+
*/
|
|
376
|
+
public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
380
|
+
* @param message Timestamp message or plain object to encode
|
|
381
|
+
* @param [writer] Writer to encode to
|
|
382
|
+
* @returns Writer
|
|
383
|
+
*/
|
|
384
|
+
public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Decodes a Timestamp message from the specified reader or buffer.
|
|
388
|
+
* @param reader Reader or buffer to decode from
|
|
389
|
+
* @param [length] Message length if known beforehand
|
|
390
|
+
* @returns Timestamp
|
|
391
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
392
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
393
|
+
*/
|
|
394
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
|
398
|
+
* @param reader Reader or buffer to decode from
|
|
399
|
+
* @returns Timestamp
|
|
400
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
401
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
402
|
+
*/
|
|
403
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Verifies a Timestamp message.
|
|
407
|
+
* @param message Plain object to verify
|
|
408
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
409
|
+
*/
|
|
410
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
|
414
|
+
* @param object Plain object
|
|
415
|
+
* @returns Timestamp
|
|
416
|
+
*/
|
|
417
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
|
421
|
+
* @param message Timestamp
|
|
422
|
+
* @param [options] Conversion options
|
|
423
|
+
* @returns Plain object
|
|
424
|
+
*/
|
|
425
|
+
public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Converts this Timestamp to JSON.
|
|
429
|
+
* @returns JSON object
|
|
430
|
+
*/
|
|
431
|
+
public toJSON(): { [k: string]: any };
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Gets the default type url for Timestamp
|
|
435
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
436
|
+
* @returns The default type url
|
|
437
|
+
*/
|
|
438
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/** Properties of an Any. */
|
|
442
|
+
interface IAny {
|
|
443
|
+
|
|
444
|
+
/** Any typeUrl */
|
|
445
|
+
typeUrl?: (string|null);
|
|
446
|
+
|
|
447
|
+
/** Any value */
|
|
448
|
+
value?: (Uint8Array|null);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/** Represents an Any. */
|
|
452
|
+
class Any implements IAny {
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Constructs a new Any.
|
|
456
|
+
* @param [properties] Properties to set
|
|
457
|
+
*/
|
|
458
|
+
constructor(properties?: google.protobuf.IAny);
|
|
459
|
+
|
|
460
|
+
/** Any typeUrl. */
|
|
461
|
+
public typeUrl: string;
|
|
462
|
+
|
|
463
|
+
/** Any value. */
|
|
464
|
+
public value: Uint8Array;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Creates a new Any instance using the specified properties.
|
|
468
|
+
* @param [properties] Properties to set
|
|
469
|
+
* @returns Any instance
|
|
470
|
+
*/
|
|
471
|
+
public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
475
|
+
* @param message Any message or plain object to encode
|
|
476
|
+
* @param [writer] Writer to encode to
|
|
477
|
+
* @returns Writer
|
|
478
|
+
*/
|
|
479
|
+
public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
483
|
+
* @param message Any message or plain object to encode
|
|
484
|
+
* @param [writer] Writer to encode to
|
|
485
|
+
* @returns Writer
|
|
486
|
+
*/
|
|
487
|
+
public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Decodes an Any message from the specified reader or buffer.
|
|
491
|
+
* @param reader Reader or buffer to decode from
|
|
492
|
+
* @param [length] Message length if known beforehand
|
|
493
|
+
* @returns Any
|
|
494
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
495
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
496
|
+
*/
|
|
497
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Decodes an Any message from the specified reader or buffer, length delimited.
|
|
501
|
+
* @param reader Reader or buffer to decode from
|
|
502
|
+
* @returns Any
|
|
503
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
504
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
505
|
+
*/
|
|
506
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Verifies an Any message.
|
|
510
|
+
* @param message Plain object to verify
|
|
511
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
512
|
+
*/
|
|
513
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Creates an Any message from a plain object. Also converts values to their respective internal types.
|
|
517
|
+
* @param object Plain object
|
|
518
|
+
* @returns Any
|
|
519
|
+
*/
|
|
520
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Creates a plain object from an Any message. Also converts values to other types if specified.
|
|
524
|
+
* @param message Any
|
|
525
|
+
* @param [options] Conversion options
|
|
526
|
+
* @returns Plain object
|
|
527
|
+
*/
|
|
528
|
+
public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Converts this Any to JSON.
|
|
532
|
+
* @returns JSON object
|
|
533
|
+
*/
|
|
534
|
+
public toJSON(): { [k: string]: any };
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Gets the default type url for Any
|
|
538
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
539
|
+
* @returns The default type url
|
|
540
|
+
*/
|
|
541
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/** Namespace events. */
|
|
546
|
+
namespace events {
|
|
547
|
+
|
|
548
|
+
/** Namespace cloud. */
|
|
549
|
+
namespace cloud {
|
|
550
|
+
|
|
551
|
+
/** Namespace firestore. */
|
|
552
|
+
namespace firestore {
|
|
553
|
+
|
|
554
|
+
/** Namespace v1. */
|
|
555
|
+
namespace v1 {
|
|
556
|
+
|
|
557
|
+
/** Properties of a DocumentEventData. */
|
|
558
|
+
interface IDocumentEventData {
|
|
559
|
+
|
|
560
|
+
/** DocumentEventData value */
|
|
561
|
+
value?: (google.events.cloud.firestore.v1.IDocument|null);
|
|
562
|
+
|
|
563
|
+
/** DocumentEventData oldValue */
|
|
564
|
+
oldValue?: (google.events.cloud.firestore.v1.IDocument|null);
|
|
565
|
+
|
|
566
|
+
/** DocumentEventData updateMask */
|
|
567
|
+
updateMask?: (google.events.cloud.firestore.v1.IDocumentMask|null);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/** Represents a DocumentEventData. */
|
|
571
|
+
class DocumentEventData implements IDocumentEventData {
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Constructs a new DocumentEventData.
|
|
575
|
+
* @param [properties] Properties to set
|
|
576
|
+
*/
|
|
577
|
+
constructor(properties?: google.events.cloud.firestore.v1.IDocumentEventData);
|
|
578
|
+
|
|
579
|
+
/** DocumentEventData value. */
|
|
580
|
+
public value?: (google.events.cloud.firestore.v1.IDocument|null);
|
|
581
|
+
|
|
582
|
+
/** DocumentEventData oldValue. */
|
|
583
|
+
public oldValue?: (google.events.cloud.firestore.v1.IDocument|null);
|
|
584
|
+
|
|
585
|
+
/** DocumentEventData updateMask. */
|
|
586
|
+
public updateMask?: (google.events.cloud.firestore.v1.IDocumentMask|null);
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Creates a new DocumentEventData instance using the specified properties.
|
|
590
|
+
* @param [properties] Properties to set
|
|
591
|
+
* @returns DocumentEventData instance
|
|
592
|
+
*/
|
|
593
|
+
public static create(properties?: google.events.cloud.firestore.v1.IDocumentEventData): google.events.cloud.firestore.v1.DocumentEventData;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Encodes the specified DocumentEventData message. Does not implicitly {@link google.events.cloud.firestore.v1.DocumentEventData.verify|verify} messages.
|
|
597
|
+
* @param message DocumentEventData message or plain object to encode
|
|
598
|
+
* @param [writer] Writer to encode to
|
|
599
|
+
* @returns Writer
|
|
600
|
+
*/
|
|
601
|
+
public static encode(message: google.events.cloud.firestore.v1.IDocumentEventData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Encodes the specified DocumentEventData message, length delimited. Does not implicitly {@link google.events.cloud.firestore.v1.DocumentEventData.verify|verify} messages.
|
|
605
|
+
* @param message DocumentEventData message or plain object to encode
|
|
606
|
+
* @param [writer] Writer to encode to
|
|
607
|
+
* @returns Writer
|
|
608
|
+
*/
|
|
609
|
+
public static encodeDelimited(message: google.events.cloud.firestore.v1.IDocumentEventData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Decodes a DocumentEventData message from the specified reader or buffer.
|
|
613
|
+
* @param reader Reader or buffer to decode from
|
|
614
|
+
* @param [length] Message length if known beforehand
|
|
615
|
+
* @returns DocumentEventData
|
|
616
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
617
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
618
|
+
*/
|
|
619
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.events.cloud.firestore.v1.DocumentEventData;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Decodes a DocumentEventData message from the specified reader or buffer, length delimited.
|
|
623
|
+
* @param reader Reader or buffer to decode from
|
|
624
|
+
* @returns DocumentEventData
|
|
625
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
626
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
627
|
+
*/
|
|
628
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.events.cloud.firestore.v1.DocumentEventData;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Verifies a DocumentEventData message.
|
|
632
|
+
* @param message Plain object to verify
|
|
633
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
634
|
+
*/
|
|
635
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Creates a DocumentEventData message from a plain object. Also converts values to their respective internal types.
|
|
639
|
+
* @param object Plain object
|
|
640
|
+
* @returns DocumentEventData
|
|
641
|
+
*/
|
|
642
|
+
public static fromObject(object: { [k: string]: any }): google.events.cloud.firestore.v1.DocumentEventData;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Creates a plain object from a DocumentEventData message. Also converts values to other types if specified.
|
|
646
|
+
* @param message DocumentEventData
|
|
647
|
+
* @param [options] Conversion options
|
|
648
|
+
* @returns Plain object
|
|
649
|
+
*/
|
|
650
|
+
public static toObject(message: google.events.cloud.firestore.v1.DocumentEventData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Converts this DocumentEventData to JSON.
|
|
654
|
+
* @returns JSON object
|
|
655
|
+
*/
|
|
656
|
+
public toJSON(): { [k: string]: any };
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Gets the default type url for DocumentEventData
|
|
660
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
661
|
+
* @returns The default type url
|
|
662
|
+
*/
|
|
663
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/** Properties of a DocumentMask. */
|
|
667
|
+
interface IDocumentMask {
|
|
668
|
+
|
|
669
|
+
/** DocumentMask fieldPaths */
|
|
670
|
+
fieldPaths?: (string[]|null);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/** Represents a DocumentMask. */
|
|
674
|
+
class DocumentMask implements IDocumentMask {
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Constructs a new DocumentMask.
|
|
678
|
+
* @param [properties] Properties to set
|
|
679
|
+
*/
|
|
680
|
+
constructor(properties?: google.events.cloud.firestore.v1.IDocumentMask);
|
|
681
|
+
|
|
682
|
+
/** DocumentMask fieldPaths. */
|
|
683
|
+
public fieldPaths: string[];
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Creates a new DocumentMask instance using the specified properties.
|
|
687
|
+
* @param [properties] Properties to set
|
|
688
|
+
* @returns DocumentMask instance
|
|
689
|
+
*/
|
|
690
|
+
public static create(properties?: google.events.cloud.firestore.v1.IDocumentMask): google.events.cloud.firestore.v1.DocumentMask;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Encodes the specified DocumentMask message. Does not implicitly {@link google.events.cloud.firestore.v1.DocumentMask.verify|verify} messages.
|
|
694
|
+
* @param message DocumentMask message or plain object to encode
|
|
695
|
+
* @param [writer] Writer to encode to
|
|
696
|
+
* @returns Writer
|
|
697
|
+
*/
|
|
698
|
+
public static encode(message: google.events.cloud.firestore.v1.IDocumentMask, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Encodes the specified DocumentMask message, length delimited. Does not implicitly {@link google.events.cloud.firestore.v1.DocumentMask.verify|verify} messages.
|
|
702
|
+
* @param message DocumentMask message or plain object to encode
|
|
703
|
+
* @param [writer] Writer to encode to
|
|
704
|
+
* @returns Writer
|
|
705
|
+
*/
|
|
706
|
+
public static encodeDelimited(message: google.events.cloud.firestore.v1.IDocumentMask, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Decodes a DocumentMask message from the specified reader or buffer.
|
|
710
|
+
* @param reader Reader or buffer to decode from
|
|
711
|
+
* @param [length] Message length if known beforehand
|
|
712
|
+
* @returns DocumentMask
|
|
713
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
714
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
715
|
+
*/
|
|
716
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.events.cloud.firestore.v1.DocumentMask;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Decodes a DocumentMask message from the specified reader or buffer, length delimited.
|
|
720
|
+
* @param reader Reader or buffer to decode from
|
|
721
|
+
* @returns DocumentMask
|
|
722
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
723
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
724
|
+
*/
|
|
725
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.events.cloud.firestore.v1.DocumentMask;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Verifies a DocumentMask message.
|
|
729
|
+
* @param message Plain object to verify
|
|
730
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
731
|
+
*/
|
|
732
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Creates a DocumentMask message from a plain object. Also converts values to their respective internal types.
|
|
736
|
+
* @param object Plain object
|
|
737
|
+
* @returns DocumentMask
|
|
738
|
+
*/
|
|
739
|
+
public static fromObject(object: { [k: string]: any }): google.events.cloud.firestore.v1.DocumentMask;
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Creates a plain object from a DocumentMask message. Also converts values to other types if specified.
|
|
743
|
+
* @param message DocumentMask
|
|
744
|
+
* @param [options] Conversion options
|
|
745
|
+
* @returns Plain object
|
|
746
|
+
*/
|
|
747
|
+
public static toObject(message: google.events.cloud.firestore.v1.DocumentMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Converts this DocumentMask to JSON.
|
|
751
|
+
* @returns JSON object
|
|
752
|
+
*/
|
|
753
|
+
public toJSON(): { [k: string]: any };
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Gets the default type url for DocumentMask
|
|
757
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
758
|
+
* @returns The default type url
|
|
759
|
+
*/
|
|
760
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/** Properties of a Document. */
|
|
764
|
+
interface IDocument {
|
|
765
|
+
|
|
766
|
+
/** Document name */
|
|
767
|
+
name?: (string|null);
|
|
768
|
+
|
|
769
|
+
/** Document fields */
|
|
770
|
+
fields?: ({ [k: string]: google.events.cloud.firestore.v1.IValue }|null);
|
|
771
|
+
|
|
772
|
+
/** Document createTime */
|
|
773
|
+
createTime?: (google.protobuf.ITimestamp|null);
|
|
774
|
+
|
|
775
|
+
/** Document updateTime */
|
|
776
|
+
updateTime?: (google.protobuf.ITimestamp|null);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/** Represents a Document. */
|
|
780
|
+
class Document implements IDocument {
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Constructs a new Document.
|
|
784
|
+
* @param [properties] Properties to set
|
|
785
|
+
*/
|
|
786
|
+
constructor(properties?: google.events.cloud.firestore.v1.IDocument);
|
|
787
|
+
|
|
788
|
+
/** Document name. */
|
|
789
|
+
public name: string;
|
|
790
|
+
|
|
791
|
+
/** Document fields. */
|
|
792
|
+
public fields: { [k: string]: google.events.cloud.firestore.v1.IValue };
|
|
793
|
+
|
|
794
|
+
/** Document createTime. */
|
|
795
|
+
public createTime?: (google.protobuf.ITimestamp|null);
|
|
796
|
+
|
|
797
|
+
/** Document updateTime. */
|
|
798
|
+
public updateTime?: (google.protobuf.ITimestamp|null);
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Creates a new Document instance using the specified properties.
|
|
802
|
+
* @param [properties] Properties to set
|
|
803
|
+
* @returns Document instance
|
|
804
|
+
*/
|
|
805
|
+
public static create(properties?: google.events.cloud.firestore.v1.IDocument): google.events.cloud.firestore.v1.Document;
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* Encodes the specified Document message. Does not implicitly {@link google.events.cloud.firestore.v1.Document.verify|verify} messages.
|
|
809
|
+
* @param message Document message or plain object to encode
|
|
810
|
+
* @param [writer] Writer to encode to
|
|
811
|
+
* @returns Writer
|
|
812
|
+
*/
|
|
813
|
+
public static encode(message: google.events.cloud.firestore.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Encodes the specified Document message, length delimited. Does not implicitly {@link google.events.cloud.firestore.v1.Document.verify|verify} messages.
|
|
817
|
+
* @param message Document message or plain object to encode
|
|
818
|
+
* @param [writer] Writer to encode to
|
|
819
|
+
* @returns Writer
|
|
820
|
+
*/
|
|
821
|
+
public static encodeDelimited(message: google.events.cloud.firestore.v1.IDocument, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Decodes a Document message from the specified reader or buffer.
|
|
825
|
+
* @param reader Reader or buffer to decode from
|
|
826
|
+
* @param [length] Message length if known beforehand
|
|
827
|
+
* @returns Document
|
|
828
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
829
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
830
|
+
*/
|
|
831
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.events.cloud.firestore.v1.Document;
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* Decodes a Document message from the specified reader or buffer, length delimited.
|
|
835
|
+
* @param reader Reader or buffer to decode from
|
|
836
|
+
* @returns Document
|
|
837
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
838
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
839
|
+
*/
|
|
840
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.events.cloud.firestore.v1.Document;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Verifies a Document message.
|
|
844
|
+
* @param message Plain object to verify
|
|
845
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
846
|
+
*/
|
|
847
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Creates a Document message from a plain object. Also converts values to their respective internal types.
|
|
851
|
+
* @param object Plain object
|
|
852
|
+
* @returns Document
|
|
853
|
+
*/
|
|
854
|
+
public static fromObject(object: { [k: string]: any }): google.events.cloud.firestore.v1.Document;
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Creates a plain object from a Document message. Also converts values to other types if specified.
|
|
858
|
+
* @param message Document
|
|
859
|
+
* @param [options] Conversion options
|
|
860
|
+
* @returns Plain object
|
|
861
|
+
*/
|
|
862
|
+
public static toObject(message: google.events.cloud.firestore.v1.Document, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Converts this Document to JSON.
|
|
866
|
+
* @returns JSON object
|
|
867
|
+
*/
|
|
868
|
+
public toJSON(): { [k: string]: any };
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Gets the default type url for Document
|
|
872
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
873
|
+
* @returns The default type url
|
|
874
|
+
*/
|
|
875
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/** Properties of a Value. */
|
|
879
|
+
interface IValue {
|
|
880
|
+
|
|
881
|
+
/** Value nullValue */
|
|
882
|
+
nullValue?: (google.protobuf.NullValue|null);
|
|
883
|
+
|
|
884
|
+
/** Value booleanValue */
|
|
885
|
+
booleanValue?: (boolean|null);
|
|
886
|
+
|
|
887
|
+
/** Value integerValue */
|
|
888
|
+
integerValue?: (number|Long|null);
|
|
889
|
+
|
|
890
|
+
/** Value doubleValue */
|
|
891
|
+
doubleValue?: (number|null);
|
|
892
|
+
|
|
893
|
+
/** Value timestampValue */
|
|
894
|
+
timestampValue?: (google.protobuf.ITimestamp|null);
|
|
895
|
+
|
|
896
|
+
/** Value stringValue */
|
|
897
|
+
stringValue?: (string|null);
|
|
898
|
+
|
|
899
|
+
/** Value bytesValue */
|
|
900
|
+
bytesValue?: (Uint8Array|null);
|
|
901
|
+
|
|
902
|
+
/** Value referenceValue */
|
|
903
|
+
referenceValue?: (string|null);
|
|
904
|
+
|
|
905
|
+
/** Value geoPointValue */
|
|
906
|
+
geoPointValue?: (google.type.ILatLng|null);
|
|
907
|
+
|
|
908
|
+
/** Value arrayValue */
|
|
909
|
+
arrayValue?: (google.events.cloud.firestore.v1.IArrayValue|null);
|
|
910
|
+
|
|
911
|
+
/** Value mapValue */
|
|
912
|
+
mapValue?: (google.events.cloud.firestore.v1.IMapValue|null);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/** Represents a Value. */
|
|
916
|
+
class Value implements IValue {
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Constructs a new Value.
|
|
920
|
+
* @param [properties] Properties to set
|
|
921
|
+
*/
|
|
922
|
+
constructor(properties?: google.events.cloud.firestore.v1.IValue);
|
|
923
|
+
|
|
924
|
+
/** Value nullValue. */
|
|
925
|
+
public nullValue?: (google.protobuf.NullValue|null);
|
|
926
|
+
|
|
927
|
+
/** Value booleanValue. */
|
|
928
|
+
public booleanValue?: (boolean|null);
|
|
929
|
+
|
|
930
|
+
/** Value integerValue. */
|
|
931
|
+
public integerValue?: (number|Long|null);
|
|
932
|
+
|
|
933
|
+
/** Value doubleValue. */
|
|
934
|
+
public doubleValue?: (number|null);
|
|
935
|
+
|
|
936
|
+
/** Value timestampValue. */
|
|
937
|
+
public timestampValue?: (google.protobuf.ITimestamp|null);
|
|
938
|
+
|
|
939
|
+
/** Value stringValue. */
|
|
940
|
+
public stringValue?: (string|null);
|
|
941
|
+
|
|
942
|
+
/** Value bytesValue. */
|
|
943
|
+
public bytesValue?: (Uint8Array|null);
|
|
944
|
+
|
|
945
|
+
/** Value referenceValue. */
|
|
946
|
+
public referenceValue?: (string|null);
|
|
947
|
+
|
|
948
|
+
/** Value geoPointValue. */
|
|
949
|
+
public geoPointValue?: (google.type.ILatLng|null);
|
|
950
|
+
|
|
951
|
+
/** Value arrayValue. */
|
|
952
|
+
public arrayValue?: (google.events.cloud.firestore.v1.IArrayValue|null);
|
|
953
|
+
|
|
954
|
+
/** Value mapValue. */
|
|
955
|
+
public mapValue?: (google.events.cloud.firestore.v1.IMapValue|null);
|
|
956
|
+
|
|
957
|
+
/** Value valueType. */
|
|
958
|
+
public valueType?: ("nullValue"|"booleanValue"|"integerValue"|"doubleValue"|"timestampValue"|"stringValue"|"bytesValue"|"referenceValue"|"geoPointValue"|"arrayValue"|"mapValue");
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Creates a new Value instance using the specified properties.
|
|
962
|
+
* @param [properties] Properties to set
|
|
963
|
+
* @returns Value instance
|
|
964
|
+
*/
|
|
965
|
+
public static create(properties?: google.events.cloud.firestore.v1.IValue): google.events.cloud.firestore.v1.Value;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Encodes the specified Value message. Does not implicitly {@link google.events.cloud.firestore.v1.Value.verify|verify} messages.
|
|
969
|
+
* @param message Value message or plain object to encode
|
|
970
|
+
* @param [writer] Writer to encode to
|
|
971
|
+
* @returns Writer
|
|
972
|
+
*/
|
|
973
|
+
public static encode(message: google.events.cloud.firestore.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Encodes the specified Value message, length delimited. Does not implicitly {@link google.events.cloud.firestore.v1.Value.verify|verify} messages.
|
|
977
|
+
* @param message Value message or plain object to encode
|
|
978
|
+
* @param [writer] Writer to encode to
|
|
979
|
+
* @returns Writer
|
|
980
|
+
*/
|
|
981
|
+
public static encodeDelimited(message: google.events.cloud.firestore.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Decodes a Value message from the specified reader or buffer.
|
|
985
|
+
* @param reader Reader or buffer to decode from
|
|
986
|
+
* @param [length] Message length if known beforehand
|
|
987
|
+
* @returns Value
|
|
988
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
989
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
990
|
+
*/
|
|
991
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.events.cloud.firestore.v1.Value;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Decodes a Value message from the specified reader or buffer, length delimited.
|
|
995
|
+
* @param reader Reader or buffer to decode from
|
|
996
|
+
* @returns Value
|
|
997
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
998
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
999
|
+
*/
|
|
1000
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.events.cloud.firestore.v1.Value;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* Verifies a Value message.
|
|
1004
|
+
* @param message Plain object to verify
|
|
1005
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1006
|
+
*/
|
|
1007
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Creates a Value message from a plain object. Also converts values to their respective internal types.
|
|
1011
|
+
* @param object Plain object
|
|
1012
|
+
* @returns Value
|
|
1013
|
+
*/
|
|
1014
|
+
public static fromObject(object: { [k: string]: any }): google.events.cloud.firestore.v1.Value;
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Creates a plain object from a Value message. Also converts values to other types if specified.
|
|
1018
|
+
* @param message Value
|
|
1019
|
+
* @param [options] Conversion options
|
|
1020
|
+
* @returns Plain object
|
|
1021
|
+
*/
|
|
1022
|
+
public static toObject(message: google.events.cloud.firestore.v1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Converts this Value to JSON.
|
|
1026
|
+
* @returns JSON object
|
|
1027
|
+
*/
|
|
1028
|
+
public toJSON(): { [k: string]: any };
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Gets the default type url for Value
|
|
1032
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1033
|
+
* @returns The default type url
|
|
1034
|
+
*/
|
|
1035
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/** Properties of an ArrayValue. */
|
|
1039
|
+
interface IArrayValue {
|
|
1040
|
+
|
|
1041
|
+
/** ArrayValue values */
|
|
1042
|
+
values?: (google.events.cloud.firestore.v1.IValue[]|null);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/** Represents an ArrayValue. */
|
|
1046
|
+
class ArrayValue implements IArrayValue {
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Constructs a new ArrayValue.
|
|
1050
|
+
* @param [properties] Properties to set
|
|
1051
|
+
*/
|
|
1052
|
+
constructor(properties?: google.events.cloud.firestore.v1.IArrayValue);
|
|
1053
|
+
|
|
1054
|
+
/** ArrayValue values. */
|
|
1055
|
+
public values: google.events.cloud.firestore.v1.IValue[];
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Creates a new ArrayValue instance using the specified properties.
|
|
1059
|
+
* @param [properties] Properties to set
|
|
1060
|
+
* @returns ArrayValue instance
|
|
1061
|
+
*/
|
|
1062
|
+
public static create(properties?: google.events.cloud.firestore.v1.IArrayValue): google.events.cloud.firestore.v1.ArrayValue;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Encodes the specified ArrayValue message. Does not implicitly {@link google.events.cloud.firestore.v1.ArrayValue.verify|verify} messages.
|
|
1066
|
+
* @param message ArrayValue message or plain object to encode
|
|
1067
|
+
* @param [writer] Writer to encode to
|
|
1068
|
+
* @returns Writer
|
|
1069
|
+
*/
|
|
1070
|
+
public static encode(message: google.events.cloud.firestore.v1.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Encodes the specified ArrayValue message, length delimited. Does not implicitly {@link google.events.cloud.firestore.v1.ArrayValue.verify|verify} messages.
|
|
1074
|
+
* @param message ArrayValue message or plain object to encode
|
|
1075
|
+
* @param [writer] Writer to encode to
|
|
1076
|
+
* @returns Writer
|
|
1077
|
+
*/
|
|
1078
|
+
public static encodeDelimited(message: google.events.cloud.firestore.v1.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Decodes an ArrayValue message from the specified reader or buffer.
|
|
1082
|
+
* @param reader Reader or buffer to decode from
|
|
1083
|
+
* @param [length] Message length if known beforehand
|
|
1084
|
+
* @returns ArrayValue
|
|
1085
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1086
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1087
|
+
*/
|
|
1088
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.events.cloud.firestore.v1.ArrayValue;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Decodes an ArrayValue message from the specified reader or buffer, length delimited.
|
|
1092
|
+
* @param reader Reader or buffer to decode from
|
|
1093
|
+
* @returns ArrayValue
|
|
1094
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1095
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1096
|
+
*/
|
|
1097
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.events.cloud.firestore.v1.ArrayValue;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* Verifies an ArrayValue message.
|
|
1101
|
+
* @param message Plain object to verify
|
|
1102
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1103
|
+
*/
|
|
1104
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Creates an ArrayValue message from a plain object. Also converts values to their respective internal types.
|
|
1108
|
+
* @param object Plain object
|
|
1109
|
+
* @returns ArrayValue
|
|
1110
|
+
*/
|
|
1111
|
+
public static fromObject(object: { [k: string]: any }): google.events.cloud.firestore.v1.ArrayValue;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Creates a plain object from an ArrayValue message. Also converts values to other types if specified.
|
|
1115
|
+
* @param message ArrayValue
|
|
1116
|
+
* @param [options] Conversion options
|
|
1117
|
+
* @returns Plain object
|
|
1118
|
+
*/
|
|
1119
|
+
public static toObject(message: google.events.cloud.firestore.v1.ArrayValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Converts this ArrayValue to JSON.
|
|
1123
|
+
* @returns JSON object
|
|
1124
|
+
*/
|
|
1125
|
+
public toJSON(): { [k: string]: any };
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Gets the default type url for ArrayValue
|
|
1129
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1130
|
+
* @returns The default type url
|
|
1131
|
+
*/
|
|
1132
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/** Properties of a MapValue. */
|
|
1136
|
+
interface IMapValue {
|
|
1137
|
+
|
|
1138
|
+
/** MapValue fields */
|
|
1139
|
+
fields?: ({ [k: string]: google.events.cloud.firestore.v1.IValue }|null);
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
/** Represents a MapValue. */
|
|
1143
|
+
class MapValue implements IMapValue {
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Constructs a new MapValue.
|
|
1147
|
+
* @param [properties] Properties to set
|
|
1148
|
+
*/
|
|
1149
|
+
constructor(properties?: google.events.cloud.firestore.v1.IMapValue);
|
|
1150
|
+
|
|
1151
|
+
/** MapValue fields. */
|
|
1152
|
+
public fields: { [k: string]: google.events.cloud.firestore.v1.IValue };
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Creates a new MapValue instance using the specified properties.
|
|
1156
|
+
* @param [properties] Properties to set
|
|
1157
|
+
* @returns MapValue instance
|
|
1158
|
+
*/
|
|
1159
|
+
public static create(properties?: google.events.cloud.firestore.v1.IMapValue): google.events.cloud.firestore.v1.MapValue;
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Encodes the specified MapValue message. Does not implicitly {@link google.events.cloud.firestore.v1.MapValue.verify|verify} messages.
|
|
1163
|
+
* @param message MapValue message or plain object to encode
|
|
1164
|
+
* @param [writer] Writer to encode to
|
|
1165
|
+
* @returns Writer
|
|
1166
|
+
*/
|
|
1167
|
+
public static encode(message: google.events.cloud.firestore.v1.IMapValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Encodes the specified MapValue message, length delimited. Does not implicitly {@link google.events.cloud.firestore.v1.MapValue.verify|verify} messages.
|
|
1171
|
+
* @param message MapValue message or plain object to encode
|
|
1172
|
+
* @param [writer] Writer to encode to
|
|
1173
|
+
* @returns Writer
|
|
1174
|
+
*/
|
|
1175
|
+
public static encodeDelimited(message: google.events.cloud.firestore.v1.IMapValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* Decodes a MapValue message from the specified reader or buffer.
|
|
1179
|
+
* @param reader Reader or buffer to decode from
|
|
1180
|
+
* @param [length] Message length if known beforehand
|
|
1181
|
+
* @returns MapValue
|
|
1182
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1183
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1184
|
+
*/
|
|
1185
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.events.cloud.firestore.v1.MapValue;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* Decodes a MapValue message from the specified reader or buffer, length delimited.
|
|
1189
|
+
* @param reader Reader or buffer to decode from
|
|
1190
|
+
* @returns MapValue
|
|
1191
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1192
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1193
|
+
*/
|
|
1194
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.events.cloud.firestore.v1.MapValue;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Verifies a MapValue message.
|
|
1198
|
+
* @param message Plain object to verify
|
|
1199
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1200
|
+
*/
|
|
1201
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* Creates a MapValue message from a plain object. Also converts values to their respective internal types.
|
|
1205
|
+
* @param object Plain object
|
|
1206
|
+
* @returns MapValue
|
|
1207
|
+
*/
|
|
1208
|
+
public static fromObject(object: { [k: string]: any }): google.events.cloud.firestore.v1.MapValue;
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Creates a plain object from a MapValue message. Also converts values to other types if specified.
|
|
1212
|
+
* @param message MapValue
|
|
1213
|
+
* @param [options] Conversion options
|
|
1214
|
+
* @returns Plain object
|
|
1215
|
+
*/
|
|
1216
|
+
public static toObject(message: google.events.cloud.firestore.v1.MapValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Converts this MapValue to JSON.
|
|
1220
|
+
* @returns JSON object
|
|
1221
|
+
*/
|
|
1222
|
+
public toJSON(): { [k: string]: any };
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Gets the default type url for MapValue
|
|
1226
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1227
|
+
* @returns The default type url
|
|
1228
|
+
*/
|
|
1229
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/** Namespace type. */
|
|
1237
|
+
namespace type {
|
|
1238
|
+
|
|
1239
|
+
/** Properties of a LatLng. */
|
|
1240
|
+
interface ILatLng {
|
|
1241
|
+
|
|
1242
|
+
/** LatLng latitude */
|
|
1243
|
+
latitude?: (number|null);
|
|
1244
|
+
|
|
1245
|
+
/** LatLng longitude */
|
|
1246
|
+
longitude?: (number|null);
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/** Represents a LatLng. */
|
|
1250
|
+
class LatLng implements ILatLng {
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* Constructs a new LatLng.
|
|
1254
|
+
* @param [properties] Properties to set
|
|
1255
|
+
*/
|
|
1256
|
+
constructor(properties?: google.type.ILatLng);
|
|
1257
|
+
|
|
1258
|
+
/** LatLng latitude. */
|
|
1259
|
+
public latitude: number;
|
|
1260
|
+
|
|
1261
|
+
/** LatLng longitude. */
|
|
1262
|
+
public longitude: number;
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* Creates a new LatLng instance using the specified properties.
|
|
1266
|
+
* @param [properties] Properties to set
|
|
1267
|
+
* @returns LatLng instance
|
|
1268
|
+
*/
|
|
1269
|
+
public static create(properties?: google.type.ILatLng): google.type.LatLng;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Encodes the specified LatLng message. Does not implicitly {@link google.type.LatLng.verify|verify} messages.
|
|
1273
|
+
* @param message LatLng message or plain object to encode
|
|
1274
|
+
* @param [writer] Writer to encode to
|
|
1275
|
+
* @returns Writer
|
|
1276
|
+
*/
|
|
1277
|
+
public static encode(message: google.type.ILatLng, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* Encodes the specified LatLng message, length delimited. Does not implicitly {@link google.type.LatLng.verify|verify} messages.
|
|
1281
|
+
* @param message LatLng message or plain object to encode
|
|
1282
|
+
* @param [writer] Writer to encode to
|
|
1283
|
+
* @returns Writer
|
|
1284
|
+
*/
|
|
1285
|
+
public static encodeDelimited(message: google.type.ILatLng, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Decodes a LatLng message from the specified reader or buffer.
|
|
1289
|
+
* @param reader Reader or buffer to decode from
|
|
1290
|
+
* @param [length] Message length if known beforehand
|
|
1291
|
+
* @returns LatLng
|
|
1292
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1293
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1294
|
+
*/
|
|
1295
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.LatLng;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Decodes a LatLng message from the specified reader or buffer, length delimited.
|
|
1299
|
+
* @param reader Reader or buffer to decode from
|
|
1300
|
+
* @returns LatLng
|
|
1301
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1302
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1303
|
+
*/
|
|
1304
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.LatLng;
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* Verifies a LatLng message.
|
|
1308
|
+
* @param message Plain object to verify
|
|
1309
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1310
|
+
*/
|
|
1311
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* Creates a LatLng message from a plain object. Also converts values to their respective internal types.
|
|
1315
|
+
* @param object Plain object
|
|
1316
|
+
* @returns LatLng
|
|
1317
|
+
*/
|
|
1318
|
+
public static fromObject(object: { [k: string]: any }): google.type.LatLng;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Creates a plain object from a LatLng message. Also converts values to other types if specified.
|
|
1322
|
+
* @param message LatLng
|
|
1323
|
+
* @param [options] Conversion options
|
|
1324
|
+
* @returns Plain object
|
|
1325
|
+
*/
|
|
1326
|
+
public static toObject(message: google.type.LatLng, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Converts this LatLng to JSON.
|
|
1330
|
+
* @returns JSON object
|
|
1331
|
+
*/
|
|
1332
|
+
public toJSON(): { [k: string]: any };
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Gets the default type url for LatLng
|
|
1336
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1337
|
+
* @returns The default type url
|
|
1338
|
+
*/
|
|
1339
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
}
|