UNPKG

573 kBTypeScriptView Raw
1// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15import * as Long from "long";
16import {protobuf as $protobuf} from "google-gax";
17/** Namespace google. */
18export namespace google {
19
20 /** Namespace datastore. */
21 namespace datastore {
22
23 /** Namespace admin. */
24 namespace admin {
25
26 /** Namespace v1. */
27 namespace v1 {
28
29 /** Represents a DatastoreAdmin */
30 class DatastoreAdmin extends $protobuf.rpc.Service {
31
32 /**
33 * Constructs a new DatastoreAdmin service.
34 * @param rpcImpl RPC implementation
35 * @param [requestDelimited=false] Whether requests are length-delimited
36 * @param [responseDelimited=false] Whether responses are length-delimited
37 */
38 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
39
40 /**
41 * Creates new DatastoreAdmin service using the specified rpc implementation.
42 * @param rpcImpl RPC implementation
43 * @param [requestDelimited=false] Whether requests are length-delimited
44 * @param [responseDelimited=false] Whether responses are length-delimited
45 * @returns RPC service. Useful where requests and/or responses are streamed.
46 */
47 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DatastoreAdmin;
48
49 /**
50 * Calls ExportEntities.
51 * @param request ExportEntitiesRequest message or plain object
52 * @param callback Node-style callback called with the error, if any, and Operation
53 */
54 public exportEntities(request: google.datastore.admin.v1.IExportEntitiesRequest, callback: google.datastore.admin.v1.DatastoreAdmin.ExportEntitiesCallback): void;
55
56 /**
57 * Calls ExportEntities.
58 * @param request ExportEntitiesRequest message or plain object
59 * @returns Promise
60 */
61 public exportEntities(request: google.datastore.admin.v1.IExportEntitiesRequest): Promise<google.longrunning.Operation>;
62
63 /**
64 * Calls ImportEntities.
65 * @param request ImportEntitiesRequest message or plain object
66 * @param callback Node-style callback called with the error, if any, and Operation
67 */
68 public importEntities(request: google.datastore.admin.v1.IImportEntitiesRequest, callback: google.datastore.admin.v1.DatastoreAdmin.ImportEntitiesCallback): void;
69
70 /**
71 * Calls ImportEntities.
72 * @param request ImportEntitiesRequest message or plain object
73 * @returns Promise
74 */
75 public importEntities(request: google.datastore.admin.v1.IImportEntitiesRequest): Promise<google.longrunning.Operation>;
76
77 /**
78 * Calls CreateIndex.
79 * @param request CreateIndexRequest message or plain object
80 * @param callback Node-style callback called with the error, if any, and Operation
81 */
82 public createIndex(request: google.datastore.admin.v1.ICreateIndexRequest, callback: google.datastore.admin.v1.DatastoreAdmin.CreateIndexCallback): void;
83
84 /**
85 * Calls CreateIndex.
86 * @param request CreateIndexRequest message or plain object
87 * @returns Promise
88 */
89 public createIndex(request: google.datastore.admin.v1.ICreateIndexRequest): Promise<google.longrunning.Operation>;
90
91 /**
92 * Calls DeleteIndex.
93 * @param request DeleteIndexRequest message or plain object
94 * @param callback Node-style callback called with the error, if any, and Operation
95 */
96 public deleteIndex(request: google.datastore.admin.v1.IDeleteIndexRequest, callback: google.datastore.admin.v1.DatastoreAdmin.DeleteIndexCallback): void;
97
98 /**
99 * Calls DeleteIndex.
100 * @param request DeleteIndexRequest message or plain object
101 * @returns Promise
102 */
103 public deleteIndex(request: google.datastore.admin.v1.IDeleteIndexRequest): Promise<google.longrunning.Operation>;
104
105 /**
106 * Calls GetIndex.
107 * @param request GetIndexRequest message or plain object
108 * @param callback Node-style callback called with the error, if any, and Index
109 */
110 public getIndex(request: google.datastore.admin.v1.IGetIndexRequest, callback: google.datastore.admin.v1.DatastoreAdmin.GetIndexCallback): void;
111
112 /**
113 * Calls GetIndex.
114 * @param request GetIndexRequest message or plain object
115 * @returns Promise
116 */
117 public getIndex(request: google.datastore.admin.v1.IGetIndexRequest): Promise<google.datastore.admin.v1.Index>;
118
119 /**
120 * Calls ListIndexes.
121 * @param request ListIndexesRequest message or plain object
122 * @param callback Node-style callback called with the error, if any, and ListIndexesResponse
123 */
124 public listIndexes(request: google.datastore.admin.v1.IListIndexesRequest, callback: google.datastore.admin.v1.DatastoreAdmin.ListIndexesCallback): void;
125
126 /**
127 * Calls ListIndexes.
128 * @param request ListIndexesRequest message or plain object
129 * @returns Promise
130 */
131 public listIndexes(request: google.datastore.admin.v1.IListIndexesRequest): Promise<google.datastore.admin.v1.ListIndexesResponse>;
132 }
133
134 namespace DatastoreAdmin {
135
136 /**
137 * Callback as used by {@link google.datastore.admin.v1.DatastoreAdmin#exportEntities}.
138 * @param error Error, if any
139 * @param [response] Operation
140 */
141 type ExportEntitiesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
142
143 /**
144 * Callback as used by {@link google.datastore.admin.v1.DatastoreAdmin#importEntities}.
145 * @param error Error, if any
146 * @param [response] Operation
147 */
148 type ImportEntitiesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
149
150 /**
151 * Callback as used by {@link google.datastore.admin.v1.DatastoreAdmin#createIndex}.
152 * @param error Error, if any
153 * @param [response] Operation
154 */
155 type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
156
157 /**
158 * Callback as used by {@link google.datastore.admin.v1.DatastoreAdmin#deleteIndex}.
159 * @param error Error, if any
160 * @param [response] Operation
161 */
162 type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
163
164 /**
165 * Callback as used by {@link google.datastore.admin.v1.DatastoreAdmin#getIndex}.
166 * @param error Error, if any
167 * @param [response] Index
168 */
169 type GetIndexCallback = (error: (Error|null), response?: google.datastore.admin.v1.Index) => void;
170
171 /**
172 * Callback as used by {@link google.datastore.admin.v1.DatastoreAdmin#listIndexes}.
173 * @param error Error, if any
174 * @param [response] ListIndexesResponse
175 */
176 type ListIndexesCallback = (error: (Error|null), response?: google.datastore.admin.v1.ListIndexesResponse) => void;
177 }
178
179 /** Properties of a CommonMetadata. */
180 interface ICommonMetadata {
181
182 /** CommonMetadata startTime */
183 startTime?: (google.protobuf.ITimestamp|null);
184
185 /** CommonMetadata endTime */
186 endTime?: (google.protobuf.ITimestamp|null);
187
188 /** CommonMetadata operationType */
189 operationType?: (google.datastore.admin.v1.OperationType|keyof typeof google.datastore.admin.v1.OperationType|null);
190
191 /** CommonMetadata labels */
192 labels?: ({ [k: string]: string }|null);
193
194 /** CommonMetadata state */
195 state?: (google.datastore.admin.v1.CommonMetadata.State|keyof typeof google.datastore.admin.v1.CommonMetadata.State|null);
196 }
197
198 /** Represents a CommonMetadata. */
199 class CommonMetadata implements ICommonMetadata {
200
201 /**
202 * Constructs a new CommonMetadata.
203 * @param [properties] Properties to set
204 */
205 constructor(properties?: google.datastore.admin.v1.ICommonMetadata);
206
207 /** CommonMetadata startTime. */
208 public startTime?: (google.protobuf.ITimestamp|null);
209
210 /** CommonMetadata endTime. */
211 public endTime?: (google.protobuf.ITimestamp|null);
212
213 /** CommonMetadata operationType. */
214 public operationType: (google.datastore.admin.v1.OperationType|keyof typeof google.datastore.admin.v1.OperationType);
215
216 /** CommonMetadata labels. */
217 public labels: { [k: string]: string };
218
219 /** CommonMetadata state. */
220 public state: (google.datastore.admin.v1.CommonMetadata.State|keyof typeof google.datastore.admin.v1.CommonMetadata.State);
221
222 /**
223 * Creates a new CommonMetadata instance using the specified properties.
224 * @param [properties] Properties to set
225 * @returns CommonMetadata instance
226 */
227 public static create(properties?: google.datastore.admin.v1.ICommonMetadata): google.datastore.admin.v1.CommonMetadata;
228
229 /**
230 * Encodes the specified CommonMetadata message. Does not implicitly {@link google.datastore.admin.v1.CommonMetadata.verify|verify} messages.
231 * @param message CommonMetadata message or plain object to encode
232 * @param [writer] Writer to encode to
233 * @returns Writer
234 */
235 public static encode(message: google.datastore.admin.v1.ICommonMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
236
237 /**
238 * Encodes the specified CommonMetadata message, length delimited. Does not implicitly {@link google.datastore.admin.v1.CommonMetadata.verify|verify} messages.
239 * @param message CommonMetadata message or plain object to encode
240 * @param [writer] Writer to encode to
241 * @returns Writer
242 */
243 public static encodeDelimited(message: google.datastore.admin.v1.ICommonMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
244
245 /**
246 * Decodes a CommonMetadata message from the specified reader or buffer.
247 * @param reader Reader or buffer to decode from
248 * @param [length] Message length if known beforehand
249 * @returns CommonMetadata
250 * @throws {Error} If the payload is not a reader or valid buffer
251 * @throws {$protobuf.util.ProtocolError} If required fields are missing
252 */
253 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.CommonMetadata;
254
255 /**
256 * Decodes a CommonMetadata message from the specified reader or buffer, length delimited.
257 * @param reader Reader or buffer to decode from
258 * @returns CommonMetadata
259 * @throws {Error} If the payload is not a reader or valid buffer
260 * @throws {$protobuf.util.ProtocolError} If required fields are missing
261 */
262 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.CommonMetadata;
263
264 /**
265 * Verifies a CommonMetadata message.
266 * @param message Plain object to verify
267 * @returns `null` if valid, otherwise the reason why it is not
268 */
269 public static verify(message: { [k: string]: any }): (string|null);
270
271 /**
272 * Creates a CommonMetadata message from a plain object. Also converts values to their respective internal types.
273 * @param object Plain object
274 * @returns CommonMetadata
275 */
276 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.CommonMetadata;
277
278 /**
279 * Creates a plain object from a CommonMetadata message. Also converts values to other types if specified.
280 * @param message CommonMetadata
281 * @param [options] Conversion options
282 * @returns Plain object
283 */
284 public static toObject(message: google.datastore.admin.v1.CommonMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
285
286 /**
287 * Converts this CommonMetadata to JSON.
288 * @returns JSON object
289 */
290 public toJSON(): { [k: string]: any };
291 }
292
293 namespace CommonMetadata {
294
295 /** State enum. */
296 enum State {
297 STATE_UNSPECIFIED = 0,
298 INITIALIZING = 1,
299 PROCESSING = 2,
300 CANCELLING = 3,
301 FINALIZING = 4,
302 SUCCESSFUL = 5,
303 FAILED = 6,
304 CANCELLED = 7
305 }
306 }
307
308 /** Properties of a Progress. */
309 interface IProgress {
310
311 /** Progress workCompleted */
312 workCompleted?: (number|Long|string|null);
313
314 /** Progress workEstimated */
315 workEstimated?: (number|Long|string|null);
316 }
317
318 /** Represents a Progress. */
319 class Progress implements IProgress {
320
321 /**
322 * Constructs a new Progress.
323 * @param [properties] Properties to set
324 */
325 constructor(properties?: google.datastore.admin.v1.IProgress);
326
327 /** Progress workCompleted. */
328 public workCompleted: (number|Long|string);
329
330 /** Progress workEstimated. */
331 public workEstimated: (number|Long|string);
332
333 /**
334 * Creates a new Progress instance using the specified properties.
335 * @param [properties] Properties to set
336 * @returns Progress instance
337 */
338 public static create(properties?: google.datastore.admin.v1.IProgress): google.datastore.admin.v1.Progress;
339
340 /**
341 * Encodes the specified Progress message. Does not implicitly {@link google.datastore.admin.v1.Progress.verify|verify} messages.
342 * @param message Progress message or plain object to encode
343 * @param [writer] Writer to encode to
344 * @returns Writer
345 */
346 public static encode(message: google.datastore.admin.v1.IProgress, writer?: $protobuf.Writer): $protobuf.Writer;
347
348 /**
349 * Encodes the specified Progress message, length delimited. Does not implicitly {@link google.datastore.admin.v1.Progress.verify|verify} messages.
350 * @param message Progress message or plain object to encode
351 * @param [writer] Writer to encode to
352 * @returns Writer
353 */
354 public static encodeDelimited(message: google.datastore.admin.v1.IProgress, writer?: $protobuf.Writer): $protobuf.Writer;
355
356 /**
357 * Decodes a Progress message from the specified reader or buffer.
358 * @param reader Reader or buffer to decode from
359 * @param [length] Message length if known beforehand
360 * @returns Progress
361 * @throws {Error} If the payload is not a reader or valid buffer
362 * @throws {$protobuf.util.ProtocolError} If required fields are missing
363 */
364 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.Progress;
365
366 /**
367 * Decodes a Progress message from the specified reader or buffer, length delimited.
368 * @param reader Reader or buffer to decode from
369 * @returns Progress
370 * @throws {Error} If the payload is not a reader or valid buffer
371 * @throws {$protobuf.util.ProtocolError} If required fields are missing
372 */
373 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.Progress;
374
375 /**
376 * Verifies a Progress message.
377 * @param message Plain object to verify
378 * @returns `null` if valid, otherwise the reason why it is not
379 */
380 public static verify(message: { [k: string]: any }): (string|null);
381
382 /**
383 * Creates a Progress message from a plain object. Also converts values to their respective internal types.
384 * @param object Plain object
385 * @returns Progress
386 */
387 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.Progress;
388
389 /**
390 * Creates a plain object from a Progress message. Also converts values to other types if specified.
391 * @param message Progress
392 * @param [options] Conversion options
393 * @returns Plain object
394 */
395 public static toObject(message: google.datastore.admin.v1.Progress, options?: $protobuf.IConversionOptions): { [k: string]: any };
396
397 /**
398 * Converts this Progress to JSON.
399 * @returns JSON object
400 */
401 public toJSON(): { [k: string]: any };
402 }
403
404 /** Properties of an ExportEntitiesRequest. */
405 interface IExportEntitiesRequest {
406
407 /** ExportEntitiesRequest projectId */
408 projectId?: (string|null);
409
410 /** ExportEntitiesRequest labels */
411 labels?: ({ [k: string]: string }|null);
412
413 /** ExportEntitiesRequest entityFilter */
414 entityFilter?: (google.datastore.admin.v1.IEntityFilter|null);
415
416 /** ExportEntitiesRequest outputUrlPrefix */
417 outputUrlPrefix?: (string|null);
418 }
419
420 /** Represents an ExportEntitiesRequest. */
421 class ExportEntitiesRequest implements IExportEntitiesRequest {
422
423 /**
424 * Constructs a new ExportEntitiesRequest.
425 * @param [properties] Properties to set
426 */
427 constructor(properties?: google.datastore.admin.v1.IExportEntitiesRequest);
428
429 /** ExportEntitiesRequest projectId. */
430 public projectId: string;
431
432 /** ExportEntitiesRequest labels. */
433 public labels: { [k: string]: string };
434
435 /** ExportEntitiesRequest entityFilter. */
436 public entityFilter?: (google.datastore.admin.v1.IEntityFilter|null);
437
438 /** ExportEntitiesRequest outputUrlPrefix. */
439 public outputUrlPrefix: string;
440
441 /**
442 * Creates a new ExportEntitiesRequest instance using the specified properties.
443 * @param [properties] Properties to set
444 * @returns ExportEntitiesRequest instance
445 */
446 public static create(properties?: google.datastore.admin.v1.IExportEntitiesRequest): google.datastore.admin.v1.ExportEntitiesRequest;
447
448 /**
449 * Encodes the specified ExportEntitiesRequest message. Does not implicitly {@link google.datastore.admin.v1.ExportEntitiesRequest.verify|verify} messages.
450 * @param message ExportEntitiesRequest message or plain object to encode
451 * @param [writer] Writer to encode to
452 * @returns Writer
453 */
454 public static encode(message: google.datastore.admin.v1.IExportEntitiesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
455
456 /**
457 * Encodes the specified ExportEntitiesRequest message, length delimited. Does not implicitly {@link google.datastore.admin.v1.ExportEntitiesRequest.verify|verify} messages.
458 * @param message ExportEntitiesRequest message or plain object to encode
459 * @param [writer] Writer to encode to
460 * @returns Writer
461 */
462 public static encodeDelimited(message: google.datastore.admin.v1.IExportEntitiesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
463
464 /**
465 * Decodes an ExportEntitiesRequest message from the specified reader or buffer.
466 * @param reader Reader or buffer to decode from
467 * @param [length] Message length if known beforehand
468 * @returns ExportEntitiesRequest
469 * @throws {Error} If the payload is not a reader or valid buffer
470 * @throws {$protobuf.util.ProtocolError} If required fields are missing
471 */
472 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.ExportEntitiesRequest;
473
474 /**
475 * Decodes an ExportEntitiesRequest message from the specified reader or buffer, length delimited.
476 * @param reader Reader or buffer to decode from
477 * @returns ExportEntitiesRequest
478 * @throws {Error} If the payload is not a reader or valid buffer
479 * @throws {$protobuf.util.ProtocolError} If required fields are missing
480 */
481 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.ExportEntitiesRequest;
482
483 /**
484 * Verifies an ExportEntitiesRequest message.
485 * @param message Plain object to verify
486 * @returns `null` if valid, otherwise the reason why it is not
487 */
488 public static verify(message: { [k: string]: any }): (string|null);
489
490 /**
491 * Creates an ExportEntitiesRequest message from a plain object. Also converts values to their respective internal types.
492 * @param object Plain object
493 * @returns ExportEntitiesRequest
494 */
495 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.ExportEntitiesRequest;
496
497 /**
498 * Creates a plain object from an ExportEntitiesRequest message. Also converts values to other types if specified.
499 * @param message ExportEntitiesRequest
500 * @param [options] Conversion options
501 * @returns Plain object
502 */
503 public static toObject(message: google.datastore.admin.v1.ExportEntitiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
504
505 /**
506 * Converts this ExportEntitiesRequest to JSON.
507 * @returns JSON object
508 */
509 public toJSON(): { [k: string]: any };
510 }
511
512 /** Properties of an ImportEntitiesRequest. */
513 interface IImportEntitiesRequest {
514
515 /** ImportEntitiesRequest projectId */
516 projectId?: (string|null);
517
518 /** ImportEntitiesRequest labels */
519 labels?: ({ [k: string]: string }|null);
520
521 /** ImportEntitiesRequest inputUrl */
522 inputUrl?: (string|null);
523
524 /** ImportEntitiesRequest entityFilter */
525 entityFilter?: (google.datastore.admin.v1.IEntityFilter|null);
526 }
527
528 /** Represents an ImportEntitiesRequest. */
529 class ImportEntitiesRequest implements IImportEntitiesRequest {
530
531 /**
532 * Constructs a new ImportEntitiesRequest.
533 * @param [properties] Properties to set
534 */
535 constructor(properties?: google.datastore.admin.v1.IImportEntitiesRequest);
536
537 /** ImportEntitiesRequest projectId. */
538 public projectId: string;
539
540 /** ImportEntitiesRequest labels. */
541 public labels: { [k: string]: string };
542
543 /** ImportEntitiesRequest inputUrl. */
544 public inputUrl: string;
545
546 /** ImportEntitiesRequest entityFilter. */
547 public entityFilter?: (google.datastore.admin.v1.IEntityFilter|null);
548
549 /**
550 * Creates a new ImportEntitiesRequest instance using the specified properties.
551 * @param [properties] Properties to set
552 * @returns ImportEntitiesRequest instance
553 */
554 public static create(properties?: google.datastore.admin.v1.IImportEntitiesRequest): google.datastore.admin.v1.ImportEntitiesRequest;
555
556 /**
557 * Encodes the specified ImportEntitiesRequest message. Does not implicitly {@link google.datastore.admin.v1.ImportEntitiesRequest.verify|verify} messages.
558 * @param message ImportEntitiesRequest message or plain object to encode
559 * @param [writer] Writer to encode to
560 * @returns Writer
561 */
562 public static encode(message: google.datastore.admin.v1.IImportEntitiesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
563
564 /**
565 * Encodes the specified ImportEntitiesRequest message, length delimited. Does not implicitly {@link google.datastore.admin.v1.ImportEntitiesRequest.verify|verify} messages.
566 * @param message ImportEntitiesRequest message or plain object to encode
567 * @param [writer] Writer to encode to
568 * @returns Writer
569 */
570 public static encodeDelimited(message: google.datastore.admin.v1.IImportEntitiesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
571
572 /**
573 * Decodes an ImportEntitiesRequest message from the specified reader or buffer.
574 * @param reader Reader or buffer to decode from
575 * @param [length] Message length if known beforehand
576 * @returns ImportEntitiesRequest
577 * @throws {Error} If the payload is not a reader or valid buffer
578 * @throws {$protobuf.util.ProtocolError} If required fields are missing
579 */
580 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.ImportEntitiesRequest;
581
582 /**
583 * Decodes an ImportEntitiesRequest message from the specified reader or buffer, length delimited.
584 * @param reader Reader or buffer to decode from
585 * @returns ImportEntitiesRequest
586 * @throws {Error} If the payload is not a reader or valid buffer
587 * @throws {$protobuf.util.ProtocolError} If required fields are missing
588 */
589 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.ImportEntitiesRequest;
590
591 /**
592 * Verifies an ImportEntitiesRequest message.
593 * @param message Plain object to verify
594 * @returns `null` if valid, otherwise the reason why it is not
595 */
596 public static verify(message: { [k: string]: any }): (string|null);
597
598 /**
599 * Creates an ImportEntitiesRequest message from a plain object. Also converts values to their respective internal types.
600 * @param object Plain object
601 * @returns ImportEntitiesRequest
602 */
603 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.ImportEntitiesRequest;
604
605 /**
606 * Creates a plain object from an ImportEntitiesRequest message. Also converts values to other types if specified.
607 * @param message ImportEntitiesRequest
608 * @param [options] Conversion options
609 * @returns Plain object
610 */
611 public static toObject(message: google.datastore.admin.v1.ImportEntitiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
612
613 /**
614 * Converts this ImportEntitiesRequest to JSON.
615 * @returns JSON object
616 */
617 public toJSON(): { [k: string]: any };
618 }
619
620 /** Properties of an ExportEntitiesResponse. */
621 interface IExportEntitiesResponse {
622
623 /** ExportEntitiesResponse outputUrl */
624 outputUrl?: (string|null);
625 }
626
627 /** Represents an ExportEntitiesResponse. */
628 class ExportEntitiesResponse implements IExportEntitiesResponse {
629
630 /**
631 * Constructs a new ExportEntitiesResponse.
632 * @param [properties] Properties to set
633 */
634 constructor(properties?: google.datastore.admin.v1.IExportEntitiesResponse);
635
636 /** ExportEntitiesResponse outputUrl. */
637 public outputUrl: string;
638
639 /**
640 * Creates a new ExportEntitiesResponse instance using the specified properties.
641 * @param [properties] Properties to set
642 * @returns ExportEntitiesResponse instance
643 */
644 public static create(properties?: google.datastore.admin.v1.IExportEntitiesResponse): google.datastore.admin.v1.ExportEntitiesResponse;
645
646 /**
647 * Encodes the specified ExportEntitiesResponse message. Does not implicitly {@link google.datastore.admin.v1.ExportEntitiesResponse.verify|verify} messages.
648 * @param message ExportEntitiesResponse message or plain object to encode
649 * @param [writer] Writer to encode to
650 * @returns Writer
651 */
652 public static encode(message: google.datastore.admin.v1.IExportEntitiesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
653
654 /**
655 * Encodes the specified ExportEntitiesResponse message, length delimited. Does not implicitly {@link google.datastore.admin.v1.ExportEntitiesResponse.verify|verify} messages.
656 * @param message ExportEntitiesResponse message or plain object to encode
657 * @param [writer] Writer to encode to
658 * @returns Writer
659 */
660 public static encodeDelimited(message: google.datastore.admin.v1.IExportEntitiesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
661
662 /**
663 * Decodes an ExportEntitiesResponse message from the specified reader or buffer.
664 * @param reader Reader or buffer to decode from
665 * @param [length] Message length if known beforehand
666 * @returns ExportEntitiesResponse
667 * @throws {Error} If the payload is not a reader or valid buffer
668 * @throws {$protobuf.util.ProtocolError} If required fields are missing
669 */
670 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.ExportEntitiesResponse;
671
672 /**
673 * Decodes an ExportEntitiesResponse message from the specified reader or buffer, length delimited.
674 * @param reader Reader or buffer to decode from
675 * @returns ExportEntitiesResponse
676 * @throws {Error} If the payload is not a reader or valid buffer
677 * @throws {$protobuf.util.ProtocolError} If required fields are missing
678 */
679 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.ExportEntitiesResponse;
680
681 /**
682 * Verifies an ExportEntitiesResponse message.
683 * @param message Plain object to verify
684 * @returns `null` if valid, otherwise the reason why it is not
685 */
686 public static verify(message: { [k: string]: any }): (string|null);
687
688 /**
689 * Creates an ExportEntitiesResponse message from a plain object. Also converts values to their respective internal types.
690 * @param object Plain object
691 * @returns ExportEntitiesResponse
692 */
693 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.ExportEntitiesResponse;
694
695 /**
696 * Creates a plain object from an ExportEntitiesResponse message. Also converts values to other types if specified.
697 * @param message ExportEntitiesResponse
698 * @param [options] Conversion options
699 * @returns Plain object
700 */
701 public static toObject(message: google.datastore.admin.v1.ExportEntitiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
702
703 /**
704 * Converts this ExportEntitiesResponse to JSON.
705 * @returns JSON object
706 */
707 public toJSON(): { [k: string]: any };
708 }
709
710 /** Properties of an ExportEntitiesMetadata. */
711 interface IExportEntitiesMetadata {
712
713 /** ExportEntitiesMetadata common */
714 common?: (google.datastore.admin.v1.ICommonMetadata|null);
715
716 /** ExportEntitiesMetadata progressEntities */
717 progressEntities?: (google.datastore.admin.v1.IProgress|null);
718
719 /** ExportEntitiesMetadata progressBytes */
720 progressBytes?: (google.datastore.admin.v1.IProgress|null);
721
722 /** ExportEntitiesMetadata entityFilter */
723 entityFilter?: (google.datastore.admin.v1.IEntityFilter|null);
724
725 /** ExportEntitiesMetadata outputUrlPrefix */
726 outputUrlPrefix?: (string|null);
727 }
728
729 /** Represents an ExportEntitiesMetadata. */
730 class ExportEntitiesMetadata implements IExportEntitiesMetadata {
731
732 /**
733 * Constructs a new ExportEntitiesMetadata.
734 * @param [properties] Properties to set
735 */
736 constructor(properties?: google.datastore.admin.v1.IExportEntitiesMetadata);
737
738 /** ExportEntitiesMetadata common. */
739 public common?: (google.datastore.admin.v1.ICommonMetadata|null);
740
741 /** ExportEntitiesMetadata progressEntities. */
742 public progressEntities?: (google.datastore.admin.v1.IProgress|null);
743
744 /** ExportEntitiesMetadata progressBytes. */
745 public progressBytes?: (google.datastore.admin.v1.IProgress|null);
746
747 /** ExportEntitiesMetadata entityFilter. */
748 public entityFilter?: (google.datastore.admin.v1.IEntityFilter|null);
749
750 /** ExportEntitiesMetadata outputUrlPrefix. */
751 public outputUrlPrefix: string;
752
753 /**
754 * Creates a new ExportEntitiesMetadata instance using the specified properties.
755 * @param [properties] Properties to set
756 * @returns ExportEntitiesMetadata instance
757 */
758 public static create(properties?: google.datastore.admin.v1.IExportEntitiesMetadata): google.datastore.admin.v1.ExportEntitiesMetadata;
759
760 /**
761 * Encodes the specified ExportEntitiesMetadata message. Does not implicitly {@link google.datastore.admin.v1.ExportEntitiesMetadata.verify|verify} messages.
762 * @param message ExportEntitiesMetadata message or plain object to encode
763 * @param [writer] Writer to encode to
764 * @returns Writer
765 */
766 public static encode(message: google.datastore.admin.v1.IExportEntitiesMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
767
768 /**
769 * Encodes the specified ExportEntitiesMetadata message, length delimited. Does not implicitly {@link google.datastore.admin.v1.ExportEntitiesMetadata.verify|verify} messages.
770 * @param message ExportEntitiesMetadata message or plain object to encode
771 * @param [writer] Writer to encode to
772 * @returns Writer
773 */
774 public static encodeDelimited(message: google.datastore.admin.v1.IExportEntitiesMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
775
776 /**
777 * Decodes an ExportEntitiesMetadata message from the specified reader or buffer.
778 * @param reader Reader or buffer to decode from
779 * @param [length] Message length if known beforehand
780 * @returns ExportEntitiesMetadata
781 * @throws {Error} If the payload is not a reader or valid buffer
782 * @throws {$protobuf.util.ProtocolError} If required fields are missing
783 */
784 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.ExportEntitiesMetadata;
785
786 /**
787 * Decodes an ExportEntitiesMetadata message from the specified reader or buffer, length delimited.
788 * @param reader Reader or buffer to decode from
789 * @returns ExportEntitiesMetadata
790 * @throws {Error} If the payload is not a reader or valid buffer
791 * @throws {$protobuf.util.ProtocolError} If required fields are missing
792 */
793 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.ExportEntitiesMetadata;
794
795 /**
796 * Verifies an ExportEntitiesMetadata message.
797 * @param message Plain object to verify
798 * @returns `null` if valid, otherwise the reason why it is not
799 */
800 public static verify(message: { [k: string]: any }): (string|null);
801
802 /**
803 * Creates an ExportEntitiesMetadata message from a plain object. Also converts values to their respective internal types.
804 * @param object Plain object
805 * @returns ExportEntitiesMetadata
806 */
807 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.ExportEntitiesMetadata;
808
809 /**
810 * Creates a plain object from an ExportEntitiesMetadata message. Also converts values to other types if specified.
811 * @param message ExportEntitiesMetadata
812 * @param [options] Conversion options
813 * @returns Plain object
814 */
815 public static toObject(message: google.datastore.admin.v1.ExportEntitiesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
816
817 /**
818 * Converts this ExportEntitiesMetadata to JSON.
819 * @returns JSON object
820 */
821 public toJSON(): { [k: string]: any };
822 }
823
824 /** OperationType enum. */
825 enum OperationType {
826 OPERATION_TYPE_UNSPECIFIED = 0,
827 EXPORT_ENTITIES = 1,
828 IMPORT_ENTITIES = 2,
829 CREATE_INDEX = 3,
830 DELETE_INDEX = 4
831 }
832
833 /** Properties of an ImportEntitiesMetadata. */
834 interface IImportEntitiesMetadata {
835
836 /** ImportEntitiesMetadata common */
837 common?: (google.datastore.admin.v1.ICommonMetadata|null);
838
839 /** ImportEntitiesMetadata progressEntities */
840 progressEntities?: (google.datastore.admin.v1.IProgress|null);
841
842 /** ImportEntitiesMetadata progressBytes */
843 progressBytes?: (google.datastore.admin.v1.IProgress|null);
844
845 /** ImportEntitiesMetadata entityFilter */
846 entityFilter?: (google.datastore.admin.v1.IEntityFilter|null);
847
848 /** ImportEntitiesMetadata inputUrl */
849 inputUrl?: (string|null);
850 }
851
852 /** Represents an ImportEntitiesMetadata. */
853 class ImportEntitiesMetadata implements IImportEntitiesMetadata {
854
855 /**
856 * Constructs a new ImportEntitiesMetadata.
857 * @param [properties] Properties to set
858 */
859 constructor(properties?: google.datastore.admin.v1.IImportEntitiesMetadata);
860
861 /** ImportEntitiesMetadata common. */
862 public common?: (google.datastore.admin.v1.ICommonMetadata|null);
863
864 /** ImportEntitiesMetadata progressEntities. */
865 public progressEntities?: (google.datastore.admin.v1.IProgress|null);
866
867 /** ImportEntitiesMetadata progressBytes. */
868 public progressBytes?: (google.datastore.admin.v1.IProgress|null);
869
870 /** ImportEntitiesMetadata entityFilter. */
871 public entityFilter?: (google.datastore.admin.v1.IEntityFilter|null);
872
873 /** ImportEntitiesMetadata inputUrl. */
874 public inputUrl: string;
875
876 /**
877 * Creates a new ImportEntitiesMetadata instance using the specified properties.
878 * @param [properties] Properties to set
879 * @returns ImportEntitiesMetadata instance
880 */
881 public static create(properties?: google.datastore.admin.v1.IImportEntitiesMetadata): google.datastore.admin.v1.ImportEntitiesMetadata;
882
883 /**
884 * Encodes the specified ImportEntitiesMetadata message. Does not implicitly {@link google.datastore.admin.v1.ImportEntitiesMetadata.verify|verify} messages.
885 * @param message ImportEntitiesMetadata message or plain object to encode
886 * @param [writer] Writer to encode to
887 * @returns Writer
888 */
889 public static encode(message: google.datastore.admin.v1.IImportEntitiesMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
890
891 /**
892 * Encodes the specified ImportEntitiesMetadata message, length delimited. Does not implicitly {@link google.datastore.admin.v1.ImportEntitiesMetadata.verify|verify} messages.
893 * @param message ImportEntitiesMetadata message or plain object to encode
894 * @param [writer] Writer to encode to
895 * @returns Writer
896 */
897 public static encodeDelimited(message: google.datastore.admin.v1.IImportEntitiesMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
898
899 /**
900 * Decodes an ImportEntitiesMetadata message from the specified reader or buffer.
901 * @param reader Reader or buffer to decode from
902 * @param [length] Message length if known beforehand
903 * @returns ImportEntitiesMetadata
904 * @throws {Error} If the payload is not a reader or valid buffer
905 * @throws {$protobuf.util.ProtocolError} If required fields are missing
906 */
907 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.ImportEntitiesMetadata;
908
909 /**
910 * Decodes an ImportEntitiesMetadata message from the specified reader or buffer, length delimited.
911 * @param reader Reader or buffer to decode from
912 * @returns ImportEntitiesMetadata
913 * @throws {Error} If the payload is not a reader or valid buffer
914 * @throws {$protobuf.util.ProtocolError} If required fields are missing
915 */
916 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.ImportEntitiesMetadata;
917
918 /**
919 * Verifies an ImportEntitiesMetadata message.
920 * @param message Plain object to verify
921 * @returns `null` if valid, otherwise the reason why it is not
922 */
923 public static verify(message: { [k: string]: any }): (string|null);
924
925 /**
926 * Creates an ImportEntitiesMetadata message from a plain object. Also converts values to their respective internal types.
927 * @param object Plain object
928 * @returns ImportEntitiesMetadata
929 */
930 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.ImportEntitiesMetadata;
931
932 /**
933 * Creates a plain object from an ImportEntitiesMetadata message. Also converts values to other types if specified.
934 * @param message ImportEntitiesMetadata
935 * @param [options] Conversion options
936 * @returns Plain object
937 */
938 public static toObject(message: google.datastore.admin.v1.ImportEntitiesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
939
940 /**
941 * Converts this ImportEntitiesMetadata to JSON.
942 * @returns JSON object
943 */
944 public toJSON(): { [k: string]: any };
945 }
946
947 /** Properties of an EntityFilter. */
948 interface IEntityFilter {
949
950 /** EntityFilter kinds */
951 kinds?: (string[]|null);
952
953 /** EntityFilter namespaceIds */
954 namespaceIds?: (string[]|null);
955 }
956
957 /** Represents an EntityFilter. */
958 class EntityFilter implements IEntityFilter {
959
960 /**
961 * Constructs a new EntityFilter.
962 * @param [properties] Properties to set
963 */
964 constructor(properties?: google.datastore.admin.v1.IEntityFilter);
965
966 /** EntityFilter kinds. */
967 public kinds: string[];
968
969 /** EntityFilter namespaceIds. */
970 public namespaceIds: string[];
971
972 /**
973 * Creates a new EntityFilter instance using the specified properties.
974 * @param [properties] Properties to set
975 * @returns EntityFilter instance
976 */
977 public static create(properties?: google.datastore.admin.v1.IEntityFilter): google.datastore.admin.v1.EntityFilter;
978
979 /**
980 * Encodes the specified EntityFilter message. Does not implicitly {@link google.datastore.admin.v1.EntityFilter.verify|verify} messages.
981 * @param message EntityFilter message or plain object to encode
982 * @param [writer] Writer to encode to
983 * @returns Writer
984 */
985 public static encode(message: google.datastore.admin.v1.IEntityFilter, writer?: $protobuf.Writer): $protobuf.Writer;
986
987 /**
988 * Encodes the specified EntityFilter message, length delimited. Does not implicitly {@link google.datastore.admin.v1.EntityFilter.verify|verify} messages.
989 * @param message EntityFilter message or plain object to encode
990 * @param [writer] Writer to encode to
991 * @returns Writer
992 */
993 public static encodeDelimited(message: google.datastore.admin.v1.IEntityFilter, writer?: $protobuf.Writer): $protobuf.Writer;
994
995 /**
996 * Decodes an EntityFilter message from the specified reader or buffer.
997 * @param reader Reader or buffer to decode from
998 * @param [length] Message length if known beforehand
999 * @returns EntityFilter
1000 * @throws {Error} If the payload is not a reader or valid buffer
1001 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1002 */
1003 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.EntityFilter;
1004
1005 /**
1006 * Decodes an EntityFilter message from the specified reader or buffer, length delimited.
1007 * @param reader Reader or buffer to decode from
1008 * @returns EntityFilter
1009 * @throws {Error} If the payload is not a reader or valid buffer
1010 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1011 */
1012 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.EntityFilter;
1013
1014 /**
1015 * Verifies an EntityFilter message.
1016 * @param message Plain object to verify
1017 * @returns `null` if valid, otherwise the reason why it is not
1018 */
1019 public static verify(message: { [k: string]: any }): (string|null);
1020
1021 /**
1022 * Creates an EntityFilter message from a plain object. Also converts values to their respective internal types.
1023 * @param object Plain object
1024 * @returns EntityFilter
1025 */
1026 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.EntityFilter;
1027
1028 /**
1029 * Creates a plain object from an EntityFilter message. Also converts values to other types if specified.
1030 * @param message EntityFilter
1031 * @param [options] Conversion options
1032 * @returns Plain object
1033 */
1034 public static toObject(message: google.datastore.admin.v1.EntityFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
1035
1036 /**
1037 * Converts this EntityFilter to JSON.
1038 * @returns JSON object
1039 */
1040 public toJSON(): { [k: string]: any };
1041 }
1042
1043 /** Properties of a CreateIndexRequest. */
1044 interface ICreateIndexRequest {
1045
1046 /** CreateIndexRequest projectId */
1047 projectId?: (string|null);
1048
1049 /** CreateIndexRequest index */
1050 index?: (google.datastore.admin.v1.IIndex|null);
1051 }
1052
1053 /** Represents a CreateIndexRequest. */
1054 class CreateIndexRequest implements ICreateIndexRequest {
1055
1056 /**
1057 * Constructs a new CreateIndexRequest.
1058 * @param [properties] Properties to set
1059 */
1060 constructor(properties?: google.datastore.admin.v1.ICreateIndexRequest);
1061
1062 /** CreateIndexRequest projectId. */
1063 public projectId: string;
1064
1065 /** CreateIndexRequest index. */
1066 public index?: (google.datastore.admin.v1.IIndex|null);
1067
1068 /**
1069 * Creates a new CreateIndexRequest instance using the specified properties.
1070 * @param [properties] Properties to set
1071 * @returns CreateIndexRequest instance
1072 */
1073 public static create(properties?: google.datastore.admin.v1.ICreateIndexRequest): google.datastore.admin.v1.CreateIndexRequest;
1074
1075 /**
1076 * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.datastore.admin.v1.CreateIndexRequest.verify|verify} messages.
1077 * @param message CreateIndexRequest message or plain object to encode
1078 * @param [writer] Writer to encode to
1079 * @returns Writer
1080 */
1081 public static encode(message: google.datastore.admin.v1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1082
1083 /**
1084 * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.datastore.admin.v1.CreateIndexRequest.verify|verify} messages.
1085 * @param message CreateIndexRequest message or plain object to encode
1086 * @param [writer] Writer to encode to
1087 * @returns Writer
1088 */
1089 public static encodeDelimited(message: google.datastore.admin.v1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1090
1091 /**
1092 * Decodes a CreateIndexRequest message from the specified reader or buffer.
1093 * @param reader Reader or buffer to decode from
1094 * @param [length] Message length if known beforehand
1095 * @returns CreateIndexRequest
1096 * @throws {Error} If the payload is not a reader or valid buffer
1097 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1098 */
1099 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.CreateIndexRequest;
1100
1101 /**
1102 * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited.
1103 * @param reader Reader or buffer to decode from
1104 * @returns CreateIndexRequest
1105 * @throws {Error} If the payload is not a reader or valid buffer
1106 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1107 */
1108 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.CreateIndexRequest;
1109
1110 /**
1111 * Verifies a CreateIndexRequest message.
1112 * @param message Plain object to verify
1113 * @returns `null` if valid, otherwise the reason why it is not
1114 */
1115 public static verify(message: { [k: string]: any }): (string|null);
1116
1117 /**
1118 * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types.
1119 * @param object Plain object
1120 * @returns CreateIndexRequest
1121 */
1122 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.CreateIndexRequest;
1123
1124 /**
1125 * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified.
1126 * @param message CreateIndexRequest
1127 * @param [options] Conversion options
1128 * @returns Plain object
1129 */
1130 public static toObject(message: google.datastore.admin.v1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1131
1132 /**
1133 * Converts this CreateIndexRequest to JSON.
1134 * @returns JSON object
1135 */
1136 public toJSON(): { [k: string]: any };
1137 }
1138
1139 /** Properties of a DeleteIndexRequest. */
1140 interface IDeleteIndexRequest {
1141
1142 /** DeleteIndexRequest projectId */
1143 projectId?: (string|null);
1144
1145 /** DeleteIndexRequest indexId */
1146 indexId?: (string|null);
1147 }
1148
1149 /** Represents a DeleteIndexRequest. */
1150 class DeleteIndexRequest implements IDeleteIndexRequest {
1151
1152 /**
1153 * Constructs a new DeleteIndexRequest.
1154 * @param [properties] Properties to set
1155 */
1156 constructor(properties?: google.datastore.admin.v1.IDeleteIndexRequest);
1157
1158 /** DeleteIndexRequest projectId. */
1159 public projectId: string;
1160
1161 /** DeleteIndexRequest indexId. */
1162 public indexId: string;
1163
1164 /**
1165 * Creates a new DeleteIndexRequest instance using the specified properties.
1166 * @param [properties] Properties to set
1167 * @returns DeleteIndexRequest instance
1168 */
1169 public static create(properties?: google.datastore.admin.v1.IDeleteIndexRequest): google.datastore.admin.v1.DeleteIndexRequest;
1170
1171 /**
1172 * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.datastore.admin.v1.DeleteIndexRequest.verify|verify} messages.
1173 * @param message DeleteIndexRequest message or plain object to encode
1174 * @param [writer] Writer to encode to
1175 * @returns Writer
1176 */
1177 public static encode(message: google.datastore.admin.v1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1178
1179 /**
1180 * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.datastore.admin.v1.DeleteIndexRequest.verify|verify} messages.
1181 * @param message DeleteIndexRequest message or plain object to encode
1182 * @param [writer] Writer to encode to
1183 * @returns Writer
1184 */
1185 public static encodeDelimited(message: google.datastore.admin.v1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1186
1187 /**
1188 * Decodes a DeleteIndexRequest message from the specified reader or buffer.
1189 * @param reader Reader or buffer to decode from
1190 * @param [length] Message length if known beforehand
1191 * @returns DeleteIndexRequest
1192 * @throws {Error} If the payload is not a reader or valid buffer
1193 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1194 */
1195 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.DeleteIndexRequest;
1196
1197 /**
1198 * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited.
1199 * @param reader Reader or buffer to decode from
1200 * @returns DeleteIndexRequest
1201 * @throws {Error} If the payload is not a reader or valid buffer
1202 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1203 */
1204 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.DeleteIndexRequest;
1205
1206 /**
1207 * Verifies a DeleteIndexRequest message.
1208 * @param message Plain object to verify
1209 * @returns `null` if valid, otherwise the reason why it is not
1210 */
1211 public static verify(message: { [k: string]: any }): (string|null);
1212
1213 /**
1214 * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types.
1215 * @param object Plain object
1216 * @returns DeleteIndexRequest
1217 */
1218 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.DeleteIndexRequest;
1219
1220 /**
1221 * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified.
1222 * @param message DeleteIndexRequest
1223 * @param [options] Conversion options
1224 * @returns Plain object
1225 */
1226 public static toObject(message: google.datastore.admin.v1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1227
1228 /**
1229 * Converts this DeleteIndexRequest to JSON.
1230 * @returns JSON object
1231 */
1232 public toJSON(): { [k: string]: any };
1233 }
1234
1235 /** Properties of a GetIndexRequest. */
1236 interface IGetIndexRequest {
1237
1238 /** GetIndexRequest projectId */
1239 projectId?: (string|null);
1240
1241 /** GetIndexRequest indexId */
1242 indexId?: (string|null);
1243 }
1244
1245 /** Represents a GetIndexRequest. */
1246 class GetIndexRequest implements IGetIndexRequest {
1247
1248 /**
1249 * Constructs a new GetIndexRequest.
1250 * @param [properties] Properties to set
1251 */
1252 constructor(properties?: google.datastore.admin.v1.IGetIndexRequest);
1253
1254 /** GetIndexRequest projectId. */
1255 public projectId: string;
1256
1257 /** GetIndexRequest indexId. */
1258 public indexId: string;
1259
1260 /**
1261 * Creates a new GetIndexRequest instance using the specified properties.
1262 * @param [properties] Properties to set
1263 * @returns GetIndexRequest instance
1264 */
1265 public static create(properties?: google.datastore.admin.v1.IGetIndexRequest): google.datastore.admin.v1.GetIndexRequest;
1266
1267 /**
1268 * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.datastore.admin.v1.GetIndexRequest.verify|verify} messages.
1269 * @param message GetIndexRequest message or plain object to encode
1270 * @param [writer] Writer to encode to
1271 * @returns Writer
1272 */
1273 public static encode(message: google.datastore.admin.v1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1274
1275 /**
1276 * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.datastore.admin.v1.GetIndexRequest.verify|verify} messages.
1277 * @param message GetIndexRequest message or plain object to encode
1278 * @param [writer] Writer to encode to
1279 * @returns Writer
1280 */
1281 public static encodeDelimited(message: google.datastore.admin.v1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1282
1283 /**
1284 * Decodes a GetIndexRequest message from the specified reader or buffer.
1285 * @param reader Reader or buffer to decode from
1286 * @param [length] Message length if known beforehand
1287 * @returns GetIndexRequest
1288 * @throws {Error} If the payload is not a reader or valid buffer
1289 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1290 */
1291 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.GetIndexRequest;
1292
1293 /**
1294 * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited.
1295 * @param reader Reader or buffer to decode from
1296 * @returns GetIndexRequest
1297 * @throws {Error} If the payload is not a reader or valid buffer
1298 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1299 */
1300 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.GetIndexRequest;
1301
1302 /**
1303 * Verifies a GetIndexRequest message.
1304 * @param message Plain object to verify
1305 * @returns `null` if valid, otherwise the reason why it is not
1306 */
1307 public static verify(message: { [k: string]: any }): (string|null);
1308
1309 /**
1310 * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types.
1311 * @param object Plain object
1312 * @returns GetIndexRequest
1313 */
1314 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.GetIndexRequest;
1315
1316 /**
1317 * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified.
1318 * @param message GetIndexRequest
1319 * @param [options] Conversion options
1320 * @returns Plain object
1321 */
1322 public static toObject(message: google.datastore.admin.v1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1323
1324 /**
1325 * Converts this GetIndexRequest to JSON.
1326 * @returns JSON object
1327 */
1328 public toJSON(): { [k: string]: any };
1329 }
1330
1331 /** Properties of a ListIndexesRequest. */
1332 interface IListIndexesRequest {
1333
1334 /** ListIndexesRequest projectId */
1335 projectId?: (string|null);
1336
1337 /** ListIndexesRequest filter */
1338 filter?: (string|null);
1339
1340 /** ListIndexesRequest pageSize */
1341 pageSize?: (number|null);
1342
1343 /** ListIndexesRequest pageToken */
1344 pageToken?: (string|null);
1345 }
1346
1347 /** Represents a ListIndexesRequest. */
1348 class ListIndexesRequest implements IListIndexesRequest {
1349
1350 /**
1351 * Constructs a new ListIndexesRequest.
1352 * @param [properties] Properties to set
1353 */
1354 constructor(properties?: google.datastore.admin.v1.IListIndexesRequest);
1355
1356 /** ListIndexesRequest projectId. */
1357 public projectId: string;
1358
1359 /** ListIndexesRequest filter. */
1360 public filter: string;
1361
1362 /** ListIndexesRequest pageSize. */
1363 public pageSize: number;
1364
1365 /** ListIndexesRequest pageToken. */
1366 public pageToken: string;
1367
1368 /**
1369 * Creates a new ListIndexesRequest instance using the specified properties.
1370 * @param [properties] Properties to set
1371 * @returns ListIndexesRequest instance
1372 */
1373 public static create(properties?: google.datastore.admin.v1.IListIndexesRequest): google.datastore.admin.v1.ListIndexesRequest;
1374
1375 /**
1376 * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.datastore.admin.v1.ListIndexesRequest.verify|verify} messages.
1377 * @param message ListIndexesRequest message or plain object to encode
1378 * @param [writer] Writer to encode to
1379 * @returns Writer
1380 */
1381 public static encode(message: google.datastore.admin.v1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1382
1383 /**
1384 * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.datastore.admin.v1.ListIndexesRequest.verify|verify} messages.
1385 * @param message ListIndexesRequest message or plain object to encode
1386 * @param [writer] Writer to encode to
1387 * @returns Writer
1388 */
1389 public static encodeDelimited(message: google.datastore.admin.v1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
1390
1391 /**
1392 * Decodes a ListIndexesRequest message from the specified reader or buffer.
1393 * @param reader Reader or buffer to decode from
1394 * @param [length] Message length if known beforehand
1395 * @returns ListIndexesRequest
1396 * @throws {Error} If the payload is not a reader or valid buffer
1397 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1398 */
1399 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.ListIndexesRequest;
1400
1401 /**
1402 * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited.
1403 * @param reader Reader or buffer to decode from
1404 * @returns ListIndexesRequest
1405 * @throws {Error} If the payload is not a reader or valid buffer
1406 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1407 */
1408 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.ListIndexesRequest;
1409
1410 /**
1411 * Verifies a ListIndexesRequest message.
1412 * @param message Plain object to verify
1413 * @returns `null` if valid, otherwise the reason why it is not
1414 */
1415 public static verify(message: { [k: string]: any }): (string|null);
1416
1417 /**
1418 * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types.
1419 * @param object Plain object
1420 * @returns ListIndexesRequest
1421 */
1422 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.ListIndexesRequest;
1423
1424 /**
1425 * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified.
1426 * @param message ListIndexesRequest
1427 * @param [options] Conversion options
1428 * @returns Plain object
1429 */
1430 public static toObject(message: google.datastore.admin.v1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
1431
1432 /**
1433 * Converts this ListIndexesRequest to JSON.
1434 * @returns JSON object
1435 */
1436 public toJSON(): { [k: string]: any };
1437 }
1438
1439 /** Properties of a ListIndexesResponse. */
1440 interface IListIndexesResponse {
1441
1442 /** ListIndexesResponse indexes */
1443 indexes?: (google.datastore.admin.v1.IIndex[]|null);
1444
1445 /** ListIndexesResponse nextPageToken */
1446 nextPageToken?: (string|null);
1447 }
1448
1449 /** Represents a ListIndexesResponse. */
1450 class ListIndexesResponse implements IListIndexesResponse {
1451
1452 /**
1453 * Constructs a new ListIndexesResponse.
1454 * @param [properties] Properties to set
1455 */
1456 constructor(properties?: google.datastore.admin.v1.IListIndexesResponse);
1457
1458 /** ListIndexesResponse indexes. */
1459 public indexes: google.datastore.admin.v1.IIndex[];
1460
1461 /** ListIndexesResponse nextPageToken. */
1462 public nextPageToken: string;
1463
1464 /**
1465 * Creates a new ListIndexesResponse instance using the specified properties.
1466 * @param [properties] Properties to set
1467 * @returns ListIndexesResponse instance
1468 */
1469 public static create(properties?: google.datastore.admin.v1.IListIndexesResponse): google.datastore.admin.v1.ListIndexesResponse;
1470
1471 /**
1472 * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.datastore.admin.v1.ListIndexesResponse.verify|verify} messages.
1473 * @param message ListIndexesResponse message or plain object to encode
1474 * @param [writer] Writer to encode to
1475 * @returns Writer
1476 */
1477 public static encode(message: google.datastore.admin.v1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1478
1479 /**
1480 * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.datastore.admin.v1.ListIndexesResponse.verify|verify} messages.
1481 * @param message ListIndexesResponse message or plain object to encode
1482 * @param [writer] Writer to encode to
1483 * @returns Writer
1484 */
1485 public static encodeDelimited(message: google.datastore.admin.v1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
1486
1487 /**
1488 * Decodes a ListIndexesResponse message from the specified reader or buffer.
1489 * @param reader Reader or buffer to decode from
1490 * @param [length] Message length if known beforehand
1491 * @returns ListIndexesResponse
1492 * @throws {Error} If the payload is not a reader or valid buffer
1493 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1494 */
1495 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.ListIndexesResponse;
1496
1497 /**
1498 * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited.
1499 * @param reader Reader or buffer to decode from
1500 * @returns ListIndexesResponse
1501 * @throws {Error} If the payload is not a reader or valid buffer
1502 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1503 */
1504 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.ListIndexesResponse;
1505
1506 /**
1507 * Verifies a ListIndexesResponse message.
1508 * @param message Plain object to verify
1509 * @returns `null` if valid, otherwise the reason why it is not
1510 */
1511 public static verify(message: { [k: string]: any }): (string|null);
1512
1513 /**
1514 * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types.
1515 * @param object Plain object
1516 * @returns ListIndexesResponse
1517 */
1518 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.ListIndexesResponse;
1519
1520 /**
1521 * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified.
1522 * @param message ListIndexesResponse
1523 * @param [options] Conversion options
1524 * @returns Plain object
1525 */
1526 public static toObject(message: google.datastore.admin.v1.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
1527
1528 /**
1529 * Converts this ListIndexesResponse to JSON.
1530 * @returns JSON object
1531 */
1532 public toJSON(): { [k: string]: any };
1533 }
1534
1535 /** Properties of an IndexOperationMetadata. */
1536 interface IIndexOperationMetadata {
1537
1538 /** IndexOperationMetadata common */
1539 common?: (google.datastore.admin.v1.ICommonMetadata|null);
1540
1541 /** IndexOperationMetadata progressEntities */
1542 progressEntities?: (google.datastore.admin.v1.IProgress|null);
1543
1544 /** IndexOperationMetadata indexId */
1545 indexId?: (string|null);
1546 }
1547
1548 /** Represents an IndexOperationMetadata. */
1549 class IndexOperationMetadata implements IIndexOperationMetadata {
1550
1551 /**
1552 * Constructs a new IndexOperationMetadata.
1553 * @param [properties] Properties to set
1554 */
1555 constructor(properties?: google.datastore.admin.v1.IIndexOperationMetadata);
1556
1557 /** IndexOperationMetadata common. */
1558 public common?: (google.datastore.admin.v1.ICommonMetadata|null);
1559
1560 /** IndexOperationMetadata progressEntities. */
1561 public progressEntities?: (google.datastore.admin.v1.IProgress|null);
1562
1563 /** IndexOperationMetadata indexId. */
1564 public indexId: string;
1565
1566 /**
1567 * Creates a new IndexOperationMetadata instance using the specified properties.
1568 * @param [properties] Properties to set
1569 * @returns IndexOperationMetadata instance
1570 */
1571 public static create(properties?: google.datastore.admin.v1.IIndexOperationMetadata): google.datastore.admin.v1.IndexOperationMetadata;
1572
1573 /**
1574 * Encodes the specified IndexOperationMetadata message. Does not implicitly {@link google.datastore.admin.v1.IndexOperationMetadata.verify|verify} messages.
1575 * @param message IndexOperationMetadata message or plain object to encode
1576 * @param [writer] Writer to encode to
1577 * @returns Writer
1578 */
1579 public static encode(message: google.datastore.admin.v1.IIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
1580
1581 /**
1582 * Encodes the specified IndexOperationMetadata message, length delimited. Does not implicitly {@link google.datastore.admin.v1.IndexOperationMetadata.verify|verify} messages.
1583 * @param message IndexOperationMetadata message or plain object to encode
1584 * @param [writer] Writer to encode to
1585 * @returns Writer
1586 */
1587 public static encodeDelimited(message: google.datastore.admin.v1.IIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
1588
1589 /**
1590 * Decodes an IndexOperationMetadata message from the specified reader or buffer.
1591 * @param reader Reader or buffer to decode from
1592 * @param [length] Message length if known beforehand
1593 * @returns IndexOperationMetadata
1594 * @throws {Error} If the payload is not a reader or valid buffer
1595 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1596 */
1597 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.IndexOperationMetadata;
1598
1599 /**
1600 * Decodes an IndexOperationMetadata message from the specified reader or buffer, length delimited.
1601 * @param reader Reader or buffer to decode from
1602 * @returns IndexOperationMetadata
1603 * @throws {Error} If the payload is not a reader or valid buffer
1604 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1605 */
1606 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.IndexOperationMetadata;
1607
1608 /**
1609 * Verifies an IndexOperationMetadata message.
1610 * @param message Plain object to verify
1611 * @returns `null` if valid, otherwise the reason why it is not
1612 */
1613 public static verify(message: { [k: string]: any }): (string|null);
1614
1615 /**
1616 * Creates an IndexOperationMetadata message from a plain object. Also converts values to their respective internal types.
1617 * @param object Plain object
1618 * @returns IndexOperationMetadata
1619 */
1620 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.IndexOperationMetadata;
1621
1622 /**
1623 * Creates a plain object from an IndexOperationMetadata message. Also converts values to other types if specified.
1624 * @param message IndexOperationMetadata
1625 * @param [options] Conversion options
1626 * @returns Plain object
1627 */
1628 public static toObject(message: google.datastore.admin.v1.IndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
1629
1630 /**
1631 * Converts this IndexOperationMetadata to JSON.
1632 * @returns JSON object
1633 */
1634 public toJSON(): { [k: string]: any };
1635 }
1636
1637 /** Properties of an Index. */
1638 interface IIndex {
1639
1640 /** Index projectId */
1641 projectId?: (string|null);
1642
1643 /** Index indexId */
1644 indexId?: (string|null);
1645
1646 /** Index kind */
1647 kind?: (string|null);
1648
1649 /** Index ancestor */
1650 ancestor?: (google.datastore.admin.v1.Index.AncestorMode|keyof typeof google.datastore.admin.v1.Index.AncestorMode|null);
1651
1652 /** Index properties */
1653 properties?: (google.datastore.admin.v1.Index.IIndexedProperty[]|null);
1654
1655 /** Index state */
1656 state?: (google.datastore.admin.v1.Index.State|keyof typeof google.datastore.admin.v1.Index.State|null);
1657 }
1658
1659 /** Represents an Index. */
1660 class Index implements IIndex {
1661
1662 /**
1663 * Constructs a new Index.
1664 * @param [properties] Properties to set
1665 */
1666 constructor(properties?: google.datastore.admin.v1.IIndex);
1667
1668 /** Index projectId. */
1669 public projectId: string;
1670
1671 /** Index indexId. */
1672 public indexId: string;
1673
1674 /** Index kind. */
1675 public kind: string;
1676
1677 /** Index ancestor. */
1678 public ancestor: (google.datastore.admin.v1.Index.AncestorMode|keyof typeof google.datastore.admin.v1.Index.AncestorMode);
1679
1680 /** Index properties. */
1681 public properties: google.datastore.admin.v1.Index.IIndexedProperty[];
1682
1683 /** Index state. */
1684 public state: (google.datastore.admin.v1.Index.State|keyof typeof google.datastore.admin.v1.Index.State);
1685
1686 /**
1687 * Creates a new Index instance using the specified properties.
1688 * @param [properties] Properties to set
1689 * @returns Index instance
1690 */
1691 public static create(properties?: google.datastore.admin.v1.IIndex): google.datastore.admin.v1.Index;
1692
1693 /**
1694 * Encodes the specified Index message. Does not implicitly {@link google.datastore.admin.v1.Index.verify|verify} messages.
1695 * @param message Index message or plain object to encode
1696 * @param [writer] Writer to encode to
1697 * @returns Writer
1698 */
1699 public static encode(message: google.datastore.admin.v1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer;
1700
1701 /**
1702 * Encodes the specified Index message, length delimited. Does not implicitly {@link google.datastore.admin.v1.Index.verify|verify} messages.
1703 * @param message Index message or plain object to encode
1704 * @param [writer] Writer to encode to
1705 * @returns Writer
1706 */
1707 public static encodeDelimited(message: google.datastore.admin.v1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer;
1708
1709 /**
1710 * Decodes an Index message from the specified reader or buffer.
1711 * @param reader Reader or buffer to decode from
1712 * @param [length] Message length if known beforehand
1713 * @returns Index
1714 * @throws {Error} If the payload is not a reader or valid buffer
1715 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1716 */
1717 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.Index;
1718
1719 /**
1720 * Decodes an Index message from the specified reader or buffer, length delimited.
1721 * @param reader Reader or buffer to decode from
1722 * @returns Index
1723 * @throws {Error} If the payload is not a reader or valid buffer
1724 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1725 */
1726 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.Index;
1727
1728 /**
1729 * Verifies an Index message.
1730 * @param message Plain object to verify
1731 * @returns `null` if valid, otherwise the reason why it is not
1732 */
1733 public static verify(message: { [k: string]: any }): (string|null);
1734
1735 /**
1736 * Creates an Index message from a plain object. Also converts values to their respective internal types.
1737 * @param object Plain object
1738 * @returns Index
1739 */
1740 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.Index;
1741
1742 /**
1743 * Creates a plain object from an Index message. Also converts values to other types if specified.
1744 * @param message Index
1745 * @param [options] Conversion options
1746 * @returns Plain object
1747 */
1748 public static toObject(message: google.datastore.admin.v1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any };
1749
1750 /**
1751 * Converts this Index to JSON.
1752 * @returns JSON object
1753 */
1754 public toJSON(): { [k: string]: any };
1755 }
1756
1757 namespace Index {
1758
1759 /** Properties of an IndexedProperty. */
1760 interface IIndexedProperty {
1761
1762 /** IndexedProperty name */
1763 name?: (string|null);
1764
1765 /** IndexedProperty direction */
1766 direction?: (google.datastore.admin.v1.Index.Direction|keyof typeof google.datastore.admin.v1.Index.Direction|null);
1767 }
1768
1769 /** Represents an IndexedProperty. */
1770 class IndexedProperty implements IIndexedProperty {
1771
1772 /**
1773 * Constructs a new IndexedProperty.
1774 * @param [properties] Properties to set
1775 */
1776 constructor(properties?: google.datastore.admin.v1.Index.IIndexedProperty);
1777
1778 /** IndexedProperty name. */
1779 public name: string;
1780
1781 /** IndexedProperty direction. */
1782 public direction: (google.datastore.admin.v1.Index.Direction|keyof typeof google.datastore.admin.v1.Index.Direction);
1783
1784 /**
1785 * Creates a new IndexedProperty instance using the specified properties.
1786 * @param [properties] Properties to set
1787 * @returns IndexedProperty instance
1788 */
1789 public static create(properties?: google.datastore.admin.v1.Index.IIndexedProperty): google.datastore.admin.v1.Index.IndexedProperty;
1790
1791 /**
1792 * Encodes the specified IndexedProperty message. Does not implicitly {@link google.datastore.admin.v1.Index.IndexedProperty.verify|verify} messages.
1793 * @param message IndexedProperty message or plain object to encode
1794 * @param [writer] Writer to encode to
1795 * @returns Writer
1796 */
1797 public static encode(message: google.datastore.admin.v1.Index.IIndexedProperty, writer?: $protobuf.Writer): $protobuf.Writer;
1798
1799 /**
1800 * Encodes the specified IndexedProperty message, length delimited. Does not implicitly {@link google.datastore.admin.v1.Index.IndexedProperty.verify|verify} messages.
1801 * @param message IndexedProperty message or plain object to encode
1802 * @param [writer] Writer to encode to
1803 * @returns Writer
1804 */
1805 public static encodeDelimited(message: google.datastore.admin.v1.Index.IIndexedProperty, writer?: $protobuf.Writer): $protobuf.Writer;
1806
1807 /**
1808 * Decodes an IndexedProperty message from the specified reader or buffer.
1809 * @param reader Reader or buffer to decode from
1810 * @param [length] Message length if known beforehand
1811 * @returns IndexedProperty
1812 * @throws {Error} If the payload is not a reader or valid buffer
1813 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1814 */
1815 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.admin.v1.Index.IndexedProperty;
1816
1817 /**
1818 * Decodes an IndexedProperty message from the specified reader or buffer, length delimited.
1819 * @param reader Reader or buffer to decode from
1820 * @returns IndexedProperty
1821 * @throws {Error} If the payload is not a reader or valid buffer
1822 * @throws {$protobuf.util.ProtocolError} If required fields are missing
1823 */
1824 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.admin.v1.Index.IndexedProperty;
1825
1826 /**
1827 * Verifies an IndexedProperty message.
1828 * @param message Plain object to verify
1829 * @returns `null` if valid, otherwise the reason why it is not
1830 */
1831 public static verify(message: { [k: string]: any }): (string|null);
1832
1833 /**
1834 * Creates an IndexedProperty message from a plain object. Also converts values to their respective internal types.
1835 * @param object Plain object
1836 * @returns IndexedProperty
1837 */
1838 public static fromObject(object: { [k: string]: any }): google.datastore.admin.v1.Index.IndexedProperty;
1839
1840 /**
1841 * Creates a plain object from an IndexedProperty message. Also converts values to other types if specified.
1842 * @param message IndexedProperty
1843 * @param [options] Conversion options
1844 * @returns Plain object
1845 */
1846 public static toObject(message: google.datastore.admin.v1.Index.IndexedProperty, options?: $protobuf.IConversionOptions): { [k: string]: any };
1847
1848 /**
1849 * Converts this IndexedProperty to JSON.
1850 * @returns JSON object
1851 */
1852 public toJSON(): { [k: string]: any };
1853 }
1854
1855 /** AncestorMode enum. */
1856 enum AncestorMode {
1857 ANCESTOR_MODE_UNSPECIFIED = 0,
1858 NONE = 1,
1859 ALL_ANCESTORS = 2
1860 }
1861
1862 /** Direction enum. */
1863 enum Direction {
1864 DIRECTION_UNSPECIFIED = 0,
1865 ASCENDING = 1,
1866 DESCENDING = 2
1867 }
1868
1869 /** State enum. */
1870 enum State {
1871 STATE_UNSPECIFIED = 0,
1872 CREATING = 1,
1873 READY = 2,
1874 DELETING = 3,
1875 ERROR = 4
1876 }
1877 }
1878 }
1879 }
1880
1881 /** Namespace v1. */
1882 namespace v1 {
1883
1884 /** Represents a Datastore */
1885 class Datastore extends $protobuf.rpc.Service {
1886
1887 /**
1888 * Constructs a new Datastore service.
1889 * @param rpcImpl RPC implementation
1890 * @param [requestDelimited=false] Whether requests are length-delimited
1891 * @param [responseDelimited=false] Whether responses are length-delimited
1892 */
1893 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
1894
1895 /**
1896 * Creates new Datastore service using the specified rpc implementation.
1897 * @param rpcImpl RPC implementation
1898 * @param [requestDelimited=false] Whether requests are length-delimited
1899 * @param [responseDelimited=false] Whether responses are length-delimited
1900 * @returns RPC service. Useful where requests and/or responses are streamed.
1901 */
1902 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Datastore;
1903
1904 /**
1905 * Calls Lookup.
1906 * @param request LookupRequest message or plain object
1907 * @param callback Node-style callback called with the error, if any, and LookupResponse
1908 */
1909 public lookup(request: google.datastore.v1.ILookupRequest, callback: google.datastore.v1.Datastore.LookupCallback): void;
1910
1911 /**
1912 * Calls Lookup.
1913 * @param request LookupRequest message or plain object
1914 * @returns Promise
1915 */
1916 public lookup(request: google.datastore.v1.ILookupRequest): Promise<google.datastore.v1.LookupResponse>;
1917
1918 /**
1919 * Calls RunQuery.
1920 * @param request RunQueryRequest message or plain object
1921 * @param callback Node-style callback called with the error, if any, and RunQueryResponse
1922 */
1923 public runQuery(request: google.datastore.v1.IRunQueryRequest, callback: google.datastore.v1.Datastore.RunQueryCallback): void;
1924
1925 /**
1926 * Calls RunQuery.
1927 * @param request RunQueryRequest message or plain object
1928 * @returns Promise
1929 */
1930 public runQuery(request: google.datastore.v1.IRunQueryRequest): Promise<google.datastore.v1.RunQueryResponse>;
1931
1932 /**
1933 * Calls BeginTransaction.
1934 * @param request BeginTransactionRequest message or plain object
1935 * @param callback Node-style callback called with the error, if any, and BeginTransactionResponse
1936 */
1937 public beginTransaction(request: google.datastore.v1.IBeginTransactionRequest, callback: google.datastore.v1.Datastore.BeginTransactionCallback): void;
1938
1939 /**
1940 * Calls BeginTransaction.
1941 * @param request BeginTransactionRequest message or plain object
1942 * @returns Promise
1943 */
1944 public beginTransaction(request: google.datastore.v1.IBeginTransactionRequest): Promise<google.datastore.v1.BeginTransactionResponse>;
1945
1946 /**
1947 * Calls Commit.
1948 * @param request CommitRequest message or plain object
1949 * @param callback Node-style callback called with the error, if any, and CommitResponse
1950 */
1951 public commit(request: google.datastore.v1.ICommitRequest, callback: google.datastore.v1.Datastore.CommitCallback): void;
1952
1953 /**
1954 * Calls Commit.
1955 * @param request CommitRequest message or plain object
1956 * @returns Promise
1957 */
1958 public commit(request: google.datastore.v1.ICommitRequest): Promise<google.datastore.v1.CommitResponse>;
1959
1960 /**
1961 * Calls Rollback.
1962 * @param request RollbackRequest message or plain object
1963 * @param callback Node-style callback called with the error, if any, and RollbackResponse
1964 */
1965 public rollback(request: google.datastore.v1.IRollbackRequest, callback: google.datastore.v1.Datastore.RollbackCallback): void;
1966
1967 /**
1968 * Calls Rollback.
1969 * @param request RollbackRequest message or plain object
1970 * @returns Promise
1971 */
1972 public rollback(request: google.datastore.v1.IRollbackRequest): Promise<google.datastore.v1.RollbackResponse>;
1973
1974 /**
1975 * Calls AllocateIds.
1976 * @param request AllocateIdsRequest message or plain object
1977 * @param callback Node-style callback called with the error, if any, and AllocateIdsResponse
1978 */
1979 public allocateIds(request: google.datastore.v1.IAllocateIdsRequest, callback: google.datastore.v1.Datastore.AllocateIdsCallback): void;
1980
1981 /**
1982 * Calls AllocateIds.
1983 * @param request AllocateIdsRequest message or plain object
1984 * @returns Promise
1985 */
1986 public allocateIds(request: google.datastore.v1.IAllocateIdsRequest): Promise<google.datastore.v1.AllocateIdsResponse>;
1987
1988 /**
1989 * Calls ReserveIds.
1990 * @param request ReserveIdsRequest message or plain object
1991 * @param callback Node-style callback called with the error, if any, and ReserveIdsResponse
1992 */
1993 public reserveIds(request: google.datastore.v1.IReserveIdsRequest, callback: google.datastore.v1.Datastore.ReserveIdsCallback): void;
1994
1995 /**
1996 * Calls ReserveIds.
1997 * @param request ReserveIdsRequest message or plain object
1998 * @returns Promise
1999 */
2000 public reserveIds(request: google.datastore.v1.IReserveIdsRequest): Promise<google.datastore.v1.ReserveIdsResponse>;
2001 }
2002
2003 namespace Datastore {
2004
2005 /**
2006 * Callback as used by {@link google.datastore.v1.Datastore#lookup}.
2007 * @param error Error, if any
2008 * @param [response] LookupResponse
2009 */
2010 type LookupCallback = (error: (Error|null), response?: google.datastore.v1.LookupResponse) => void;
2011
2012 /**
2013 * Callback as used by {@link google.datastore.v1.Datastore#runQuery}.
2014 * @param error Error, if any
2015 * @param [response] RunQueryResponse
2016 */
2017 type RunQueryCallback = (error: (Error|null), response?: google.datastore.v1.RunQueryResponse) => void;
2018
2019 /**
2020 * Callback as used by {@link google.datastore.v1.Datastore#beginTransaction}.
2021 * @param error Error, if any
2022 * @param [response] BeginTransactionResponse
2023 */
2024 type BeginTransactionCallback = (error: (Error|null), response?: google.datastore.v1.BeginTransactionResponse) => void;
2025
2026 /**
2027 * Callback as used by {@link google.datastore.v1.Datastore#commit}.
2028 * @param error Error, if any
2029 * @param [response] CommitResponse
2030 */
2031 type CommitCallback = (error: (Error|null), response?: google.datastore.v1.CommitResponse) => void;
2032
2033 /**
2034 * Callback as used by {@link google.datastore.v1.Datastore#rollback}.
2035 * @param error Error, if any
2036 * @param [response] RollbackResponse
2037 */
2038 type RollbackCallback = (error: (Error|null), response?: google.datastore.v1.RollbackResponse) => void;
2039
2040 /**
2041 * Callback as used by {@link google.datastore.v1.Datastore#allocateIds}.
2042 * @param error Error, if any
2043 * @param [response] AllocateIdsResponse
2044 */
2045 type AllocateIdsCallback = (error: (Error|null), response?: google.datastore.v1.AllocateIdsResponse) => void;
2046
2047 /**
2048 * Callback as used by {@link google.datastore.v1.Datastore#reserveIds}.
2049 * @param error Error, if any
2050 * @param [response] ReserveIdsResponse
2051 */
2052 type ReserveIdsCallback = (error: (Error|null), response?: google.datastore.v1.ReserveIdsResponse) => void;
2053 }
2054
2055 /** Properties of a LookupRequest. */
2056 interface ILookupRequest {
2057
2058 /** LookupRequest projectId */
2059 projectId?: (string|null);
2060
2061 /** LookupRequest readOptions */
2062 readOptions?: (google.datastore.v1.IReadOptions|null);
2063
2064 /** LookupRequest keys */
2065 keys?: (google.datastore.v1.IKey[]|null);
2066 }
2067
2068 /** Represents a LookupRequest. */
2069 class LookupRequest implements ILookupRequest {
2070
2071 /**
2072 * Constructs a new LookupRequest.
2073 * @param [properties] Properties to set
2074 */
2075 constructor(properties?: google.datastore.v1.ILookupRequest);
2076
2077 /** LookupRequest projectId. */
2078 public projectId: string;
2079
2080 /** LookupRequest readOptions. */
2081 public readOptions?: (google.datastore.v1.IReadOptions|null);
2082
2083 /** LookupRequest keys. */
2084 public keys: google.datastore.v1.IKey[];
2085
2086 /**
2087 * Creates a new LookupRequest instance using the specified properties.
2088 * @param [properties] Properties to set
2089 * @returns LookupRequest instance
2090 */
2091 public static create(properties?: google.datastore.v1.ILookupRequest): google.datastore.v1.LookupRequest;
2092
2093 /**
2094 * Encodes the specified LookupRequest message. Does not implicitly {@link google.datastore.v1.LookupRequest.verify|verify} messages.
2095 * @param message LookupRequest message or plain object to encode
2096 * @param [writer] Writer to encode to
2097 * @returns Writer
2098 */
2099 public static encode(message: google.datastore.v1.ILookupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2100
2101 /**
2102 * Encodes the specified LookupRequest message, length delimited. Does not implicitly {@link google.datastore.v1.LookupRequest.verify|verify} messages.
2103 * @param message LookupRequest message or plain object to encode
2104 * @param [writer] Writer to encode to
2105 * @returns Writer
2106 */
2107 public static encodeDelimited(message: google.datastore.v1.ILookupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2108
2109 /**
2110 * Decodes a LookupRequest message from the specified reader or buffer.
2111 * @param reader Reader or buffer to decode from
2112 * @param [length] Message length if known beforehand
2113 * @returns LookupRequest
2114 * @throws {Error} If the payload is not a reader or valid buffer
2115 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2116 */
2117 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.LookupRequest;
2118
2119 /**
2120 * Decodes a LookupRequest message from the specified reader or buffer, length delimited.
2121 * @param reader Reader or buffer to decode from
2122 * @returns LookupRequest
2123 * @throws {Error} If the payload is not a reader or valid buffer
2124 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2125 */
2126 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.LookupRequest;
2127
2128 /**
2129 * Verifies a LookupRequest message.
2130 * @param message Plain object to verify
2131 * @returns `null` if valid, otherwise the reason why it is not
2132 */
2133 public static verify(message: { [k: string]: any }): (string|null);
2134
2135 /**
2136 * Creates a LookupRequest message from a plain object. Also converts values to their respective internal types.
2137 * @param object Plain object
2138 * @returns LookupRequest
2139 */
2140 public static fromObject(object: { [k: string]: any }): google.datastore.v1.LookupRequest;
2141
2142 /**
2143 * Creates a plain object from a LookupRequest message. Also converts values to other types if specified.
2144 * @param message LookupRequest
2145 * @param [options] Conversion options
2146 * @returns Plain object
2147 */
2148 public static toObject(message: google.datastore.v1.LookupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2149
2150 /**
2151 * Converts this LookupRequest to JSON.
2152 * @returns JSON object
2153 */
2154 public toJSON(): { [k: string]: any };
2155 }
2156
2157 /** Properties of a LookupResponse. */
2158 interface ILookupResponse {
2159
2160 /** LookupResponse found */
2161 found?: (google.datastore.v1.IEntityResult[]|null);
2162
2163 /** LookupResponse missing */
2164 missing?: (google.datastore.v1.IEntityResult[]|null);
2165
2166 /** LookupResponse deferred */
2167 deferred?: (google.datastore.v1.IKey[]|null);
2168 }
2169
2170 /** Represents a LookupResponse. */
2171 class LookupResponse implements ILookupResponse {
2172
2173 /**
2174 * Constructs a new LookupResponse.
2175 * @param [properties] Properties to set
2176 */
2177 constructor(properties?: google.datastore.v1.ILookupResponse);
2178
2179 /** LookupResponse found. */
2180 public found: google.datastore.v1.IEntityResult[];
2181
2182 /** LookupResponse missing. */
2183 public missing: google.datastore.v1.IEntityResult[];
2184
2185 /** LookupResponse deferred. */
2186 public deferred: google.datastore.v1.IKey[];
2187
2188 /**
2189 * Creates a new LookupResponse instance using the specified properties.
2190 * @param [properties] Properties to set
2191 * @returns LookupResponse instance
2192 */
2193 public static create(properties?: google.datastore.v1.ILookupResponse): google.datastore.v1.LookupResponse;
2194
2195 /**
2196 * Encodes the specified LookupResponse message. Does not implicitly {@link google.datastore.v1.LookupResponse.verify|verify} messages.
2197 * @param message LookupResponse message or plain object to encode
2198 * @param [writer] Writer to encode to
2199 * @returns Writer
2200 */
2201 public static encode(message: google.datastore.v1.ILookupResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2202
2203 /**
2204 * Encodes the specified LookupResponse message, length delimited. Does not implicitly {@link google.datastore.v1.LookupResponse.verify|verify} messages.
2205 * @param message LookupResponse message or plain object to encode
2206 * @param [writer] Writer to encode to
2207 * @returns Writer
2208 */
2209 public static encodeDelimited(message: google.datastore.v1.ILookupResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2210
2211 /**
2212 * Decodes a LookupResponse message from the specified reader or buffer.
2213 * @param reader Reader or buffer to decode from
2214 * @param [length] Message length if known beforehand
2215 * @returns LookupResponse
2216 * @throws {Error} If the payload is not a reader or valid buffer
2217 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2218 */
2219 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.LookupResponse;
2220
2221 /**
2222 * Decodes a LookupResponse message from the specified reader or buffer, length delimited.
2223 * @param reader Reader or buffer to decode from
2224 * @returns LookupResponse
2225 * @throws {Error} If the payload is not a reader or valid buffer
2226 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2227 */
2228 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.LookupResponse;
2229
2230 /**
2231 * Verifies a LookupResponse message.
2232 * @param message Plain object to verify
2233 * @returns `null` if valid, otherwise the reason why it is not
2234 */
2235 public static verify(message: { [k: string]: any }): (string|null);
2236
2237 /**
2238 * Creates a LookupResponse message from a plain object. Also converts values to their respective internal types.
2239 * @param object Plain object
2240 * @returns LookupResponse
2241 */
2242 public static fromObject(object: { [k: string]: any }): google.datastore.v1.LookupResponse;
2243
2244 /**
2245 * Creates a plain object from a LookupResponse message. Also converts values to other types if specified.
2246 * @param message LookupResponse
2247 * @param [options] Conversion options
2248 * @returns Plain object
2249 */
2250 public static toObject(message: google.datastore.v1.LookupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
2251
2252 /**
2253 * Converts this LookupResponse to JSON.
2254 * @returns JSON object
2255 */
2256 public toJSON(): { [k: string]: any };
2257 }
2258
2259 /** Properties of a RunQueryRequest. */
2260 interface IRunQueryRequest {
2261
2262 /** RunQueryRequest projectId */
2263 projectId?: (string|null);
2264
2265 /** RunQueryRequest partitionId */
2266 partitionId?: (google.datastore.v1.IPartitionId|null);
2267
2268 /** RunQueryRequest readOptions */
2269 readOptions?: (google.datastore.v1.IReadOptions|null);
2270
2271 /** RunQueryRequest query */
2272 query?: (google.datastore.v1.IQuery|null);
2273
2274 /** RunQueryRequest gqlQuery */
2275 gqlQuery?: (google.datastore.v1.IGqlQuery|null);
2276 }
2277
2278 /** Represents a RunQueryRequest. */
2279 class RunQueryRequest implements IRunQueryRequest {
2280
2281 /**
2282 * Constructs a new RunQueryRequest.
2283 * @param [properties] Properties to set
2284 */
2285 constructor(properties?: google.datastore.v1.IRunQueryRequest);
2286
2287 /** RunQueryRequest projectId. */
2288 public projectId: string;
2289
2290 /** RunQueryRequest partitionId. */
2291 public partitionId?: (google.datastore.v1.IPartitionId|null);
2292
2293 /** RunQueryRequest readOptions. */
2294 public readOptions?: (google.datastore.v1.IReadOptions|null);
2295
2296 /** RunQueryRequest query. */
2297 public query?: (google.datastore.v1.IQuery|null);
2298
2299 /** RunQueryRequest gqlQuery. */
2300 public gqlQuery?: (google.datastore.v1.IGqlQuery|null);
2301
2302 /** RunQueryRequest queryType. */
2303 public queryType?: ("query"|"gqlQuery");
2304
2305 /**
2306 * Creates a new RunQueryRequest instance using the specified properties.
2307 * @param [properties] Properties to set
2308 * @returns RunQueryRequest instance
2309 */
2310 public static create(properties?: google.datastore.v1.IRunQueryRequest): google.datastore.v1.RunQueryRequest;
2311
2312 /**
2313 * Encodes the specified RunQueryRequest message. Does not implicitly {@link google.datastore.v1.RunQueryRequest.verify|verify} messages.
2314 * @param message RunQueryRequest message or plain object to encode
2315 * @param [writer] Writer to encode to
2316 * @returns Writer
2317 */
2318 public static encode(message: google.datastore.v1.IRunQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2319
2320 /**
2321 * Encodes the specified RunQueryRequest message, length delimited. Does not implicitly {@link google.datastore.v1.RunQueryRequest.verify|verify} messages.
2322 * @param message RunQueryRequest message or plain object to encode
2323 * @param [writer] Writer to encode to
2324 * @returns Writer
2325 */
2326 public static encodeDelimited(message: google.datastore.v1.IRunQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2327
2328 /**
2329 * Decodes a RunQueryRequest message from the specified reader or buffer.
2330 * @param reader Reader or buffer to decode from
2331 * @param [length] Message length if known beforehand
2332 * @returns RunQueryRequest
2333 * @throws {Error} If the payload is not a reader or valid buffer
2334 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2335 */
2336 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.RunQueryRequest;
2337
2338 /**
2339 * Decodes a RunQueryRequest message from the specified reader or buffer, length delimited.
2340 * @param reader Reader or buffer to decode from
2341 * @returns RunQueryRequest
2342 * @throws {Error} If the payload is not a reader or valid buffer
2343 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2344 */
2345 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.RunQueryRequest;
2346
2347 /**
2348 * Verifies a RunQueryRequest message.
2349 * @param message Plain object to verify
2350 * @returns `null` if valid, otherwise the reason why it is not
2351 */
2352 public static verify(message: { [k: string]: any }): (string|null);
2353
2354 /**
2355 * Creates a RunQueryRequest message from a plain object. Also converts values to their respective internal types.
2356 * @param object Plain object
2357 * @returns RunQueryRequest
2358 */
2359 public static fromObject(object: { [k: string]: any }): google.datastore.v1.RunQueryRequest;
2360
2361 /**
2362 * Creates a plain object from a RunQueryRequest message. Also converts values to other types if specified.
2363 * @param message RunQueryRequest
2364 * @param [options] Conversion options
2365 * @returns Plain object
2366 */
2367 public static toObject(message: google.datastore.v1.RunQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2368
2369 /**
2370 * Converts this RunQueryRequest to JSON.
2371 * @returns JSON object
2372 */
2373 public toJSON(): { [k: string]: any };
2374 }
2375
2376 /** Properties of a RunQueryResponse. */
2377 interface IRunQueryResponse {
2378
2379 /** RunQueryResponse batch */
2380 batch?: (google.datastore.v1.IQueryResultBatch|null);
2381
2382 /** RunQueryResponse query */
2383 query?: (google.datastore.v1.IQuery|null);
2384 }
2385
2386 /** Represents a RunQueryResponse. */
2387 class RunQueryResponse implements IRunQueryResponse {
2388
2389 /**
2390 * Constructs a new RunQueryResponse.
2391 * @param [properties] Properties to set
2392 */
2393 constructor(properties?: google.datastore.v1.IRunQueryResponse);
2394
2395 /** RunQueryResponse batch. */
2396 public batch?: (google.datastore.v1.IQueryResultBatch|null);
2397
2398 /** RunQueryResponse query. */
2399 public query?: (google.datastore.v1.IQuery|null);
2400
2401 /**
2402 * Creates a new RunQueryResponse instance using the specified properties.
2403 * @param [properties] Properties to set
2404 * @returns RunQueryResponse instance
2405 */
2406 public static create(properties?: google.datastore.v1.IRunQueryResponse): google.datastore.v1.RunQueryResponse;
2407
2408 /**
2409 * Encodes the specified RunQueryResponse message. Does not implicitly {@link google.datastore.v1.RunQueryResponse.verify|verify} messages.
2410 * @param message RunQueryResponse message or plain object to encode
2411 * @param [writer] Writer to encode to
2412 * @returns Writer
2413 */
2414 public static encode(message: google.datastore.v1.IRunQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2415
2416 /**
2417 * Encodes the specified RunQueryResponse message, length delimited. Does not implicitly {@link google.datastore.v1.RunQueryResponse.verify|verify} messages.
2418 * @param message RunQueryResponse message or plain object to encode
2419 * @param [writer] Writer to encode to
2420 * @returns Writer
2421 */
2422 public static encodeDelimited(message: google.datastore.v1.IRunQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2423
2424 /**
2425 * Decodes a RunQueryResponse message from the specified reader or buffer.
2426 * @param reader Reader or buffer to decode from
2427 * @param [length] Message length if known beforehand
2428 * @returns RunQueryResponse
2429 * @throws {Error} If the payload is not a reader or valid buffer
2430 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2431 */
2432 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.RunQueryResponse;
2433
2434 /**
2435 * Decodes a RunQueryResponse message from the specified reader or buffer, length delimited.
2436 * @param reader Reader or buffer to decode from
2437 * @returns RunQueryResponse
2438 * @throws {Error} If the payload is not a reader or valid buffer
2439 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2440 */
2441 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.RunQueryResponse;
2442
2443 /**
2444 * Verifies a RunQueryResponse message.
2445 * @param message Plain object to verify
2446 * @returns `null` if valid, otherwise the reason why it is not
2447 */
2448 public static verify(message: { [k: string]: any }): (string|null);
2449
2450 /**
2451 * Creates a RunQueryResponse message from a plain object. Also converts values to their respective internal types.
2452 * @param object Plain object
2453 * @returns RunQueryResponse
2454 */
2455 public static fromObject(object: { [k: string]: any }): google.datastore.v1.RunQueryResponse;
2456
2457 /**
2458 * Creates a plain object from a RunQueryResponse message. Also converts values to other types if specified.
2459 * @param message RunQueryResponse
2460 * @param [options] Conversion options
2461 * @returns Plain object
2462 */
2463 public static toObject(message: google.datastore.v1.RunQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
2464
2465 /**
2466 * Converts this RunQueryResponse to JSON.
2467 * @returns JSON object
2468 */
2469 public toJSON(): { [k: string]: any };
2470 }
2471
2472 /** Properties of a BeginTransactionRequest. */
2473 interface IBeginTransactionRequest {
2474
2475 /** BeginTransactionRequest projectId */
2476 projectId?: (string|null);
2477
2478 /** BeginTransactionRequest transactionOptions */
2479 transactionOptions?: (google.datastore.v1.ITransactionOptions|null);
2480 }
2481
2482 /** Represents a BeginTransactionRequest. */
2483 class BeginTransactionRequest implements IBeginTransactionRequest {
2484
2485 /**
2486 * Constructs a new BeginTransactionRequest.
2487 * @param [properties] Properties to set
2488 */
2489 constructor(properties?: google.datastore.v1.IBeginTransactionRequest);
2490
2491 /** BeginTransactionRequest projectId. */
2492 public projectId: string;
2493
2494 /** BeginTransactionRequest transactionOptions. */
2495 public transactionOptions?: (google.datastore.v1.ITransactionOptions|null);
2496
2497 /**
2498 * Creates a new BeginTransactionRequest instance using the specified properties.
2499 * @param [properties] Properties to set
2500 * @returns BeginTransactionRequest instance
2501 */
2502 public static create(properties?: google.datastore.v1.IBeginTransactionRequest): google.datastore.v1.BeginTransactionRequest;
2503
2504 /**
2505 * Encodes the specified BeginTransactionRequest message. Does not implicitly {@link google.datastore.v1.BeginTransactionRequest.verify|verify} messages.
2506 * @param message BeginTransactionRequest message or plain object to encode
2507 * @param [writer] Writer to encode to
2508 * @returns Writer
2509 */
2510 public static encode(message: google.datastore.v1.IBeginTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2511
2512 /**
2513 * Encodes the specified BeginTransactionRequest message, length delimited. Does not implicitly {@link google.datastore.v1.BeginTransactionRequest.verify|verify} messages.
2514 * @param message BeginTransactionRequest message or plain object to encode
2515 * @param [writer] Writer to encode to
2516 * @returns Writer
2517 */
2518 public static encodeDelimited(message: google.datastore.v1.IBeginTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2519
2520 /**
2521 * Decodes a BeginTransactionRequest message from the specified reader or buffer.
2522 * @param reader Reader or buffer to decode from
2523 * @param [length] Message length if known beforehand
2524 * @returns BeginTransactionRequest
2525 * @throws {Error} If the payload is not a reader or valid buffer
2526 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2527 */
2528 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.BeginTransactionRequest;
2529
2530 /**
2531 * Decodes a BeginTransactionRequest message from the specified reader or buffer, length delimited.
2532 * @param reader Reader or buffer to decode from
2533 * @returns BeginTransactionRequest
2534 * @throws {Error} If the payload is not a reader or valid buffer
2535 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2536 */
2537 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.BeginTransactionRequest;
2538
2539 /**
2540 * Verifies a BeginTransactionRequest message.
2541 * @param message Plain object to verify
2542 * @returns `null` if valid, otherwise the reason why it is not
2543 */
2544 public static verify(message: { [k: string]: any }): (string|null);
2545
2546 /**
2547 * Creates a BeginTransactionRequest message from a plain object. Also converts values to their respective internal types.
2548 * @param object Plain object
2549 * @returns BeginTransactionRequest
2550 */
2551 public static fromObject(object: { [k: string]: any }): google.datastore.v1.BeginTransactionRequest;
2552
2553 /**
2554 * Creates a plain object from a BeginTransactionRequest message. Also converts values to other types if specified.
2555 * @param message BeginTransactionRequest
2556 * @param [options] Conversion options
2557 * @returns Plain object
2558 */
2559 public static toObject(message: google.datastore.v1.BeginTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2560
2561 /**
2562 * Converts this BeginTransactionRequest to JSON.
2563 * @returns JSON object
2564 */
2565 public toJSON(): { [k: string]: any };
2566 }
2567
2568 /** Properties of a BeginTransactionResponse. */
2569 interface IBeginTransactionResponse {
2570
2571 /** BeginTransactionResponse transaction */
2572 transaction?: (Uint8Array|string|null);
2573 }
2574
2575 /** Represents a BeginTransactionResponse. */
2576 class BeginTransactionResponse implements IBeginTransactionResponse {
2577
2578 /**
2579 * Constructs a new BeginTransactionResponse.
2580 * @param [properties] Properties to set
2581 */
2582 constructor(properties?: google.datastore.v1.IBeginTransactionResponse);
2583
2584 /** BeginTransactionResponse transaction. */
2585 public transaction: (Uint8Array|string);
2586
2587 /**
2588 * Creates a new BeginTransactionResponse instance using the specified properties.
2589 * @param [properties] Properties to set
2590 * @returns BeginTransactionResponse instance
2591 */
2592 public static create(properties?: google.datastore.v1.IBeginTransactionResponse): google.datastore.v1.BeginTransactionResponse;
2593
2594 /**
2595 * Encodes the specified BeginTransactionResponse message. Does not implicitly {@link google.datastore.v1.BeginTransactionResponse.verify|verify} messages.
2596 * @param message BeginTransactionResponse message or plain object to encode
2597 * @param [writer] Writer to encode to
2598 * @returns Writer
2599 */
2600 public static encode(message: google.datastore.v1.IBeginTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2601
2602 /**
2603 * Encodes the specified BeginTransactionResponse message, length delimited. Does not implicitly {@link google.datastore.v1.BeginTransactionResponse.verify|verify} messages.
2604 * @param message BeginTransactionResponse message or plain object to encode
2605 * @param [writer] Writer to encode to
2606 * @returns Writer
2607 */
2608 public static encodeDelimited(message: google.datastore.v1.IBeginTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2609
2610 /**
2611 * Decodes a BeginTransactionResponse message from the specified reader or buffer.
2612 * @param reader Reader or buffer to decode from
2613 * @param [length] Message length if known beforehand
2614 * @returns BeginTransactionResponse
2615 * @throws {Error} If the payload is not a reader or valid buffer
2616 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2617 */
2618 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.BeginTransactionResponse;
2619
2620 /**
2621 * Decodes a BeginTransactionResponse message from the specified reader or buffer, length delimited.
2622 * @param reader Reader or buffer to decode from
2623 * @returns BeginTransactionResponse
2624 * @throws {Error} If the payload is not a reader or valid buffer
2625 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2626 */
2627 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.BeginTransactionResponse;
2628
2629 /**
2630 * Verifies a BeginTransactionResponse message.
2631 * @param message Plain object to verify
2632 * @returns `null` if valid, otherwise the reason why it is not
2633 */
2634 public static verify(message: { [k: string]: any }): (string|null);
2635
2636 /**
2637 * Creates a BeginTransactionResponse message from a plain object. Also converts values to their respective internal types.
2638 * @param object Plain object
2639 * @returns BeginTransactionResponse
2640 */
2641 public static fromObject(object: { [k: string]: any }): google.datastore.v1.BeginTransactionResponse;
2642
2643 /**
2644 * Creates a plain object from a BeginTransactionResponse message. Also converts values to other types if specified.
2645 * @param message BeginTransactionResponse
2646 * @param [options] Conversion options
2647 * @returns Plain object
2648 */
2649 public static toObject(message: google.datastore.v1.BeginTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
2650
2651 /**
2652 * Converts this BeginTransactionResponse to JSON.
2653 * @returns JSON object
2654 */
2655 public toJSON(): { [k: string]: any };
2656 }
2657
2658 /** Properties of a RollbackRequest. */
2659 interface IRollbackRequest {
2660
2661 /** RollbackRequest projectId */
2662 projectId?: (string|null);
2663
2664 /** RollbackRequest transaction */
2665 transaction?: (Uint8Array|string|null);
2666 }
2667
2668 /** Represents a RollbackRequest. */
2669 class RollbackRequest implements IRollbackRequest {
2670
2671 /**
2672 * Constructs a new RollbackRequest.
2673 * @param [properties] Properties to set
2674 */
2675 constructor(properties?: google.datastore.v1.IRollbackRequest);
2676
2677 /** RollbackRequest projectId. */
2678 public projectId: string;
2679
2680 /** RollbackRequest transaction. */
2681 public transaction: (Uint8Array|string);
2682
2683 /**
2684 * Creates a new RollbackRequest instance using the specified properties.
2685 * @param [properties] Properties to set
2686 * @returns RollbackRequest instance
2687 */
2688 public static create(properties?: google.datastore.v1.IRollbackRequest): google.datastore.v1.RollbackRequest;
2689
2690 /**
2691 * Encodes the specified RollbackRequest message. Does not implicitly {@link google.datastore.v1.RollbackRequest.verify|verify} messages.
2692 * @param message RollbackRequest message or plain object to encode
2693 * @param [writer] Writer to encode to
2694 * @returns Writer
2695 */
2696 public static encode(message: google.datastore.v1.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2697
2698 /**
2699 * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link google.datastore.v1.RollbackRequest.verify|verify} messages.
2700 * @param message RollbackRequest message or plain object to encode
2701 * @param [writer] Writer to encode to
2702 * @returns Writer
2703 */
2704 public static encodeDelimited(message: google.datastore.v1.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2705
2706 /**
2707 * Decodes a RollbackRequest message from the specified reader or buffer.
2708 * @param reader Reader or buffer to decode from
2709 * @param [length] Message length if known beforehand
2710 * @returns RollbackRequest
2711 * @throws {Error} If the payload is not a reader or valid buffer
2712 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2713 */
2714 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.RollbackRequest;
2715
2716 /**
2717 * Decodes a RollbackRequest message from the specified reader or buffer, length delimited.
2718 * @param reader Reader or buffer to decode from
2719 * @returns RollbackRequest
2720 * @throws {Error} If the payload is not a reader or valid buffer
2721 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2722 */
2723 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.RollbackRequest;
2724
2725 /**
2726 * Verifies a RollbackRequest message.
2727 * @param message Plain object to verify
2728 * @returns `null` if valid, otherwise the reason why it is not
2729 */
2730 public static verify(message: { [k: string]: any }): (string|null);
2731
2732 /**
2733 * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types.
2734 * @param object Plain object
2735 * @returns RollbackRequest
2736 */
2737 public static fromObject(object: { [k: string]: any }): google.datastore.v1.RollbackRequest;
2738
2739 /**
2740 * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified.
2741 * @param message RollbackRequest
2742 * @param [options] Conversion options
2743 * @returns Plain object
2744 */
2745 public static toObject(message: google.datastore.v1.RollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2746
2747 /**
2748 * Converts this RollbackRequest to JSON.
2749 * @returns JSON object
2750 */
2751 public toJSON(): { [k: string]: any };
2752 }
2753
2754 /** Properties of a RollbackResponse. */
2755 interface IRollbackResponse {
2756 }
2757
2758 /** Represents a RollbackResponse. */
2759 class RollbackResponse implements IRollbackResponse {
2760
2761 /**
2762 * Constructs a new RollbackResponse.
2763 * @param [properties] Properties to set
2764 */
2765 constructor(properties?: google.datastore.v1.IRollbackResponse);
2766
2767 /**
2768 * Creates a new RollbackResponse instance using the specified properties.
2769 * @param [properties] Properties to set
2770 * @returns RollbackResponse instance
2771 */
2772 public static create(properties?: google.datastore.v1.IRollbackResponse): google.datastore.v1.RollbackResponse;
2773
2774 /**
2775 * Encodes the specified RollbackResponse message. Does not implicitly {@link google.datastore.v1.RollbackResponse.verify|verify} messages.
2776 * @param message RollbackResponse message or plain object to encode
2777 * @param [writer] Writer to encode to
2778 * @returns Writer
2779 */
2780 public static encode(message: google.datastore.v1.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2781
2782 /**
2783 * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link google.datastore.v1.RollbackResponse.verify|verify} messages.
2784 * @param message RollbackResponse message or plain object to encode
2785 * @param [writer] Writer to encode to
2786 * @returns Writer
2787 */
2788 public static encodeDelimited(message: google.datastore.v1.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2789
2790 /**
2791 * Decodes a RollbackResponse message from the specified reader or buffer.
2792 * @param reader Reader or buffer to decode from
2793 * @param [length] Message length if known beforehand
2794 * @returns RollbackResponse
2795 * @throws {Error} If the payload is not a reader or valid buffer
2796 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2797 */
2798 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.RollbackResponse;
2799
2800 /**
2801 * Decodes a RollbackResponse message from the specified reader or buffer, length delimited.
2802 * @param reader Reader or buffer to decode from
2803 * @returns RollbackResponse
2804 * @throws {Error} If the payload is not a reader or valid buffer
2805 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2806 */
2807 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.RollbackResponse;
2808
2809 /**
2810 * Verifies a RollbackResponse message.
2811 * @param message Plain object to verify
2812 * @returns `null` if valid, otherwise the reason why it is not
2813 */
2814 public static verify(message: { [k: string]: any }): (string|null);
2815
2816 /**
2817 * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types.
2818 * @param object Plain object
2819 * @returns RollbackResponse
2820 */
2821 public static fromObject(object: { [k: string]: any }): google.datastore.v1.RollbackResponse;
2822
2823 /**
2824 * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified.
2825 * @param message RollbackResponse
2826 * @param [options] Conversion options
2827 * @returns Plain object
2828 */
2829 public static toObject(message: google.datastore.v1.RollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
2830
2831 /**
2832 * Converts this RollbackResponse to JSON.
2833 * @returns JSON object
2834 */
2835 public toJSON(): { [k: string]: any };
2836 }
2837
2838 /** Properties of a CommitRequest. */
2839 interface ICommitRequest {
2840
2841 /** CommitRequest projectId */
2842 projectId?: (string|null);
2843
2844 /** CommitRequest mode */
2845 mode?: (google.datastore.v1.CommitRequest.Mode|keyof typeof google.datastore.v1.CommitRequest.Mode|null);
2846
2847 /** CommitRequest transaction */
2848 transaction?: (Uint8Array|string|null);
2849
2850 /** CommitRequest mutations */
2851 mutations?: (google.datastore.v1.IMutation[]|null);
2852 }
2853
2854 /** Represents a CommitRequest. */
2855 class CommitRequest implements ICommitRequest {
2856
2857 /**
2858 * Constructs a new CommitRequest.
2859 * @param [properties] Properties to set
2860 */
2861 constructor(properties?: google.datastore.v1.ICommitRequest);
2862
2863 /** CommitRequest projectId. */
2864 public projectId: string;
2865
2866 /** CommitRequest mode. */
2867 public mode: (google.datastore.v1.CommitRequest.Mode|keyof typeof google.datastore.v1.CommitRequest.Mode);
2868
2869 /** CommitRequest transaction. */
2870 public transaction: (Uint8Array|string);
2871
2872 /** CommitRequest mutations. */
2873 public mutations: google.datastore.v1.IMutation[];
2874
2875 /** CommitRequest transactionSelector. */
2876 public transactionSelector?: "transaction";
2877
2878 /**
2879 * Creates a new CommitRequest instance using the specified properties.
2880 * @param [properties] Properties to set
2881 * @returns CommitRequest instance
2882 */
2883 public static create(properties?: google.datastore.v1.ICommitRequest): google.datastore.v1.CommitRequest;
2884
2885 /**
2886 * Encodes the specified CommitRequest message. Does not implicitly {@link google.datastore.v1.CommitRequest.verify|verify} messages.
2887 * @param message CommitRequest message or plain object to encode
2888 * @param [writer] Writer to encode to
2889 * @returns Writer
2890 */
2891 public static encode(message: google.datastore.v1.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2892
2893 /**
2894 * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link google.datastore.v1.CommitRequest.verify|verify} messages.
2895 * @param message CommitRequest message or plain object to encode
2896 * @param [writer] Writer to encode to
2897 * @returns Writer
2898 */
2899 public static encodeDelimited(message: google.datastore.v1.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer;
2900
2901 /**
2902 * Decodes a CommitRequest message from the specified reader or buffer.
2903 * @param reader Reader or buffer to decode from
2904 * @param [length] Message length if known beforehand
2905 * @returns CommitRequest
2906 * @throws {Error} If the payload is not a reader or valid buffer
2907 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2908 */
2909 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.CommitRequest;
2910
2911 /**
2912 * Decodes a CommitRequest message from the specified reader or buffer, length delimited.
2913 * @param reader Reader or buffer to decode from
2914 * @returns CommitRequest
2915 * @throws {Error} If the payload is not a reader or valid buffer
2916 * @throws {$protobuf.util.ProtocolError} If required fields are missing
2917 */
2918 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.CommitRequest;
2919
2920 /**
2921 * Verifies a CommitRequest message.
2922 * @param message Plain object to verify
2923 * @returns `null` if valid, otherwise the reason why it is not
2924 */
2925 public static verify(message: { [k: string]: any }): (string|null);
2926
2927 /**
2928 * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types.
2929 * @param object Plain object
2930 * @returns CommitRequest
2931 */
2932 public static fromObject(object: { [k: string]: any }): google.datastore.v1.CommitRequest;
2933
2934 /**
2935 * Creates a plain object from a CommitRequest message. Also converts values to other types if specified.
2936 * @param message CommitRequest
2937 * @param [options] Conversion options
2938 * @returns Plain object
2939 */
2940 public static toObject(message: google.datastore.v1.CommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
2941
2942 /**
2943 * Converts this CommitRequest to JSON.
2944 * @returns JSON object
2945 */
2946 public toJSON(): { [k: string]: any };
2947 }
2948
2949 namespace CommitRequest {
2950
2951 /** Mode enum. */
2952 enum Mode {
2953 MODE_UNSPECIFIED = 0,
2954 TRANSACTIONAL = 1,
2955 NON_TRANSACTIONAL = 2
2956 }
2957 }
2958
2959 /** Properties of a CommitResponse. */
2960 interface ICommitResponse {
2961
2962 /** CommitResponse mutationResults */
2963 mutationResults?: (google.datastore.v1.IMutationResult[]|null);
2964
2965 /** CommitResponse indexUpdates */
2966 indexUpdates?: (number|null);
2967 }
2968
2969 /** Represents a CommitResponse. */
2970 class CommitResponse implements ICommitResponse {
2971
2972 /**
2973 * Constructs a new CommitResponse.
2974 * @param [properties] Properties to set
2975 */
2976 constructor(properties?: google.datastore.v1.ICommitResponse);
2977
2978 /** CommitResponse mutationResults. */
2979 public mutationResults: google.datastore.v1.IMutationResult[];
2980
2981 /** CommitResponse indexUpdates. */
2982 public indexUpdates: number;
2983
2984 /**
2985 * Creates a new CommitResponse instance using the specified properties.
2986 * @param [properties] Properties to set
2987 * @returns CommitResponse instance
2988 */
2989 public static create(properties?: google.datastore.v1.ICommitResponse): google.datastore.v1.CommitResponse;
2990
2991 /**
2992 * Encodes the specified CommitResponse message. Does not implicitly {@link google.datastore.v1.CommitResponse.verify|verify} messages.
2993 * @param message CommitResponse message or plain object to encode
2994 * @param [writer] Writer to encode to
2995 * @returns Writer
2996 */
2997 public static encode(message: google.datastore.v1.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer;
2998
2999 /**
3000 * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link google.datastore.v1.CommitResponse.verify|verify} messages.
3001 * @param message CommitResponse message or plain object to encode
3002 * @param [writer] Writer to encode to
3003 * @returns Writer
3004 */
3005 public static encodeDelimited(message: google.datastore.v1.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3006
3007 /**
3008 * Decodes a CommitResponse message from the specified reader or buffer.
3009 * @param reader Reader or buffer to decode from
3010 * @param [length] Message length if known beforehand
3011 * @returns CommitResponse
3012 * @throws {Error} If the payload is not a reader or valid buffer
3013 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3014 */
3015 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.CommitResponse;
3016
3017 /**
3018 * Decodes a CommitResponse message from the specified reader or buffer, length delimited.
3019 * @param reader Reader or buffer to decode from
3020 * @returns CommitResponse
3021 * @throws {Error} If the payload is not a reader or valid buffer
3022 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3023 */
3024 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.CommitResponse;
3025
3026 /**
3027 * Verifies a CommitResponse message.
3028 * @param message Plain object to verify
3029 * @returns `null` if valid, otherwise the reason why it is not
3030 */
3031 public static verify(message: { [k: string]: any }): (string|null);
3032
3033 /**
3034 * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types.
3035 * @param object Plain object
3036 * @returns CommitResponse
3037 */
3038 public static fromObject(object: { [k: string]: any }): google.datastore.v1.CommitResponse;
3039
3040 /**
3041 * Creates a plain object from a CommitResponse message. Also converts values to other types if specified.
3042 * @param message CommitResponse
3043 * @param [options] Conversion options
3044 * @returns Plain object
3045 */
3046 public static toObject(message: google.datastore.v1.CommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3047
3048 /**
3049 * Converts this CommitResponse to JSON.
3050 * @returns JSON object
3051 */
3052 public toJSON(): { [k: string]: any };
3053 }
3054
3055 /** Properties of an AllocateIdsRequest. */
3056 interface IAllocateIdsRequest {
3057
3058 /** AllocateIdsRequest projectId */
3059 projectId?: (string|null);
3060
3061 /** AllocateIdsRequest keys */
3062 keys?: (google.datastore.v1.IKey[]|null);
3063 }
3064
3065 /** Represents an AllocateIdsRequest. */
3066 class AllocateIdsRequest implements IAllocateIdsRequest {
3067
3068 /**
3069 * Constructs a new AllocateIdsRequest.
3070 * @param [properties] Properties to set
3071 */
3072 constructor(properties?: google.datastore.v1.IAllocateIdsRequest);
3073
3074 /** AllocateIdsRequest projectId. */
3075 public projectId: string;
3076
3077 /** AllocateIdsRequest keys. */
3078 public keys: google.datastore.v1.IKey[];
3079
3080 /**
3081 * Creates a new AllocateIdsRequest instance using the specified properties.
3082 * @param [properties] Properties to set
3083 * @returns AllocateIdsRequest instance
3084 */
3085 public static create(properties?: google.datastore.v1.IAllocateIdsRequest): google.datastore.v1.AllocateIdsRequest;
3086
3087 /**
3088 * Encodes the specified AllocateIdsRequest message. Does not implicitly {@link google.datastore.v1.AllocateIdsRequest.verify|verify} messages.
3089 * @param message AllocateIdsRequest message or plain object to encode
3090 * @param [writer] Writer to encode to
3091 * @returns Writer
3092 */
3093 public static encode(message: google.datastore.v1.IAllocateIdsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3094
3095 /**
3096 * Encodes the specified AllocateIdsRequest message, length delimited. Does not implicitly {@link google.datastore.v1.AllocateIdsRequest.verify|verify} messages.
3097 * @param message AllocateIdsRequest message or plain object to encode
3098 * @param [writer] Writer to encode to
3099 * @returns Writer
3100 */
3101 public static encodeDelimited(message: google.datastore.v1.IAllocateIdsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3102
3103 /**
3104 * Decodes an AllocateIdsRequest message from the specified reader or buffer.
3105 * @param reader Reader or buffer to decode from
3106 * @param [length] Message length if known beforehand
3107 * @returns AllocateIdsRequest
3108 * @throws {Error} If the payload is not a reader or valid buffer
3109 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3110 */
3111 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.AllocateIdsRequest;
3112
3113 /**
3114 * Decodes an AllocateIdsRequest message from the specified reader or buffer, length delimited.
3115 * @param reader Reader or buffer to decode from
3116 * @returns AllocateIdsRequest
3117 * @throws {Error} If the payload is not a reader or valid buffer
3118 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3119 */
3120 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.AllocateIdsRequest;
3121
3122 /**
3123 * Verifies an AllocateIdsRequest message.
3124 * @param message Plain object to verify
3125 * @returns `null` if valid, otherwise the reason why it is not
3126 */
3127 public static verify(message: { [k: string]: any }): (string|null);
3128
3129 /**
3130 * Creates an AllocateIdsRequest message from a plain object. Also converts values to their respective internal types.
3131 * @param object Plain object
3132 * @returns AllocateIdsRequest
3133 */
3134 public static fromObject(object: { [k: string]: any }): google.datastore.v1.AllocateIdsRequest;
3135
3136 /**
3137 * Creates a plain object from an AllocateIdsRequest message. Also converts values to other types if specified.
3138 * @param message AllocateIdsRequest
3139 * @param [options] Conversion options
3140 * @returns Plain object
3141 */
3142 public static toObject(message: google.datastore.v1.AllocateIdsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3143
3144 /**
3145 * Converts this AllocateIdsRequest to JSON.
3146 * @returns JSON object
3147 */
3148 public toJSON(): { [k: string]: any };
3149 }
3150
3151 /** Properties of an AllocateIdsResponse. */
3152 interface IAllocateIdsResponse {
3153
3154 /** AllocateIdsResponse keys */
3155 keys?: (google.datastore.v1.IKey[]|null);
3156 }
3157
3158 /** Represents an AllocateIdsResponse. */
3159 class AllocateIdsResponse implements IAllocateIdsResponse {
3160
3161 /**
3162 * Constructs a new AllocateIdsResponse.
3163 * @param [properties] Properties to set
3164 */
3165 constructor(properties?: google.datastore.v1.IAllocateIdsResponse);
3166
3167 /** AllocateIdsResponse keys. */
3168 public keys: google.datastore.v1.IKey[];
3169
3170 /**
3171 * Creates a new AllocateIdsResponse instance using the specified properties.
3172 * @param [properties] Properties to set
3173 * @returns AllocateIdsResponse instance
3174 */
3175 public static create(properties?: google.datastore.v1.IAllocateIdsResponse): google.datastore.v1.AllocateIdsResponse;
3176
3177 /**
3178 * Encodes the specified AllocateIdsResponse message. Does not implicitly {@link google.datastore.v1.AllocateIdsResponse.verify|verify} messages.
3179 * @param message AllocateIdsResponse message or plain object to encode
3180 * @param [writer] Writer to encode to
3181 * @returns Writer
3182 */
3183 public static encode(message: google.datastore.v1.IAllocateIdsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3184
3185 /**
3186 * Encodes the specified AllocateIdsResponse message, length delimited. Does not implicitly {@link google.datastore.v1.AllocateIdsResponse.verify|verify} messages.
3187 * @param message AllocateIdsResponse message or plain object to encode
3188 * @param [writer] Writer to encode to
3189 * @returns Writer
3190 */
3191 public static encodeDelimited(message: google.datastore.v1.IAllocateIdsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3192
3193 /**
3194 * Decodes an AllocateIdsResponse message from the specified reader or buffer.
3195 * @param reader Reader or buffer to decode from
3196 * @param [length] Message length if known beforehand
3197 * @returns AllocateIdsResponse
3198 * @throws {Error} If the payload is not a reader or valid buffer
3199 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3200 */
3201 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.AllocateIdsResponse;
3202
3203 /**
3204 * Decodes an AllocateIdsResponse message from the specified reader or buffer, length delimited.
3205 * @param reader Reader or buffer to decode from
3206 * @returns AllocateIdsResponse
3207 * @throws {Error} If the payload is not a reader or valid buffer
3208 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3209 */
3210 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.AllocateIdsResponse;
3211
3212 /**
3213 * Verifies an AllocateIdsResponse message.
3214 * @param message Plain object to verify
3215 * @returns `null` if valid, otherwise the reason why it is not
3216 */
3217 public static verify(message: { [k: string]: any }): (string|null);
3218
3219 /**
3220 * Creates an AllocateIdsResponse message from a plain object. Also converts values to their respective internal types.
3221 * @param object Plain object
3222 * @returns AllocateIdsResponse
3223 */
3224 public static fromObject(object: { [k: string]: any }): google.datastore.v1.AllocateIdsResponse;
3225
3226 /**
3227 * Creates a plain object from an AllocateIdsResponse message. Also converts values to other types if specified.
3228 * @param message AllocateIdsResponse
3229 * @param [options] Conversion options
3230 * @returns Plain object
3231 */
3232 public static toObject(message: google.datastore.v1.AllocateIdsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3233
3234 /**
3235 * Converts this AllocateIdsResponse to JSON.
3236 * @returns JSON object
3237 */
3238 public toJSON(): { [k: string]: any };
3239 }
3240
3241 /** Properties of a ReserveIdsRequest. */
3242 interface IReserveIdsRequest {
3243
3244 /** ReserveIdsRequest projectId */
3245 projectId?: (string|null);
3246
3247 /** ReserveIdsRequest databaseId */
3248 databaseId?: (string|null);
3249
3250 /** ReserveIdsRequest keys */
3251 keys?: (google.datastore.v1.IKey[]|null);
3252 }
3253
3254 /** Represents a ReserveIdsRequest. */
3255 class ReserveIdsRequest implements IReserveIdsRequest {
3256
3257 /**
3258 * Constructs a new ReserveIdsRequest.
3259 * @param [properties] Properties to set
3260 */
3261 constructor(properties?: google.datastore.v1.IReserveIdsRequest);
3262
3263 /** ReserveIdsRequest projectId. */
3264 public projectId: string;
3265
3266 /** ReserveIdsRequest databaseId. */
3267 public databaseId: string;
3268
3269 /** ReserveIdsRequest keys. */
3270 public keys: google.datastore.v1.IKey[];
3271
3272 /**
3273 * Creates a new ReserveIdsRequest instance using the specified properties.
3274 * @param [properties] Properties to set
3275 * @returns ReserveIdsRequest instance
3276 */
3277 public static create(properties?: google.datastore.v1.IReserveIdsRequest): google.datastore.v1.ReserveIdsRequest;
3278
3279 /**
3280 * Encodes the specified ReserveIdsRequest message. Does not implicitly {@link google.datastore.v1.ReserveIdsRequest.verify|verify} messages.
3281 * @param message ReserveIdsRequest message or plain object to encode
3282 * @param [writer] Writer to encode to
3283 * @returns Writer
3284 */
3285 public static encode(message: google.datastore.v1.IReserveIdsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3286
3287 /**
3288 * Encodes the specified ReserveIdsRequest message, length delimited. Does not implicitly {@link google.datastore.v1.ReserveIdsRequest.verify|verify} messages.
3289 * @param message ReserveIdsRequest message or plain object to encode
3290 * @param [writer] Writer to encode to
3291 * @returns Writer
3292 */
3293 public static encodeDelimited(message: google.datastore.v1.IReserveIdsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
3294
3295 /**
3296 * Decodes a ReserveIdsRequest message from the specified reader or buffer.
3297 * @param reader Reader or buffer to decode from
3298 * @param [length] Message length if known beforehand
3299 * @returns ReserveIdsRequest
3300 * @throws {Error} If the payload is not a reader or valid buffer
3301 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3302 */
3303 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.ReserveIdsRequest;
3304
3305 /**
3306 * Decodes a ReserveIdsRequest message from the specified reader or buffer, length delimited.
3307 * @param reader Reader or buffer to decode from
3308 * @returns ReserveIdsRequest
3309 * @throws {Error} If the payload is not a reader or valid buffer
3310 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3311 */
3312 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.ReserveIdsRequest;
3313
3314 /**
3315 * Verifies a ReserveIdsRequest message.
3316 * @param message Plain object to verify
3317 * @returns `null` if valid, otherwise the reason why it is not
3318 */
3319 public static verify(message: { [k: string]: any }): (string|null);
3320
3321 /**
3322 * Creates a ReserveIdsRequest message from a plain object. Also converts values to their respective internal types.
3323 * @param object Plain object
3324 * @returns ReserveIdsRequest
3325 */
3326 public static fromObject(object: { [k: string]: any }): google.datastore.v1.ReserveIdsRequest;
3327
3328 /**
3329 * Creates a plain object from a ReserveIdsRequest message. Also converts values to other types if specified.
3330 * @param message ReserveIdsRequest
3331 * @param [options] Conversion options
3332 * @returns Plain object
3333 */
3334 public static toObject(message: google.datastore.v1.ReserveIdsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
3335
3336 /**
3337 * Converts this ReserveIdsRequest to JSON.
3338 * @returns JSON object
3339 */
3340 public toJSON(): { [k: string]: any };
3341 }
3342
3343 /** Properties of a ReserveIdsResponse. */
3344 interface IReserveIdsResponse {
3345 }
3346
3347 /** Represents a ReserveIdsResponse. */
3348 class ReserveIdsResponse implements IReserveIdsResponse {
3349
3350 /**
3351 * Constructs a new ReserveIdsResponse.
3352 * @param [properties] Properties to set
3353 */
3354 constructor(properties?: google.datastore.v1.IReserveIdsResponse);
3355
3356 /**
3357 * Creates a new ReserveIdsResponse instance using the specified properties.
3358 * @param [properties] Properties to set
3359 * @returns ReserveIdsResponse instance
3360 */
3361 public static create(properties?: google.datastore.v1.IReserveIdsResponse): google.datastore.v1.ReserveIdsResponse;
3362
3363 /**
3364 * Encodes the specified ReserveIdsResponse message. Does not implicitly {@link google.datastore.v1.ReserveIdsResponse.verify|verify} messages.
3365 * @param message ReserveIdsResponse message or plain object to encode
3366 * @param [writer] Writer to encode to
3367 * @returns Writer
3368 */
3369 public static encode(message: google.datastore.v1.IReserveIdsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3370
3371 /**
3372 * Encodes the specified ReserveIdsResponse message, length delimited. Does not implicitly {@link google.datastore.v1.ReserveIdsResponse.verify|verify} messages.
3373 * @param message ReserveIdsResponse message or plain object to encode
3374 * @param [writer] Writer to encode to
3375 * @returns Writer
3376 */
3377 public static encodeDelimited(message: google.datastore.v1.IReserveIdsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
3378
3379 /**
3380 * Decodes a ReserveIdsResponse message from the specified reader or buffer.
3381 * @param reader Reader or buffer to decode from
3382 * @param [length] Message length if known beforehand
3383 * @returns ReserveIdsResponse
3384 * @throws {Error} If the payload is not a reader or valid buffer
3385 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3386 */
3387 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.ReserveIdsResponse;
3388
3389 /**
3390 * Decodes a ReserveIdsResponse message from the specified reader or buffer, length delimited.
3391 * @param reader Reader or buffer to decode from
3392 * @returns ReserveIdsResponse
3393 * @throws {Error} If the payload is not a reader or valid buffer
3394 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3395 */
3396 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.ReserveIdsResponse;
3397
3398 /**
3399 * Verifies a ReserveIdsResponse message.
3400 * @param message Plain object to verify
3401 * @returns `null` if valid, otherwise the reason why it is not
3402 */
3403 public static verify(message: { [k: string]: any }): (string|null);
3404
3405 /**
3406 * Creates a ReserveIdsResponse message from a plain object. Also converts values to their respective internal types.
3407 * @param object Plain object
3408 * @returns ReserveIdsResponse
3409 */
3410 public static fromObject(object: { [k: string]: any }): google.datastore.v1.ReserveIdsResponse;
3411
3412 /**
3413 * Creates a plain object from a ReserveIdsResponse message. Also converts values to other types if specified.
3414 * @param message ReserveIdsResponse
3415 * @param [options] Conversion options
3416 * @returns Plain object
3417 */
3418 public static toObject(message: google.datastore.v1.ReserveIdsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
3419
3420 /**
3421 * Converts this ReserveIdsResponse to JSON.
3422 * @returns JSON object
3423 */
3424 public toJSON(): { [k: string]: any };
3425 }
3426
3427 /** Properties of a Mutation. */
3428 interface IMutation {
3429
3430 /** Mutation insert */
3431 insert?: (google.datastore.v1.IEntity|null);
3432
3433 /** Mutation update */
3434 update?: (google.datastore.v1.IEntity|null);
3435
3436 /** Mutation upsert */
3437 upsert?: (google.datastore.v1.IEntity|null);
3438
3439 /** Mutation delete */
3440 "delete"?: (google.datastore.v1.IKey|null);
3441
3442 /** Mutation baseVersion */
3443 baseVersion?: (number|Long|string|null);
3444 }
3445
3446 /** Represents a Mutation. */
3447 class Mutation implements IMutation {
3448
3449 /**
3450 * Constructs a new Mutation.
3451 * @param [properties] Properties to set
3452 */
3453 constructor(properties?: google.datastore.v1.IMutation);
3454
3455 /** Mutation insert. */
3456 public insert?: (google.datastore.v1.IEntity|null);
3457
3458 /** Mutation update. */
3459 public update?: (google.datastore.v1.IEntity|null);
3460
3461 /** Mutation upsert. */
3462 public upsert?: (google.datastore.v1.IEntity|null);
3463
3464 /** Mutation delete. */
3465 public delete?: (google.datastore.v1.IKey|null);
3466
3467 /** Mutation baseVersion. */
3468 public baseVersion: (number|Long|string);
3469
3470 /** Mutation operation. */
3471 public operation?: ("insert"|"update"|"upsert"|"delete");
3472
3473 /** Mutation conflictDetectionStrategy. */
3474 public conflictDetectionStrategy?: "baseVersion";
3475
3476 /**
3477 * Creates a new Mutation instance using the specified properties.
3478 * @param [properties] Properties to set
3479 * @returns Mutation instance
3480 */
3481 public static create(properties?: google.datastore.v1.IMutation): google.datastore.v1.Mutation;
3482
3483 /**
3484 * Encodes the specified Mutation message. Does not implicitly {@link google.datastore.v1.Mutation.verify|verify} messages.
3485 * @param message Mutation message or plain object to encode
3486 * @param [writer] Writer to encode to
3487 * @returns Writer
3488 */
3489 public static encode(message: google.datastore.v1.IMutation, writer?: $protobuf.Writer): $protobuf.Writer;
3490
3491 /**
3492 * Encodes the specified Mutation message, length delimited. Does not implicitly {@link google.datastore.v1.Mutation.verify|verify} messages.
3493 * @param message Mutation message or plain object to encode
3494 * @param [writer] Writer to encode to
3495 * @returns Writer
3496 */
3497 public static encodeDelimited(message: google.datastore.v1.IMutation, writer?: $protobuf.Writer): $protobuf.Writer;
3498
3499 /**
3500 * Decodes a Mutation message from the specified reader or buffer.
3501 * @param reader Reader or buffer to decode from
3502 * @param [length] Message length if known beforehand
3503 * @returns Mutation
3504 * @throws {Error} If the payload is not a reader or valid buffer
3505 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3506 */
3507 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.Mutation;
3508
3509 /**
3510 * Decodes a Mutation message from the specified reader or buffer, length delimited.
3511 * @param reader Reader or buffer to decode from
3512 * @returns Mutation
3513 * @throws {Error} If the payload is not a reader or valid buffer
3514 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3515 */
3516 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.Mutation;
3517
3518 /**
3519 * Verifies a Mutation message.
3520 * @param message Plain object to verify
3521 * @returns `null` if valid, otherwise the reason why it is not
3522 */
3523 public static verify(message: { [k: string]: any }): (string|null);
3524
3525 /**
3526 * Creates a Mutation message from a plain object. Also converts values to their respective internal types.
3527 * @param object Plain object
3528 * @returns Mutation
3529 */
3530 public static fromObject(object: { [k: string]: any }): google.datastore.v1.Mutation;
3531
3532 /**
3533 * Creates a plain object from a Mutation message. Also converts values to other types if specified.
3534 * @param message Mutation
3535 * @param [options] Conversion options
3536 * @returns Plain object
3537 */
3538 public static toObject(message: google.datastore.v1.Mutation, options?: $protobuf.IConversionOptions): { [k: string]: any };
3539
3540 /**
3541 * Converts this Mutation to JSON.
3542 * @returns JSON object
3543 */
3544 public toJSON(): { [k: string]: any };
3545 }
3546
3547 /** Properties of a MutationResult. */
3548 interface IMutationResult {
3549
3550 /** MutationResult key */
3551 key?: (google.datastore.v1.IKey|null);
3552
3553 /** MutationResult version */
3554 version?: (number|Long|string|null);
3555
3556 /** MutationResult conflictDetected */
3557 conflictDetected?: (boolean|null);
3558 }
3559
3560 /** Represents a MutationResult. */
3561 class MutationResult implements IMutationResult {
3562
3563 /**
3564 * Constructs a new MutationResult.
3565 * @param [properties] Properties to set
3566 */
3567 constructor(properties?: google.datastore.v1.IMutationResult);
3568
3569 /** MutationResult key. */
3570 public key?: (google.datastore.v1.IKey|null);
3571
3572 /** MutationResult version. */
3573 public version: (number|Long|string);
3574
3575 /** MutationResult conflictDetected. */
3576 public conflictDetected: boolean;
3577
3578 /**
3579 * Creates a new MutationResult instance using the specified properties.
3580 * @param [properties] Properties to set
3581 * @returns MutationResult instance
3582 */
3583 public static create(properties?: google.datastore.v1.IMutationResult): google.datastore.v1.MutationResult;
3584
3585 /**
3586 * Encodes the specified MutationResult message. Does not implicitly {@link google.datastore.v1.MutationResult.verify|verify} messages.
3587 * @param message MutationResult message or plain object to encode
3588 * @param [writer] Writer to encode to
3589 * @returns Writer
3590 */
3591 public static encode(message: google.datastore.v1.IMutationResult, writer?: $protobuf.Writer): $protobuf.Writer;
3592
3593 /**
3594 * Encodes the specified MutationResult message, length delimited. Does not implicitly {@link google.datastore.v1.MutationResult.verify|verify} messages.
3595 * @param message MutationResult message or plain object to encode
3596 * @param [writer] Writer to encode to
3597 * @returns Writer
3598 */
3599 public static encodeDelimited(message: google.datastore.v1.IMutationResult, writer?: $protobuf.Writer): $protobuf.Writer;
3600
3601 /**
3602 * Decodes a MutationResult message from the specified reader or buffer.
3603 * @param reader Reader or buffer to decode from
3604 * @param [length] Message length if known beforehand
3605 * @returns MutationResult
3606 * @throws {Error} If the payload is not a reader or valid buffer
3607 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3608 */
3609 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.MutationResult;
3610
3611 /**
3612 * Decodes a MutationResult message from the specified reader or buffer, length delimited.
3613 * @param reader Reader or buffer to decode from
3614 * @returns MutationResult
3615 * @throws {Error} If the payload is not a reader or valid buffer
3616 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3617 */
3618 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.MutationResult;
3619
3620 /**
3621 * Verifies a MutationResult message.
3622 * @param message Plain object to verify
3623 * @returns `null` if valid, otherwise the reason why it is not
3624 */
3625 public static verify(message: { [k: string]: any }): (string|null);
3626
3627 /**
3628 * Creates a MutationResult message from a plain object. Also converts values to their respective internal types.
3629 * @param object Plain object
3630 * @returns MutationResult
3631 */
3632 public static fromObject(object: { [k: string]: any }): google.datastore.v1.MutationResult;
3633
3634 /**
3635 * Creates a plain object from a MutationResult message. Also converts values to other types if specified.
3636 * @param message MutationResult
3637 * @param [options] Conversion options
3638 * @returns Plain object
3639 */
3640 public static toObject(message: google.datastore.v1.MutationResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
3641
3642 /**
3643 * Converts this MutationResult to JSON.
3644 * @returns JSON object
3645 */
3646 public toJSON(): { [k: string]: any };
3647 }
3648
3649 /** Properties of a ReadOptions. */
3650 interface IReadOptions {
3651
3652 /** ReadOptions readConsistency */
3653 readConsistency?: (google.datastore.v1.ReadOptions.ReadConsistency|keyof typeof google.datastore.v1.ReadOptions.ReadConsistency|null);
3654
3655 /** ReadOptions transaction */
3656 transaction?: (Uint8Array|string|null);
3657 }
3658
3659 /** Represents a ReadOptions. */
3660 class ReadOptions implements IReadOptions {
3661
3662 /**
3663 * Constructs a new ReadOptions.
3664 * @param [properties] Properties to set
3665 */
3666 constructor(properties?: google.datastore.v1.IReadOptions);
3667
3668 /** ReadOptions readConsistency. */
3669 public readConsistency: (google.datastore.v1.ReadOptions.ReadConsistency|keyof typeof google.datastore.v1.ReadOptions.ReadConsistency);
3670
3671 /** ReadOptions transaction. */
3672 public transaction: (Uint8Array|string);
3673
3674 /** ReadOptions consistencyType. */
3675 public consistencyType?: ("readConsistency"|"transaction");
3676
3677 /**
3678 * Creates a new ReadOptions instance using the specified properties.
3679 * @param [properties] Properties to set
3680 * @returns ReadOptions instance
3681 */
3682 public static create(properties?: google.datastore.v1.IReadOptions): google.datastore.v1.ReadOptions;
3683
3684 /**
3685 * Encodes the specified ReadOptions message. Does not implicitly {@link google.datastore.v1.ReadOptions.verify|verify} messages.
3686 * @param message ReadOptions message or plain object to encode
3687 * @param [writer] Writer to encode to
3688 * @returns Writer
3689 */
3690 public static encode(message: google.datastore.v1.IReadOptions, writer?: $protobuf.Writer): $protobuf.Writer;
3691
3692 /**
3693 * Encodes the specified ReadOptions message, length delimited. Does not implicitly {@link google.datastore.v1.ReadOptions.verify|verify} messages.
3694 * @param message ReadOptions message or plain object to encode
3695 * @param [writer] Writer to encode to
3696 * @returns Writer
3697 */
3698 public static encodeDelimited(message: google.datastore.v1.IReadOptions, writer?: $protobuf.Writer): $protobuf.Writer;
3699
3700 /**
3701 * Decodes a ReadOptions message from the specified reader or buffer.
3702 * @param reader Reader or buffer to decode from
3703 * @param [length] Message length if known beforehand
3704 * @returns ReadOptions
3705 * @throws {Error} If the payload is not a reader or valid buffer
3706 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3707 */
3708 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.ReadOptions;
3709
3710 /**
3711 * Decodes a ReadOptions message from the specified reader or buffer, length delimited.
3712 * @param reader Reader or buffer to decode from
3713 * @returns ReadOptions
3714 * @throws {Error} If the payload is not a reader or valid buffer
3715 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3716 */
3717 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.ReadOptions;
3718
3719 /**
3720 * Verifies a ReadOptions message.
3721 * @param message Plain object to verify
3722 * @returns `null` if valid, otherwise the reason why it is not
3723 */
3724 public static verify(message: { [k: string]: any }): (string|null);
3725
3726 /**
3727 * Creates a ReadOptions message from a plain object. Also converts values to their respective internal types.
3728 * @param object Plain object
3729 * @returns ReadOptions
3730 */
3731 public static fromObject(object: { [k: string]: any }): google.datastore.v1.ReadOptions;
3732
3733 /**
3734 * Creates a plain object from a ReadOptions message. Also converts values to other types if specified.
3735 * @param message ReadOptions
3736 * @param [options] Conversion options
3737 * @returns Plain object
3738 */
3739 public static toObject(message: google.datastore.v1.ReadOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
3740
3741 /**
3742 * Converts this ReadOptions to JSON.
3743 * @returns JSON object
3744 */
3745 public toJSON(): { [k: string]: any };
3746 }
3747
3748 namespace ReadOptions {
3749
3750 /** ReadConsistency enum. */
3751 enum ReadConsistency {
3752 READ_CONSISTENCY_UNSPECIFIED = 0,
3753 STRONG = 1,
3754 EVENTUAL = 2
3755 }
3756 }
3757
3758 /** Properties of a TransactionOptions. */
3759 interface ITransactionOptions {
3760
3761 /** TransactionOptions readWrite */
3762 readWrite?: (google.datastore.v1.TransactionOptions.IReadWrite|null);
3763
3764 /** TransactionOptions readOnly */
3765 readOnly?: (google.datastore.v1.TransactionOptions.IReadOnly|null);
3766 }
3767
3768 /** Represents a TransactionOptions. */
3769 class TransactionOptions implements ITransactionOptions {
3770
3771 /**
3772 * Constructs a new TransactionOptions.
3773 * @param [properties] Properties to set
3774 */
3775 constructor(properties?: google.datastore.v1.ITransactionOptions);
3776
3777 /** TransactionOptions readWrite. */
3778 public readWrite?: (google.datastore.v1.TransactionOptions.IReadWrite|null);
3779
3780 /** TransactionOptions readOnly. */
3781 public readOnly?: (google.datastore.v1.TransactionOptions.IReadOnly|null);
3782
3783 /** TransactionOptions mode. */
3784 public mode?: ("readWrite"|"readOnly");
3785
3786 /**
3787 * Creates a new TransactionOptions instance using the specified properties.
3788 * @param [properties] Properties to set
3789 * @returns TransactionOptions instance
3790 */
3791 public static create(properties?: google.datastore.v1.ITransactionOptions): google.datastore.v1.TransactionOptions;
3792
3793 /**
3794 * Encodes the specified TransactionOptions message. Does not implicitly {@link google.datastore.v1.TransactionOptions.verify|verify} messages.
3795 * @param message TransactionOptions message or plain object to encode
3796 * @param [writer] Writer to encode to
3797 * @returns Writer
3798 */
3799 public static encode(message: google.datastore.v1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
3800
3801 /**
3802 * Encodes the specified TransactionOptions message, length delimited. Does not implicitly {@link google.datastore.v1.TransactionOptions.verify|verify} messages.
3803 * @param message TransactionOptions message or plain object to encode
3804 * @param [writer] Writer to encode to
3805 * @returns Writer
3806 */
3807 public static encodeDelimited(message: google.datastore.v1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
3808
3809 /**
3810 * Decodes a TransactionOptions message from the specified reader or buffer.
3811 * @param reader Reader or buffer to decode from
3812 * @param [length] Message length if known beforehand
3813 * @returns TransactionOptions
3814 * @throws {Error} If the payload is not a reader or valid buffer
3815 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3816 */
3817 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.TransactionOptions;
3818
3819 /**
3820 * Decodes a TransactionOptions message from the specified reader or buffer, length delimited.
3821 * @param reader Reader or buffer to decode from
3822 * @returns TransactionOptions
3823 * @throws {Error} If the payload is not a reader or valid buffer
3824 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3825 */
3826 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.TransactionOptions;
3827
3828 /**
3829 * Verifies a TransactionOptions message.
3830 * @param message Plain object to verify
3831 * @returns `null` if valid, otherwise the reason why it is not
3832 */
3833 public static verify(message: { [k: string]: any }): (string|null);
3834
3835 /**
3836 * Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.
3837 * @param object Plain object
3838 * @returns TransactionOptions
3839 */
3840 public static fromObject(object: { [k: string]: any }): google.datastore.v1.TransactionOptions;
3841
3842 /**
3843 * Creates a plain object from a TransactionOptions message. Also converts values to other types if specified.
3844 * @param message TransactionOptions
3845 * @param [options] Conversion options
3846 * @returns Plain object
3847 */
3848 public static toObject(message: google.datastore.v1.TransactionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
3849
3850 /**
3851 * Converts this TransactionOptions to JSON.
3852 * @returns JSON object
3853 */
3854 public toJSON(): { [k: string]: any };
3855 }
3856
3857 namespace TransactionOptions {
3858
3859 /** Properties of a ReadWrite. */
3860 interface IReadWrite {
3861
3862 /** ReadWrite previousTransaction */
3863 previousTransaction?: (Uint8Array|string|null);
3864 }
3865
3866 /** Represents a ReadWrite. */
3867 class ReadWrite implements IReadWrite {
3868
3869 /**
3870 * Constructs a new ReadWrite.
3871 * @param [properties] Properties to set
3872 */
3873 constructor(properties?: google.datastore.v1.TransactionOptions.IReadWrite);
3874
3875 /** ReadWrite previousTransaction. */
3876 public previousTransaction: (Uint8Array|string);
3877
3878 /**
3879 * Creates a new ReadWrite instance using the specified properties.
3880 * @param [properties] Properties to set
3881 * @returns ReadWrite instance
3882 */
3883 public static create(properties?: google.datastore.v1.TransactionOptions.IReadWrite): google.datastore.v1.TransactionOptions.ReadWrite;
3884
3885 /**
3886 * Encodes the specified ReadWrite message. Does not implicitly {@link google.datastore.v1.TransactionOptions.ReadWrite.verify|verify} messages.
3887 * @param message ReadWrite message or plain object to encode
3888 * @param [writer] Writer to encode to
3889 * @returns Writer
3890 */
3891 public static encode(message: google.datastore.v1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
3892
3893 /**
3894 * Encodes the specified ReadWrite message, length delimited. Does not implicitly {@link google.datastore.v1.TransactionOptions.ReadWrite.verify|verify} messages.
3895 * @param message ReadWrite message or plain object to encode
3896 * @param [writer] Writer to encode to
3897 * @returns Writer
3898 */
3899 public static encodeDelimited(message: google.datastore.v1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
3900
3901 /**
3902 * Decodes a ReadWrite message from the specified reader or buffer.
3903 * @param reader Reader or buffer to decode from
3904 * @param [length] Message length if known beforehand
3905 * @returns ReadWrite
3906 * @throws {Error} If the payload is not a reader or valid buffer
3907 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3908 */
3909 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.TransactionOptions.ReadWrite;
3910
3911 /**
3912 * Decodes a ReadWrite message from the specified reader or buffer, length delimited.
3913 * @param reader Reader or buffer to decode from
3914 * @returns ReadWrite
3915 * @throws {Error} If the payload is not a reader or valid buffer
3916 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3917 */
3918 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.TransactionOptions.ReadWrite;
3919
3920 /**
3921 * Verifies a ReadWrite message.
3922 * @param message Plain object to verify
3923 * @returns `null` if valid, otherwise the reason why it is not
3924 */
3925 public static verify(message: { [k: string]: any }): (string|null);
3926
3927 /**
3928 * Creates a ReadWrite message from a plain object. Also converts values to their respective internal types.
3929 * @param object Plain object
3930 * @returns ReadWrite
3931 */
3932 public static fromObject(object: { [k: string]: any }): google.datastore.v1.TransactionOptions.ReadWrite;
3933
3934 /**
3935 * Creates a plain object from a ReadWrite message. Also converts values to other types if specified.
3936 * @param message ReadWrite
3937 * @param [options] Conversion options
3938 * @returns Plain object
3939 */
3940 public static toObject(message: google.datastore.v1.TransactionOptions.ReadWrite, options?: $protobuf.IConversionOptions): { [k: string]: any };
3941
3942 /**
3943 * Converts this ReadWrite to JSON.
3944 * @returns JSON object
3945 */
3946 public toJSON(): { [k: string]: any };
3947 }
3948
3949 /** Properties of a ReadOnly. */
3950 interface IReadOnly {
3951 }
3952
3953 /** Represents a ReadOnly. */
3954 class ReadOnly implements IReadOnly {
3955
3956 /**
3957 * Constructs a new ReadOnly.
3958 * @param [properties] Properties to set
3959 */
3960 constructor(properties?: google.datastore.v1.TransactionOptions.IReadOnly);
3961
3962 /**
3963 * Creates a new ReadOnly instance using the specified properties.
3964 * @param [properties] Properties to set
3965 * @returns ReadOnly instance
3966 */
3967 public static create(properties?: google.datastore.v1.TransactionOptions.IReadOnly): google.datastore.v1.TransactionOptions.ReadOnly;
3968
3969 /**
3970 * Encodes the specified ReadOnly message. Does not implicitly {@link google.datastore.v1.TransactionOptions.ReadOnly.verify|verify} messages.
3971 * @param message ReadOnly message or plain object to encode
3972 * @param [writer] Writer to encode to
3973 * @returns Writer
3974 */
3975 public static encode(message: google.datastore.v1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
3976
3977 /**
3978 * Encodes the specified ReadOnly message, length delimited. Does not implicitly {@link google.datastore.v1.TransactionOptions.ReadOnly.verify|verify} messages.
3979 * @param message ReadOnly message or plain object to encode
3980 * @param [writer] Writer to encode to
3981 * @returns Writer
3982 */
3983 public static encodeDelimited(message: google.datastore.v1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
3984
3985 /**
3986 * Decodes a ReadOnly message from the specified reader or buffer.
3987 * @param reader Reader or buffer to decode from
3988 * @param [length] Message length if known beforehand
3989 * @returns ReadOnly
3990 * @throws {Error} If the payload is not a reader or valid buffer
3991 * @throws {$protobuf.util.ProtocolError} If required fields are missing
3992 */
3993 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.TransactionOptions.ReadOnly;
3994
3995 /**
3996 * Decodes a ReadOnly message from the specified reader or buffer, length delimited.
3997 * @param reader Reader or buffer to decode from
3998 * @returns ReadOnly
3999 * @throws {Error} If the payload is not a reader or valid buffer
4000 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4001 */
4002 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.TransactionOptions.ReadOnly;
4003
4004 /**
4005 * Verifies a ReadOnly message.
4006 * @param message Plain object to verify
4007 * @returns `null` if valid, otherwise the reason why it is not
4008 */
4009 public static verify(message: { [k: string]: any }): (string|null);
4010
4011 /**
4012 * Creates a ReadOnly message from a plain object. Also converts values to their respective internal types.
4013 * @param object Plain object
4014 * @returns ReadOnly
4015 */
4016 public static fromObject(object: { [k: string]: any }): google.datastore.v1.TransactionOptions.ReadOnly;
4017
4018 /**
4019 * Creates a plain object from a ReadOnly message. Also converts values to other types if specified.
4020 * @param message ReadOnly
4021 * @param [options] Conversion options
4022 * @returns Plain object
4023 */
4024 public static toObject(message: google.datastore.v1.TransactionOptions.ReadOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
4025
4026 /**
4027 * Converts this ReadOnly to JSON.
4028 * @returns JSON object
4029 */
4030 public toJSON(): { [k: string]: any };
4031 }
4032 }
4033
4034 /** Properties of a PartitionId. */
4035 interface IPartitionId {
4036
4037 /** PartitionId projectId */
4038 projectId?: (string|null);
4039
4040 /** PartitionId namespaceId */
4041 namespaceId?: (string|null);
4042 }
4043
4044 /** Represents a PartitionId. */
4045 class PartitionId implements IPartitionId {
4046
4047 /**
4048 * Constructs a new PartitionId.
4049 * @param [properties] Properties to set
4050 */
4051 constructor(properties?: google.datastore.v1.IPartitionId);
4052
4053 /** PartitionId projectId. */
4054 public projectId: string;
4055
4056 /** PartitionId namespaceId. */
4057 public namespaceId: string;
4058
4059 /**
4060 * Creates a new PartitionId instance using the specified properties.
4061 * @param [properties] Properties to set
4062 * @returns PartitionId instance
4063 */
4064 public static create(properties?: google.datastore.v1.IPartitionId): google.datastore.v1.PartitionId;
4065
4066 /**
4067 * Encodes the specified PartitionId message. Does not implicitly {@link google.datastore.v1.PartitionId.verify|verify} messages.
4068 * @param message PartitionId message or plain object to encode
4069 * @param [writer] Writer to encode to
4070 * @returns Writer
4071 */
4072 public static encode(message: google.datastore.v1.IPartitionId, writer?: $protobuf.Writer): $protobuf.Writer;
4073
4074 /**
4075 * Encodes the specified PartitionId message, length delimited. Does not implicitly {@link google.datastore.v1.PartitionId.verify|verify} messages.
4076 * @param message PartitionId message or plain object to encode
4077 * @param [writer] Writer to encode to
4078 * @returns Writer
4079 */
4080 public static encodeDelimited(message: google.datastore.v1.IPartitionId, writer?: $protobuf.Writer): $protobuf.Writer;
4081
4082 /**
4083 * Decodes a PartitionId message from the specified reader or buffer.
4084 * @param reader Reader or buffer to decode from
4085 * @param [length] Message length if known beforehand
4086 * @returns PartitionId
4087 * @throws {Error} If the payload is not a reader or valid buffer
4088 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4089 */
4090 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.PartitionId;
4091
4092 /**
4093 * Decodes a PartitionId message from the specified reader or buffer, length delimited.
4094 * @param reader Reader or buffer to decode from
4095 * @returns PartitionId
4096 * @throws {Error} If the payload is not a reader or valid buffer
4097 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4098 */
4099 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.PartitionId;
4100
4101 /**
4102 * Verifies a PartitionId message.
4103 * @param message Plain object to verify
4104 * @returns `null` if valid, otherwise the reason why it is not
4105 */
4106 public static verify(message: { [k: string]: any }): (string|null);
4107
4108 /**
4109 * Creates a PartitionId message from a plain object. Also converts values to their respective internal types.
4110 * @param object Plain object
4111 * @returns PartitionId
4112 */
4113 public static fromObject(object: { [k: string]: any }): google.datastore.v1.PartitionId;
4114
4115 /**
4116 * Creates a plain object from a PartitionId message. Also converts values to other types if specified.
4117 * @param message PartitionId
4118 * @param [options] Conversion options
4119 * @returns Plain object
4120 */
4121 public static toObject(message: google.datastore.v1.PartitionId, options?: $protobuf.IConversionOptions): { [k: string]: any };
4122
4123 /**
4124 * Converts this PartitionId to JSON.
4125 * @returns JSON object
4126 */
4127 public toJSON(): { [k: string]: any };
4128 }
4129
4130 /** Properties of a Key. */
4131 interface IKey {
4132
4133 /** Key partitionId */
4134 partitionId?: (google.datastore.v1.IPartitionId|null);
4135
4136 /** Key path */
4137 path?: (google.datastore.v1.Key.IPathElement[]|null);
4138 }
4139
4140 /** Represents a Key. */
4141 class Key implements IKey {
4142
4143 /**
4144 * Constructs a new Key.
4145 * @param [properties] Properties to set
4146 */
4147 constructor(properties?: google.datastore.v1.IKey);
4148
4149 /** Key partitionId. */
4150 public partitionId?: (google.datastore.v1.IPartitionId|null);
4151
4152 /** Key path. */
4153 public path: google.datastore.v1.Key.IPathElement[];
4154
4155 /**
4156 * Creates a new Key instance using the specified properties.
4157 * @param [properties] Properties to set
4158 * @returns Key instance
4159 */
4160 public static create(properties?: google.datastore.v1.IKey): google.datastore.v1.Key;
4161
4162 /**
4163 * Encodes the specified Key message. Does not implicitly {@link google.datastore.v1.Key.verify|verify} messages.
4164 * @param message Key message or plain object to encode
4165 * @param [writer] Writer to encode to
4166 * @returns Writer
4167 */
4168 public static encode(message: google.datastore.v1.IKey, writer?: $protobuf.Writer): $protobuf.Writer;
4169
4170 /**
4171 * Encodes the specified Key message, length delimited. Does not implicitly {@link google.datastore.v1.Key.verify|verify} messages.
4172 * @param message Key message or plain object to encode
4173 * @param [writer] Writer to encode to
4174 * @returns Writer
4175 */
4176 public static encodeDelimited(message: google.datastore.v1.IKey, writer?: $protobuf.Writer): $protobuf.Writer;
4177
4178 /**
4179 * Decodes a Key message from the specified reader or buffer.
4180 * @param reader Reader or buffer to decode from
4181 * @param [length] Message length if known beforehand
4182 * @returns Key
4183 * @throws {Error} If the payload is not a reader or valid buffer
4184 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4185 */
4186 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.Key;
4187
4188 /**
4189 * Decodes a Key message from the specified reader or buffer, length delimited.
4190 * @param reader Reader or buffer to decode from
4191 * @returns Key
4192 * @throws {Error} If the payload is not a reader or valid buffer
4193 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4194 */
4195 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.Key;
4196
4197 /**
4198 * Verifies a Key message.
4199 * @param message Plain object to verify
4200 * @returns `null` if valid, otherwise the reason why it is not
4201 */
4202 public static verify(message: { [k: string]: any }): (string|null);
4203
4204 /**
4205 * Creates a Key message from a plain object. Also converts values to their respective internal types.
4206 * @param object Plain object
4207 * @returns Key
4208 */
4209 public static fromObject(object: { [k: string]: any }): google.datastore.v1.Key;
4210
4211 /**
4212 * Creates a plain object from a Key message. Also converts values to other types if specified.
4213 * @param message Key
4214 * @param [options] Conversion options
4215 * @returns Plain object
4216 */
4217 public static toObject(message: google.datastore.v1.Key, options?: $protobuf.IConversionOptions): { [k: string]: any };
4218
4219 /**
4220 * Converts this Key to JSON.
4221 * @returns JSON object
4222 */
4223 public toJSON(): { [k: string]: any };
4224 }
4225
4226 namespace Key {
4227
4228 /** Properties of a PathElement. */
4229 interface IPathElement {
4230
4231 /** PathElement kind */
4232 kind?: (string|null);
4233
4234 /** PathElement id */
4235 id?: (number|Long|string|null);
4236
4237 /** PathElement name */
4238 name?: (string|null);
4239 }
4240
4241 /** Represents a PathElement. */
4242 class PathElement implements IPathElement {
4243
4244 /**
4245 * Constructs a new PathElement.
4246 * @param [properties] Properties to set
4247 */
4248 constructor(properties?: google.datastore.v1.Key.IPathElement);
4249
4250 /** PathElement kind. */
4251 public kind: string;
4252
4253 /** PathElement id. */
4254 public id: (number|Long|string);
4255
4256 /** PathElement name. */
4257 public name: string;
4258
4259 /** PathElement idType. */
4260 public idType?: ("id"|"name");
4261
4262 /**
4263 * Creates a new PathElement instance using the specified properties.
4264 * @param [properties] Properties to set
4265 * @returns PathElement instance
4266 */
4267 public static create(properties?: google.datastore.v1.Key.IPathElement): google.datastore.v1.Key.PathElement;
4268
4269 /**
4270 * Encodes the specified PathElement message. Does not implicitly {@link google.datastore.v1.Key.PathElement.verify|verify} messages.
4271 * @param message PathElement message or plain object to encode
4272 * @param [writer] Writer to encode to
4273 * @returns Writer
4274 */
4275 public static encode(message: google.datastore.v1.Key.IPathElement, writer?: $protobuf.Writer): $protobuf.Writer;
4276
4277 /**
4278 * Encodes the specified PathElement message, length delimited. Does not implicitly {@link google.datastore.v1.Key.PathElement.verify|verify} messages.
4279 * @param message PathElement message or plain object to encode
4280 * @param [writer] Writer to encode to
4281 * @returns Writer
4282 */
4283 public static encodeDelimited(message: google.datastore.v1.Key.IPathElement, writer?: $protobuf.Writer): $protobuf.Writer;
4284
4285 /**
4286 * Decodes a PathElement message from the specified reader or buffer.
4287 * @param reader Reader or buffer to decode from
4288 * @param [length] Message length if known beforehand
4289 * @returns PathElement
4290 * @throws {Error} If the payload is not a reader or valid buffer
4291 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4292 */
4293 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.Key.PathElement;
4294
4295 /**
4296 * Decodes a PathElement message from the specified reader or buffer, length delimited.
4297 * @param reader Reader or buffer to decode from
4298 * @returns PathElement
4299 * @throws {Error} If the payload is not a reader or valid buffer
4300 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4301 */
4302 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.Key.PathElement;
4303
4304 /**
4305 * Verifies a PathElement message.
4306 * @param message Plain object to verify
4307 * @returns `null` if valid, otherwise the reason why it is not
4308 */
4309 public static verify(message: { [k: string]: any }): (string|null);
4310
4311 /**
4312 * Creates a PathElement message from a plain object. Also converts values to their respective internal types.
4313 * @param object Plain object
4314 * @returns PathElement
4315 */
4316 public static fromObject(object: { [k: string]: any }): google.datastore.v1.Key.PathElement;
4317
4318 /**
4319 * Creates a plain object from a PathElement message. Also converts values to other types if specified.
4320 * @param message PathElement
4321 * @param [options] Conversion options
4322 * @returns Plain object
4323 */
4324 public static toObject(message: google.datastore.v1.Key.PathElement, options?: $protobuf.IConversionOptions): { [k: string]: any };
4325
4326 /**
4327 * Converts this PathElement to JSON.
4328 * @returns JSON object
4329 */
4330 public toJSON(): { [k: string]: any };
4331 }
4332 }
4333
4334 /** Properties of an ArrayValue. */
4335 interface IArrayValue {
4336
4337 /** ArrayValue values */
4338 values?: (google.datastore.v1.IValue[]|null);
4339 }
4340
4341 /** Represents an ArrayValue. */
4342 class ArrayValue implements IArrayValue {
4343
4344 /**
4345 * Constructs a new ArrayValue.
4346 * @param [properties] Properties to set
4347 */
4348 constructor(properties?: google.datastore.v1.IArrayValue);
4349
4350 /** ArrayValue values. */
4351 public values: google.datastore.v1.IValue[];
4352
4353 /**
4354 * Creates a new ArrayValue instance using the specified properties.
4355 * @param [properties] Properties to set
4356 * @returns ArrayValue instance
4357 */
4358 public static create(properties?: google.datastore.v1.IArrayValue): google.datastore.v1.ArrayValue;
4359
4360 /**
4361 * Encodes the specified ArrayValue message. Does not implicitly {@link google.datastore.v1.ArrayValue.verify|verify} messages.
4362 * @param message ArrayValue message or plain object to encode
4363 * @param [writer] Writer to encode to
4364 * @returns Writer
4365 */
4366 public static encode(message: google.datastore.v1.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer;
4367
4368 /**
4369 * Encodes the specified ArrayValue message, length delimited. Does not implicitly {@link google.datastore.v1.ArrayValue.verify|verify} messages.
4370 * @param message ArrayValue message or plain object to encode
4371 * @param [writer] Writer to encode to
4372 * @returns Writer
4373 */
4374 public static encodeDelimited(message: google.datastore.v1.IArrayValue, writer?: $protobuf.Writer): $protobuf.Writer;
4375
4376 /**
4377 * Decodes an ArrayValue message from the specified reader or buffer.
4378 * @param reader Reader or buffer to decode from
4379 * @param [length] Message length if known beforehand
4380 * @returns ArrayValue
4381 * @throws {Error} If the payload is not a reader or valid buffer
4382 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4383 */
4384 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.ArrayValue;
4385
4386 /**
4387 * Decodes an ArrayValue message from the specified reader or buffer, length delimited.
4388 * @param reader Reader or buffer to decode from
4389 * @returns ArrayValue
4390 * @throws {Error} If the payload is not a reader or valid buffer
4391 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4392 */
4393 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.ArrayValue;
4394
4395 /**
4396 * Verifies an ArrayValue message.
4397 * @param message Plain object to verify
4398 * @returns `null` if valid, otherwise the reason why it is not
4399 */
4400 public static verify(message: { [k: string]: any }): (string|null);
4401
4402 /**
4403 * Creates an ArrayValue message from a plain object. Also converts values to their respective internal types.
4404 * @param object Plain object
4405 * @returns ArrayValue
4406 */
4407 public static fromObject(object: { [k: string]: any }): google.datastore.v1.ArrayValue;
4408
4409 /**
4410 * Creates a plain object from an ArrayValue message. Also converts values to other types if specified.
4411 * @param message ArrayValue
4412 * @param [options] Conversion options
4413 * @returns Plain object
4414 */
4415 public static toObject(message: google.datastore.v1.ArrayValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
4416
4417 /**
4418 * Converts this ArrayValue to JSON.
4419 * @returns JSON object
4420 */
4421 public toJSON(): { [k: string]: any };
4422 }
4423
4424 /** Properties of a Value. */
4425 interface IValue {
4426
4427 /** Value nullValue */
4428 nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
4429
4430 /** Value booleanValue */
4431 booleanValue?: (boolean|null);
4432
4433 /** Value integerValue */
4434 integerValue?: (number|Long|string|null);
4435
4436 /** Value doubleValue */
4437 doubleValue?: (number|null);
4438
4439 /** Value timestampValue */
4440 timestampValue?: (google.protobuf.ITimestamp|null);
4441
4442 /** Value keyValue */
4443 keyValue?: (google.datastore.v1.IKey|null);
4444
4445 /** Value stringValue */
4446 stringValue?: (string|null);
4447
4448 /** Value blobValue */
4449 blobValue?: (Uint8Array|string|null);
4450
4451 /** Value geoPointValue */
4452 geoPointValue?: (google.type.ILatLng|null);
4453
4454 /** Value entityValue */
4455 entityValue?: (google.datastore.v1.IEntity|null);
4456
4457 /** Value arrayValue */
4458 arrayValue?: (google.datastore.v1.IArrayValue|null);
4459
4460 /** Value meaning */
4461 meaning?: (number|null);
4462
4463 /** Value excludeFromIndexes */
4464 excludeFromIndexes?: (boolean|null);
4465 }
4466
4467 /** Represents a Value. */
4468 class Value implements IValue {
4469
4470 /**
4471 * Constructs a new Value.
4472 * @param [properties] Properties to set
4473 */
4474 constructor(properties?: google.datastore.v1.IValue);
4475
4476 /** Value nullValue. */
4477 public nullValue: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue);
4478
4479 /** Value booleanValue. */
4480 public booleanValue: boolean;
4481
4482 /** Value integerValue. */
4483 public integerValue: (number|Long|string);
4484
4485 /** Value doubleValue. */
4486 public doubleValue: number;
4487
4488 /** Value timestampValue. */
4489 public timestampValue?: (google.protobuf.ITimestamp|null);
4490
4491 /** Value keyValue. */
4492 public keyValue?: (google.datastore.v1.IKey|null);
4493
4494 /** Value stringValue. */
4495 public stringValue: string;
4496
4497 /** Value blobValue. */
4498 public blobValue: (Uint8Array|string);
4499
4500 /** Value geoPointValue. */
4501 public geoPointValue?: (google.type.ILatLng|null);
4502
4503 /** Value entityValue. */
4504 public entityValue?: (google.datastore.v1.IEntity|null);
4505
4506 /** Value arrayValue. */
4507 public arrayValue?: (google.datastore.v1.IArrayValue|null);
4508
4509 /** Value meaning. */
4510 public meaning: number;
4511
4512 /** Value excludeFromIndexes. */
4513 public excludeFromIndexes: boolean;
4514
4515 /** Value valueType. */
4516 public valueType?: ("nullValue"|"booleanValue"|"integerValue"|"doubleValue"|"timestampValue"|"keyValue"|"stringValue"|"blobValue"|"geoPointValue"|"entityValue"|"arrayValue");
4517
4518 /**
4519 * Creates a new Value instance using the specified properties.
4520 * @param [properties] Properties to set
4521 * @returns Value instance
4522 */
4523 public static create(properties?: google.datastore.v1.IValue): google.datastore.v1.Value;
4524
4525 /**
4526 * Encodes the specified Value message. Does not implicitly {@link google.datastore.v1.Value.verify|verify} messages.
4527 * @param message Value message or plain object to encode
4528 * @param [writer] Writer to encode to
4529 * @returns Writer
4530 */
4531 public static encode(message: google.datastore.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
4532
4533 /**
4534 * Encodes the specified Value message, length delimited. Does not implicitly {@link google.datastore.v1.Value.verify|verify} messages.
4535 * @param message Value message or plain object to encode
4536 * @param [writer] Writer to encode to
4537 * @returns Writer
4538 */
4539 public static encodeDelimited(message: google.datastore.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
4540
4541 /**
4542 * Decodes a Value message from the specified reader or buffer.
4543 * @param reader Reader or buffer to decode from
4544 * @param [length] Message length if known beforehand
4545 * @returns Value
4546 * @throws {Error} If the payload is not a reader or valid buffer
4547 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4548 */
4549 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.Value;
4550
4551 /**
4552 * Decodes a Value message from the specified reader or buffer, length delimited.
4553 * @param reader Reader or buffer to decode from
4554 * @returns Value
4555 * @throws {Error} If the payload is not a reader or valid buffer
4556 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4557 */
4558 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.Value;
4559
4560 /**
4561 * Verifies a Value message.
4562 * @param message Plain object to verify
4563 * @returns `null` if valid, otherwise the reason why it is not
4564 */
4565 public static verify(message: { [k: string]: any }): (string|null);
4566
4567 /**
4568 * Creates a Value message from a plain object. Also converts values to their respective internal types.
4569 * @param object Plain object
4570 * @returns Value
4571 */
4572 public static fromObject(object: { [k: string]: any }): google.datastore.v1.Value;
4573
4574 /**
4575 * Creates a plain object from a Value message. Also converts values to other types if specified.
4576 * @param message Value
4577 * @param [options] Conversion options
4578 * @returns Plain object
4579 */
4580 public static toObject(message: google.datastore.v1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
4581
4582 /**
4583 * Converts this Value to JSON.
4584 * @returns JSON object
4585 */
4586 public toJSON(): { [k: string]: any };
4587 }
4588
4589 /** Properties of an Entity. */
4590 interface IEntity {
4591
4592 /** Entity key */
4593 key?: (google.datastore.v1.IKey|null);
4594
4595 /** Entity properties */
4596 properties?: ({ [k: string]: google.datastore.v1.IValue }|null);
4597 }
4598
4599 /** Represents an Entity. */
4600 class Entity implements IEntity {
4601
4602 /**
4603 * Constructs a new Entity.
4604 * @param [properties] Properties to set
4605 */
4606 constructor(properties?: google.datastore.v1.IEntity);
4607
4608 /** Entity key. */
4609 public key?: (google.datastore.v1.IKey|null);
4610
4611 /** Entity properties. */
4612 public properties: { [k: string]: google.datastore.v1.IValue };
4613
4614 /**
4615 * Creates a new Entity instance using the specified properties.
4616 * @param [properties] Properties to set
4617 * @returns Entity instance
4618 */
4619 public static create(properties?: google.datastore.v1.IEntity): google.datastore.v1.Entity;
4620
4621 /**
4622 * Encodes the specified Entity message. Does not implicitly {@link google.datastore.v1.Entity.verify|verify} messages.
4623 * @param message Entity message or plain object to encode
4624 * @param [writer] Writer to encode to
4625 * @returns Writer
4626 */
4627 public static encode(message: google.datastore.v1.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
4628
4629 /**
4630 * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.datastore.v1.Entity.verify|verify} messages.
4631 * @param message Entity message or plain object to encode
4632 * @param [writer] Writer to encode to
4633 * @returns Writer
4634 */
4635 public static encodeDelimited(message: google.datastore.v1.IEntity, writer?: $protobuf.Writer): $protobuf.Writer;
4636
4637 /**
4638 * Decodes an Entity message from the specified reader or buffer.
4639 * @param reader Reader or buffer to decode from
4640 * @param [length] Message length if known beforehand
4641 * @returns Entity
4642 * @throws {Error} If the payload is not a reader or valid buffer
4643 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4644 */
4645 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.Entity;
4646
4647 /**
4648 * Decodes an Entity message from the specified reader or buffer, length delimited.
4649 * @param reader Reader or buffer to decode from
4650 * @returns Entity
4651 * @throws {Error} If the payload is not a reader or valid buffer
4652 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4653 */
4654 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.Entity;
4655
4656 /**
4657 * Verifies an Entity message.
4658 * @param message Plain object to verify
4659 * @returns `null` if valid, otherwise the reason why it is not
4660 */
4661 public static verify(message: { [k: string]: any }): (string|null);
4662
4663 /**
4664 * Creates an Entity message from a plain object. Also converts values to their respective internal types.
4665 * @param object Plain object
4666 * @returns Entity
4667 */
4668 public static fromObject(object: { [k: string]: any }): google.datastore.v1.Entity;
4669
4670 /**
4671 * Creates a plain object from an Entity message. Also converts values to other types if specified.
4672 * @param message Entity
4673 * @param [options] Conversion options
4674 * @returns Plain object
4675 */
4676 public static toObject(message: google.datastore.v1.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any };
4677
4678 /**
4679 * Converts this Entity to JSON.
4680 * @returns JSON object
4681 */
4682 public toJSON(): { [k: string]: any };
4683 }
4684
4685 /** Properties of an EntityResult. */
4686 interface IEntityResult {
4687
4688 /** EntityResult entity */
4689 entity?: (google.datastore.v1.IEntity|null);
4690
4691 /** EntityResult version */
4692 version?: (number|Long|string|null);
4693
4694 /** EntityResult cursor */
4695 cursor?: (Uint8Array|string|null);
4696 }
4697
4698 /** Represents an EntityResult. */
4699 class EntityResult implements IEntityResult {
4700
4701 /**
4702 * Constructs a new EntityResult.
4703 * @param [properties] Properties to set
4704 */
4705 constructor(properties?: google.datastore.v1.IEntityResult);
4706
4707 /** EntityResult entity. */
4708 public entity?: (google.datastore.v1.IEntity|null);
4709
4710 /** EntityResult version. */
4711 public version: (number|Long|string);
4712
4713 /** EntityResult cursor. */
4714 public cursor: (Uint8Array|string);
4715
4716 /**
4717 * Creates a new EntityResult instance using the specified properties.
4718 * @param [properties] Properties to set
4719 * @returns EntityResult instance
4720 */
4721 public static create(properties?: google.datastore.v1.IEntityResult): google.datastore.v1.EntityResult;
4722
4723 /**
4724 * Encodes the specified EntityResult message. Does not implicitly {@link google.datastore.v1.EntityResult.verify|verify} messages.
4725 * @param message EntityResult message or plain object to encode
4726 * @param [writer] Writer to encode to
4727 * @returns Writer
4728 */
4729 public static encode(message: google.datastore.v1.IEntityResult, writer?: $protobuf.Writer): $protobuf.Writer;
4730
4731 /**
4732 * Encodes the specified EntityResult message, length delimited. Does not implicitly {@link google.datastore.v1.EntityResult.verify|verify} messages.
4733 * @param message EntityResult message or plain object to encode
4734 * @param [writer] Writer to encode to
4735 * @returns Writer
4736 */
4737 public static encodeDelimited(message: google.datastore.v1.IEntityResult, writer?: $protobuf.Writer): $protobuf.Writer;
4738
4739 /**
4740 * Decodes an EntityResult message from the specified reader or buffer.
4741 * @param reader Reader or buffer to decode from
4742 * @param [length] Message length if known beforehand
4743 * @returns EntityResult
4744 * @throws {Error} If the payload is not a reader or valid buffer
4745 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4746 */
4747 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.EntityResult;
4748
4749 /**
4750 * Decodes an EntityResult message from the specified reader or buffer, length delimited.
4751 * @param reader Reader or buffer to decode from
4752 * @returns EntityResult
4753 * @throws {Error} If the payload is not a reader or valid buffer
4754 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4755 */
4756 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.EntityResult;
4757
4758 /**
4759 * Verifies an EntityResult message.
4760 * @param message Plain object to verify
4761 * @returns `null` if valid, otherwise the reason why it is not
4762 */
4763 public static verify(message: { [k: string]: any }): (string|null);
4764
4765 /**
4766 * Creates an EntityResult message from a plain object. Also converts values to their respective internal types.
4767 * @param object Plain object
4768 * @returns EntityResult
4769 */
4770 public static fromObject(object: { [k: string]: any }): google.datastore.v1.EntityResult;
4771
4772 /**
4773 * Creates a plain object from an EntityResult message. Also converts values to other types if specified.
4774 * @param message EntityResult
4775 * @param [options] Conversion options
4776 * @returns Plain object
4777 */
4778 public static toObject(message: google.datastore.v1.EntityResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
4779
4780 /**
4781 * Converts this EntityResult to JSON.
4782 * @returns JSON object
4783 */
4784 public toJSON(): { [k: string]: any };
4785 }
4786
4787 namespace EntityResult {
4788
4789 /** ResultType enum. */
4790 enum ResultType {
4791 RESULT_TYPE_UNSPECIFIED = 0,
4792 FULL = 1,
4793 PROJECTION = 2,
4794 KEY_ONLY = 3
4795 }
4796 }
4797
4798 /** Properties of a Query. */
4799 interface IQuery {
4800
4801 /** Query projection */
4802 projection?: (google.datastore.v1.IProjection[]|null);
4803
4804 /** Query kind */
4805 kind?: (google.datastore.v1.IKindExpression[]|null);
4806
4807 /** Query filter */
4808 filter?: (google.datastore.v1.IFilter|null);
4809
4810 /** Query order */
4811 order?: (google.datastore.v1.IPropertyOrder[]|null);
4812
4813 /** Query distinctOn */
4814 distinctOn?: (google.datastore.v1.IPropertyReference[]|null);
4815
4816 /** Query startCursor */
4817 startCursor?: (Uint8Array|string|null);
4818
4819 /** Query endCursor */
4820 endCursor?: (Uint8Array|string|null);
4821
4822 /** Query offset */
4823 offset?: (number|null);
4824
4825 /** Query limit */
4826 limit?: (google.protobuf.IInt32Value|null);
4827 }
4828
4829 /** Represents a Query. */
4830 class Query implements IQuery {
4831
4832 /**
4833 * Constructs a new Query.
4834 * @param [properties] Properties to set
4835 */
4836 constructor(properties?: google.datastore.v1.IQuery);
4837
4838 /** Query projection. */
4839 public projection: google.datastore.v1.IProjection[];
4840
4841 /** Query kind. */
4842 public kind: google.datastore.v1.IKindExpression[];
4843
4844 /** Query filter. */
4845 public filter?: (google.datastore.v1.IFilter|null);
4846
4847 /** Query order. */
4848 public order: google.datastore.v1.IPropertyOrder[];
4849
4850 /** Query distinctOn. */
4851 public distinctOn: google.datastore.v1.IPropertyReference[];
4852
4853 /** Query startCursor. */
4854 public startCursor: (Uint8Array|string);
4855
4856 /** Query endCursor. */
4857 public endCursor: (Uint8Array|string);
4858
4859 /** Query offset. */
4860 public offset: number;
4861
4862 /** Query limit. */
4863 public limit?: (google.protobuf.IInt32Value|null);
4864
4865 /**
4866 * Creates a new Query instance using the specified properties.
4867 * @param [properties] Properties to set
4868 * @returns Query instance
4869 */
4870 public static create(properties?: google.datastore.v1.IQuery): google.datastore.v1.Query;
4871
4872 /**
4873 * Encodes the specified Query message. Does not implicitly {@link google.datastore.v1.Query.verify|verify} messages.
4874 * @param message Query message or plain object to encode
4875 * @param [writer] Writer to encode to
4876 * @returns Writer
4877 */
4878 public static encode(message: google.datastore.v1.IQuery, writer?: $protobuf.Writer): $protobuf.Writer;
4879
4880 /**
4881 * Encodes the specified Query message, length delimited. Does not implicitly {@link google.datastore.v1.Query.verify|verify} messages.
4882 * @param message Query message or plain object to encode
4883 * @param [writer] Writer to encode to
4884 * @returns Writer
4885 */
4886 public static encodeDelimited(message: google.datastore.v1.IQuery, writer?: $protobuf.Writer): $protobuf.Writer;
4887
4888 /**
4889 * Decodes a Query message from the specified reader or buffer.
4890 * @param reader Reader or buffer to decode from
4891 * @param [length] Message length if known beforehand
4892 * @returns Query
4893 * @throws {Error} If the payload is not a reader or valid buffer
4894 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4895 */
4896 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.Query;
4897
4898 /**
4899 * Decodes a Query message from the specified reader or buffer, length delimited.
4900 * @param reader Reader or buffer to decode from
4901 * @returns Query
4902 * @throws {Error} If the payload is not a reader or valid buffer
4903 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4904 */
4905 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.Query;
4906
4907 /**
4908 * Verifies a Query message.
4909 * @param message Plain object to verify
4910 * @returns `null` if valid, otherwise the reason why it is not
4911 */
4912 public static verify(message: { [k: string]: any }): (string|null);
4913
4914 /**
4915 * Creates a Query message from a plain object. Also converts values to their respective internal types.
4916 * @param object Plain object
4917 * @returns Query
4918 */
4919 public static fromObject(object: { [k: string]: any }): google.datastore.v1.Query;
4920
4921 /**
4922 * Creates a plain object from a Query message. Also converts values to other types if specified.
4923 * @param message Query
4924 * @param [options] Conversion options
4925 * @returns Plain object
4926 */
4927 public static toObject(message: google.datastore.v1.Query, options?: $protobuf.IConversionOptions): { [k: string]: any };
4928
4929 /**
4930 * Converts this Query to JSON.
4931 * @returns JSON object
4932 */
4933 public toJSON(): { [k: string]: any };
4934 }
4935
4936 /** Properties of a KindExpression. */
4937 interface IKindExpression {
4938
4939 /** KindExpression name */
4940 name?: (string|null);
4941 }
4942
4943 /** Represents a KindExpression. */
4944 class KindExpression implements IKindExpression {
4945
4946 /**
4947 * Constructs a new KindExpression.
4948 * @param [properties] Properties to set
4949 */
4950 constructor(properties?: google.datastore.v1.IKindExpression);
4951
4952 /** KindExpression name. */
4953 public name: string;
4954
4955 /**
4956 * Creates a new KindExpression instance using the specified properties.
4957 * @param [properties] Properties to set
4958 * @returns KindExpression instance
4959 */
4960 public static create(properties?: google.datastore.v1.IKindExpression): google.datastore.v1.KindExpression;
4961
4962 /**
4963 * Encodes the specified KindExpression message. Does not implicitly {@link google.datastore.v1.KindExpression.verify|verify} messages.
4964 * @param message KindExpression message or plain object to encode
4965 * @param [writer] Writer to encode to
4966 * @returns Writer
4967 */
4968 public static encode(message: google.datastore.v1.IKindExpression, writer?: $protobuf.Writer): $protobuf.Writer;
4969
4970 /**
4971 * Encodes the specified KindExpression message, length delimited. Does not implicitly {@link google.datastore.v1.KindExpression.verify|verify} messages.
4972 * @param message KindExpression message or plain object to encode
4973 * @param [writer] Writer to encode to
4974 * @returns Writer
4975 */
4976 public static encodeDelimited(message: google.datastore.v1.IKindExpression, writer?: $protobuf.Writer): $protobuf.Writer;
4977
4978 /**
4979 * Decodes a KindExpression message from the specified reader or buffer.
4980 * @param reader Reader or buffer to decode from
4981 * @param [length] Message length if known beforehand
4982 * @returns KindExpression
4983 * @throws {Error} If the payload is not a reader or valid buffer
4984 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4985 */
4986 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.KindExpression;
4987
4988 /**
4989 * Decodes a KindExpression message from the specified reader or buffer, length delimited.
4990 * @param reader Reader or buffer to decode from
4991 * @returns KindExpression
4992 * @throws {Error} If the payload is not a reader or valid buffer
4993 * @throws {$protobuf.util.ProtocolError} If required fields are missing
4994 */
4995 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.KindExpression;
4996
4997 /**
4998 * Verifies a KindExpression message.
4999 * @param message Plain object to verify
5000 * @returns `null` if valid, otherwise the reason why it is not
5001 */
5002 public static verify(message: { [k: string]: any }): (string|null);
5003
5004 /**
5005 * Creates a KindExpression message from a plain object. Also converts values to their respective internal types.
5006 * @param object Plain object
5007 * @returns KindExpression
5008 */
5009 public static fromObject(object: { [k: string]: any }): google.datastore.v1.KindExpression;
5010
5011 /**
5012 * Creates a plain object from a KindExpression message. Also converts values to other types if specified.
5013 * @param message KindExpression
5014 * @param [options] Conversion options
5015 * @returns Plain object
5016 */
5017 public static toObject(message: google.datastore.v1.KindExpression, options?: $protobuf.IConversionOptions): { [k: string]: any };
5018
5019 /**
5020 * Converts this KindExpression to JSON.
5021 * @returns JSON object
5022 */
5023 public toJSON(): { [k: string]: any };
5024 }
5025
5026 /** Properties of a PropertyReference. */
5027 interface IPropertyReference {
5028
5029 /** PropertyReference name */
5030 name?: (string|null);
5031 }
5032
5033 /** Represents a PropertyReference. */
5034 class PropertyReference implements IPropertyReference {
5035
5036 /**
5037 * Constructs a new PropertyReference.
5038 * @param [properties] Properties to set
5039 */
5040 constructor(properties?: google.datastore.v1.IPropertyReference);
5041
5042 /** PropertyReference name. */
5043 public name: string;
5044
5045 /**
5046 * Creates a new PropertyReference instance using the specified properties.
5047 * @param [properties] Properties to set
5048 * @returns PropertyReference instance
5049 */
5050 public static create(properties?: google.datastore.v1.IPropertyReference): google.datastore.v1.PropertyReference;
5051
5052 /**
5053 * Encodes the specified PropertyReference message. Does not implicitly {@link google.datastore.v1.PropertyReference.verify|verify} messages.
5054 * @param message PropertyReference message or plain object to encode
5055 * @param [writer] Writer to encode to
5056 * @returns Writer
5057 */
5058 public static encode(message: google.datastore.v1.IPropertyReference, writer?: $protobuf.Writer): $protobuf.Writer;
5059
5060 /**
5061 * Encodes the specified PropertyReference message, length delimited. Does not implicitly {@link google.datastore.v1.PropertyReference.verify|verify} messages.
5062 * @param message PropertyReference message or plain object to encode
5063 * @param [writer] Writer to encode to
5064 * @returns Writer
5065 */
5066 public static encodeDelimited(message: google.datastore.v1.IPropertyReference, writer?: $protobuf.Writer): $protobuf.Writer;
5067
5068 /**
5069 * Decodes a PropertyReference message from the specified reader or buffer.
5070 * @param reader Reader or buffer to decode from
5071 * @param [length] Message length if known beforehand
5072 * @returns PropertyReference
5073 * @throws {Error} If the payload is not a reader or valid buffer
5074 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5075 */
5076 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.PropertyReference;
5077
5078 /**
5079 * Decodes a PropertyReference message from the specified reader or buffer, length delimited.
5080 * @param reader Reader or buffer to decode from
5081 * @returns PropertyReference
5082 * @throws {Error} If the payload is not a reader or valid buffer
5083 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5084 */
5085 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.PropertyReference;
5086
5087 /**
5088 * Verifies a PropertyReference message.
5089 * @param message Plain object to verify
5090 * @returns `null` if valid, otherwise the reason why it is not
5091 */
5092 public static verify(message: { [k: string]: any }): (string|null);
5093
5094 /**
5095 * Creates a PropertyReference message from a plain object. Also converts values to their respective internal types.
5096 * @param object Plain object
5097 * @returns PropertyReference
5098 */
5099 public static fromObject(object: { [k: string]: any }): google.datastore.v1.PropertyReference;
5100
5101 /**
5102 * Creates a plain object from a PropertyReference message. Also converts values to other types if specified.
5103 * @param message PropertyReference
5104 * @param [options] Conversion options
5105 * @returns Plain object
5106 */
5107 public static toObject(message: google.datastore.v1.PropertyReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
5108
5109 /**
5110 * Converts this PropertyReference to JSON.
5111 * @returns JSON object
5112 */
5113 public toJSON(): { [k: string]: any };
5114 }
5115
5116 /** Properties of a Projection. */
5117 interface IProjection {
5118
5119 /** Projection property */
5120 property?: (google.datastore.v1.IPropertyReference|null);
5121 }
5122
5123 /** Represents a Projection. */
5124 class Projection implements IProjection {
5125
5126 /**
5127 * Constructs a new Projection.
5128 * @param [properties] Properties to set
5129 */
5130 constructor(properties?: google.datastore.v1.IProjection);
5131
5132 /** Projection property. */
5133 public property?: (google.datastore.v1.IPropertyReference|null);
5134
5135 /**
5136 * Creates a new Projection instance using the specified properties.
5137 * @param [properties] Properties to set
5138 * @returns Projection instance
5139 */
5140 public static create(properties?: google.datastore.v1.IProjection): google.datastore.v1.Projection;
5141
5142 /**
5143 * Encodes the specified Projection message. Does not implicitly {@link google.datastore.v1.Projection.verify|verify} messages.
5144 * @param message Projection message or plain object to encode
5145 * @param [writer] Writer to encode to
5146 * @returns Writer
5147 */
5148 public static encode(message: google.datastore.v1.IProjection, writer?: $protobuf.Writer): $protobuf.Writer;
5149
5150 /**
5151 * Encodes the specified Projection message, length delimited. Does not implicitly {@link google.datastore.v1.Projection.verify|verify} messages.
5152 * @param message Projection message or plain object to encode
5153 * @param [writer] Writer to encode to
5154 * @returns Writer
5155 */
5156 public static encodeDelimited(message: google.datastore.v1.IProjection, writer?: $protobuf.Writer): $protobuf.Writer;
5157
5158 /**
5159 * Decodes a Projection message from the specified reader or buffer.
5160 * @param reader Reader or buffer to decode from
5161 * @param [length] Message length if known beforehand
5162 * @returns Projection
5163 * @throws {Error} If the payload is not a reader or valid buffer
5164 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5165 */
5166 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.Projection;
5167
5168 /**
5169 * Decodes a Projection message from the specified reader or buffer, length delimited.
5170 * @param reader Reader or buffer to decode from
5171 * @returns Projection
5172 * @throws {Error} If the payload is not a reader or valid buffer
5173 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5174 */
5175 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.Projection;
5176
5177 /**
5178 * Verifies a Projection message.
5179 * @param message Plain object to verify
5180 * @returns `null` if valid, otherwise the reason why it is not
5181 */
5182 public static verify(message: { [k: string]: any }): (string|null);
5183
5184 /**
5185 * Creates a Projection message from a plain object. Also converts values to their respective internal types.
5186 * @param object Plain object
5187 * @returns Projection
5188 */
5189 public static fromObject(object: { [k: string]: any }): google.datastore.v1.Projection;
5190
5191 /**
5192 * Creates a plain object from a Projection message. Also converts values to other types if specified.
5193 * @param message Projection
5194 * @param [options] Conversion options
5195 * @returns Plain object
5196 */
5197 public static toObject(message: google.datastore.v1.Projection, options?: $protobuf.IConversionOptions): { [k: string]: any };
5198
5199 /**
5200 * Converts this Projection to JSON.
5201 * @returns JSON object
5202 */
5203 public toJSON(): { [k: string]: any };
5204 }
5205
5206 /** Properties of a PropertyOrder. */
5207 interface IPropertyOrder {
5208
5209 /** PropertyOrder property */
5210 property?: (google.datastore.v1.IPropertyReference|null);
5211
5212 /** PropertyOrder direction */
5213 direction?: (google.datastore.v1.PropertyOrder.Direction|keyof typeof google.datastore.v1.PropertyOrder.Direction|null);
5214 }
5215
5216 /** Represents a PropertyOrder. */
5217 class PropertyOrder implements IPropertyOrder {
5218
5219 /**
5220 * Constructs a new PropertyOrder.
5221 * @param [properties] Properties to set
5222 */
5223 constructor(properties?: google.datastore.v1.IPropertyOrder);
5224
5225 /** PropertyOrder property. */
5226 public property?: (google.datastore.v1.IPropertyReference|null);
5227
5228 /** PropertyOrder direction. */
5229 public direction: (google.datastore.v1.PropertyOrder.Direction|keyof typeof google.datastore.v1.PropertyOrder.Direction);
5230
5231 /**
5232 * Creates a new PropertyOrder instance using the specified properties.
5233 * @param [properties] Properties to set
5234 * @returns PropertyOrder instance
5235 */
5236 public static create(properties?: google.datastore.v1.IPropertyOrder): google.datastore.v1.PropertyOrder;
5237
5238 /**
5239 * Encodes the specified PropertyOrder message. Does not implicitly {@link google.datastore.v1.PropertyOrder.verify|verify} messages.
5240 * @param message PropertyOrder message or plain object to encode
5241 * @param [writer] Writer to encode to
5242 * @returns Writer
5243 */
5244 public static encode(message: google.datastore.v1.IPropertyOrder, writer?: $protobuf.Writer): $protobuf.Writer;
5245
5246 /**
5247 * Encodes the specified PropertyOrder message, length delimited. Does not implicitly {@link google.datastore.v1.PropertyOrder.verify|verify} messages.
5248 * @param message PropertyOrder message or plain object to encode
5249 * @param [writer] Writer to encode to
5250 * @returns Writer
5251 */
5252 public static encodeDelimited(message: google.datastore.v1.IPropertyOrder, writer?: $protobuf.Writer): $protobuf.Writer;
5253
5254 /**
5255 * Decodes a PropertyOrder message from the specified reader or buffer.
5256 * @param reader Reader or buffer to decode from
5257 * @param [length] Message length if known beforehand
5258 * @returns PropertyOrder
5259 * @throws {Error} If the payload is not a reader or valid buffer
5260 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5261 */
5262 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.PropertyOrder;
5263
5264 /**
5265 * Decodes a PropertyOrder message from the specified reader or buffer, length delimited.
5266 * @param reader Reader or buffer to decode from
5267 * @returns PropertyOrder
5268 * @throws {Error} If the payload is not a reader or valid buffer
5269 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5270 */
5271 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.PropertyOrder;
5272
5273 /**
5274 * Verifies a PropertyOrder message.
5275 * @param message Plain object to verify
5276 * @returns `null` if valid, otherwise the reason why it is not
5277 */
5278 public static verify(message: { [k: string]: any }): (string|null);
5279
5280 /**
5281 * Creates a PropertyOrder message from a plain object. Also converts values to their respective internal types.
5282 * @param object Plain object
5283 * @returns PropertyOrder
5284 */
5285 public static fromObject(object: { [k: string]: any }): google.datastore.v1.PropertyOrder;
5286
5287 /**
5288 * Creates a plain object from a PropertyOrder message. Also converts values to other types if specified.
5289 * @param message PropertyOrder
5290 * @param [options] Conversion options
5291 * @returns Plain object
5292 */
5293 public static toObject(message: google.datastore.v1.PropertyOrder, options?: $protobuf.IConversionOptions): { [k: string]: any };
5294
5295 /**
5296 * Converts this PropertyOrder to JSON.
5297 * @returns JSON object
5298 */
5299 public toJSON(): { [k: string]: any };
5300 }
5301
5302 namespace PropertyOrder {
5303
5304 /** Direction enum. */
5305 enum Direction {
5306 DIRECTION_UNSPECIFIED = 0,
5307 ASCENDING = 1,
5308 DESCENDING = 2
5309 }
5310 }
5311
5312 /** Properties of a Filter. */
5313 interface IFilter {
5314
5315 /** Filter compositeFilter */
5316 compositeFilter?: (google.datastore.v1.ICompositeFilter|null);
5317
5318 /** Filter propertyFilter */
5319 propertyFilter?: (google.datastore.v1.IPropertyFilter|null);
5320 }
5321
5322 /** Represents a Filter. */
5323 class Filter implements IFilter {
5324
5325 /**
5326 * Constructs a new Filter.
5327 * @param [properties] Properties to set
5328 */
5329 constructor(properties?: google.datastore.v1.IFilter);
5330
5331 /** Filter compositeFilter. */
5332 public compositeFilter?: (google.datastore.v1.ICompositeFilter|null);
5333
5334 /** Filter propertyFilter. */
5335 public propertyFilter?: (google.datastore.v1.IPropertyFilter|null);
5336
5337 /** Filter filterType. */
5338 public filterType?: ("compositeFilter"|"propertyFilter");
5339
5340 /**
5341 * Creates a new Filter instance using the specified properties.
5342 * @param [properties] Properties to set
5343 * @returns Filter instance
5344 */
5345 public static create(properties?: google.datastore.v1.IFilter): google.datastore.v1.Filter;
5346
5347 /**
5348 * Encodes the specified Filter message. Does not implicitly {@link google.datastore.v1.Filter.verify|verify} messages.
5349 * @param message Filter message or plain object to encode
5350 * @param [writer] Writer to encode to
5351 * @returns Writer
5352 */
5353 public static encode(message: google.datastore.v1.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
5354
5355 /**
5356 * Encodes the specified Filter message, length delimited. Does not implicitly {@link google.datastore.v1.Filter.verify|verify} messages.
5357 * @param message Filter message or plain object to encode
5358 * @param [writer] Writer to encode to
5359 * @returns Writer
5360 */
5361 public static encodeDelimited(message: google.datastore.v1.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
5362
5363 /**
5364 * Decodes a Filter message from the specified reader or buffer.
5365 * @param reader Reader or buffer to decode from
5366 * @param [length] Message length if known beforehand
5367 * @returns Filter
5368 * @throws {Error} If the payload is not a reader or valid buffer
5369 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5370 */
5371 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.Filter;
5372
5373 /**
5374 * Decodes a Filter message from the specified reader or buffer, length delimited.
5375 * @param reader Reader or buffer to decode from
5376 * @returns Filter
5377 * @throws {Error} If the payload is not a reader or valid buffer
5378 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5379 */
5380 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.Filter;
5381
5382 /**
5383 * Verifies a Filter message.
5384 * @param message Plain object to verify
5385 * @returns `null` if valid, otherwise the reason why it is not
5386 */
5387 public static verify(message: { [k: string]: any }): (string|null);
5388
5389 /**
5390 * Creates a Filter message from a plain object. Also converts values to their respective internal types.
5391 * @param object Plain object
5392 * @returns Filter
5393 */
5394 public static fromObject(object: { [k: string]: any }): google.datastore.v1.Filter;
5395
5396 /**
5397 * Creates a plain object from a Filter message. Also converts values to other types if specified.
5398 * @param message Filter
5399 * @param [options] Conversion options
5400 * @returns Plain object
5401 */
5402 public static toObject(message: google.datastore.v1.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any };
5403
5404 /**
5405 * Converts this Filter to JSON.
5406 * @returns JSON object
5407 */
5408 public toJSON(): { [k: string]: any };
5409 }
5410
5411 /** Properties of a CompositeFilter. */
5412 interface ICompositeFilter {
5413
5414 /** CompositeFilter op */
5415 op?: (google.datastore.v1.CompositeFilter.Operator|keyof typeof google.datastore.v1.CompositeFilter.Operator|null);
5416
5417 /** CompositeFilter filters */
5418 filters?: (google.datastore.v1.IFilter[]|null);
5419 }
5420
5421 /** Represents a CompositeFilter. */
5422 class CompositeFilter implements ICompositeFilter {
5423
5424 /**
5425 * Constructs a new CompositeFilter.
5426 * @param [properties] Properties to set
5427 */
5428 constructor(properties?: google.datastore.v1.ICompositeFilter);
5429
5430 /** CompositeFilter op. */
5431 public op: (google.datastore.v1.CompositeFilter.Operator|keyof typeof google.datastore.v1.CompositeFilter.Operator);
5432
5433 /** CompositeFilter filters. */
5434 public filters: google.datastore.v1.IFilter[];
5435
5436 /**
5437 * Creates a new CompositeFilter instance using the specified properties.
5438 * @param [properties] Properties to set
5439 * @returns CompositeFilter instance
5440 */
5441 public static create(properties?: google.datastore.v1.ICompositeFilter): google.datastore.v1.CompositeFilter;
5442
5443 /**
5444 * Encodes the specified CompositeFilter message. Does not implicitly {@link google.datastore.v1.CompositeFilter.verify|verify} messages.
5445 * @param message CompositeFilter message or plain object to encode
5446 * @param [writer] Writer to encode to
5447 * @returns Writer
5448 */
5449 public static encode(message: google.datastore.v1.ICompositeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
5450
5451 /**
5452 * Encodes the specified CompositeFilter message, length delimited. Does not implicitly {@link google.datastore.v1.CompositeFilter.verify|verify} messages.
5453 * @param message CompositeFilter message or plain object to encode
5454 * @param [writer] Writer to encode to
5455 * @returns Writer
5456 */
5457 public static encodeDelimited(message: google.datastore.v1.ICompositeFilter, writer?: $protobuf.Writer): $protobuf.Writer;
5458
5459 /**
5460 * Decodes a CompositeFilter message from the specified reader or buffer.
5461 * @param reader Reader or buffer to decode from
5462 * @param [length] Message length if known beforehand
5463 * @returns CompositeFilter
5464 * @throws {Error} If the payload is not a reader or valid buffer
5465 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5466 */
5467 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.CompositeFilter;
5468
5469 /**
5470 * Decodes a CompositeFilter message from the specified reader or buffer, length delimited.
5471 * @param reader Reader or buffer to decode from
5472 * @returns CompositeFilter
5473 * @throws {Error} If the payload is not a reader or valid buffer
5474 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5475 */
5476 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.CompositeFilter;
5477
5478 /**
5479 * Verifies a CompositeFilter message.
5480 * @param message Plain object to verify
5481 * @returns `null` if valid, otherwise the reason why it is not
5482 */
5483 public static verify(message: { [k: string]: any }): (string|null);
5484
5485 /**
5486 * Creates a CompositeFilter message from a plain object. Also converts values to their respective internal types.
5487 * @param object Plain object
5488 * @returns CompositeFilter
5489 */
5490 public static fromObject(object: { [k: string]: any }): google.datastore.v1.CompositeFilter;
5491
5492 /**
5493 * Creates a plain object from a CompositeFilter message. Also converts values to other types if specified.
5494 * @param message CompositeFilter
5495 * @param [options] Conversion options
5496 * @returns Plain object
5497 */
5498 public static toObject(message: google.datastore.v1.CompositeFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
5499
5500 /**
5501 * Converts this CompositeFilter to JSON.
5502 * @returns JSON object
5503 */
5504 public toJSON(): { [k: string]: any };
5505 }
5506
5507 namespace CompositeFilter {
5508
5509 /** Operator enum. */
5510 enum Operator {
5511 OPERATOR_UNSPECIFIED = 0,
5512 AND = 1
5513 }
5514 }
5515
5516 /** Properties of a PropertyFilter. */
5517 interface IPropertyFilter {
5518
5519 /** PropertyFilter property */
5520 property?: (google.datastore.v1.IPropertyReference|null);
5521
5522 /** PropertyFilter op */
5523 op?: (google.datastore.v1.PropertyFilter.Operator|keyof typeof google.datastore.v1.PropertyFilter.Operator|null);
5524
5525 /** PropertyFilter value */
5526 value?: (google.datastore.v1.IValue|null);
5527 }
5528
5529 /** Represents a PropertyFilter. */
5530 class PropertyFilter implements IPropertyFilter {
5531
5532 /**
5533 * Constructs a new PropertyFilter.
5534 * @param [properties] Properties to set
5535 */
5536 constructor(properties?: google.datastore.v1.IPropertyFilter);
5537
5538 /** PropertyFilter property. */
5539 public property?: (google.datastore.v1.IPropertyReference|null);
5540
5541 /** PropertyFilter op. */
5542 public op: (google.datastore.v1.PropertyFilter.Operator|keyof typeof google.datastore.v1.PropertyFilter.Operator);
5543
5544 /** PropertyFilter value. */
5545 public value?: (google.datastore.v1.IValue|null);
5546
5547 /**
5548 * Creates a new PropertyFilter instance using the specified properties.
5549 * @param [properties] Properties to set
5550 * @returns PropertyFilter instance
5551 */
5552 public static create(properties?: google.datastore.v1.IPropertyFilter): google.datastore.v1.PropertyFilter;
5553
5554 /**
5555 * Encodes the specified PropertyFilter message. Does not implicitly {@link google.datastore.v1.PropertyFilter.verify|verify} messages.
5556 * @param message PropertyFilter message or plain object to encode
5557 * @param [writer] Writer to encode to
5558 * @returns Writer
5559 */
5560 public static encode(message: google.datastore.v1.IPropertyFilter, writer?: $protobuf.Writer): $protobuf.Writer;
5561
5562 /**
5563 * Encodes the specified PropertyFilter message, length delimited. Does not implicitly {@link google.datastore.v1.PropertyFilter.verify|verify} messages.
5564 * @param message PropertyFilter message or plain object to encode
5565 * @param [writer] Writer to encode to
5566 * @returns Writer
5567 */
5568 public static encodeDelimited(message: google.datastore.v1.IPropertyFilter, writer?: $protobuf.Writer): $protobuf.Writer;
5569
5570 /**
5571 * Decodes a PropertyFilter message from the specified reader or buffer.
5572 * @param reader Reader or buffer to decode from
5573 * @param [length] Message length if known beforehand
5574 * @returns PropertyFilter
5575 * @throws {Error} If the payload is not a reader or valid buffer
5576 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5577 */
5578 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.PropertyFilter;
5579
5580 /**
5581 * Decodes a PropertyFilter message from the specified reader or buffer, length delimited.
5582 * @param reader Reader or buffer to decode from
5583 * @returns PropertyFilter
5584 * @throws {Error} If the payload is not a reader or valid buffer
5585 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5586 */
5587 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.PropertyFilter;
5588
5589 /**
5590 * Verifies a PropertyFilter message.
5591 * @param message Plain object to verify
5592 * @returns `null` if valid, otherwise the reason why it is not
5593 */
5594 public static verify(message: { [k: string]: any }): (string|null);
5595
5596 /**
5597 * Creates a PropertyFilter message from a plain object. Also converts values to their respective internal types.
5598 * @param object Plain object
5599 * @returns PropertyFilter
5600 */
5601 public static fromObject(object: { [k: string]: any }): google.datastore.v1.PropertyFilter;
5602
5603 /**
5604 * Creates a plain object from a PropertyFilter message. Also converts values to other types if specified.
5605 * @param message PropertyFilter
5606 * @param [options] Conversion options
5607 * @returns Plain object
5608 */
5609 public static toObject(message: google.datastore.v1.PropertyFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
5610
5611 /**
5612 * Converts this PropertyFilter to JSON.
5613 * @returns JSON object
5614 */
5615 public toJSON(): { [k: string]: any };
5616 }
5617
5618 namespace PropertyFilter {
5619
5620 /** Operator enum. */
5621 enum Operator {
5622 OPERATOR_UNSPECIFIED = 0,
5623 LESS_THAN = 1,
5624 LESS_THAN_OR_EQUAL = 2,
5625 GREATER_THAN = 3,
5626 GREATER_THAN_OR_EQUAL = 4,
5627 EQUAL = 5,
5628 HAS_ANCESTOR = 11
5629 }
5630 }
5631
5632 /** Properties of a GqlQuery. */
5633 interface IGqlQuery {
5634
5635 /** GqlQuery queryString */
5636 queryString?: (string|null);
5637
5638 /** GqlQuery allowLiterals */
5639 allowLiterals?: (boolean|null);
5640
5641 /** GqlQuery namedBindings */
5642 namedBindings?: ({ [k: string]: google.datastore.v1.IGqlQueryParameter }|null);
5643
5644 /** GqlQuery positionalBindings */
5645 positionalBindings?: (google.datastore.v1.IGqlQueryParameter[]|null);
5646 }
5647
5648 /** Represents a GqlQuery. */
5649 class GqlQuery implements IGqlQuery {
5650
5651 /**
5652 * Constructs a new GqlQuery.
5653 * @param [properties] Properties to set
5654 */
5655 constructor(properties?: google.datastore.v1.IGqlQuery);
5656
5657 /** GqlQuery queryString. */
5658 public queryString: string;
5659
5660 /** GqlQuery allowLiterals. */
5661 public allowLiterals: boolean;
5662
5663 /** GqlQuery namedBindings. */
5664 public namedBindings: { [k: string]: google.datastore.v1.IGqlQueryParameter };
5665
5666 /** GqlQuery positionalBindings. */
5667 public positionalBindings: google.datastore.v1.IGqlQueryParameter[];
5668
5669 /**
5670 * Creates a new GqlQuery instance using the specified properties.
5671 * @param [properties] Properties to set
5672 * @returns GqlQuery instance
5673 */
5674 public static create(properties?: google.datastore.v1.IGqlQuery): google.datastore.v1.GqlQuery;
5675
5676 /**
5677 * Encodes the specified GqlQuery message. Does not implicitly {@link google.datastore.v1.GqlQuery.verify|verify} messages.
5678 * @param message GqlQuery message or plain object to encode
5679 * @param [writer] Writer to encode to
5680 * @returns Writer
5681 */
5682 public static encode(message: google.datastore.v1.IGqlQuery, writer?: $protobuf.Writer): $protobuf.Writer;
5683
5684 /**
5685 * Encodes the specified GqlQuery message, length delimited. Does not implicitly {@link google.datastore.v1.GqlQuery.verify|verify} messages.
5686 * @param message GqlQuery message or plain object to encode
5687 * @param [writer] Writer to encode to
5688 * @returns Writer
5689 */
5690 public static encodeDelimited(message: google.datastore.v1.IGqlQuery, writer?: $protobuf.Writer): $protobuf.Writer;
5691
5692 /**
5693 * Decodes a GqlQuery message from the specified reader or buffer.
5694 * @param reader Reader or buffer to decode from
5695 * @param [length] Message length if known beforehand
5696 * @returns GqlQuery
5697 * @throws {Error} If the payload is not a reader or valid buffer
5698 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5699 */
5700 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.GqlQuery;
5701
5702 /**
5703 * Decodes a GqlQuery message from the specified reader or buffer, length delimited.
5704 * @param reader Reader or buffer to decode from
5705 * @returns GqlQuery
5706 * @throws {Error} If the payload is not a reader or valid buffer
5707 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5708 */
5709 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.GqlQuery;
5710
5711 /**
5712 * Verifies a GqlQuery message.
5713 * @param message Plain object to verify
5714 * @returns `null` if valid, otherwise the reason why it is not
5715 */
5716 public static verify(message: { [k: string]: any }): (string|null);
5717
5718 /**
5719 * Creates a GqlQuery message from a plain object. Also converts values to their respective internal types.
5720 * @param object Plain object
5721 * @returns GqlQuery
5722 */
5723 public static fromObject(object: { [k: string]: any }): google.datastore.v1.GqlQuery;
5724
5725 /**
5726 * Creates a plain object from a GqlQuery message. Also converts values to other types if specified.
5727 * @param message GqlQuery
5728 * @param [options] Conversion options
5729 * @returns Plain object
5730 */
5731 public static toObject(message: google.datastore.v1.GqlQuery, options?: $protobuf.IConversionOptions): { [k: string]: any };
5732
5733 /**
5734 * Converts this GqlQuery to JSON.
5735 * @returns JSON object
5736 */
5737 public toJSON(): { [k: string]: any };
5738 }
5739
5740 /** Properties of a GqlQueryParameter. */
5741 interface IGqlQueryParameter {
5742
5743 /** GqlQueryParameter value */
5744 value?: (google.datastore.v1.IValue|null);
5745
5746 /** GqlQueryParameter cursor */
5747 cursor?: (Uint8Array|string|null);
5748 }
5749
5750 /** Represents a GqlQueryParameter. */
5751 class GqlQueryParameter implements IGqlQueryParameter {
5752
5753 /**
5754 * Constructs a new GqlQueryParameter.
5755 * @param [properties] Properties to set
5756 */
5757 constructor(properties?: google.datastore.v1.IGqlQueryParameter);
5758
5759 /** GqlQueryParameter value. */
5760 public value?: (google.datastore.v1.IValue|null);
5761
5762 /** GqlQueryParameter cursor. */
5763 public cursor: (Uint8Array|string);
5764
5765 /** GqlQueryParameter parameterType. */
5766 public parameterType?: ("value"|"cursor");
5767
5768 /**
5769 * Creates a new GqlQueryParameter instance using the specified properties.
5770 * @param [properties] Properties to set
5771 * @returns GqlQueryParameter instance
5772 */
5773 public static create(properties?: google.datastore.v1.IGqlQueryParameter): google.datastore.v1.GqlQueryParameter;
5774
5775 /**
5776 * Encodes the specified GqlQueryParameter message. Does not implicitly {@link google.datastore.v1.GqlQueryParameter.verify|verify} messages.
5777 * @param message GqlQueryParameter message or plain object to encode
5778 * @param [writer] Writer to encode to
5779 * @returns Writer
5780 */
5781 public static encode(message: google.datastore.v1.IGqlQueryParameter, writer?: $protobuf.Writer): $protobuf.Writer;
5782
5783 /**
5784 * Encodes the specified GqlQueryParameter message, length delimited. Does not implicitly {@link google.datastore.v1.GqlQueryParameter.verify|verify} messages.
5785 * @param message GqlQueryParameter message or plain object to encode
5786 * @param [writer] Writer to encode to
5787 * @returns Writer
5788 */
5789 public static encodeDelimited(message: google.datastore.v1.IGqlQueryParameter, writer?: $protobuf.Writer): $protobuf.Writer;
5790
5791 /**
5792 * Decodes a GqlQueryParameter message from the specified reader or buffer.
5793 * @param reader Reader or buffer to decode from
5794 * @param [length] Message length if known beforehand
5795 * @returns GqlQueryParameter
5796 * @throws {Error} If the payload is not a reader or valid buffer
5797 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5798 */
5799 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.GqlQueryParameter;
5800
5801 /**
5802 * Decodes a GqlQueryParameter message from the specified reader or buffer, length delimited.
5803 * @param reader Reader or buffer to decode from
5804 * @returns GqlQueryParameter
5805 * @throws {Error} If the payload is not a reader or valid buffer
5806 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5807 */
5808 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.GqlQueryParameter;
5809
5810 /**
5811 * Verifies a GqlQueryParameter message.
5812 * @param message Plain object to verify
5813 * @returns `null` if valid, otherwise the reason why it is not
5814 */
5815 public static verify(message: { [k: string]: any }): (string|null);
5816
5817 /**
5818 * Creates a GqlQueryParameter message from a plain object. Also converts values to their respective internal types.
5819 * @param object Plain object
5820 * @returns GqlQueryParameter
5821 */
5822 public static fromObject(object: { [k: string]: any }): google.datastore.v1.GqlQueryParameter;
5823
5824 /**
5825 * Creates a plain object from a GqlQueryParameter message. Also converts values to other types if specified.
5826 * @param message GqlQueryParameter
5827 * @param [options] Conversion options
5828 * @returns Plain object
5829 */
5830 public static toObject(message: google.datastore.v1.GqlQueryParameter, options?: $protobuf.IConversionOptions): { [k: string]: any };
5831
5832 /**
5833 * Converts this GqlQueryParameter to JSON.
5834 * @returns JSON object
5835 */
5836 public toJSON(): { [k: string]: any };
5837 }
5838
5839 /** Properties of a QueryResultBatch. */
5840 interface IQueryResultBatch {
5841
5842 /** QueryResultBatch skippedResults */
5843 skippedResults?: (number|null);
5844
5845 /** QueryResultBatch skippedCursor */
5846 skippedCursor?: (Uint8Array|string|null);
5847
5848 /** QueryResultBatch entityResultType */
5849 entityResultType?: (google.datastore.v1.EntityResult.ResultType|keyof typeof google.datastore.v1.EntityResult.ResultType|null);
5850
5851 /** QueryResultBatch entityResults */
5852 entityResults?: (google.datastore.v1.IEntityResult[]|null);
5853
5854 /** QueryResultBatch endCursor */
5855 endCursor?: (Uint8Array|string|null);
5856
5857 /** QueryResultBatch moreResults */
5858 moreResults?: (google.datastore.v1.QueryResultBatch.MoreResultsType|keyof typeof google.datastore.v1.QueryResultBatch.MoreResultsType|null);
5859
5860 /** QueryResultBatch snapshotVersion */
5861 snapshotVersion?: (number|Long|string|null);
5862 }
5863
5864 /** Represents a QueryResultBatch. */
5865 class QueryResultBatch implements IQueryResultBatch {
5866
5867 /**
5868 * Constructs a new QueryResultBatch.
5869 * @param [properties] Properties to set
5870 */
5871 constructor(properties?: google.datastore.v1.IQueryResultBatch);
5872
5873 /** QueryResultBatch skippedResults. */
5874 public skippedResults: number;
5875
5876 /** QueryResultBatch skippedCursor. */
5877 public skippedCursor: (Uint8Array|string);
5878
5879 /** QueryResultBatch entityResultType. */
5880 public entityResultType: (google.datastore.v1.EntityResult.ResultType|keyof typeof google.datastore.v1.EntityResult.ResultType);
5881
5882 /** QueryResultBatch entityResults. */
5883 public entityResults: google.datastore.v1.IEntityResult[];
5884
5885 /** QueryResultBatch endCursor. */
5886 public endCursor: (Uint8Array|string);
5887
5888 /** QueryResultBatch moreResults. */
5889 public moreResults: (google.datastore.v1.QueryResultBatch.MoreResultsType|keyof typeof google.datastore.v1.QueryResultBatch.MoreResultsType);
5890
5891 /** QueryResultBatch snapshotVersion. */
5892 public snapshotVersion: (number|Long|string);
5893
5894 /**
5895 * Creates a new QueryResultBatch instance using the specified properties.
5896 * @param [properties] Properties to set
5897 * @returns QueryResultBatch instance
5898 */
5899 public static create(properties?: google.datastore.v1.IQueryResultBatch): google.datastore.v1.QueryResultBatch;
5900
5901 /**
5902 * Encodes the specified QueryResultBatch message. Does not implicitly {@link google.datastore.v1.QueryResultBatch.verify|verify} messages.
5903 * @param message QueryResultBatch message or plain object to encode
5904 * @param [writer] Writer to encode to
5905 * @returns Writer
5906 */
5907 public static encode(message: google.datastore.v1.IQueryResultBatch, writer?: $protobuf.Writer): $protobuf.Writer;
5908
5909 /**
5910 * Encodes the specified QueryResultBatch message, length delimited. Does not implicitly {@link google.datastore.v1.QueryResultBatch.verify|verify} messages.
5911 * @param message QueryResultBatch message or plain object to encode
5912 * @param [writer] Writer to encode to
5913 * @returns Writer
5914 */
5915 public static encodeDelimited(message: google.datastore.v1.IQueryResultBatch, writer?: $protobuf.Writer): $protobuf.Writer;
5916
5917 /**
5918 * Decodes a QueryResultBatch message from the specified reader or buffer.
5919 * @param reader Reader or buffer to decode from
5920 * @param [length] Message length if known beforehand
5921 * @returns QueryResultBatch
5922 * @throws {Error} If the payload is not a reader or valid buffer
5923 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5924 */
5925 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.datastore.v1.QueryResultBatch;
5926
5927 /**
5928 * Decodes a QueryResultBatch message from the specified reader or buffer, length delimited.
5929 * @param reader Reader or buffer to decode from
5930 * @returns QueryResultBatch
5931 * @throws {Error} If the payload is not a reader or valid buffer
5932 * @throws {$protobuf.util.ProtocolError} If required fields are missing
5933 */
5934 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.datastore.v1.QueryResultBatch;
5935
5936 /**
5937 * Verifies a QueryResultBatch message.
5938 * @param message Plain object to verify
5939 * @returns `null` if valid, otherwise the reason why it is not
5940 */
5941 public static verify(message: { [k: string]: any }): (string|null);
5942
5943 /**
5944 * Creates a QueryResultBatch message from a plain object. Also converts values to their respective internal types.
5945 * @param object Plain object
5946 * @returns QueryResultBatch
5947 */
5948 public static fromObject(object: { [k: string]: any }): google.datastore.v1.QueryResultBatch;
5949
5950 /**
5951 * Creates a plain object from a QueryResultBatch message. Also converts values to other types if specified.
5952 * @param message QueryResultBatch
5953 * @param [options] Conversion options
5954 * @returns Plain object
5955 */
5956 public static toObject(message: google.datastore.v1.QueryResultBatch, options?: $protobuf.IConversionOptions): { [k: string]: any };
5957
5958 /**
5959 * Converts this QueryResultBatch to JSON.
5960 * @returns JSON object
5961 */
5962 public toJSON(): { [k: string]: any };
5963 }
5964
5965 namespace QueryResultBatch {
5966
5967 /** MoreResultsType enum. */
5968 enum MoreResultsType {
5969 MORE_RESULTS_TYPE_UNSPECIFIED = 0,
5970 NOT_FINISHED = 1,
5971 MORE_RESULTS_AFTER_LIMIT = 2,
5972 MORE_RESULTS_AFTER_CURSOR = 4,
5973 NO_MORE_RESULTS = 3
5974 }
5975 }
5976 }
5977 }
5978
5979 /** Namespace api. */
5980 namespace api {
5981
5982 /** Properties of a Http. */
5983 interface IHttp {
5984
5985 /** Http rules */
5986 rules?: (google.api.IHttpRule[]|null);
5987
5988 /** Http fullyDecodeReservedExpansion */
5989 fullyDecodeReservedExpansion?: (boolean|null);
5990 }
5991
5992 /** Represents a Http. */
5993 class Http implements IHttp {
5994
5995 /**
5996 * Constructs a new Http.
5997 * @param [properties] Properties to set
5998 */
5999 constructor(properties?: google.api.IHttp);
6000
6001 /** Http rules. */
6002 public rules: google.api.IHttpRule[];
6003
6004 /** Http fullyDecodeReservedExpansion. */
6005 public fullyDecodeReservedExpansion: boolean;
6006
6007 /**
6008 * Creates a new Http instance using the specified properties.
6009 * @param [properties] Properties to set
6010 * @returns Http instance
6011 */
6012 public static create(properties?: google.api.IHttp): google.api.Http;
6013
6014 /**
6015 * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
6016 * @param message Http message or plain object to encode
6017 * @param [writer] Writer to encode to
6018 * @returns Writer
6019 */
6020 public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
6021
6022 /**
6023 * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
6024 * @param message Http message or plain object to encode
6025 * @param [writer] Writer to encode to
6026 * @returns Writer
6027 */
6028 public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
6029
6030 /**
6031 * Decodes a Http message from the specified reader or buffer.
6032 * @param reader Reader or buffer to decode from
6033 * @param [length] Message length if known beforehand
6034 * @returns Http
6035 * @throws {Error} If the payload is not a reader or valid buffer
6036 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6037 */
6038 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
6039
6040 /**
6041 * Decodes a Http message from the specified reader or buffer, length delimited.
6042 * @param reader Reader or buffer to decode from
6043 * @returns Http
6044 * @throws {Error} If the payload is not a reader or valid buffer
6045 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6046 */
6047 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
6048
6049 /**
6050 * Verifies a Http message.
6051 * @param message Plain object to verify
6052 * @returns `null` if valid, otherwise the reason why it is not
6053 */
6054 public static verify(message: { [k: string]: any }): (string|null);
6055
6056 /**
6057 * Creates a Http message from a plain object. Also converts values to their respective internal types.
6058 * @param object Plain object
6059 * @returns Http
6060 */
6061 public static fromObject(object: { [k: string]: any }): google.api.Http;
6062
6063 /**
6064 * Creates a plain object from a Http message. Also converts values to other types if specified.
6065 * @param message Http
6066 * @param [options] Conversion options
6067 * @returns Plain object
6068 */
6069 public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
6070
6071 /**
6072 * Converts this Http to JSON.
6073 * @returns JSON object
6074 */
6075 public toJSON(): { [k: string]: any };
6076 }
6077
6078 /** Properties of a HttpRule. */
6079 interface IHttpRule {
6080
6081 /** HttpRule selector */
6082 selector?: (string|null);
6083
6084 /** HttpRule get */
6085 get?: (string|null);
6086
6087 /** HttpRule put */
6088 put?: (string|null);
6089
6090 /** HttpRule post */
6091 post?: (string|null);
6092
6093 /** HttpRule delete */
6094 "delete"?: (string|null);
6095
6096 /** HttpRule patch */
6097 patch?: (string|null);
6098
6099 /** HttpRule custom */
6100 custom?: (google.api.ICustomHttpPattern|null);
6101
6102 /** HttpRule body */
6103 body?: (string|null);
6104
6105 /** HttpRule responseBody */
6106 responseBody?: (string|null);
6107
6108 /** HttpRule additionalBindings */
6109 additionalBindings?: (google.api.IHttpRule[]|null);
6110 }
6111
6112 /** Represents a HttpRule. */
6113 class HttpRule implements IHttpRule {
6114
6115 /**
6116 * Constructs a new HttpRule.
6117 * @param [properties] Properties to set
6118 */
6119 constructor(properties?: google.api.IHttpRule);
6120
6121 /** HttpRule selector. */
6122 public selector: string;
6123
6124 /** HttpRule get. */
6125 public get: string;
6126
6127 /** HttpRule put. */
6128 public put: string;
6129
6130 /** HttpRule post. */
6131 public post: string;
6132
6133 /** HttpRule delete. */
6134 public delete: string;
6135
6136 /** HttpRule patch. */
6137 public patch: string;
6138
6139 /** HttpRule custom. */
6140 public custom?: (google.api.ICustomHttpPattern|null);
6141
6142 /** HttpRule body. */
6143 public body: string;
6144
6145 /** HttpRule responseBody. */
6146 public responseBody: string;
6147
6148 /** HttpRule additionalBindings. */
6149 public additionalBindings: google.api.IHttpRule[];
6150
6151 /** HttpRule pattern. */
6152 public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
6153
6154 /**
6155 * Creates a new HttpRule instance using the specified properties.
6156 * @param [properties] Properties to set
6157 * @returns HttpRule instance
6158 */
6159 public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
6160
6161 /**
6162 * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
6163 * @param message HttpRule message or plain object to encode
6164 * @param [writer] Writer to encode to
6165 * @returns Writer
6166 */
6167 public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
6168
6169 /**
6170 * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
6171 * @param message HttpRule message or plain object to encode
6172 * @param [writer] Writer to encode to
6173 * @returns Writer
6174 */
6175 public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
6176
6177 /**
6178 * Decodes a HttpRule message from the specified reader or buffer.
6179 * @param reader Reader or buffer to decode from
6180 * @param [length] Message length if known beforehand
6181 * @returns HttpRule
6182 * @throws {Error} If the payload is not a reader or valid buffer
6183 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6184 */
6185 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
6186
6187 /**
6188 * Decodes a HttpRule message from the specified reader or buffer, length delimited.
6189 * @param reader Reader or buffer to decode from
6190 * @returns HttpRule
6191 * @throws {Error} If the payload is not a reader or valid buffer
6192 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6193 */
6194 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
6195
6196 /**
6197 * Verifies a HttpRule message.
6198 * @param message Plain object to verify
6199 * @returns `null` if valid, otherwise the reason why it is not
6200 */
6201 public static verify(message: { [k: string]: any }): (string|null);
6202
6203 /**
6204 * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
6205 * @param object Plain object
6206 * @returns HttpRule
6207 */
6208 public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
6209
6210 /**
6211 * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
6212 * @param message HttpRule
6213 * @param [options] Conversion options
6214 * @returns Plain object
6215 */
6216 public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
6217
6218 /**
6219 * Converts this HttpRule to JSON.
6220 * @returns JSON object
6221 */
6222 public toJSON(): { [k: string]: any };
6223 }
6224
6225 /** Properties of a CustomHttpPattern. */
6226 interface ICustomHttpPattern {
6227
6228 /** CustomHttpPattern kind */
6229 kind?: (string|null);
6230
6231 /** CustomHttpPattern path */
6232 path?: (string|null);
6233 }
6234
6235 /** Represents a CustomHttpPattern. */
6236 class CustomHttpPattern implements ICustomHttpPattern {
6237
6238 /**
6239 * Constructs a new CustomHttpPattern.
6240 * @param [properties] Properties to set
6241 */
6242 constructor(properties?: google.api.ICustomHttpPattern);
6243
6244 /** CustomHttpPattern kind. */
6245 public kind: string;
6246
6247 /** CustomHttpPattern path. */
6248 public path: string;
6249
6250 /**
6251 * Creates a new CustomHttpPattern instance using the specified properties.
6252 * @param [properties] Properties to set
6253 * @returns CustomHttpPattern instance
6254 */
6255 public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
6256
6257 /**
6258 * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
6259 * @param message CustomHttpPattern message or plain object to encode
6260 * @param [writer] Writer to encode to
6261 * @returns Writer
6262 */
6263 public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
6264
6265 /**
6266 * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
6267 * @param message CustomHttpPattern message or plain object to encode
6268 * @param [writer] Writer to encode to
6269 * @returns Writer
6270 */
6271 public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
6272
6273 /**
6274 * Decodes a CustomHttpPattern message from the specified reader or buffer.
6275 * @param reader Reader or buffer to decode from
6276 * @param [length] Message length if known beforehand
6277 * @returns CustomHttpPattern
6278 * @throws {Error} If the payload is not a reader or valid buffer
6279 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6280 */
6281 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
6282
6283 /**
6284 * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
6285 * @param reader Reader or buffer to decode from
6286 * @returns CustomHttpPattern
6287 * @throws {Error} If the payload is not a reader or valid buffer
6288 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6289 */
6290 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
6291
6292 /**
6293 * Verifies a CustomHttpPattern message.
6294 * @param message Plain object to verify
6295 * @returns `null` if valid, otherwise the reason why it is not
6296 */
6297 public static verify(message: { [k: string]: any }): (string|null);
6298
6299 /**
6300 * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
6301 * @param object Plain object
6302 * @returns CustomHttpPattern
6303 */
6304 public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
6305
6306 /**
6307 * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
6308 * @param message CustomHttpPattern
6309 * @param [options] Conversion options
6310 * @returns Plain object
6311 */
6312 public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
6313
6314 /**
6315 * Converts this CustomHttpPattern to JSON.
6316 * @returns JSON object
6317 */
6318 public toJSON(): { [k: string]: any };
6319 }
6320
6321 /** FieldBehavior enum. */
6322 enum FieldBehavior {
6323 FIELD_BEHAVIOR_UNSPECIFIED = 0,
6324 OPTIONAL = 1,
6325 REQUIRED = 2,
6326 OUTPUT_ONLY = 3,
6327 INPUT_ONLY = 4,
6328 IMMUTABLE = 5,
6329 UNORDERED_LIST = 6
6330 }
6331 }
6332
6333 /** Namespace protobuf. */
6334 namespace protobuf {
6335
6336 /** Properties of a FileDescriptorSet. */
6337 interface IFileDescriptorSet {
6338
6339 /** FileDescriptorSet file */
6340 file?: (google.protobuf.IFileDescriptorProto[]|null);
6341 }
6342
6343 /** Represents a FileDescriptorSet. */
6344 class FileDescriptorSet implements IFileDescriptorSet {
6345
6346 /**
6347 * Constructs a new FileDescriptorSet.
6348 * @param [properties] Properties to set
6349 */
6350 constructor(properties?: google.protobuf.IFileDescriptorSet);
6351
6352 /** FileDescriptorSet file. */
6353 public file: google.protobuf.IFileDescriptorProto[];
6354
6355 /**
6356 * Creates a new FileDescriptorSet instance using the specified properties.
6357 * @param [properties] Properties to set
6358 * @returns FileDescriptorSet instance
6359 */
6360 public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
6361
6362 /**
6363 * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6364 * @param message FileDescriptorSet message or plain object to encode
6365 * @param [writer] Writer to encode to
6366 * @returns Writer
6367 */
6368 public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6369
6370 /**
6371 * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
6372 * @param message FileDescriptorSet message or plain object to encode
6373 * @param [writer] Writer to encode to
6374 * @returns Writer
6375 */
6376 public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
6377
6378 /**
6379 * Decodes a FileDescriptorSet message from the specified reader or buffer.
6380 * @param reader Reader or buffer to decode from
6381 * @param [length] Message length if known beforehand
6382 * @returns FileDescriptorSet
6383 * @throws {Error} If the payload is not a reader or valid buffer
6384 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6385 */
6386 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
6387
6388 /**
6389 * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
6390 * @param reader Reader or buffer to decode from
6391 * @returns FileDescriptorSet
6392 * @throws {Error} If the payload is not a reader or valid buffer
6393 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6394 */
6395 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
6396
6397 /**
6398 * Verifies a FileDescriptorSet message.
6399 * @param message Plain object to verify
6400 * @returns `null` if valid, otherwise the reason why it is not
6401 */
6402 public static verify(message: { [k: string]: any }): (string|null);
6403
6404 /**
6405 * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
6406 * @param object Plain object
6407 * @returns FileDescriptorSet
6408 */
6409 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
6410
6411 /**
6412 * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
6413 * @param message FileDescriptorSet
6414 * @param [options] Conversion options
6415 * @returns Plain object
6416 */
6417 public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
6418
6419 /**
6420 * Converts this FileDescriptorSet to JSON.
6421 * @returns JSON object
6422 */
6423 public toJSON(): { [k: string]: any };
6424 }
6425
6426 /** Properties of a FileDescriptorProto. */
6427 interface IFileDescriptorProto {
6428
6429 /** FileDescriptorProto name */
6430 name?: (string|null);
6431
6432 /** FileDescriptorProto package */
6433 "package"?: (string|null);
6434
6435 /** FileDescriptorProto dependency */
6436 dependency?: (string[]|null);
6437
6438 /** FileDescriptorProto publicDependency */
6439 publicDependency?: (number[]|null);
6440
6441 /** FileDescriptorProto weakDependency */
6442 weakDependency?: (number[]|null);
6443
6444 /** FileDescriptorProto messageType */
6445 messageType?: (google.protobuf.IDescriptorProto[]|null);
6446
6447 /** FileDescriptorProto enumType */
6448 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
6449
6450 /** FileDescriptorProto service */
6451 service?: (google.protobuf.IServiceDescriptorProto[]|null);
6452
6453 /** FileDescriptorProto extension */
6454 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
6455
6456 /** FileDescriptorProto options */
6457 options?: (google.protobuf.IFileOptions|null);
6458
6459 /** FileDescriptorProto sourceCodeInfo */
6460 sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
6461
6462 /** FileDescriptorProto syntax */
6463 syntax?: (string|null);
6464 }
6465
6466 /** Represents a FileDescriptorProto. */
6467 class FileDescriptorProto implements IFileDescriptorProto {
6468
6469 /**
6470 * Constructs a new FileDescriptorProto.
6471 * @param [properties] Properties to set
6472 */
6473 constructor(properties?: google.protobuf.IFileDescriptorProto);
6474
6475 /** FileDescriptorProto name. */
6476 public name: string;
6477
6478 /** FileDescriptorProto package. */
6479 public package: string;
6480
6481 /** FileDescriptorProto dependency. */
6482 public dependency: string[];
6483
6484 /** FileDescriptorProto publicDependency. */
6485 public publicDependency: number[];
6486
6487 /** FileDescriptorProto weakDependency. */
6488 public weakDependency: number[];
6489
6490 /** FileDescriptorProto messageType. */
6491 public messageType: google.protobuf.IDescriptorProto[];
6492
6493 /** FileDescriptorProto enumType. */
6494 public enumType: google.protobuf.IEnumDescriptorProto[];
6495
6496 /** FileDescriptorProto service. */
6497 public service: google.protobuf.IServiceDescriptorProto[];
6498
6499 /** FileDescriptorProto extension. */
6500 public extension: google.protobuf.IFieldDescriptorProto[];
6501
6502 /** FileDescriptorProto options. */
6503 public options?: (google.protobuf.IFileOptions|null);
6504
6505 /** FileDescriptorProto sourceCodeInfo. */
6506 public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
6507
6508 /** FileDescriptorProto syntax. */
6509 public syntax: string;
6510
6511 /**
6512 * Creates a new FileDescriptorProto instance using the specified properties.
6513 * @param [properties] Properties to set
6514 * @returns FileDescriptorProto instance
6515 */
6516 public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
6517
6518 /**
6519 * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
6520 * @param message FileDescriptorProto message or plain object to encode
6521 * @param [writer] Writer to encode to
6522 * @returns Writer
6523 */
6524 public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6525
6526 /**
6527 * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
6528 * @param message FileDescriptorProto message or plain object to encode
6529 * @param [writer] Writer to encode to
6530 * @returns Writer
6531 */
6532 public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6533
6534 /**
6535 * Decodes a FileDescriptorProto message from the specified reader or buffer.
6536 * @param reader Reader or buffer to decode from
6537 * @param [length] Message length if known beforehand
6538 * @returns FileDescriptorProto
6539 * @throws {Error} If the payload is not a reader or valid buffer
6540 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6541 */
6542 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
6543
6544 /**
6545 * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
6546 * @param reader Reader or buffer to decode from
6547 * @returns FileDescriptorProto
6548 * @throws {Error} If the payload is not a reader or valid buffer
6549 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6550 */
6551 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
6552
6553 /**
6554 * Verifies a FileDescriptorProto message.
6555 * @param message Plain object to verify
6556 * @returns `null` if valid, otherwise the reason why it is not
6557 */
6558 public static verify(message: { [k: string]: any }): (string|null);
6559
6560 /**
6561 * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
6562 * @param object Plain object
6563 * @returns FileDescriptorProto
6564 */
6565 public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
6566
6567 /**
6568 * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
6569 * @param message FileDescriptorProto
6570 * @param [options] Conversion options
6571 * @returns Plain object
6572 */
6573 public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
6574
6575 /**
6576 * Converts this FileDescriptorProto to JSON.
6577 * @returns JSON object
6578 */
6579 public toJSON(): { [k: string]: any };
6580 }
6581
6582 /** Properties of a DescriptorProto. */
6583 interface IDescriptorProto {
6584
6585 /** DescriptorProto name */
6586 name?: (string|null);
6587
6588 /** DescriptorProto field */
6589 field?: (google.protobuf.IFieldDescriptorProto[]|null);
6590
6591 /** DescriptorProto extension */
6592 extension?: (google.protobuf.IFieldDescriptorProto[]|null);
6593
6594 /** DescriptorProto nestedType */
6595 nestedType?: (google.protobuf.IDescriptorProto[]|null);
6596
6597 /** DescriptorProto enumType */
6598 enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
6599
6600 /** DescriptorProto extensionRange */
6601 extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
6602
6603 /** DescriptorProto oneofDecl */
6604 oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
6605
6606 /** DescriptorProto options */
6607 options?: (google.protobuf.IMessageOptions|null);
6608
6609 /** DescriptorProto reservedRange */
6610 reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
6611
6612 /** DescriptorProto reservedName */
6613 reservedName?: (string[]|null);
6614 }
6615
6616 /** Represents a DescriptorProto. */
6617 class DescriptorProto implements IDescriptorProto {
6618
6619 /**
6620 * Constructs a new DescriptorProto.
6621 * @param [properties] Properties to set
6622 */
6623 constructor(properties?: google.protobuf.IDescriptorProto);
6624
6625 /** DescriptorProto name. */
6626 public name: string;
6627
6628 /** DescriptorProto field. */
6629 public field: google.protobuf.IFieldDescriptorProto[];
6630
6631 /** DescriptorProto extension. */
6632 public extension: google.protobuf.IFieldDescriptorProto[];
6633
6634 /** DescriptorProto nestedType. */
6635 public nestedType: google.protobuf.IDescriptorProto[];
6636
6637 /** DescriptorProto enumType. */
6638 public enumType: google.protobuf.IEnumDescriptorProto[];
6639
6640 /** DescriptorProto extensionRange. */
6641 public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
6642
6643 /** DescriptorProto oneofDecl. */
6644 public oneofDecl: google.protobuf.IOneofDescriptorProto[];
6645
6646 /** DescriptorProto options. */
6647 public options?: (google.protobuf.IMessageOptions|null);
6648
6649 /** DescriptorProto reservedRange. */
6650 public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
6651
6652 /** DescriptorProto reservedName. */
6653 public reservedName: string[];
6654
6655 /**
6656 * Creates a new DescriptorProto instance using the specified properties.
6657 * @param [properties] Properties to set
6658 * @returns DescriptorProto instance
6659 */
6660 public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
6661
6662 /**
6663 * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
6664 * @param message DescriptorProto message or plain object to encode
6665 * @param [writer] Writer to encode to
6666 * @returns Writer
6667 */
6668 public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6669
6670 /**
6671 * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
6672 * @param message DescriptorProto message or plain object to encode
6673 * @param [writer] Writer to encode to
6674 * @returns Writer
6675 */
6676 public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
6677
6678 /**
6679 * Decodes a DescriptorProto message from the specified reader or buffer.
6680 * @param reader Reader or buffer to decode from
6681 * @param [length] Message length if known beforehand
6682 * @returns DescriptorProto
6683 * @throws {Error} If the payload is not a reader or valid buffer
6684 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6685 */
6686 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
6687
6688 /**
6689 * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
6690 * @param reader Reader or buffer to decode from
6691 * @returns DescriptorProto
6692 * @throws {Error} If the payload is not a reader or valid buffer
6693 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6694 */
6695 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
6696
6697 /**
6698 * Verifies a DescriptorProto message.
6699 * @param message Plain object to verify
6700 * @returns `null` if valid, otherwise the reason why it is not
6701 */
6702 public static verify(message: { [k: string]: any }): (string|null);
6703
6704 /**
6705 * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
6706 * @param object Plain object
6707 * @returns DescriptorProto
6708 */
6709 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
6710
6711 /**
6712 * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
6713 * @param message DescriptorProto
6714 * @param [options] Conversion options
6715 * @returns Plain object
6716 */
6717 public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
6718
6719 /**
6720 * Converts this DescriptorProto to JSON.
6721 * @returns JSON object
6722 */
6723 public toJSON(): { [k: string]: any };
6724 }
6725
6726 namespace DescriptorProto {
6727
6728 /** Properties of an ExtensionRange. */
6729 interface IExtensionRange {
6730
6731 /** ExtensionRange start */
6732 start?: (number|null);
6733
6734 /** ExtensionRange end */
6735 end?: (number|null);
6736
6737 /** ExtensionRange options */
6738 options?: (google.protobuf.IExtensionRangeOptions|null);
6739 }
6740
6741 /** Represents an ExtensionRange. */
6742 class ExtensionRange implements IExtensionRange {
6743
6744 /**
6745 * Constructs a new ExtensionRange.
6746 * @param [properties] Properties to set
6747 */
6748 constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
6749
6750 /** ExtensionRange start. */
6751 public start: number;
6752
6753 /** ExtensionRange end. */
6754 public end: number;
6755
6756 /** ExtensionRange options. */
6757 public options?: (google.protobuf.IExtensionRangeOptions|null);
6758
6759 /**
6760 * Creates a new ExtensionRange instance using the specified properties.
6761 * @param [properties] Properties to set
6762 * @returns ExtensionRange instance
6763 */
6764 public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
6765
6766 /**
6767 * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
6768 * @param message ExtensionRange message or plain object to encode
6769 * @param [writer] Writer to encode to
6770 * @returns Writer
6771 */
6772 public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
6773
6774 /**
6775 * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
6776 * @param message ExtensionRange message or plain object to encode
6777 * @param [writer] Writer to encode to
6778 * @returns Writer
6779 */
6780 public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
6781
6782 /**
6783 * Decodes an ExtensionRange message from the specified reader or buffer.
6784 * @param reader Reader or buffer to decode from
6785 * @param [length] Message length if known beforehand
6786 * @returns ExtensionRange
6787 * @throws {Error} If the payload is not a reader or valid buffer
6788 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6789 */
6790 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
6791
6792 /**
6793 * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
6794 * @param reader Reader or buffer to decode from
6795 * @returns ExtensionRange
6796 * @throws {Error} If the payload is not a reader or valid buffer
6797 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6798 */
6799 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
6800
6801 /**
6802 * Verifies an ExtensionRange message.
6803 * @param message Plain object to verify
6804 * @returns `null` if valid, otherwise the reason why it is not
6805 */
6806 public static verify(message: { [k: string]: any }): (string|null);
6807
6808 /**
6809 * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
6810 * @param object Plain object
6811 * @returns ExtensionRange
6812 */
6813 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
6814
6815 /**
6816 * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
6817 * @param message ExtensionRange
6818 * @param [options] Conversion options
6819 * @returns Plain object
6820 */
6821 public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
6822
6823 /**
6824 * Converts this ExtensionRange to JSON.
6825 * @returns JSON object
6826 */
6827 public toJSON(): { [k: string]: any };
6828 }
6829
6830 /** Properties of a ReservedRange. */
6831 interface IReservedRange {
6832
6833 /** ReservedRange start */
6834 start?: (number|null);
6835
6836 /** ReservedRange end */
6837 end?: (number|null);
6838 }
6839
6840 /** Represents a ReservedRange. */
6841 class ReservedRange implements IReservedRange {
6842
6843 /**
6844 * Constructs a new ReservedRange.
6845 * @param [properties] Properties to set
6846 */
6847 constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
6848
6849 /** ReservedRange start. */
6850 public start: number;
6851
6852 /** ReservedRange end. */
6853 public end: number;
6854
6855 /**
6856 * Creates a new ReservedRange instance using the specified properties.
6857 * @param [properties] Properties to set
6858 * @returns ReservedRange instance
6859 */
6860 public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
6861
6862 /**
6863 * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
6864 * @param message ReservedRange message or plain object to encode
6865 * @param [writer] Writer to encode to
6866 * @returns Writer
6867 */
6868 public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
6869
6870 /**
6871 * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
6872 * @param message ReservedRange message or plain object to encode
6873 * @param [writer] Writer to encode to
6874 * @returns Writer
6875 */
6876 public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
6877
6878 /**
6879 * Decodes a ReservedRange message from the specified reader or buffer.
6880 * @param reader Reader or buffer to decode from
6881 * @param [length] Message length if known beforehand
6882 * @returns ReservedRange
6883 * @throws {Error} If the payload is not a reader or valid buffer
6884 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6885 */
6886 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
6887
6888 /**
6889 * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
6890 * @param reader Reader or buffer to decode from
6891 * @returns ReservedRange
6892 * @throws {Error} If the payload is not a reader or valid buffer
6893 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6894 */
6895 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
6896
6897 /**
6898 * Verifies a ReservedRange message.
6899 * @param message Plain object to verify
6900 * @returns `null` if valid, otherwise the reason why it is not
6901 */
6902 public static verify(message: { [k: string]: any }): (string|null);
6903
6904 /**
6905 * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
6906 * @param object Plain object
6907 * @returns ReservedRange
6908 */
6909 public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
6910
6911 /**
6912 * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
6913 * @param message ReservedRange
6914 * @param [options] Conversion options
6915 * @returns Plain object
6916 */
6917 public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
6918
6919 /**
6920 * Converts this ReservedRange to JSON.
6921 * @returns JSON object
6922 */
6923 public toJSON(): { [k: string]: any };
6924 }
6925 }
6926
6927 /** Properties of an ExtensionRangeOptions. */
6928 interface IExtensionRangeOptions {
6929
6930 /** ExtensionRangeOptions uninterpretedOption */
6931 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
6932 }
6933
6934 /** Represents an ExtensionRangeOptions. */
6935 class ExtensionRangeOptions implements IExtensionRangeOptions {
6936
6937 /**
6938 * Constructs a new ExtensionRangeOptions.
6939 * @param [properties] Properties to set
6940 */
6941 constructor(properties?: google.protobuf.IExtensionRangeOptions);
6942
6943 /** ExtensionRangeOptions uninterpretedOption. */
6944 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
6945
6946 /**
6947 * Creates a new ExtensionRangeOptions instance using the specified properties.
6948 * @param [properties] Properties to set
6949 * @returns ExtensionRangeOptions instance
6950 */
6951 public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
6952
6953 /**
6954 * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
6955 * @param message ExtensionRangeOptions message or plain object to encode
6956 * @param [writer] Writer to encode to
6957 * @returns Writer
6958 */
6959 public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
6960
6961 /**
6962 * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
6963 * @param message ExtensionRangeOptions message or plain object to encode
6964 * @param [writer] Writer to encode to
6965 * @returns Writer
6966 */
6967 public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
6968
6969 /**
6970 * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
6971 * @param reader Reader or buffer to decode from
6972 * @param [length] Message length if known beforehand
6973 * @returns ExtensionRangeOptions
6974 * @throws {Error} If the payload is not a reader or valid buffer
6975 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6976 */
6977 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
6978
6979 /**
6980 * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
6981 * @param reader Reader or buffer to decode from
6982 * @returns ExtensionRangeOptions
6983 * @throws {Error} If the payload is not a reader or valid buffer
6984 * @throws {$protobuf.util.ProtocolError} If required fields are missing
6985 */
6986 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
6987
6988 /**
6989 * Verifies an ExtensionRangeOptions message.
6990 * @param message Plain object to verify
6991 * @returns `null` if valid, otherwise the reason why it is not
6992 */
6993 public static verify(message: { [k: string]: any }): (string|null);
6994
6995 /**
6996 * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
6997 * @param object Plain object
6998 * @returns ExtensionRangeOptions
6999 */
7000 public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
7001
7002 /**
7003 * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
7004 * @param message ExtensionRangeOptions
7005 * @param [options] Conversion options
7006 * @returns Plain object
7007 */
7008 public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
7009
7010 /**
7011 * Converts this ExtensionRangeOptions to JSON.
7012 * @returns JSON object
7013 */
7014 public toJSON(): { [k: string]: any };
7015 }
7016
7017 /** Properties of a FieldDescriptorProto. */
7018 interface IFieldDescriptorProto {
7019
7020 /** FieldDescriptorProto name */
7021 name?: (string|null);
7022
7023 /** FieldDescriptorProto number */
7024 number?: (number|null);
7025
7026 /** FieldDescriptorProto label */
7027 label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
7028
7029 /** FieldDescriptorProto type */
7030 type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
7031
7032 /** FieldDescriptorProto typeName */
7033 typeName?: (string|null);
7034
7035 /** FieldDescriptorProto extendee */
7036 extendee?: (string|null);
7037
7038 /** FieldDescriptorProto defaultValue */
7039 defaultValue?: (string|null);
7040
7041 /** FieldDescriptorProto oneofIndex */
7042 oneofIndex?: (number|null);
7043
7044 /** FieldDescriptorProto jsonName */
7045 jsonName?: (string|null);
7046
7047 /** FieldDescriptorProto options */
7048 options?: (google.protobuf.IFieldOptions|null);
7049
7050 /** FieldDescriptorProto proto3Optional */
7051 proto3Optional?: (boolean|null);
7052 }
7053
7054 /** Represents a FieldDescriptorProto. */
7055 class FieldDescriptorProto implements IFieldDescriptorProto {
7056
7057 /**
7058 * Constructs a new FieldDescriptorProto.
7059 * @param [properties] Properties to set
7060 */
7061 constructor(properties?: google.protobuf.IFieldDescriptorProto);
7062
7063 /** FieldDescriptorProto name. */
7064 public name: string;
7065
7066 /** FieldDescriptorProto number. */
7067 public number: number;
7068
7069 /** FieldDescriptorProto label. */
7070 public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
7071
7072 /** FieldDescriptorProto type. */
7073 public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
7074
7075 /** FieldDescriptorProto typeName. */
7076 public typeName: string;
7077
7078 /** FieldDescriptorProto extendee. */
7079 public extendee: string;
7080
7081 /** FieldDescriptorProto defaultValue. */
7082 public defaultValue: string;
7083
7084 /** FieldDescriptorProto oneofIndex. */
7085 public oneofIndex: number;
7086
7087 /** FieldDescriptorProto jsonName. */
7088 public jsonName: string;
7089
7090 /** FieldDescriptorProto options. */
7091 public options?: (google.protobuf.IFieldOptions|null);
7092
7093 /** FieldDescriptorProto proto3Optional. */
7094 public proto3Optional: boolean;
7095
7096 /**
7097 * Creates a new FieldDescriptorProto instance using the specified properties.
7098 * @param [properties] Properties to set
7099 * @returns FieldDescriptorProto instance
7100 */
7101 public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
7102
7103 /**
7104 * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
7105 * @param message FieldDescriptorProto message or plain object to encode
7106 * @param [writer] Writer to encode to
7107 * @returns Writer
7108 */
7109 public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7110
7111 /**
7112 * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
7113 * @param message FieldDescriptorProto message or plain object to encode
7114 * @param [writer] Writer to encode to
7115 * @returns Writer
7116 */
7117 public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7118
7119 /**
7120 * Decodes a FieldDescriptorProto message from the specified reader or buffer.
7121 * @param reader Reader or buffer to decode from
7122 * @param [length] Message length if known beforehand
7123 * @returns FieldDescriptorProto
7124 * @throws {Error} If the payload is not a reader or valid buffer
7125 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7126 */
7127 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
7128
7129 /**
7130 * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
7131 * @param reader Reader or buffer to decode from
7132 * @returns FieldDescriptorProto
7133 * @throws {Error} If the payload is not a reader or valid buffer
7134 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7135 */
7136 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
7137
7138 /**
7139 * Verifies a FieldDescriptorProto message.
7140 * @param message Plain object to verify
7141 * @returns `null` if valid, otherwise the reason why it is not
7142 */
7143 public static verify(message: { [k: string]: any }): (string|null);
7144
7145 /**
7146 * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
7147 * @param object Plain object
7148 * @returns FieldDescriptorProto
7149 */
7150 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
7151
7152 /**
7153 * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
7154 * @param message FieldDescriptorProto
7155 * @param [options] Conversion options
7156 * @returns Plain object
7157 */
7158 public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7159
7160 /**
7161 * Converts this FieldDescriptorProto to JSON.
7162 * @returns JSON object
7163 */
7164 public toJSON(): { [k: string]: any };
7165 }
7166
7167 namespace FieldDescriptorProto {
7168
7169 /** Type enum. */
7170 enum Type {
7171 TYPE_DOUBLE = 1,
7172 TYPE_FLOAT = 2,
7173 TYPE_INT64 = 3,
7174 TYPE_UINT64 = 4,
7175 TYPE_INT32 = 5,
7176 TYPE_FIXED64 = 6,
7177 TYPE_FIXED32 = 7,
7178 TYPE_BOOL = 8,
7179 TYPE_STRING = 9,
7180 TYPE_GROUP = 10,
7181 TYPE_MESSAGE = 11,
7182 TYPE_BYTES = 12,
7183 TYPE_UINT32 = 13,
7184 TYPE_ENUM = 14,
7185 TYPE_SFIXED32 = 15,
7186 TYPE_SFIXED64 = 16,
7187 TYPE_SINT32 = 17,
7188 TYPE_SINT64 = 18
7189 }
7190
7191 /** Label enum. */
7192 enum Label {
7193 LABEL_OPTIONAL = 1,
7194 LABEL_REQUIRED = 2,
7195 LABEL_REPEATED = 3
7196 }
7197 }
7198
7199 /** Properties of an OneofDescriptorProto. */
7200 interface IOneofDescriptorProto {
7201
7202 /** OneofDescriptorProto name */
7203 name?: (string|null);
7204
7205 /** OneofDescriptorProto options */
7206 options?: (google.protobuf.IOneofOptions|null);
7207 }
7208
7209 /** Represents an OneofDescriptorProto. */
7210 class OneofDescriptorProto implements IOneofDescriptorProto {
7211
7212 /**
7213 * Constructs a new OneofDescriptorProto.
7214 * @param [properties] Properties to set
7215 */
7216 constructor(properties?: google.protobuf.IOneofDescriptorProto);
7217
7218 /** OneofDescriptorProto name. */
7219 public name: string;
7220
7221 /** OneofDescriptorProto options. */
7222 public options?: (google.protobuf.IOneofOptions|null);
7223
7224 /**
7225 * Creates a new OneofDescriptorProto instance using the specified properties.
7226 * @param [properties] Properties to set
7227 * @returns OneofDescriptorProto instance
7228 */
7229 public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
7230
7231 /**
7232 * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
7233 * @param message OneofDescriptorProto message or plain object to encode
7234 * @param [writer] Writer to encode to
7235 * @returns Writer
7236 */
7237 public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7238
7239 /**
7240 * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
7241 * @param message OneofDescriptorProto message or plain object to encode
7242 * @param [writer] Writer to encode to
7243 * @returns Writer
7244 */
7245 public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7246
7247 /**
7248 * Decodes an OneofDescriptorProto message from the specified reader or buffer.
7249 * @param reader Reader or buffer to decode from
7250 * @param [length] Message length if known beforehand
7251 * @returns OneofDescriptorProto
7252 * @throws {Error} If the payload is not a reader or valid buffer
7253 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7254 */
7255 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
7256
7257 /**
7258 * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
7259 * @param reader Reader or buffer to decode from
7260 * @returns OneofDescriptorProto
7261 * @throws {Error} If the payload is not a reader or valid buffer
7262 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7263 */
7264 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
7265
7266 /**
7267 * Verifies an OneofDescriptorProto message.
7268 * @param message Plain object to verify
7269 * @returns `null` if valid, otherwise the reason why it is not
7270 */
7271 public static verify(message: { [k: string]: any }): (string|null);
7272
7273 /**
7274 * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
7275 * @param object Plain object
7276 * @returns OneofDescriptorProto
7277 */
7278 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
7279
7280 /**
7281 * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
7282 * @param message OneofDescriptorProto
7283 * @param [options] Conversion options
7284 * @returns Plain object
7285 */
7286 public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7287
7288 /**
7289 * Converts this OneofDescriptorProto to JSON.
7290 * @returns JSON object
7291 */
7292 public toJSON(): { [k: string]: any };
7293 }
7294
7295 /** Properties of an EnumDescriptorProto. */
7296 interface IEnumDescriptorProto {
7297
7298 /** EnumDescriptorProto name */
7299 name?: (string|null);
7300
7301 /** EnumDescriptorProto value */
7302 value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
7303
7304 /** EnumDescriptorProto options */
7305 options?: (google.protobuf.IEnumOptions|null);
7306
7307 /** EnumDescriptorProto reservedRange */
7308 reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
7309
7310 /** EnumDescriptorProto reservedName */
7311 reservedName?: (string[]|null);
7312 }
7313
7314 /** Represents an EnumDescriptorProto. */
7315 class EnumDescriptorProto implements IEnumDescriptorProto {
7316
7317 /**
7318 * Constructs a new EnumDescriptorProto.
7319 * @param [properties] Properties to set
7320 */
7321 constructor(properties?: google.protobuf.IEnumDescriptorProto);
7322
7323 /** EnumDescriptorProto name. */
7324 public name: string;
7325
7326 /** EnumDescriptorProto value. */
7327 public value: google.protobuf.IEnumValueDescriptorProto[];
7328
7329 /** EnumDescriptorProto options. */
7330 public options?: (google.protobuf.IEnumOptions|null);
7331
7332 /** EnumDescriptorProto reservedRange. */
7333 public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
7334
7335 /** EnumDescriptorProto reservedName. */
7336 public reservedName: string[];
7337
7338 /**
7339 * Creates a new EnumDescriptorProto instance using the specified properties.
7340 * @param [properties] Properties to set
7341 * @returns EnumDescriptorProto instance
7342 */
7343 public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
7344
7345 /**
7346 * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7347 * @param message EnumDescriptorProto message or plain object to encode
7348 * @param [writer] Writer to encode to
7349 * @returns Writer
7350 */
7351 public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7352
7353 /**
7354 * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
7355 * @param message EnumDescriptorProto message or plain object to encode
7356 * @param [writer] Writer to encode to
7357 * @returns Writer
7358 */
7359 public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7360
7361 /**
7362 * Decodes an EnumDescriptorProto message from the specified reader or buffer.
7363 * @param reader Reader or buffer to decode from
7364 * @param [length] Message length if known beforehand
7365 * @returns EnumDescriptorProto
7366 * @throws {Error} If the payload is not a reader or valid buffer
7367 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7368 */
7369 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
7370
7371 /**
7372 * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
7373 * @param reader Reader or buffer to decode from
7374 * @returns EnumDescriptorProto
7375 * @throws {Error} If the payload is not a reader or valid buffer
7376 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7377 */
7378 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
7379
7380 /**
7381 * Verifies an EnumDescriptorProto message.
7382 * @param message Plain object to verify
7383 * @returns `null` if valid, otherwise the reason why it is not
7384 */
7385 public static verify(message: { [k: string]: any }): (string|null);
7386
7387 /**
7388 * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
7389 * @param object Plain object
7390 * @returns EnumDescriptorProto
7391 */
7392 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
7393
7394 /**
7395 * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
7396 * @param message EnumDescriptorProto
7397 * @param [options] Conversion options
7398 * @returns Plain object
7399 */
7400 public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7401
7402 /**
7403 * Converts this EnumDescriptorProto to JSON.
7404 * @returns JSON object
7405 */
7406 public toJSON(): { [k: string]: any };
7407 }
7408
7409 namespace EnumDescriptorProto {
7410
7411 /** Properties of an EnumReservedRange. */
7412 interface IEnumReservedRange {
7413
7414 /** EnumReservedRange start */
7415 start?: (number|null);
7416
7417 /** EnumReservedRange end */
7418 end?: (number|null);
7419 }
7420
7421 /** Represents an EnumReservedRange. */
7422 class EnumReservedRange implements IEnumReservedRange {
7423
7424 /**
7425 * Constructs a new EnumReservedRange.
7426 * @param [properties] Properties to set
7427 */
7428 constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
7429
7430 /** EnumReservedRange start. */
7431 public start: number;
7432
7433 /** EnumReservedRange end. */
7434 public end: number;
7435
7436 /**
7437 * Creates a new EnumReservedRange instance using the specified properties.
7438 * @param [properties] Properties to set
7439 * @returns EnumReservedRange instance
7440 */
7441 public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7442
7443 /**
7444 * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
7445 * @param message EnumReservedRange message or plain object to encode
7446 * @param [writer] Writer to encode to
7447 * @returns Writer
7448 */
7449 public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7450
7451 /**
7452 * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
7453 * @param message EnumReservedRange message or plain object to encode
7454 * @param [writer] Writer to encode to
7455 * @returns Writer
7456 */
7457 public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
7458
7459 /**
7460 * Decodes an EnumReservedRange message from the specified reader or buffer.
7461 * @param reader Reader or buffer to decode from
7462 * @param [length] Message length if known beforehand
7463 * @returns EnumReservedRange
7464 * @throws {Error} If the payload is not a reader or valid buffer
7465 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7466 */
7467 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7468
7469 /**
7470 * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
7471 * @param reader Reader or buffer to decode from
7472 * @returns EnumReservedRange
7473 * @throws {Error} If the payload is not a reader or valid buffer
7474 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7475 */
7476 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7477
7478 /**
7479 * Verifies an EnumReservedRange message.
7480 * @param message Plain object to verify
7481 * @returns `null` if valid, otherwise the reason why it is not
7482 */
7483 public static verify(message: { [k: string]: any }): (string|null);
7484
7485 /**
7486 * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
7487 * @param object Plain object
7488 * @returns EnumReservedRange
7489 */
7490 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
7491
7492 /**
7493 * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
7494 * @param message EnumReservedRange
7495 * @param [options] Conversion options
7496 * @returns Plain object
7497 */
7498 public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
7499
7500 /**
7501 * Converts this EnumReservedRange to JSON.
7502 * @returns JSON object
7503 */
7504 public toJSON(): { [k: string]: any };
7505 }
7506 }
7507
7508 /** Properties of an EnumValueDescriptorProto. */
7509 interface IEnumValueDescriptorProto {
7510
7511 /** EnumValueDescriptorProto name */
7512 name?: (string|null);
7513
7514 /** EnumValueDescriptorProto number */
7515 number?: (number|null);
7516
7517 /** EnumValueDescriptorProto options */
7518 options?: (google.protobuf.IEnumValueOptions|null);
7519 }
7520
7521 /** Represents an EnumValueDescriptorProto. */
7522 class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
7523
7524 /**
7525 * Constructs a new EnumValueDescriptorProto.
7526 * @param [properties] Properties to set
7527 */
7528 constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
7529
7530 /** EnumValueDescriptorProto name. */
7531 public name: string;
7532
7533 /** EnumValueDescriptorProto number. */
7534 public number: number;
7535
7536 /** EnumValueDescriptorProto options. */
7537 public options?: (google.protobuf.IEnumValueOptions|null);
7538
7539 /**
7540 * Creates a new EnumValueDescriptorProto instance using the specified properties.
7541 * @param [properties] Properties to set
7542 * @returns EnumValueDescriptorProto instance
7543 */
7544 public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
7545
7546 /**
7547 * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
7548 * @param message EnumValueDescriptorProto message or plain object to encode
7549 * @param [writer] Writer to encode to
7550 * @returns Writer
7551 */
7552 public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7553
7554 /**
7555 * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
7556 * @param message EnumValueDescriptorProto message or plain object to encode
7557 * @param [writer] Writer to encode to
7558 * @returns Writer
7559 */
7560 public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7561
7562 /**
7563 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
7564 * @param reader Reader or buffer to decode from
7565 * @param [length] Message length if known beforehand
7566 * @returns EnumValueDescriptorProto
7567 * @throws {Error} If the payload is not a reader or valid buffer
7568 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7569 */
7570 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
7571
7572 /**
7573 * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
7574 * @param reader Reader or buffer to decode from
7575 * @returns EnumValueDescriptorProto
7576 * @throws {Error} If the payload is not a reader or valid buffer
7577 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7578 */
7579 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
7580
7581 /**
7582 * Verifies an EnumValueDescriptorProto message.
7583 * @param message Plain object to verify
7584 * @returns `null` if valid, otherwise the reason why it is not
7585 */
7586 public static verify(message: { [k: string]: any }): (string|null);
7587
7588 /**
7589 * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
7590 * @param object Plain object
7591 * @returns EnumValueDescriptorProto
7592 */
7593 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
7594
7595 /**
7596 * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
7597 * @param message EnumValueDescriptorProto
7598 * @param [options] Conversion options
7599 * @returns Plain object
7600 */
7601 public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7602
7603 /**
7604 * Converts this EnumValueDescriptorProto to JSON.
7605 * @returns JSON object
7606 */
7607 public toJSON(): { [k: string]: any };
7608 }
7609
7610 /** Properties of a ServiceDescriptorProto. */
7611 interface IServiceDescriptorProto {
7612
7613 /** ServiceDescriptorProto name */
7614 name?: (string|null);
7615
7616 /** ServiceDescriptorProto method */
7617 method?: (google.protobuf.IMethodDescriptorProto[]|null);
7618
7619 /** ServiceDescriptorProto options */
7620 options?: (google.protobuf.IServiceOptions|null);
7621 }
7622
7623 /** Represents a ServiceDescriptorProto. */
7624 class ServiceDescriptorProto implements IServiceDescriptorProto {
7625
7626 /**
7627 * Constructs a new ServiceDescriptorProto.
7628 * @param [properties] Properties to set
7629 */
7630 constructor(properties?: google.protobuf.IServiceDescriptorProto);
7631
7632 /** ServiceDescriptorProto name. */
7633 public name: string;
7634
7635 /** ServiceDescriptorProto method. */
7636 public method: google.protobuf.IMethodDescriptorProto[];
7637
7638 /** ServiceDescriptorProto options. */
7639 public options?: (google.protobuf.IServiceOptions|null);
7640
7641 /**
7642 * Creates a new ServiceDescriptorProto instance using the specified properties.
7643 * @param [properties] Properties to set
7644 * @returns ServiceDescriptorProto instance
7645 */
7646 public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
7647
7648 /**
7649 * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
7650 * @param message ServiceDescriptorProto message or plain object to encode
7651 * @param [writer] Writer to encode to
7652 * @returns Writer
7653 */
7654 public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7655
7656 /**
7657 * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
7658 * @param message ServiceDescriptorProto message or plain object to encode
7659 * @param [writer] Writer to encode to
7660 * @returns Writer
7661 */
7662 public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7663
7664 /**
7665 * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
7666 * @param reader Reader or buffer to decode from
7667 * @param [length] Message length if known beforehand
7668 * @returns ServiceDescriptorProto
7669 * @throws {Error} If the payload is not a reader or valid buffer
7670 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7671 */
7672 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
7673
7674 /**
7675 * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
7676 * @param reader Reader or buffer to decode from
7677 * @returns ServiceDescriptorProto
7678 * @throws {Error} If the payload is not a reader or valid buffer
7679 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7680 */
7681 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
7682
7683 /**
7684 * Verifies a ServiceDescriptorProto message.
7685 * @param message Plain object to verify
7686 * @returns `null` if valid, otherwise the reason why it is not
7687 */
7688 public static verify(message: { [k: string]: any }): (string|null);
7689
7690 /**
7691 * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
7692 * @param object Plain object
7693 * @returns ServiceDescriptorProto
7694 */
7695 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
7696
7697 /**
7698 * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
7699 * @param message ServiceDescriptorProto
7700 * @param [options] Conversion options
7701 * @returns Plain object
7702 */
7703 public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7704
7705 /**
7706 * Converts this ServiceDescriptorProto to JSON.
7707 * @returns JSON object
7708 */
7709 public toJSON(): { [k: string]: any };
7710 }
7711
7712 /** Properties of a MethodDescriptorProto. */
7713 interface IMethodDescriptorProto {
7714
7715 /** MethodDescriptorProto name */
7716 name?: (string|null);
7717
7718 /** MethodDescriptorProto inputType */
7719 inputType?: (string|null);
7720
7721 /** MethodDescriptorProto outputType */
7722 outputType?: (string|null);
7723
7724 /** MethodDescriptorProto options */
7725 options?: (google.protobuf.IMethodOptions|null);
7726
7727 /** MethodDescriptorProto clientStreaming */
7728 clientStreaming?: (boolean|null);
7729
7730 /** MethodDescriptorProto serverStreaming */
7731 serverStreaming?: (boolean|null);
7732 }
7733
7734 /** Represents a MethodDescriptorProto. */
7735 class MethodDescriptorProto implements IMethodDescriptorProto {
7736
7737 /**
7738 * Constructs a new MethodDescriptorProto.
7739 * @param [properties] Properties to set
7740 */
7741 constructor(properties?: google.protobuf.IMethodDescriptorProto);
7742
7743 /** MethodDescriptorProto name. */
7744 public name: string;
7745
7746 /** MethodDescriptorProto inputType. */
7747 public inputType: string;
7748
7749 /** MethodDescriptorProto outputType. */
7750 public outputType: string;
7751
7752 /** MethodDescriptorProto options. */
7753 public options?: (google.protobuf.IMethodOptions|null);
7754
7755 /** MethodDescriptorProto clientStreaming. */
7756 public clientStreaming: boolean;
7757
7758 /** MethodDescriptorProto serverStreaming. */
7759 public serverStreaming: boolean;
7760
7761 /**
7762 * Creates a new MethodDescriptorProto instance using the specified properties.
7763 * @param [properties] Properties to set
7764 * @returns MethodDescriptorProto instance
7765 */
7766 public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
7767
7768 /**
7769 * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
7770 * @param message MethodDescriptorProto message or plain object to encode
7771 * @param [writer] Writer to encode to
7772 * @returns Writer
7773 */
7774 public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7775
7776 /**
7777 * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
7778 * @param message MethodDescriptorProto message or plain object to encode
7779 * @param [writer] Writer to encode to
7780 * @returns Writer
7781 */
7782 public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
7783
7784 /**
7785 * Decodes a MethodDescriptorProto message from the specified reader or buffer.
7786 * @param reader Reader or buffer to decode from
7787 * @param [length] Message length if known beforehand
7788 * @returns MethodDescriptorProto
7789 * @throws {Error} If the payload is not a reader or valid buffer
7790 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7791 */
7792 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
7793
7794 /**
7795 * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
7796 * @param reader Reader or buffer to decode from
7797 * @returns MethodDescriptorProto
7798 * @throws {Error} If the payload is not a reader or valid buffer
7799 * @throws {$protobuf.util.ProtocolError} If required fields are missing
7800 */
7801 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
7802
7803 /**
7804 * Verifies a MethodDescriptorProto message.
7805 * @param message Plain object to verify
7806 * @returns `null` if valid, otherwise the reason why it is not
7807 */
7808 public static verify(message: { [k: string]: any }): (string|null);
7809
7810 /**
7811 * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
7812 * @param object Plain object
7813 * @returns MethodDescriptorProto
7814 */
7815 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
7816
7817 /**
7818 * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
7819 * @param message MethodDescriptorProto
7820 * @param [options] Conversion options
7821 * @returns Plain object
7822 */
7823 public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
7824
7825 /**
7826 * Converts this MethodDescriptorProto to JSON.
7827 * @returns JSON object
7828 */
7829 public toJSON(): { [k: string]: any };
7830 }
7831
7832 /** Properties of a FileOptions. */
7833 interface IFileOptions {
7834
7835 /** FileOptions javaPackage */
7836 javaPackage?: (string|null);
7837
7838 /** FileOptions javaOuterClassname */
7839 javaOuterClassname?: (string|null);
7840
7841 /** FileOptions javaMultipleFiles */
7842 javaMultipleFiles?: (boolean|null);
7843
7844 /** FileOptions javaGenerateEqualsAndHash */
7845 javaGenerateEqualsAndHash?: (boolean|null);
7846
7847 /** FileOptions javaStringCheckUtf8 */
7848 javaStringCheckUtf8?: (boolean|null);
7849
7850 /** FileOptions optimizeFor */
7851 optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
7852
7853 /** FileOptions goPackage */
7854 goPackage?: (string|null);
7855
7856 /** FileOptions ccGenericServices */
7857 ccGenericServices?: (boolean|null);
7858
7859 /** FileOptions javaGenericServices */
7860 javaGenericServices?: (boolean|null);
7861
7862 /** FileOptions pyGenericServices */
7863 pyGenericServices?: (boolean|null);
7864
7865 /** FileOptions phpGenericServices */
7866 phpGenericServices?: (boolean|null);
7867
7868 /** FileOptions deprecated */
7869 deprecated?: (boolean|null);
7870
7871 /** FileOptions ccEnableArenas */
7872 ccEnableArenas?: (boolean|null);
7873
7874 /** FileOptions objcClassPrefix */
7875 objcClassPrefix?: (string|null);
7876
7877 /** FileOptions csharpNamespace */
7878 csharpNamespace?: (string|null);
7879
7880 /** FileOptions swiftPrefix */
7881 swiftPrefix?: (string|null);
7882
7883 /** FileOptions phpClassPrefix */
7884 phpClassPrefix?: (string|null);
7885
7886 /** FileOptions phpNamespace */
7887 phpNamespace?: (string|null);
7888
7889 /** FileOptions phpMetadataNamespace */
7890 phpMetadataNamespace?: (string|null);
7891
7892 /** FileOptions rubyPackage */
7893 rubyPackage?: (string|null);
7894
7895 /** FileOptions uninterpretedOption */
7896 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
7897 }
7898
7899 /** Represents a FileOptions. */
7900 class FileOptions implements IFileOptions {
7901
7902 /**
7903 * Constructs a new FileOptions.
7904 * @param [properties] Properties to set
7905 */
7906 constructor(properties?: google.protobuf.IFileOptions);
7907
7908 /** FileOptions javaPackage. */
7909 public javaPackage: string;
7910
7911 /** FileOptions javaOuterClassname. */
7912 public javaOuterClassname: string;
7913
7914 /** FileOptions javaMultipleFiles. */
7915 public javaMultipleFiles: boolean;
7916
7917 /** FileOptions javaGenerateEqualsAndHash. */
7918 public javaGenerateEqualsAndHash: boolean;
7919
7920 /** FileOptions javaStringCheckUtf8. */
7921 public javaStringCheckUtf8: boolean;
7922
7923 /** FileOptions optimizeFor. */
7924 public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
7925
7926 /** FileOptions goPackage. */
7927 public goPackage: string;
7928
7929 /** FileOptions ccGenericServices. */
7930 public ccGenericServices: boolean;
7931
7932 /** FileOptions javaGenericServices. */
7933 public javaGenericServices: boolean;
7934
7935 /** FileOptions pyGenericServices. */
7936 public pyGenericServices: boolean;
7937
7938 /** FileOptions phpGenericServices. */
7939 public phpGenericServices: boolean;
7940
7941 /** FileOptions deprecated. */
7942 public deprecated: boolean;
7943
7944 /** FileOptions ccEnableArenas. */
7945 public ccEnableArenas: boolean;
7946
7947 /** FileOptions objcClassPrefix. */
7948 public objcClassPrefix: string;
7949
7950 /** FileOptions csharpNamespace. */
7951 public csharpNamespace: string;
7952
7953 /** FileOptions swiftPrefix. */
7954 public swiftPrefix: string;
7955
7956 /** FileOptions phpClassPrefix. */
7957 public phpClassPrefix: string;
7958
7959 /** FileOptions phpNamespace. */
7960 public phpNamespace: string;
7961
7962 /** FileOptions phpMetadataNamespace. */
7963 public phpMetadataNamespace: string;
7964
7965 /** FileOptions rubyPackage. */
7966 public rubyPackage: string;
7967
7968 /** FileOptions uninterpretedOption. */
7969 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
7970
7971 /**
7972 * Creates a new FileOptions instance using the specified properties.
7973 * @param [properties] Properties to set
7974 * @returns FileOptions instance
7975 */
7976 public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
7977
7978 /**
7979 * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
7980 * @param message FileOptions message or plain object to encode
7981 * @param [writer] Writer to encode to
7982 * @returns Writer
7983 */
7984 public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7985
7986 /**
7987 * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
7988 * @param message FileOptions message or plain object to encode
7989 * @param [writer] Writer to encode to
7990 * @returns Writer
7991 */
7992 public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
7993
7994 /**
7995 * Decodes a FileOptions message from the specified reader or buffer.
7996 * @param reader Reader or buffer to decode from
7997 * @param [length] Message length if known beforehand
7998 * @returns FileOptions
7999 * @throws {Error} If the payload is not a reader or valid buffer
8000 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8001 */
8002 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
8003
8004 /**
8005 * Decodes a FileOptions message from the specified reader or buffer, length delimited.
8006 * @param reader Reader or buffer to decode from
8007 * @returns FileOptions
8008 * @throws {Error} If the payload is not a reader or valid buffer
8009 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8010 */
8011 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
8012
8013 /**
8014 * Verifies a FileOptions message.
8015 * @param message Plain object to verify
8016 * @returns `null` if valid, otherwise the reason why it is not
8017 */
8018 public static verify(message: { [k: string]: any }): (string|null);
8019
8020 /**
8021 * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
8022 * @param object Plain object
8023 * @returns FileOptions
8024 */
8025 public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
8026
8027 /**
8028 * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
8029 * @param message FileOptions
8030 * @param [options] Conversion options
8031 * @returns Plain object
8032 */
8033 public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8034
8035 /**
8036 * Converts this FileOptions to JSON.
8037 * @returns JSON object
8038 */
8039 public toJSON(): { [k: string]: any };
8040 }
8041
8042 namespace FileOptions {
8043
8044 /** OptimizeMode enum. */
8045 enum OptimizeMode {
8046 SPEED = 1,
8047 CODE_SIZE = 2,
8048 LITE_RUNTIME = 3
8049 }
8050 }
8051
8052 /** Properties of a MessageOptions. */
8053 interface IMessageOptions {
8054
8055 /** MessageOptions messageSetWireFormat */
8056 messageSetWireFormat?: (boolean|null);
8057
8058 /** MessageOptions noStandardDescriptorAccessor */
8059 noStandardDescriptorAccessor?: (boolean|null);
8060
8061 /** MessageOptions deprecated */
8062 deprecated?: (boolean|null);
8063
8064 /** MessageOptions mapEntry */
8065 mapEntry?: (boolean|null);
8066
8067 /** MessageOptions uninterpretedOption */
8068 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8069 }
8070
8071 /** Represents a MessageOptions. */
8072 class MessageOptions implements IMessageOptions {
8073
8074 /**
8075 * Constructs a new MessageOptions.
8076 * @param [properties] Properties to set
8077 */
8078 constructor(properties?: google.protobuf.IMessageOptions);
8079
8080 /** MessageOptions messageSetWireFormat. */
8081 public messageSetWireFormat: boolean;
8082
8083 /** MessageOptions noStandardDescriptorAccessor. */
8084 public noStandardDescriptorAccessor: boolean;
8085
8086 /** MessageOptions deprecated. */
8087 public deprecated: boolean;
8088
8089 /** MessageOptions mapEntry. */
8090 public mapEntry: boolean;
8091
8092 /** MessageOptions uninterpretedOption. */
8093 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8094
8095 /**
8096 * Creates a new MessageOptions instance using the specified properties.
8097 * @param [properties] Properties to set
8098 * @returns MessageOptions instance
8099 */
8100 public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
8101
8102 /**
8103 * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
8104 * @param message MessageOptions message or plain object to encode
8105 * @param [writer] Writer to encode to
8106 * @returns Writer
8107 */
8108 public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8109
8110 /**
8111 * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
8112 * @param message MessageOptions message or plain object to encode
8113 * @param [writer] Writer to encode to
8114 * @returns Writer
8115 */
8116 public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8117
8118 /**
8119 * Decodes a MessageOptions message from the specified reader or buffer.
8120 * @param reader Reader or buffer to decode from
8121 * @param [length] Message length if known beforehand
8122 * @returns MessageOptions
8123 * @throws {Error} If the payload is not a reader or valid buffer
8124 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8125 */
8126 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
8127
8128 /**
8129 * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
8130 * @param reader Reader or buffer to decode from
8131 * @returns MessageOptions
8132 * @throws {Error} If the payload is not a reader or valid buffer
8133 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8134 */
8135 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
8136
8137 /**
8138 * Verifies a MessageOptions message.
8139 * @param message Plain object to verify
8140 * @returns `null` if valid, otherwise the reason why it is not
8141 */
8142 public static verify(message: { [k: string]: any }): (string|null);
8143
8144 /**
8145 * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
8146 * @param object Plain object
8147 * @returns MessageOptions
8148 */
8149 public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
8150
8151 /**
8152 * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
8153 * @param message MessageOptions
8154 * @param [options] Conversion options
8155 * @returns Plain object
8156 */
8157 public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8158
8159 /**
8160 * Converts this MessageOptions to JSON.
8161 * @returns JSON object
8162 */
8163 public toJSON(): { [k: string]: any };
8164 }
8165
8166 /** Properties of a FieldOptions. */
8167 interface IFieldOptions {
8168
8169 /** FieldOptions ctype */
8170 ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
8171
8172 /** FieldOptions packed */
8173 packed?: (boolean|null);
8174
8175 /** FieldOptions jstype */
8176 jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
8177
8178 /** FieldOptions lazy */
8179 lazy?: (boolean|null);
8180
8181 /** FieldOptions deprecated */
8182 deprecated?: (boolean|null);
8183
8184 /** FieldOptions weak */
8185 weak?: (boolean|null);
8186
8187 /** FieldOptions uninterpretedOption */
8188 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8189
8190 /** FieldOptions .google.api.fieldBehavior */
8191 ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
8192 }
8193
8194 /** Represents a FieldOptions. */
8195 class FieldOptions implements IFieldOptions {
8196
8197 /**
8198 * Constructs a new FieldOptions.
8199 * @param [properties] Properties to set
8200 */
8201 constructor(properties?: google.protobuf.IFieldOptions);
8202
8203 /** FieldOptions ctype. */
8204 public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
8205
8206 /** FieldOptions packed. */
8207 public packed: boolean;
8208
8209 /** FieldOptions jstype. */
8210 public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
8211
8212 /** FieldOptions lazy. */
8213 public lazy: boolean;
8214
8215 /** FieldOptions deprecated. */
8216 public deprecated: boolean;
8217
8218 /** FieldOptions weak. */
8219 public weak: boolean;
8220
8221 /** FieldOptions uninterpretedOption. */
8222 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8223
8224 /**
8225 * Creates a new FieldOptions instance using the specified properties.
8226 * @param [properties] Properties to set
8227 * @returns FieldOptions instance
8228 */
8229 public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
8230
8231 /**
8232 * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
8233 * @param message FieldOptions message or plain object to encode
8234 * @param [writer] Writer to encode to
8235 * @returns Writer
8236 */
8237 public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8238
8239 /**
8240 * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
8241 * @param message FieldOptions message or plain object to encode
8242 * @param [writer] Writer to encode to
8243 * @returns Writer
8244 */
8245 public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8246
8247 /**
8248 * Decodes a FieldOptions message from the specified reader or buffer.
8249 * @param reader Reader or buffer to decode from
8250 * @param [length] Message length if known beforehand
8251 * @returns FieldOptions
8252 * @throws {Error} If the payload is not a reader or valid buffer
8253 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8254 */
8255 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
8256
8257 /**
8258 * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
8259 * @param reader Reader or buffer to decode from
8260 * @returns FieldOptions
8261 * @throws {Error} If the payload is not a reader or valid buffer
8262 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8263 */
8264 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
8265
8266 /**
8267 * Verifies a FieldOptions message.
8268 * @param message Plain object to verify
8269 * @returns `null` if valid, otherwise the reason why it is not
8270 */
8271 public static verify(message: { [k: string]: any }): (string|null);
8272
8273 /**
8274 * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
8275 * @param object Plain object
8276 * @returns FieldOptions
8277 */
8278 public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
8279
8280 /**
8281 * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
8282 * @param message FieldOptions
8283 * @param [options] Conversion options
8284 * @returns Plain object
8285 */
8286 public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8287
8288 /**
8289 * Converts this FieldOptions to JSON.
8290 * @returns JSON object
8291 */
8292 public toJSON(): { [k: string]: any };
8293 }
8294
8295 namespace FieldOptions {
8296
8297 /** CType enum. */
8298 enum CType {
8299 STRING = 0,
8300 CORD = 1,
8301 STRING_PIECE = 2
8302 }
8303
8304 /** JSType enum. */
8305 enum JSType {
8306 JS_NORMAL = 0,
8307 JS_STRING = 1,
8308 JS_NUMBER = 2
8309 }
8310 }
8311
8312 /** Properties of an OneofOptions. */
8313 interface IOneofOptions {
8314
8315 /** OneofOptions uninterpretedOption */
8316 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8317 }
8318
8319 /** Represents an OneofOptions. */
8320 class OneofOptions implements IOneofOptions {
8321
8322 /**
8323 * Constructs a new OneofOptions.
8324 * @param [properties] Properties to set
8325 */
8326 constructor(properties?: google.protobuf.IOneofOptions);
8327
8328 /** OneofOptions uninterpretedOption. */
8329 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8330
8331 /**
8332 * Creates a new OneofOptions instance using the specified properties.
8333 * @param [properties] Properties to set
8334 * @returns OneofOptions instance
8335 */
8336 public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
8337
8338 /**
8339 * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
8340 * @param message OneofOptions message or plain object to encode
8341 * @param [writer] Writer to encode to
8342 * @returns Writer
8343 */
8344 public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8345
8346 /**
8347 * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
8348 * @param message OneofOptions message or plain object to encode
8349 * @param [writer] Writer to encode to
8350 * @returns Writer
8351 */
8352 public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8353
8354 /**
8355 * Decodes an OneofOptions message from the specified reader or buffer.
8356 * @param reader Reader or buffer to decode from
8357 * @param [length] Message length if known beforehand
8358 * @returns OneofOptions
8359 * @throws {Error} If the payload is not a reader or valid buffer
8360 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8361 */
8362 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
8363
8364 /**
8365 * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
8366 * @param reader Reader or buffer to decode from
8367 * @returns OneofOptions
8368 * @throws {Error} If the payload is not a reader or valid buffer
8369 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8370 */
8371 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
8372
8373 /**
8374 * Verifies an OneofOptions message.
8375 * @param message Plain object to verify
8376 * @returns `null` if valid, otherwise the reason why it is not
8377 */
8378 public static verify(message: { [k: string]: any }): (string|null);
8379
8380 /**
8381 * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
8382 * @param object Plain object
8383 * @returns OneofOptions
8384 */
8385 public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
8386
8387 /**
8388 * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
8389 * @param message OneofOptions
8390 * @param [options] Conversion options
8391 * @returns Plain object
8392 */
8393 public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8394
8395 /**
8396 * Converts this OneofOptions to JSON.
8397 * @returns JSON object
8398 */
8399 public toJSON(): { [k: string]: any };
8400 }
8401
8402 /** Properties of an EnumOptions. */
8403 interface IEnumOptions {
8404
8405 /** EnumOptions allowAlias */
8406 allowAlias?: (boolean|null);
8407
8408 /** EnumOptions deprecated */
8409 deprecated?: (boolean|null);
8410
8411 /** EnumOptions uninterpretedOption */
8412 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8413 }
8414
8415 /** Represents an EnumOptions. */
8416 class EnumOptions implements IEnumOptions {
8417
8418 /**
8419 * Constructs a new EnumOptions.
8420 * @param [properties] Properties to set
8421 */
8422 constructor(properties?: google.protobuf.IEnumOptions);
8423
8424 /** EnumOptions allowAlias. */
8425 public allowAlias: boolean;
8426
8427 /** EnumOptions deprecated. */
8428 public deprecated: boolean;
8429
8430 /** EnumOptions uninterpretedOption. */
8431 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8432
8433 /**
8434 * Creates a new EnumOptions instance using the specified properties.
8435 * @param [properties] Properties to set
8436 * @returns EnumOptions instance
8437 */
8438 public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
8439
8440 /**
8441 * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
8442 * @param message EnumOptions message or plain object to encode
8443 * @param [writer] Writer to encode to
8444 * @returns Writer
8445 */
8446 public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8447
8448 /**
8449 * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
8450 * @param message EnumOptions message or plain object to encode
8451 * @param [writer] Writer to encode to
8452 * @returns Writer
8453 */
8454 public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8455
8456 /**
8457 * Decodes an EnumOptions message from the specified reader or buffer.
8458 * @param reader Reader or buffer to decode from
8459 * @param [length] Message length if known beforehand
8460 * @returns EnumOptions
8461 * @throws {Error} If the payload is not a reader or valid buffer
8462 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8463 */
8464 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
8465
8466 /**
8467 * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
8468 * @param reader Reader or buffer to decode from
8469 * @returns EnumOptions
8470 * @throws {Error} If the payload is not a reader or valid buffer
8471 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8472 */
8473 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
8474
8475 /**
8476 * Verifies an EnumOptions message.
8477 * @param message Plain object to verify
8478 * @returns `null` if valid, otherwise the reason why it is not
8479 */
8480 public static verify(message: { [k: string]: any }): (string|null);
8481
8482 /**
8483 * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
8484 * @param object Plain object
8485 * @returns EnumOptions
8486 */
8487 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
8488
8489 /**
8490 * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
8491 * @param message EnumOptions
8492 * @param [options] Conversion options
8493 * @returns Plain object
8494 */
8495 public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8496
8497 /**
8498 * Converts this EnumOptions to JSON.
8499 * @returns JSON object
8500 */
8501 public toJSON(): { [k: string]: any };
8502 }
8503
8504 /** Properties of an EnumValueOptions. */
8505 interface IEnumValueOptions {
8506
8507 /** EnumValueOptions deprecated */
8508 deprecated?: (boolean|null);
8509
8510 /** EnumValueOptions uninterpretedOption */
8511 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8512 }
8513
8514 /** Represents an EnumValueOptions. */
8515 class EnumValueOptions implements IEnumValueOptions {
8516
8517 /**
8518 * Constructs a new EnumValueOptions.
8519 * @param [properties] Properties to set
8520 */
8521 constructor(properties?: google.protobuf.IEnumValueOptions);
8522
8523 /** EnumValueOptions deprecated. */
8524 public deprecated: boolean;
8525
8526 /** EnumValueOptions uninterpretedOption. */
8527 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8528
8529 /**
8530 * Creates a new EnumValueOptions instance using the specified properties.
8531 * @param [properties] Properties to set
8532 * @returns EnumValueOptions instance
8533 */
8534 public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
8535
8536 /**
8537 * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
8538 * @param message EnumValueOptions message or plain object to encode
8539 * @param [writer] Writer to encode to
8540 * @returns Writer
8541 */
8542 public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8543
8544 /**
8545 * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
8546 * @param message EnumValueOptions message or plain object to encode
8547 * @param [writer] Writer to encode to
8548 * @returns Writer
8549 */
8550 public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8551
8552 /**
8553 * Decodes an EnumValueOptions message from the specified reader or buffer.
8554 * @param reader Reader or buffer to decode from
8555 * @param [length] Message length if known beforehand
8556 * @returns EnumValueOptions
8557 * @throws {Error} If the payload is not a reader or valid buffer
8558 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8559 */
8560 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
8561
8562 /**
8563 * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
8564 * @param reader Reader or buffer to decode from
8565 * @returns EnumValueOptions
8566 * @throws {Error} If the payload is not a reader or valid buffer
8567 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8568 */
8569 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
8570
8571 /**
8572 * Verifies an EnumValueOptions message.
8573 * @param message Plain object to verify
8574 * @returns `null` if valid, otherwise the reason why it is not
8575 */
8576 public static verify(message: { [k: string]: any }): (string|null);
8577
8578 /**
8579 * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
8580 * @param object Plain object
8581 * @returns EnumValueOptions
8582 */
8583 public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
8584
8585 /**
8586 * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
8587 * @param message EnumValueOptions
8588 * @param [options] Conversion options
8589 * @returns Plain object
8590 */
8591 public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8592
8593 /**
8594 * Converts this EnumValueOptions to JSON.
8595 * @returns JSON object
8596 */
8597 public toJSON(): { [k: string]: any };
8598 }
8599
8600 /** Properties of a ServiceOptions. */
8601 interface IServiceOptions {
8602
8603 /** ServiceOptions deprecated */
8604 deprecated?: (boolean|null);
8605
8606 /** ServiceOptions uninterpretedOption */
8607 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8608
8609 /** ServiceOptions .google.api.defaultHost */
8610 ".google.api.defaultHost"?: (string|null);
8611
8612 /** ServiceOptions .google.api.oauthScopes */
8613 ".google.api.oauthScopes"?: (string|null);
8614 }
8615
8616 /** Represents a ServiceOptions. */
8617 class ServiceOptions implements IServiceOptions {
8618
8619 /**
8620 * Constructs a new ServiceOptions.
8621 * @param [properties] Properties to set
8622 */
8623 constructor(properties?: google.protobuf.IServiceOptions);
8624
8625 /** ServiceOptions deprecated. */
8626 public deprecated: boolean;
8627
8628 /** ServiceOptions uninterpretedOption. */
8629 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8630
8631 /**
8632 * Creates a new ServiceOptions instance using the specified properties.
8633 * @param [properties] Properties to set
8634 * @returns ServiceOptions instance
8635 */
8636 public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
8637
8638 /**
8639 * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
8640 * @param message ServiceOptions message or plain object to encode
8641 * @param [writer] Writer to encode to
8642 * @returns Writer
8643 */
8644 public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8645
8646 /**
8647 * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
8648 * @param message ServiceOptions message or plain object to encode
8649 * @param [writer] Writer to encode to
8650 * @returns Writer
8651 */
8652 public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8653
8654 /**
8655 * Decodes a ServiceOptions message from the specified reader or buffer.
8656 * @param reader Reader or buffer to decode from
8657 * @param [length] Message length if known beforehand
8658 * @returns ServiceOptions
8659 * @throws {Error} If the payload is not a reader or valid buffer
8660 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8661 */
8662 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
8663
8664 /**
8665 * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
8666 * @param reader Reader or buffer to decode from
8667 * @returns ServiceOptions
8668 * @throws {Error} If the payload is not a reader or valid buffer
8669 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8670 */
8671 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
8672
8673 /**
8674 * Verifies a ServiceOptions message.
8675 * @param message Plain object to verify
8676 * @returns `null` if valid, otherwise the reason why it is not
8677 */
8678 public static verify(message: { [k: string]: any }): (string|null);
8679
8680 /**
8681 * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
8682 * @param object Plain object
8683 * @returns ServiceOptions
8684 */
8685 public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
8686
8687 /**
8688 * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
8689 * @param message ServiceOptions
8690 * @param [options] Conversion options
8691 * @returns Plain object
8692 */
8693 public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8694
8695 /**
8696 * Converts this ServiceOptions to JSON.
8697 * @returns JSON object
8698 */
8699 public toJSON(): { [k: string]: any };
8700 }
8701
8702 /** Properties of a MethodOptions. */
8703 interface IMethodOptions {
8704
8705 /** MethodOptions deprecated */
8706 deprecated?: (boolean|null);
8707
8708 /** MethodOptions idempotencyLevel */
8709 idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
8710
8711 /** MethodOptions uninterpretedOption */
8712 uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
8713
8714 /** MethodOptions .google.api.http */
8715 ".google.api.http"?: (google.api.IHttpRule|null);
8716
8717 /** MethodOptions .google.api.methodSignature */
8718 ".google.api.methodSignature"?: (string[]|null);
8719
8720 /** MethodOptions .google.longrunning.operationInfo */
8721 ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
8722 }
8723
8724 /** Represents a MethodOptions. */
8725 class MethodOptions implements IMethodOptions {
8726
8727 /**
8728 * Constructs a new MethodOptions.
8729 * @param [properties] Properties to set
8730 */
8731 constructor(properties?: google.protobuf.IMethodOptions);
8732
8733 /** MethodOptions deprecated. */
8734 public deprecated: boolean;
8735
8736 /** MethodOptions idempotencyLevel. */
8737 public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
8738
8739 /** MethodOptions uninterpretedOption. */
8740 public uninterpretedOption: google.protobuf.IUninterpretedOption[];
8741
8742 /**
8743 * Creates a new MethodOptions instance using the specified properties.
8744 * @param [properties] Properties to set
8745 * @returns MethodOptions instance
8746 */
8747 public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
8748
8749 /**
8750 * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
8751 * @param message MethodOptions message or plain object to encode
8752 * @param [writer] Writer to encode to
8753 * @returns Writer
8754 */
8755 public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8756
8757 /**
8758 * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
8759 * @param message MethodOptions message or plain object to encode
8760 * @param [writer] Writer to encode to
8761 * @returns Writer
8762 */
8763 public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
8764
8765 /**
8766 * Decodes a MethodOptions message from the specified reader or buffer.
8767 * @param reader Reader or buffer to decode from
8768 * @param [length] Message length if known beforehand
8769 * @returns MethodOptions
8770 * @throws {Error} If the payload is not a reader or valid buffer
8771 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8772 */
8773 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
8774
8775 /**
8776 * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
8777 * @param reader Reader or buffer to decode from
8778 * @returns MethodOptions
8779 * @throws {Error} If the payload is not a reader or valid buffer
8780 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8781 */
8782 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
8783
8784 /**
8785 * Verifies a MethodOptions message.
8786 * @param message Plain object to verify
8787 * @returns `null` if valid, otherwise the reason why it is not
8788 */
8789 public static verify(message: { [k: string]: any }): (string|null);
8790
8791 /**
8792 * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
8793 * @param object Plain object
8794 * @returns MethodOptions
8795 */
8796 public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
8797
8798 /**
8799 * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
8800 * @param message MethodOptions
8801 * @param [options] Conversion options
8802 * @returns Plain object
8803 */
8804 public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
8805
8806 /**
8807 * Converts this MethodOptions to JSON.
8808 * @returns JSON object
8809 */
8810 public toJSON(): { [k: string]: any };
8811 }
8812
8813 namespace MethodOptions {
8814
8815 /** IdempotencyLevel enum. */
8816 enum IdempotencyLevel {
8817 IDEMPOTENCY_UNKNOWN = 0,
8818 NO_SIDE_EFFECTS = 1,
8819 IDEMPOTENT = 2
8820 }
8821 }
8822
8823 /** Properties of an UninterpretedOption. */
8824 interface IUninterpretedOption {
8825
8826 /** UninterpretedOption name */
8827 name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
8828
8829 /** UninterpretedOption identifierValue */
8830 identifierValue?: (string|null);
8831
8832 /** UninterpretedOption positiveIntValue */
8833 positiveIntValue?: (number|Long|string|null);
8834
8835 /** UninterpretedOption negativeIntValue */
8836 negativeIntValue?: (number|Long|string|null);
8837
8838 /** UninterpretedOption doubleValue */
8839 doubleValue?: (number|null);
8840
8841 /** UninterpretedOption stringValue */
8842 stringValue?: (Uint8Array|string|null);
8843
8844 /** UninterpretedOption aggregateValue */
8845 aggregateValue?: (string|null);
8846 }
8847
8848 /** Represents an UninterpretedOption. */
8849 class UninterpretedOption implements IUninterpretedOption {
8850
8851 /**
8852 * Constructs a new UninterpretedOption.
8853 * @param [properties] Properties to set
8854 */
8855 constructor(properties?: google.protobuf.IUninterpretedOption);
8856
8857 /** UninterpretedOption name. */
8858 public name: google.protobuf.UninterpretedOption.INamePart[];
8859
8860 /** UninterpretedOption identifierValue. */
8861 public identifierValue: string;
8862
8863 /** UninterpretedOption positiveIntValue. */
8864 public positiveIntValue: (number|Long|string);
8865
8866 /** UninterpretedOption negativeIntValue. */
8867 public negativeIntValue: (number|Long|string);
8868
8869 /** UninterpretedOption doubleValue. */
8870 public doubleValue: number;
8871
8872 /** UninterpretedOption stringValue. */
8873 public stringValue: (Uint8Array|string);
8874
8875 /** UninterpretedOption aggregateValue. */
8876 public aggregateValue: string;
8877
8878 /**
8879 * Creates a new UninterpretedOption instance using the specified properties.
8880 * @param [properties] Properties to set
8881 * @returns UninterpretedOption instance
8882 */
8883 public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
8884
8885 /**
8886 * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
8887 * @param message UninterpretedOption message or plain object to encode
8888 * @param [writer] Writer to encode to
8889 * @returns Writer
8890 */
8891 public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
8892
8893 /**
8894 * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
8895 * @param message UninterpretedOption message or plain object to encode
8896 * @param [writer] Writer to encode to
8897 * @returns Writer
8898 */
8899 public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
8900
8901 /**
8902 * Decodes an UninterpretedOption message from the specified reader or buffer.
8903 * @param reader Reader or buffer to decode from
8904 * @param [length] Message length if known beforehand
8905 * @returns UninterpretedOption
8906 * @throws {Error} If the payload is not a reader or valid buffer
8907 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8908 */
8909 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
8910
8911 /**
8912 * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
8913 * @param reader Reader or buffer to decode from
8914 * @returns UninterpretedOption
8915 * @throws {Error} If the payload is not a reader or valid buffer
8916 * @throws {$protobuf.util.ProtocolError} If required fields are missing
8917 */
8918 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
8919
8920 /**
8921 * Verifies an UninterpretedOption message.
8922 * @param message Plain object to verify
8923 * @returns `null` if valid, otherwise the reason why it is not
8924 */
8925 public static verify(message: { [k: string]: any }): (string|null);
8926
8927 /**
8928 * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
8929 * @param object Plain object
8930 * @returns UninterpretedOption
8931 */
8932 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
8933
8934 /**
8935 * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
8936 * @param message UninterpretedOption
8937 * @param [options] Conversion options
8938 * @returns Plain object
8939 */
8940 public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
8941
8942 /**
8943 * Converts this UninterpretedOption to JSON.
8944 * @returns JSON object
8945 */
8946 public toJSON(): { [k: string]: any };
8947 }
8948
8949 namespace UninterpretedOption {
8950
8951 /** Properties of a NamePart. */
8952 interface INamePart {
8953
8954 /** NamePart namePart */
8955 namePart: string;
8956
8957 /** NamePart isExtension */
8958 isExtension: boolean;
8959 }
8960
8961 /** Represents a NamePart. */
8962 class NamePart implements INamePart {
8963
8964 /**
8965 * Constructs a new NamePart.
8966 * @param [properties] Properties to set
8967 */
8968 constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
8969
8970 /** NamePart namePart. */
8971 public namePart: string;
8972
8973 /** NamePart isExtension. */
8974 public isExtension: boolean;
8975
8976 /**
8977 * Creates a new NamePart instance using the specified properties.
8978 * @param [properties] Properties to set
8979 * @returns NamePart instance
8980 */
8981 public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
8982
8983 /**
8984 * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
8985 * @param message NamePart message or plain object to encode
8986 * @param [writer] Writer to encode to
8987 * @returns Writer
8988 */
8989 public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
8990
8991 /**
8992 * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
8993 * @param message NamePart message or plain object to encode
8994 * @param [writer] Writer to encode to
8995 * @returns Writer
8996 */
8997 public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
8998
8999 /**
9000 * Decodes a NamePart message from the specified reader or buffer.
9001 * @param reader Reader or buffer to decode from
9002 * @param [length] Message length if known beforehand
9003 * @returns NamePart
9004 * @throws {Error} If the payload is not a reader or valid buffer
9005 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9006 */
9007 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
9008
9009 /**
9010 * Decodes a NamePart message from the specified reader or buffer, length delimited.
9011 * @param reader Reader or buffer to decode from
9012 * @returns NamePart
9013 * @throws {Error} If the payload is not a reader or valid buffer
9014 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9015 */
9016 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
9017
9018 /**
9019 * Verifies a NamePart message.
9020 * @param message Plain object to verify
9021 * @returns `null` if valid, otherwise the reason why it is not
9022 */
9023 public static verify(message: { [k: string]: any }): (string|null);
9024
9025 /**
9026 * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
9027 * @param object Plain object
9028 * @returns NamePart
9029 */
9030 public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
9031
9032 /**
9033 * Creates a plain object from a NamePart message. Also converts values to other types if specified.
9034 * @param message NamePart
9035 * @param [options] Conversion options
9036 * @returns Plain object
9037 */
9038 public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
9039
9040 /**
9041 * Converts this NamePart to JSON.
9042 * @returns JSON object
9043 */
9044 public toJSON(): { [k: string]: any };
9045 }
9046 }
9047
9048 /** Properties of a SourceCodeInfo. */
9049 interface ISourceCodeInfo {
9050
9051 /** SourceCodeInfo location */
9052 location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
9053 }
9054
9055 /** Represents a SourceCodeInfo. */
9056 class SourceCodeInfo implements ISourceCodeInfo {
9057
9058 /**
9059 * Constructs a new SourceCodeInfo.
9060 * @param [properties] Properties to set
9061 */
9062 constructor(properties?: google.protobuf.ISourceCodeInfo);
9063
9064 /** SourceCodeInfo location. */
9065 public location: google.protobuf.SourceCodeInfo.ILocation[];
9066
9067 /**
9068 * Creates a new SourceCodeInfo instance using the specified properties.
9069 * @param [properties] Properties to set
9070 * @returns SourceCodeInfo instance
9071 */
9072 public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
9073
9074 /**
9075 * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
9076 * @param message SourceCodeInfo message or plain object to encode
9077 * @param [writer] Writer to encode to
9078 * @returns Writer
9079 */
9080 public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9081
9082 /**
9083 * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
9084 * @param message SourceCodeInfo message or plain object to encode
9085 * @param [writer] Writer to encode to
9086 * @returns Writer
9087 */
9088 public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9089
9090 /**
9091 * Decodes a SourceCodeInfo message from the specified reader or buffer.
9092 * @param reader Reader or buffer to decode from
9093 * @param [length] Message length if known beforehand
9094 * @returns SourceCodeInfo
9095 * @throws {Error} If the payload is not a reader or valid buffer
9096 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9097 */
9098 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
9099
9100 /**
9101 * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
9102 * @param reader Reader or buffer to decode from
9103 * @returns SourceCodeInfo
9104 * @throws {Error} If the payload is not a reader or valid buffer
9105 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9106 */
9107 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
9108
9109 /**
9110 * Verifies a SourceCodeInfo message.
9111 * @param message Plain object to verify
9112 * @returns `null` if valid, otherwise the reason why it is not
9113 */
9114 public static verify(message: { [k: string]: any }): (string|null);
9115
9116 /**
9117 * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
9118 * @param object Plain object
9119 * @returns SourceCodeInfo
9120 */
9121 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
9122
9123 /**
9124 * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
9125 * @param message SourceCodeInfo
9126 * @param [options] Conversion options
9127 * @returns Plain object
9128 */
9129 public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9130
9131 /**
9132 * Converts this SourceCodeInfo to JSON.
9133 * @returns JSON object
9134 */
9135 public toJSON(): { [k: string]: any };
9136 }
9137
9138 namespace SourceCodeInfo {
9139
9140 /** Properties of a Location. */
9141 interface ILocation {
9142
9143 /** Location path */
9144 path?: (number[]|null);
9145
9146 /** Location span */
9147 span?: (number[]|null);
9148
9149 /** Location leadingComments */
9150 leadingComments?: (string|null);
9151
9152 /** Location trailingComments */
9153 trailingComments?: (string|null);
9154
9155 /** Location leadingDetachedComments */
9156 leadingDetachedComments?: (string[]|null);
9157 }
9158
9159 /** Represents a Location. */
9160 class Location implements ILocation {
9161
9162 /**
9163 * Constructs a new Location.
9164 * @param [properties] Properties to set
9165 */
9166 constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
9167
9168 /** Location path. */
9169 public path: number[];
9170
9171 /** Location span. */
9172 public span: number[];
9173
9174 /** Location leadingComments. */
9175 public leadingComments: string;
9176
9177 /** Location trailingComments. */
9178 public trailingComments: string;
9179
9180 /** Location leadingDetachedComments. */
9181 public leadingDetachedComments: string[];
9182
9183 /**
9184 * Creates a new Location instance using the specified properties.
9185 * @param [properties] Properties to set
9186 * @returns Location instance
9187 */
9188 public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
9189
9190 /**
9191 * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
9192 * @param message Location message or plain object to encode
9193 * @param [writer] Writer to encode to
9194 * @returns Writer
9195 */
9196 public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
9197
9198 /**
9199 * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
9200 * @param message Location message or plain object to encode
9201 * @param [writer] Writer to encode to
9202 * @returns Writer
9203 */
9204 public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
9205
9206 /**
9207 * Decodes a Location message from the specified reader or buffer.
9208 * @param reader Reader or buffer to decode from
9209 * @param [length] Message length if known beforehand
9210 * @returns Location
9211 * @throws {Error} If the payload is not a reader or valid buffer
9212 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9213 */
9214 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
9215
9216 /**
9217 * Decodes a Location message from the specified reader or buffer, length delimited.
9218 * @param reader Reader or buffer to decode from
9219 * @returns Location
9220 * @throws {Error} If the payload is not a reader or valid buffer
9221 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9222 */
9223 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
9224
9225 /**
9226 * Verifies a Location message.
9227 * @param message Plain object to verify
9228 * @returns `null` if valid, otherwise the reason why it is not
9229 */
9230 public static verify(message: { [k: string]: any }): (string|null);
9231
9232 /**
9233 * Creates a Location message from a plain object. Also converts values to their respective internal types.
9234 * @param object Plain object
9235 * @returns Location
9236 */
9237 public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
9238
9239 /**
9240 * Creates a plain object from a Location message. Also converts values to other types if specified.
9241 * @param message Location
9242 * @param [options] Conversion options
9243 * @returns Plain object
9244 */
9245 public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
9246
9247 /**
9248 * Converts this Location to JSON.
9249 * @returns JSON object
9250 */
9251 public toJSON(): { [k: string]: any };
9252 }
9253 }
9254
9255 /** Properties of a GeneratedCodeInfo. */
9256 interface IGeneratedCodeInfo {
9257
9258 /** GeneratedCodeInfo annotation */
9259 annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
9260 }
9261
9262 /** Represents a GeneratedCodeInfo. */
9263 class GeneratedCodeInfo implements IGeneratedCodeInfo {
9264
9265 /**
9266 * Constructs a new GeneratedCodeInfo.
9267 * @param [properties] Properties to set
9268 */
9269 constructor(properties?: google.protobuf.IGeneratedCodeInfo);
9270
9271 /** GeneratedCodeInfo annotation. */
9272 public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
9273
9274 /**
9275 * Creates a new GeneratedCodeInfo instance using the specified properties.
9276 * @param [properties] Properties to set
9277 * @returns GeneratedCodeInfo instance
9278 */
9279 public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
9280
9281 /**
9282 * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
9283 * @param message GeneratedCodeInfo message or plain object to encode
9284 * @param [writer] Writer to encode to
9285 * @returns Writer
9286 */
9287 public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9288
9289 /**
9290 * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
9291 * @param message GeneratedCodeInfo message or plain object to encode
9292 * @param [writer] Writer to encode to
9293 * @returns Writer
9294 */
9295 public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9296
9297 /**
9298 * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
9299 * @param reader Reader or buffer to decode from
9300 * @param [length] Message length if known beforehand
9301 * @returns GeneratedCodeInfo
9302 * @throws {Error} If the payload is not a reader or valid buffer
9303 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9304 */
9305 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
9306
9307 /**
9308 * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
9309 * @param reader Reader or buffer to decode from
9310 * @returns GeneratedCodeInfo
9311 * @throws {Error} If the payload is not a reader or valid buffer
9312 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9313 */
9314 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
9315
9316 /**
9317 * Verifies a GeneratedCodeInfo message.
9318 * @param message Plain object to verify
9319 * @returns `null` if valid, otherwise the reason why it is not
9320 */
9321 public static verify(message: { [k: string]: any }): (string|null);
9322
9323 /**
9324 * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
9325 * @param object Plain object
9326 * @returns GeneratedCodeInfo
9327 */
9328 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
9329
9330 /**
9331 * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
9332 * @param message GeneratedCodeInfo
9333 * @param [options] Conversion options
9334 * @returns Plain object
9335 */
9336 public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9337
9338 /**
9339 * Converts this GeneratedCodeInfo to JSON.
9340 * @returns JSON object
9341 */
9342 public toJSON(): { [k: string]: any };
9343 }
9344
9345 namespace GeneratedCodeInfo {
9346
9347 /** Properties of an Annotation. */
9348 interface IAnnotation {
9349
9350 /** Annotation path */
9351 path?: (number[]|null);
9352
9353 /** Annotation sourceFile */
9354 sourceFile?: (string|null);
9355
9356 /** Annotation begin */
9357 begin?: (number|null);
9358
9359 /** Annotation end */
9360 end?: (number|null);
9361 }
9362
9363 /** Represents an Annotation. */
9364 class Annotation implements IAnnotation {
9365
9366 /**
9367 * Constructs a new Annotation.
9368 * @param [properties] Properties to set
9369 */
9370 constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
9371
9372 /** Annotation path. */
9373 public path: number[];
9374
9375 /** Annotation sourceFile. */
9376 public sourceFile: string;
9377
9378 /** Annotation begin. */
9379 public begin: number;
9380
9381 /** Annotation end. */
9382 public end: number;
9383
9384 /**
9385 * Creates a new Annotation instance using the specified properties.
9386 * @param [properties] Properties to set
9387 * @returns Annotation instance
9388 */
9389 public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
9390
9391 /**
9392 * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9393 * @param message Annotation message or plain object to encode
9394 * @param [writer] Writer to encode to
9395 * @returns Writer
9396 */
9397 public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9398
9399 /**
9400 * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
9401 * @param message Annotation message or plain object to encode
9402 * @param [writer] Writer to encode to
9403 * @returns Writer
9404 */
9405 public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
9406
9407 /**
9408 * Decodes an Annotation message from the specified reader or buffer.
9409 * @param reader Reader or buffer to decode from
9410 * @param [length] Message length if known beforehand
9411 * @returns Annotation
9412 * @throws {Error} If the payload is not a reader or valid buffer
9413 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9414 */
9415 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
9416
9417 /**
9418 * Decodes an Annotation message from the specified reader or buffer, length delimited.
9419 * @param reader Reader or buffer to decode from
9420 * @returns Annotation
9421 * @throws {Error} If the payload is not a reader or valid buffer
9422 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9423 */
9424 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
9425
9426 /**
9427 * Verifies an Annotation message.
9428 * @param message Plain object to verify
9429 * @returns `null` if valid, otherwise the reason why it is not
9430 */
9431 public static verify(message: { [k: string]: any }): (string|null);
9432
9433 /**
9434 * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
9435 * @param object Plain object
9436 * @returns Annotation
9437 */
9438 public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
9439
9440 /**
9441 * Creates a plain object from an Annotation message. Also converts values to other types if specified.
9442 * @param message Annotation
9443 * @param [options] Conversion options
9444 * @returns Plain object
9445 */
9446 public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
9447
9448 /**
9449 * Converts this Annotation to JSON.
9450 * @returns JSON object
9451 */
9452 public toJSON(): { [k: string]: any };
9453 }
9454 }
9455
9456 /** Properties of an Any. */
9457 interface IAny {
9458
9459 /** Any type_url */
9460 type_url?: (string|null);
9461
9462 /** Any value */
9463 value?: (Uint8Array|string|null);
9464 }
9465
9466 /** Represents an Any. */
9467 class Any implements IAny {
9468
9469 /**
9470 * Constructs a new Any.
9471 * @param [properties] Properties to set
9472 */
9473 constructor(properties?: google.protobuf.IAny);
9474
9475 /** Any type_url. */
9476 public type_url: string;
9477
9478 /** Any value. */
9479 public value: (Uint8Array|string);
9480
9481 /**
9482 * Creates a new Any instance using the specified properties.
9483 * @param [properties] Properties to set
9484 * @returns Any instance
9485 */
9486 public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
9487
9488 /**
9489 * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
9490 * @param message Any message or plain object to encode
9491 * @param [writer] Writer to encode to
9492 * @returns Writer
9493 */
9494 public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
9495
9496 /**
9497 * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
9498 * @param message Any message or plain object to encode
9499 * @param [writer] Writer to encode to
9500 * @returns Writer
9501 */
9502 public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
9503
9504 /**
9505 * Decodes an Any message from the specified reader or buffer.
9506 * @param reader Reader or buffer to decode from
9507 * @param [length] Message length if known beforehand
9508 * @returns Any
9509 * @throws {Error} If the payload is not a reader or valid buffer
9510 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9511 */
9512 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
9513
9514 /**
9515 * Decodes an Any message from the specified reader or buffer, length delimited.
9516 * @param reader Reader or buffer to decode from
9517 * @returns Any
9518 * @throws {Error} If the payload is not a reader or valid buffer
9519 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9520 */
9521 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
9522
9523 /**
9524 * Verifies an Any message.
9525 * @param message Plain object to verify
9526 * @returns `null` if valid, otherwise the reason why it is not
9527 */
9528 public static verify(message: { [k: string]: any }): (string|null);
9529
9530 /**
9531 * Creates an Any message from a plain object. Also converts values to their respective internal types.
9532 * @param object Plain object
9533 * @returns Any
9534 */
9535 public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
9536
9537 /**
9538 * Creates a plain object from an Any message. Also converts values to other types if specified.
9539 * @param message Any
9540 * @param [options] Conversion options
9541 * @returns Plain object
9542 */
9543 public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
9544
9545 /**
9546 * Converts this Any to JSON.
9547 * @returns JSON object
9548 */
9549 public toJSON(): { [k: string]: any };
9550 }
9551
9552 /** Properties of a Duration. */
9553 interface IDuration {
9554
9555 /** Duration seconds */
9556 seconds?: (number|Long|string|null);
9557
9558 /** Duration nanos */
9559 nanos?: (number|null);
9560 }
9561
9562 /** Represents a Duration. */
9563 class Duration implements IDuration {
9564
9565 /**
9566 * Constructs a new Duration.
9567 * @param [properties] Properties to set
9568 */
9569 constructor(properties?: google.protobuf.IDuration);
9570
9571 /** Duration seconds. */
9572 public seconds: (number|Long|string);
9573
9574 /** Duration nanos. */
9575 public nanos: number;
9576
9577 /**
9578 * Creates a new Duration instance using the specified properties.
9579 * @param [properties] Properties to set
9580 * @returns Duration instance
9581 */
9582 public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
9583
9584 /**
9585 * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
9586 * @param message Duration message or plain object to encode
9587 * @param [writer] Writer to encode to
9588 * @returns Writer
9589 */
9590 public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
9591
9592 /**
9593 * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
9594 * @param message Duration message or plain object to encode
9595 * @param [writer] Writer to encode to
9596 * @returns Writer
9597 */
9598 public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
9599
9600 /**
9601 * Decodes a Duration message from the specified reader or buffer.
9602 * @param reader Reader or buffer to decode from
9603 * @param [length] Message length if known beforehand
9604 * @returns Duration
9605 * @throws {Error} If the payload is not a reader or valid buffer
9606 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9607 */
9608 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
9609
9610 /**
9611 * Decodes a Duration message from the specified reader or buffer, length delimited.
9612 * @param reader Reader or buffer to decode from
9613 * @returns Duration
9614 * @throws {Error} If the payload is not a reader or valid buffer
9615 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9616 */
9617 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
9618
9619 /**
9620 * Verifies a Duration message.
9621 * @param message Plain object to verify
9622 * @returns `null` if valid, otherwise the reason why it is not
9623 */
9624 public static verify(message: { [k: string]: any }): (string|null);
9625
9626 /**
9627 * Creates a Duration message from a plain object. Also converts values to their respective internal types.
9628 * @param object Plain object
9629 * @returns Duration
9630 */
9631 public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
9632
9633 /**
9634 * Creates a plain object from a Duration message. Also converts values to other types if specified.
9635 * @param message Duration
9636 * @param [options] Conversion options
9637 * @returns Plain object
9638 */
9639 public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
9640
9641 /**
9642 * Converts this Duration to JSON.
9643 * @returns JSON object
9644 */
9645 public toJSON(): { [k: string]: any };
9646 }
9647
9648 /** Properties of an Empty. */
9649 interface IEmpty {
9650 }
9651
9652 /** Represents an Empty. */
9653 class Empty implements IEmpty {
9654
9655 /**
9656 * Constructs a new Empty.
9657 * @param [properties] Properties to set
9658 */
9659 constructor(properties?: google.protobuf.IEmpty);
9660
9661 /**
9662 * Creates a new Empty instance using the specified properties.
9663 * @param [properties] Properties to set
9664 * @returns Empty instance
9665 */
9666 public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
9667
9668 /**
9669 * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
9670 * @param message Empty message or plain object to encode
9671 * @param [writer] Writer to encode to
9672 * @returns Writer
9673 */
9674 public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
9675
9676 /**
9677 * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
9678 * @param message Empty message or plain object to encode
9679 * @param [writer] Writer to encode to
9680 * @returns Writer
9681 */
9682 public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
9683
9684 /**
9685 * Decodes an Empty message from the specified reader or buffer.
9686 * @param reader Reader or buffer to decode from
9687 * @param [length] Message length if known beforehand
9688 * @returns Empty
9689 * @throws {Error} If the payload is not a reader or valid buffer
9690 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9691 */
9692 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
9693
9694 /**
9695 * Decodes an Empty message from the specified reader or buffer, length delimited.
9696 * @param reader Reader or buffer to decode from
9697 * @returns Empty
9698 * @throws {Error} If the payload is not a reader or valid buffer
9699 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9700 */
9701 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
9702
9703 /**
9704 * Verifies an Empty message.
9705 * @param message Plain object to verify
9706 * @returns `null` if valid, otherwise the reason why it is not
9707 */
9708 public static verify(message: { [k: string]: any }): (string|null);
9709
9710 /**
9711 * Creates an Empty message from a plain object. Also converts values to their respective internal types.
9712 * @param object Plain object
9713 * @returns Empty
9714 */
9715 public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
9716
9717 /**
9718 * Creates a plain object from an Empty message. Also converts values to other types if specified.
9719 * @param message Empty
9720 * @param [options] Conversion options
9721 * @returns Plain object
9722 */
9723 public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
9724
9725 /**
9726 * Converts this Empty to JSON.
9727 * @returns JSON object
9728 */
9729 public toJSON(): { [k: string]: any };
9730 }
9731
9732 /** Properties of a Timestamp. */
9733 interface ITimestamp {
9734
9735 /** Timestamp seconds */
9736 seconds?: (number|Long|string|null);
9737
9738 /** Timestamp nanos */
9739 nanos?: (number|null);
9740 }
9741
9742 /** Represents a Timestamp. */
9743 class Timestamp implements ITimestamp {
9744
9745 /**
9746 * Constructs a new Timestamp.
9747 * @param [properties] Properties to set
9748 */
9749 constructor(properties?: google.protobuf.ITimestamp);
9750
9751 /** Timestamp seconds. */
9752 public seconds: (number|Long|string);
9753
9754 /** Timestamp nanos. */
9755 public nanos: number;
9756
9757 /**
9758 * Creates a new Timestamp instance using the specified properties.
9759 * @param [properties] Properties to set
9760 * @returns Timestamp instance
9761 */
9762 public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
9763
9764 /**
9765 * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
9766 * @param message Timestamp message or plain object to encode
9767 * @param [writer] Writer to encode to
9768 * @returns Writer
9769 */
9770 public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
9771
9772 /**
9773 * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
9774 * @param message Timestamp message or plain object to encode
9775 * @param [writer] Writer to encode to
9776 * @returns Writer
9777 */
9778 public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
9779
9780 /**
9781 * Decodes a Timestamp message from the specified reader or buffer.
9782 * @param reader Reader or buffer to decode from
9783 * @param [length] Message length if known beforehand
9784 * @returns Timestamp
9785 * @throws {Error} If the payload is not a reader or valid buffer
9786 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9787 */
9788 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
9789
9790 /**
9791 * Decodes a Timestamp message from the specified reader or buffer, length delimited.
9792 * @param reader Reader or buffer to decode from
9793 * @returns Timestamp
9794 * @throws {Error} If the payload is not a reader or valid buffer
9795 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9796 */
9797 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
9798
9799 /**
9800 * Verifies a Timestamp message.
9801 * @param message Plain object to verify
9802 * @returns `null` if valid, otherwise the reason why it is not
9803 */
9804 public static verify(message: { [k: string]: any }): (string|null);
9805
9806 /**
9807 * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
9808 * @param object Plain object
9809 * @returns Timestamp
9810 */
9811 public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
9812
9813 /**
9814 * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
9815 * @param message Timestamp
9816 * @param [options] Conversion options
9817 * @returns Plain object
9818 */
9819 public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
9820
9821 /**
9822 * Converts this Timestamp to JSON.
9823 * @returns JSON object
9824 */
9825 public toJSON(): { [k: string]: any };
9826 }
9827
9828 /** Properties of a Struct. */
9829 interface IStruct {
9830
9831 /** Struct fields */
9832 fields?: ({ [k: string]: google.protobuf.IValue }|null);
9833 }
9834
9835 /** Represents a Struct. */
9836 class Struct implements IStruct {
9837
9838 /**
9839 * Constructs a new Struct.
9840 * @param [properties] Properties to set
9841 */
9842 constructor(properties?: google.protobuf.IStruct);
9843
9844 /** Struct fields. */
9845 public fields: { [k: string]: google.protobuf.IValue };
9846
9847 /**
9848 * Creates a new Struct instance using the specified properties.
9849 * @param [properties] Properties to set
9850 * @returns Struct instance
9851 */
9852 public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
9853
9854 /**
9855 * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
9856 * @param message Struct message or plain object to encode
9857 * @param [writer] Writer to encode to
9858 * @returns Writer
9859 */
9860 public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
9861
9862 /**
9863 * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
9864 * @param message Struct message or plain object to encode
9865 * @param [writer] Writer to encode to
9866 * @returns Writer
9867 */
9868 public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
9869
9870 /**
9871 * Decodes a Struct message from the specified reader or buffer.
9872 * @param reader Reader or buffer to decode from
9873 * @param [length] Message length if known beforehand
9874 * @returns Struct
9875 * @throws {Error} If the payload is not a reader or valid buffer
9876 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9877 */
9878 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct;
9879
9880 /**
9881 * Decodes a Struct message from the specified reader or buffer, length delimited.
9882 * @param reader Reader or buffer to decode from
9883 * @returns Struct
9884 * @throws {Error} If the payload is not a reader or valid buffer
9885 * @throws {$protobuf.util.ProtocolError} If required fields are missing
9886 */
9887 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Struct;
9888
9889 /**
9890 * Verifies a Struct message.
9891 * @param message Plain object to verify
9892 * @returns `null` if valid, otherwise the reason why it is not
9893 */
9894 public static verify(message: { [k: string]: any }): (string|null);
9895
9896 /**
9897 * Creates a Struct message from a plain object. Also converts values to their respective internal types.
9898 * @param object Plain object
9899 * @returns Struct
9900 */
9901 public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
9902
9903 /**
9904 * Creates a plain object from a Struct message. Also converts values to other types if specified.
9905 * @param message Struct
9906 * @param [options] Conversion options
9907 * @returns Plain object
9908 */
9909 public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
9910
9911 /**
9912 * Converts this Struct to JSON.
9913 * @returns JSON object
9914 */
9915 public toJSON(): { [k: string]: any };
9916 }
9917
9918 /** Properties of a Value. */
9919 interface IValue {
9920
9921 /** Value nullValue */
9922 nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
9923
9924 /** Value numberValue */
9925 numberValue?: (number|null);
9926
9927 /** Value stringValue */
9928 stringValue?: (string|null);
9929
9930 /** Value boolValue */
9931 boolValue?: (boolean|null);
9932
9933 /** Value structValue */
9934 structValue?: (google.protobuf.IStruct|null);
9935
9936 /** Value listValue */
9937 listValue?: (google.protobuf.IListValue|null);
9938 }
9939
9940 /** Represents a Value. */
9941 class Value implements IValue {
9942
9943 /**
9944 * Constructs a new Value.
9945 * @param [properties] Properties to set
9946 */
9947 constructor(properties?: google.protobuf.IValue);
9948
9949 /** Value nullValue. */
9950 public nullValue: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue);
9951
9952 /** Value numberValue. */
9953 public numberValue: number;
9954
9955 /** Value stringValue. */
9956 public stringValue: string;
9957
9958 /** Value boolValue. */
9959 public boolValue: boolean;
9960
9961 /** Value structValue. */
9962 public structValue?: (google.protobuf.IStruct|null);
9963
9964 /** Value listValue. */
9965 public listValue?: (google.protobuf.IListValue|null);
9966
9967 /** Value kind. */
9968 public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
9969
9970 /**
9971 * Creates a new Value instance using the specified properties.
9972 * @param [properties] Properties to set
9973 * @returns Value instance
9974 */
9975 public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
9976
9977 /**
9978 * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
9979 * @param message Value message or plain object to encode
9980 * @param [writer] Writer to encode to
9981 * @returns Writer
9982 */
9983 public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
9984
9985 /**
9986 * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
9987 * @param message Value message or plain object to encode
9988 * @param [writer] Writer to encode to
9989 * @returns Writer
9990 */
9991 public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
9992
9993 /**
9994 * Decodes a Value message from the specified reader or buffer.
9995 * @param reader Reader or buffer to decode from
9996 * @param [length] Message length if known beforehand
9997 * @returns Value
9998 * @throws {Error} If the payload is not a reader or valid buffer
9999 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10000 */
10001 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value;
10002
10003 /**
10004 * Decodes a Value message from the specified reader or buffer, length delimited.
10005 * @param reader Reader or buffer to decode from
10006 * @returns Value
10007 * @throws {Error} If the payload is not a reader or valid buffer
10008 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10009 */
10010 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Value;
10011
10012 /**
10013 * Verifies a Value message.
10014 * @param message Plain object to verify
10015 * @returns `null` if valid, otherwise the reason why it is not
10016 */
10017 public static verify(message: { [k: string]: any }): (string|null);
10018
10019 /**
10020 * Creates a Value message from a plain object. Also converts values to their respective internal types.
10021 * @param object Plain object
10022 * @returns Value
10023 */
10024 public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
10025
10026 /**
10027 * Creates a plain object from a Value message. Also converts values to other types if specified.
10028 * @param message Value
10029 * @param [options] Conversion options
10030 * @returns Plain object
10031 */
10032 public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10033
10034 /**
10035 * Converts this Value to JSON.
10036 * @returns JSON object
10037 */
10038 public toJSON(): { [k: string]: any };
10039 }
10040
10041 /** NullValue enum. */
10042 enum NullValue {
10043 NULL_VALUE = 0
10044 }
10045
10046 /** Properties of a ListValue. */
10047 interface IListValue {
10048
10049 /** ListValue values */
10050 values?: (google.protobuf.IValue[]|null);
10051 }
10052
10053 /** Represents a ListValue. */
10054 class ListValue implements IListValue {
10055
10056 /**
10057 * Constructs a new ListValue.
10058 * @param [properties] Properties to set
10059 */
10060 constructor(properties?: google.protobuf.IListValue);
10061
10062 /** ListValue values. */
10063 public values: google.protobuf.IValue[];
10064
10065 /**
10066 * Creates a new ListValue instance using the specified properties.
10067 * @param [properties] Properties to set
10068 * @returns ListValue instance
10069 */
10070 public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
10071
10072 /**
10073 * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
10074 * @param message ListValue message or plain object to encode
10075 * @param [writer] Writer to encode to
10076 * @returns Writer
10077 */
10078 public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
10079
10080 /**
10081 * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
10082 * @param message ListValue message or plain object to encode
10083 * @param [writer] Writer to encode to
10084 * @returns Writer
10085 */
10086 public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
10087
10088 /**
10089 * Decodes a ListValue message from the specified reader or buffer.
10090 * @param reader Reader or buffer to decode from
10091 * @param [length] Message length if known beforehand
10092 * @returns ListValue
10093 * @throws {Error} If the payload is not a reader or valid buffer
10094 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10095 */
10096 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue;
10097
10098 /**
10099 * Decodes a ListValue message from the specified reader or buffer, length delimited.
10100 * @param reader Reader or buffer to decode from
10101 * @returns ListValue
10102 * @throws {Error} If the payload is not a reader or valid buffer
10103 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10104 */
10105 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ListValue;
10106
10107 /**
10108 * Verifies a ListValue message.
10109 * @param message Plain object to verify
10110 * @returns `null` if valid, otherwise the reason why it is not
10111 */
10112 public static verify(message: { [k: string]: any }): (string|null);
10113
10114 /**
10115 * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
10116 * @param object Plain object
10117 * @returns ListValue
10118 */
10119 public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
10120
10121 /**
10122 * Creates a plain object from a ListValue message. Also converts values to other types if specified.
10123 * @param message ListValue
10124 * @param [options] Conversion options
10125 * @returns Plain object
10126 */
10127 public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10128
10129 /**
10130 * Converts this ListValue to JSON.
10131 * @returns JSON object
10132 */
10133 public toJSON(): { [k: string]: any };
10134 }
10135
10136 /** Properties of a DoubleValue. */
10137 interface IDoubleValue {
10138
10139 /** DoubleValue value */
10140 value?: (number|null);
10141 }
10142
10143 /** Represents a DoubleValue. */
10144 class DoubleValue implements IDoubleValue {
10145
10146 /**
10147 * Constructs a new DoubleValue.
10148 * @param [properties] Properties to set
10149 */
10150 constructor(properties?: google.protobuf.IDoubleValue);
10151
10152 /** DoubleValue value. */
10153 public value: number;
10154
10155 /**
10156 * Creates a new DoubleValue instance using the specified properties.
10157 * @param [properties] Properties to set
10158 * @returns DoubleValue instance
10159 */
10160 public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
10161
10162 /**
10163 * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
10164 * @param message DoubleValue message or plain object to encode
10165 * @param [writer] Writer to encode to
10166 * @returns Writer
10167 */
10168 public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
10169
10170 /**
10171 * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
10172 * @param message DoubleValue message or plain object to encode
10173 * @param [writer] Writer to encode to
10174 * @returns Writer
10175 */
10176 public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
10177
10178 /**
10179 * Decodes a DoubleValue message from the specified reader or buffer.
10180 * @param reader Reader or buffer to decode from
10181 * @param [length] Message length if known beforehand
10182 * @returns DoubleValue
10183 * @throws {Error} If the payload is not a reader or valid buffer
10184 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10185 */
10186 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue;
10187
10188 /**
10189 * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
10190 * @param reader Reader or buffer to decode from
10191 * @returns DoubleValue
10192 * @throws {Error} If the payload is not a reader or valid buffer
10193 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10194 */
10195 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue;
10196
10197 /**
10198 * Verifies a DoubleValue message.
10199 * @param message Plain object to verify
10200 * @returns `null` if valid, otherwise the reason why it is not
10201 */
10202 public static verify(message: { [k: string]: any }): (string|null);
10203
10204 /**
10205 * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
10206 * @param object Plain object
10207 * @returns DoubleValue
10208 */
10209 public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
10210
10211 /**
10212 * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
10213 * @param message DoubleValue
10214 * @param [options] Conversion options
10215 * @returns Plain object
10216 */
10217 public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10218
10219 /**
10220 * Converts this DoubleValue to JSON.
10221 * @returns JSON object
10222 */
10223 public toJSON(): { [k: string]: any };
10224 }
10225
10226 /** Properties of a FloatValue. */
10227 interface IFloatValue {
10228
10229 /** FloatValue value */
10230 value?: (number|null);
10231 }
10232
10233 /** Represents a FloatValue. */
10234 class FloatValue implements IFloatValue {
10235
10236 /**
10237 * Constructs a new FloatValue.
10238 * @param [properties] Properties to set
10239 */
10240 constructor(properties?: google.protobuf.IFloatValue);
10241
10242 /** FloatValue value. */
10243 public value: number;
10244
10245 /**
10246 * Creates a new FloatValue instance using the specified properties.
10247 * @param [properties] Properties to set
10248 * @returns FloatValue instance
10249 */
10250 public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
10251
10252 /**
10253 * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
10254 * @param message FloatValue message or plain object to encode
10255 * @param [writer] Writer to encode to
10256 * @returns Writer
10257 */
10258 public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
10259
10260 /**
10261 * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
10262 * @param message FloatValue message or plain object to encode
10263 * @param [writer] Writer to encode to
10264 * @returns Writer
10265 */
10266 public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
10267
10268 /**
10269 * Decodes a FloatValue message from the specified reader or buffer.
10270 * @param reader Reader or buffer to decode from
10271 * @param [length] Message length if known beforehand
10272 * @returns FloatValue
10273 * @throws {Error} If the payload is not a reader or valid buffer
10274 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10275 */
10276 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue;
10277
10278 /**
10279 * Decodes a FloatValue message from the specified reader or buffer, length delimited.
10280 * @param reader Reader or buffer to decode from
10281 * @returns FloatValue
10282 * @throws {Error} If the payload is not a reader or valid buffer
10283 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10284 */
10285 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue;
10286
10287 /**
10288 * Verifies a FloatValue message.
10289 * @param message Plain object to verify
10290 * @returns `null` if valid, otherwise the reason why it is not
10291 */
10292 public static verify(message: { [k: string]: any }): (string|null);
10293
10294 /**
10295 * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
10296 * @param object Plain object
10297 * @returns FloatValue
10298 */
10299 public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
10300
10301 /**
10302 * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
10303 * @param message FloatValue
10304 * @param [options] Conversion options
10305 * @returns Plain object
10306 */
10307 public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10308
10309 /**
10310 * Converts this FloatValue to JSON.
10311 * @returns JSON object
10312 */
10313 public toJSON(): { [k: string]: any };
10314 }
10315
10316 /** Properties of an Int64Value. */
10317 interface IInt64Value {
10318
10319 /** Int64Value value */
10320 value?: (number|Long|string|null);
10321 }
10322
10323 /** Represents an Int64Value. */
10324 class Int64Value implements IInt64Value {
10325
10326 /**
10327 * Constructs a new Int64Value.
10328 * @param [properties] Properties to set
10329 */
10330 constructor(properties?: google.protobuf.IInt64Value);
10331
10332 /** Int64Value value. */
10333 public value: (number|Long|string);
10334
10335 /**
10336 * Creates a new Int64Value instance using the specified properties.
10337 * @param [properties] Properties to set
10338 * @returns Int64Value instance
10339 */
10340 public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
10341
10342 /**
10343 * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
10344 * @param message Int64Value message or plain object to encode
10345 * @param [writer] Writer to encode to
10346 * @returns Writer
10347 */
10348 public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
10349
10350 /**
10351 * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
10352 * @param message Int64Value message or plain object to encode
10353 * @param [writer] Writer to encode to
10354 * @returns Writer
10355 */
10356 public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
10357
10358 /**
10359 * Decodes an Int64Value message from the specified reader or buffer.
10360 * @param reader Reader or buffer to decode from
10361 * @param [length] Message length if known beforehand
10362 * @returns Int64Value
10363 * @throws {Error} If the payload is not a reader or valid buffer
10364 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10365 */
10366 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value;
10367
10368 /**
10369 * Decodes an Int64Value message from the specified reader or buffer, length delimited.
10370 * @param reader Reader or buffer to decode from
10371 * @returns Int64Value
10372 * @throws {Error} If the payload is not a reader or valid buffer
10373 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10374 */
10375 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value;
10376
10377 /**
10378 * Verifies an Int64Value message.
10379 * @param message Plain object to verify
10380 * @returns `null` if valid, otherwise the reason why it is not
10381 */
10382 public static verify(message: { [k: string]: any }): (string|null);
10383
10384 /**
10385 * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
10386 * @param object Plain object
10387 * @returns Int64Value
10388 */
10389 public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
10390
10391 /**
10392 * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
10393 * @param message Int64Value
10394 * @param [options] Conversion options
10395 * @returns Plain object
10396 */
10397 public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10398
10399 /**
10400 * Converts this Int64Value to JSON.
10401 * @returns JSON object
10402 */
10403 public toJSON(): { [k: string]: any };
10404 }
10405
10406 /** Properties of a UInt64Value. */
10407 interface IUInt64Value {
10408
10409 /** UInt64Value value */
10410 value?: (number|Long|string|null);
10411 }
10412
10413 /** Represents a UInt64Value. */
10414 class UInt64Value implements IUInt64Value {
10415
10416 /**
10417 * Constructs a new UInt64Value.
10418 * @param [properties] Properties to set
10419 */
10420 constructor(properties?: google.protobuf.IUInt64Value);
10421
10422 /** UInt64Value value. */
10423 public value: (number|Long|string);
10424
10425 /**
10426 * Creates a new UInt64Value instance using the specified properties.
10427 * @param [properties] Properties to set
10428 * @returns UInt64Value instance
10429 */
10430 public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
10431
10432 /**
10433 * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
10434 * @param message UInt64Value message or plain object to encode
10435 * @param [writer] Writer to encode to
10436 * @returns Writer
10437 */
10438 public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
10439
10440 /**
10441 * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
10442 * @param message UInt64Value message or plain object to encode
10443 * @param [writer] Writer to encode to
10444 * @returns Writer
10445 */
10446 public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
10447
10448 /**
10449 * Decodes a UInt64Value message from the specified reader or buffer.
10450 * @param reader Reader or buffer to decode from
10451 * @param [length] Message length if known beforehand
10452 * @returns UInt64Value
10453 * @throws {Error} If the payload is not a reader or valid buffer
10454 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10455 */
10456 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value;
10457
10458 /**
10459 * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
10460 * @param reader Reader or buffer to decode from
10461 * @returns UInt64Value
10462 * @throws {Error} If the payload is not a reader or valid buffer
10463 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10464 */
10465 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value;
10466
10467 /**
10468 * Verifies a UInt64Value message.
10469 * @param message Plain object to verify
10470 * @returns `null` if valid, otherwise the reason why it is not
10471 */
10472 public static verify(message: { [k: string]: any }): (string|null);
10473
10474 /**
10475 * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
10476 * @param object Plain object
10477 * @returns UInt64Value
10478 */
10479 public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
10480
10481 /**
10482 * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
10483 * @param message UInt64Value
10484 * @param [options] Conversion options
10485 * @returns Plain object
10486 */
10487 public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10488
10489 /**
10490 * Converts this UInt64Value to JSON.
10491 * @returns JSON object
10492 */
10493 public toJSON(): { [k: string]: any };
10494 }
10495
10496 /** Properties of an Int32Value. */
10497 interface IInt32Value {
10498
10499 /** Int32Value value */
10500 value?: (number|null);
10501 }
10502
10503 /** Represents an Int32Value. */
10504 class Int32Value implements IInt32Value {
10505
10506 /**
10507 * Constructs a new Int32Value.
10508 * @param [properties] Properties to set
10509 */
10510 constructor(properties?: google.protobuf.IInt32Value);
10511
10512 /** Int32Value value. */
10513 public value: number;
10514
10515 /**
10516 * Creates a new Int32Value instance using the specified properties.
10517 * @param [properties] Properties to set
10518 * @returns Int32Value instance
10519 */
10520 public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
10521
10522 /**
10523 * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
10524 * @param message Int32Value message or plain object to encode
10525 * @param [writer] Writer to encode to
10526 * @returns Writer
10527 */
10528 public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
10529
10530 /**
10531 * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
10532 * @param message Int32Value message or plain object to encode
10533 * @param [writer] Writer to encode to
10534 * @returns Writer
10535 */
10536 public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
10537
10538 /**
10539 * Decodes an Int32Value message from the specified reader or buffer.
10540 * @param reader Reader or buffer to decode from
10541 * @param [length] Message length if known beforehand
10542 * @returns Int32Value
10543 * @throws {Error} If the payload is not a reader or valid buffer
10544 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10545 */
10546 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value;
10547
10548 /**
10549 * Decodes an Int32Value message from the specified reader or buffer, length delimited.
10550 * @param reader Reader or buffer to decode from
10551 * @returns Int32Value
10552 * @throws {Error} If the payload is not a reader or valid buffer
10553 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10554 */
10555 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value;
10556
10557 /**
10558 * Verifies an Int32Value message.
10559 * @param message Plain object to verify
10560 * @returns `null` if valid, otherwise the reason why it is not
10561 */
10562 public static verify(message: { [k: string]: any }): (string|null);
10563
10564 /**
10565 * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
10566 * @param object Plain object
10567 * @returns Int32Value
10568 */
10569 public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
10570
10571 /**
10572 * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
10573 * @param message Int32Value
10574 * @param [options] Conversion options
10575 * @returns Plain object
10576 */
10577 public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10578
10579 /**
10580 * Converts this Int32Value to JSON.
10581 * @returns JSON object
10582 */
10583 public toJSON(): { [k: string]: any };
10584 }
10585
10586 /** Properties of a UInt32Value. */
10587 interface IUInt32Value {
10588
10589 /** UInt32Value value */
10590 value?: (number|null);
10591 }
10592
10593 /** Represents a UInt32Value. */
10594 class UInt32Value implements IUInt32Value {
10595
10596 /**
10597 * Constructs a new UInt32Value.
10598 * @param [properties] Properties to set
10599 */
10600 constructor(properties?: google.protobuf.IUInt32Value);
10601
10602 /** UInt32Value value. */
10603 public value: number;
10604
10605 /**
10606 * Creates a new UInt32Value instance using the specified properties.
10607 * @param [properties] Properties to set
10608 * @returns UInt32Value instance
10609 */
10610 public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
10611
10612 /**
10613 * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
10614 * @param message UInt32Value message or plain object to encode
10615 * @param [writer] Writer to encode to
10616 * @returns Writer
10617 */
10618 public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
10619
10620 /**
10621 * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
10622 * @param message UInt32Value message or plain object to encode
10623 * @param [writer] Writer to encode to
10624 * @returns Writer
10625 */
10626 public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
10627
10628 /**
10629 * Decodes a UInt32Value message from the specified reader or buffer.
10630 * @param reader Reader or buffer to decode from
10631 * @param [length] Message length if known beforehand
10632 * @returns UInt32Value
10633 * @throws {Error} If the payload is not a reader or valid buffer
10634 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10635 */
10636 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value;
10637
10638 /**
10639 * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
10640 * @param reader Reader or buffer to decode from
10641 * @returns UInt32Value
10642 * @throws {Error} If the payload is not a reader or valid buffer
10643 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10644 */
10645 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value;
10646
10647 /**
10648 * Verifies a UInt32Value message.
10649 * @param message Plain object to verify
10650 * @returns `null` if valid, otherwise the reason why it is not
10651 */
10652 public static verify(message: { [k: string]: any }): (string|null);
10653
10654 /**
10655 * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
10656 * @param object Plain object
10657 * @returns UInt32Value
10658 */
10659 public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
10660
10661 /**
10662 * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
10663 * @param message UInt32Value
10664 * @param [options] Conversion options
10665 * @returns Plain object
10666 */
10667 public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
10668
10669 /**
10670 * Converts this UInt32Value to JSON.
10671 * @returns JSON object
10672 */
10673 public toJSON(): { [k: string]: any };
10674 }
10675
10676 /** Properties of a BoolValue. */
10677 interface IBoolValue {
10678
10679 /** BoolValue value */
10680 value?: (boolean|null);
10681 }
10682
10683 /** Represents a BoolValue. */
10684 class BoolValue implements IBoolValue {
10685
10686 /**
10687 * Constructs a new BoolValue.
10688 * @param [properties] Properties to set
10689 */
10690 constructor(properties?: google.protobuf.IBoolValue);
10691
10692 /** BoolValue value. */
10693 public value: boolean;
10694
10695 /**
10696 * Creates a new BoolValue instance using the specified properties.
10697 * @param [properties] Properties to set
10698 * @returns BoolValue instance
10699 */
10700 public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
10701
10702 /**
10703 * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
10704 * @param message BoolValue message or plain object to encode
10705 * @param [writer] Writer to encode to
10706 * @returns Writer
10707 */
10708 public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
10709
10710 /**
10711 * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
10712 * @param message BoolValue message or plain object to encode
10713 * @param [writer] Writer to encode to
10714 * @returns Writer
10715 */
10716 public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
10717
10718 /**
10719 * Decodes a BoolValue message from the specified reader or buffer.
10720 * @param reader Reader or buffer to decode from
10721 * @param [length] Message length if known beforehand
10722 * @returns BoolValue
10723 * @throws {Error} If the payload is not a reader or valid buffer
10724 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10725 */
10726 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue;
10727
10728 /**
10729 * Decodes a BoolValue message from the specified reader or buffer, length delimited.
10730 * @param reader Reader or buffer to decode from
10731 * @returns BoolValue
10732 * @throws {Error} If the payload is not a reader or valid buffer
10733 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10734 */
10735 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue;
10736
10737 /**
10738 * Verifies a BoolValue message.
10739 * @param message Plain object to verify
10740 * @returns `null` if valid, otherwise the reason why it is not
10741 */
10742 public static verify(message: { [k: string]: any }): (string|null);
10743
10744 /**
10745 * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
10746 * @param object Plain object
10747 * @returns BoolValue
10748 */
10749 public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
10750
10751 /**
10752 * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
10753 * @param message BoolValue
10754 * @param [options] Conversion options
10755 * @returns Plain object
10756 */
10757 public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10758
10759 /**
10760 * Converts this BoolValue to JSON.
10761 * @returns JSON object
10762 */
10763 public toJSON(): { [k: string]: any };
10764 }
10765
10766 /** Properties of a StringValue. */
10767 interface IStringValue {
10768
10769 /** StringValue value */
10770 value?: (string|null);
10771 }
10772
10773 /** Represents a StringValue. */
10774 class StringValue implements IStringValue {
10775
10776 /**
10777 * Constructs a new StringValue.
10778 * @param [properties] Properties to set
10779 */
10780 constructor(properties?: google.protobuf.IStringValue);
10781
10782 /** StringValue value. */
10783 public value: string;
10784
10785 /**
10786 * Creates a new StringValue instance using the specified properties.
10787 * @param [properties] Properties to set
10788 * @returns StringValue instance
10789 */
10790 public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
10791
10792 /**
10793 * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
10794 * @param message StringValue message or plain object to encode
10795 * @param [writer] Writer to encode to
10796 * @returns Writer
10797 */
10798 public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
10799
10800 /**
10801 * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
10802 * @param message StringValue message or plain object to encode
10803 * @param [writer] Writer to encode to
10804 * @returns Writer
10805 */
10806 public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
10807
10808 /**
10809 * Decodes a StringValue message from the specified reader or buffer.
10810 * @param reader Reader or buffer to decode from
10811 * @param [length] Message length if known beforehand
10812 * @returns StringValue
10813 * @throws {Error} If the payload is not a reader or valid buffer
10814 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10815 */
10816 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue;
10817
10818 /**
10819 * Decodes a StringValue message from the specified reader or buffer, length delimited.
10820 * @param reader Reader or buffer to decode from
10821 * @returns StringValue
10822 * @throws {Error} If the payload is not a reader or valid buffer
10823 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10824 */
10825 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue;
10826
10827 /**
10828 * Verifies a StringValue message.
10829 * @param message Plain object to verify
10830 * @returns `null` if valid, otherwise the reason why it is not
10831 */
10832 public static verify(message: { [k: string]: any }): (string|null);
10833
10834 /**
10835 * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
10836 * @param object Plain object
10837 * @returns StringValue
10838 */
10839 public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
10840
10841 /**
10842 * Creates a plain object from a StringValue message. Also converts values to other types if specified.
10843 * @param message StringValue
10844 * @param [options] Conversion options
10845 * @returns Plain object
10846 */
10847 public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10848
10849 /**
10850 * Converts this StringValue to JSON.
10851 * @returns JSON object
10852 */
10853 public toJSON(): { [k: string]: any };
10854 }
10855
10856 /** Properties of a BytesValue. */
10857 interface IBytesValue {
10858
10859 /** BytesValue value */
10860 value?: (Uint8Array|string|null);
10861 }
10862
10863 /** Represents a BytesValue. */
10864 class BytesValue implements IBytesValue {
10865
10866 /**
10867 * Constructs a new BytesValue.
10868 * @param [properties] Properties to set
10869 */
10870 constructor(properties?: google.protobuf.IBytesValue);
10871
10872 /** BytesValue value. */
10873 public value: (Uint8Array|string);
10874
10875 /**
10876 * Creates a new BytesValue instance using the specified properties.
10877 * @param [properties] Properties to set
10878 * @returns BytesValue instance
10879 */
10880 public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
10881
10882 /**
10883 * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
10884 * @param message BytesValue message or plain object to encode
10885 * @param [writer] Writer to encode to
10886 * @returns Writer
10887 */
10888 public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
10889
10890 /**
10891 * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
10892 * @param message BytesValue message or plain object to encode
10893 * @param [writer] Writer to encode to
10894 * @returns Writer
10895 */
10896 public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
10897
10898 /**
10899 * Decodes a BytesValue message from the specified reader or buffer.
10900 * @param reader Reader or buffer to decode from
10901 * @param [length] Message length if known beforehand
10902 * @returns BytesValue
10903 * @throws {Error} If the payload is not a reader or valid buffer
10904 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10905 */
10906 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue;
10907
10908 /**
10909 * Decodes a BytesValue message from the specified reader or buffer, length delimited.
10910 * @param reader Reader or buffer to decode from
10911 * @returns BytesValue
10912 * @throws {Error} If the payload is not a reader or valid buffer
10913 * @throws {$protobuf.util.ProtocolError} If required fields are missing
10914 */
10915 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue;
10916
10917 /**
10918 * Verifies a BytesValue message.
10919 * @param message Plain object to verify
10920 * @returns `null` if valid, otherwise the reason why it is not
10921 */
10922 public static verify(message: { [k: string]: any }): (string|null);
10923
10924 /**
10925 * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
10926 * @param object Plain object
10927 * @returns BytesValue
10928 */
10929 public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
10930
10931 /**
10932 * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
10933 * @param message BytesValue
10934 * @param [options] Conversion options
10935 * @returns Plain object
10936 */
10937 public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
10938
10939 /**
10940 * Converts this BytesValue to JSON.
10941 * @returns JSON object
10942 */
10943 public toJSON(): { [k: string]: any };
10944 }
10945 }
10946
10947 /** Namespace longrunning. */
10948 namespace longrunning {
10949
10950 /** Represents an Operations */
10951 class Operations extends $protobuf.rpc.Service {
10952
10953 /**
10954 * Constructs a new Operations service.
10955 * @param rpcImpl RPC implementation
10956 * @param [requestDelimited=false] Whether requests are length-delimited
10957 * @param [responseDelimited=false] Whether responses are length-delimited
10958 */
10959 constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
10960
10961 /**
10962 * Creates new Operations service using the specified rpc implementation.
10963 * @param rpcImpl RPC implementation
10964 * @param [requestDelimited=false] Whether requests are length-delimited
10965 * @param [responseDelimited=false] Whether responses are length-delimited
10966 * @returns RPC service. Useful where requests and/or responses are streamed.
10967 */
10968 public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
10969
10970 /**
10971 * Calls ListOperations.
10972 * @param request ListOperationsRequest message or plain object
10973 * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
10974 */
10975 public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
10976
10977 /**
10978 * Calls ListOperations.
10979 * @param request ListOperationsRequest message or plain object
10980 * @returns Promise
10981 */
10982 public listOperations(request: google.longrunning.IListOperationsRequest): Promise<google.longrunning.ListOperationsResponse>;
10983
10984 /**
10985 * Calls GetOperation.
10986 * @param request GetOperationRequest message or plain object
10987 * @param callback Node-style callback called with the error, if any, and Operation
10988 */
10989 public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
10990
10991 /**
10992 * Calls GetOperation.
10993 * @param request GetOperationRequest message or plain object
10994 * @returns Promise
10995 */
10996 public getOperation(request: google.longrunning.IGetOperationRequest): Promise<google.longrunning.Operation>;
10997
10998 /**
10999 * Calls DeleteOperation.
11000 * @param request DeleteOperationRequest message or plain object
11001 * @param callback Node-style callback called with the error, if any, and Empty
11002 */
11003 public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
11004
11005 /**
11006 * Calls DeleteOperation.
11007 * @param request DeleteOperationRequest message or plain object
11008 * @returns Promise
11009 */
11010 public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise<google.protobuf.Empty>;
11011
11012 /**
11013 * Calls CancelOperation.
11014 * @param request CancelOperationRequest message or plain object
11015 * @param callback Node-style callback called with the error, if any, and Empty
11016 */
11017 public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
11018
11019 /**
11020 * Calls CancelOperation.
11021 * @param request CancelOperationRequest message or plain object
11022 * @returns Promise
11023 */
11024 public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise<google.protobuf.Empty>;
11025
11026 /**
11027 * Calls WaitOperation.
11028 * @param request WaitOperationRequest message or plain object
11029 * @param callback Node-style callback called with the error, if any, and Operation
11030 */
11031 public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
11032
11033 /**
11034 * Calls WaitOperation.
11035 * @param request WaitOperationRequest message or plain object
11036 * @returns Promise
11037 */
11038 public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise<google.longrunning.Operation>;
11039 }
11040
11041 namespace Operations {
11042
11043 /**
11044 * Callback as used by {@link google.longrunning.Operations#listOperations}.
11045 * @param error Error, if any
11046 * @param [response] ListOperationsResponse
11047 */
11048 type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
11049
11050 /**
11051 * Callback as used by {@link google.longrunning.Operations#getOperation}.
11052 * @param error Error, if any
11053 * @param [response] Operation
11054 */
11055 type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
11056
11057 /**
11058 * Callback as used by {@link google.longrunning.Operations#deleteOperation}.
11059 * @param error Error, if any
11060 * @param [response] Empty
11061 */
11062 type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
11063
11064 /**
11065 * Callback as used by {@link google.longrunning.Operations#cancelOperation}.
11066 * @param error Error, if any
11067 * @param [response] Empty
11068 */
11069 type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
11070
11071 /**
11072 * Callback as used by {@link google.longrunning.Operations#waitOperation}.
11073 * @param error Error, if any
11074 * @param [response] Operation
11075 */
11076 type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
11077 }
11078
11079 /** Properties of an Operation. */
11080 interface IOperation {
11081
11082 /** Operation name */
11083 name?: (string|null);
11084
11085 /** Operation metadata */
11086 metadata?: (google.protobuf.IAny|null);
11087
11088 /** Operation done */
11089 done?: (boolean|null);
11090
11091 /** Operation error */
11092 error?: (google.rpc.IStatus|null);
11093
11094 /** Operation response */
11095 response?: (google.protobuf.IAny|null);
11096 }
11097
11098 /** Represents an Operation. */
11099 class Operation implements IOperation {
11100
11101 /**
11102 * Constructs a new Operation.
11103 * @param [properties] Properties to set
11104 */
11105 constructor(properties?: google.longrunning.IOperation);
11106
11107 /** Operation name. */
11108 public name: string;
11109
11110 /** Operation metadata. */
11111 public metadata?: (google.protobuf.IAny|null);
11112
11113 /** Operation done. */
11114 public done: boolean;
11115
11116 /** Operation error. */
11117 public error?: (google.rpc.IStatus|null);
11118
11119 /** Operation response. */
11120 public response?: (google.protobuf.IAny|null);
11121
11122 /** Operation result. */
11123 public result?: ("error"|"response");
11124
11125 /**
11126 * Creates a new Operation instance using the specified properties.
11127 * @param [properties] Properties to set
11128 * @returns Operation instance
11129 */
11130 public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
11131
11132 /**
11133 * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
11134 * @param message Operation message or plain object to encode
11135 * @param [writer] Writer to encode to
11136 * @returns Writer
11137 */
11138 public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
11139
11140 /**
11141 * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
11142 * @param message Operation message or plain object to encode
11143 * @param [writer] Writer to encode to
11144 * @returns Writer
11145 */
11146 public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
11147
11148 /**
11149 * Decodes an Operation message from the specified reader or buffer.
11150 * @param reader Reader or buffer to decode from
11151 * @param [length] Message length if known beforehand
11152 * @returns Operation
11153 * @throws {Error} If the payload is not a reader or valid buffer
11154 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11155 */
11156 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
11157
11158 /**
11159 * Decodes an Operation message from the specified reader or buffer, length delimited.
11160 * @param reader Reader or buffer to decode from
11161 * @returns Operation
11162 * @throws {Error} If the payload is not a reader or valid buffer
11163 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11164 */
11165 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
11166
11167 /**
11168 * Verifies an Operation message.
11169 * @param message Plain object to verify
11170 * @returns `null` if valid, otherwise the reason why it is not
11171 */
11172 public static verify(message: { [k: string]: any }): (string|null);
11173
11174 /**
11175 * Creates an Operation message from a plain object. Also converts values to their respective internal types.
11176 * @param object Plain object
11177 * @returns Operation
11178 */
11179 public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
11180
11181 /**
11182 * Creates a plain object from an Operation message. Also converts values to other types if specified.
11183 * @param message Operation
11184 * @param [options] Conversion options
11185 * @returns Plain object
11186 */
11187 public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
11188
11189 /**
11190 * Converts this Operation to JSON.
11191 * @returns JSON object
11192 */
11193 public toJSON(): { [k: string]: any };
11194 }
11195
11196 /** Properties of a GetOperationRequest. */
11197 interface IGetOperationRequest {
11198
11199 /** GetOperationRequest name */
11200 name?: (string|null);
11201 }
11202
11203 /** Represents a GetOperationRequest. */
11204 class GetOperationRequest implements IGetOperationRequest {
11205
11206 /**
11207 * Constructs a new GetOperationRequest.
11208 * @param [properties] Properties to set
11209 */
11210 constructor(properties?: google.longrunning.IGetOperationRequest);
11211
11212 /** GetOperationRequest name. */
11213 public name: string;
11214
11215 /**
11216 * Creates a new GetOperationRequest instance using the specified properties.
11217 * @param [properties] Properties to set
11218 * @returns GetOperationRequest instance
11219 */
11220 public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
11221
11222 /**
11223 * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
11224 * @param message GetOperationRequest message or plain object to encode
11225 * @param [writer] Writer to encode to
11226 * @returns Writer
11227 */
11228 public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11229
11230 /**
11231 * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
11232 * @param message GetOperationRequest message or plain object to encode
11233 * @param [writer] Writer to encode to
11234 * @returns Writer
11235 */
11236 public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11237
11238 /**
11239 * Decodes a GetOperationRequest message from the specified reader or buffer.
11240 * @param reader Reader or buffer to decode from
11241 * @param [length] Message length if known beforehand
11242 * @returns GetOperationRequest
11243 * @throws {Error} If the payload is not a reader or valid buffer
11244 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11245 */
11246 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
11247
11248 /**
11249 * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
11250 * @param reader Reader or buffer to decode from
11251 * @returns GetOperationRequest
11252 * @throws {Error} If the payload is not a reader or valid buffer
11253 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11254 */
11255 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
11256
11257 /**
11258 * Verifies a GetOperationRequest message.
11259 * @param message Plain object to verify
11260 * @returns `null` if valid, otherwise the reason why it is not
11261 */
11262 public static verify(message: { [k: string]: any }): (string|null);
11263
11264 /**
11265 * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
11266 * @param object Plain object
11267 * @returns GetOperationRequest
11268 */
11269 public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
11270
11271 /**
11272 * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
11273 * @param message GetOperationRequest
11274 * @param [options] Conversion options
11275 * @returns Plain object
11276 */
11277 public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11278
11279 /**
11280 * Converts this GetOperationRequest to JSON.
11281 * @returns JSON object
11282 */
11283 public toJSON(): { [k: string]: any };
11284 }
11285
11286 /** Properties of a ListOperationsRequest. */
11287 interface IListOperationsRequest {
11288
11289 /** ListOperationsRequest name */
11290 name?: (string|null);
11291
11292 /** ListOperationsRequest filter */
11293 filter?: (string|null);
11294
11295 /** ListOperationsRequest pageSize */
11296 pageSize?: (number|null);
11297
11298 /** ListOperationsRequest pageToken */
11299 pageToken?: (string|null);
11300 }
11301
11302 /** Represents a ListOperationsRequest. */
11303 class ListOperationsRequest implements IListOperationsRequest {
11304
11305 /**
11306 * Constructs a new ListOperationsRequest.
11307 * @param [properties] Properties to set
11308 */
11309 constructor(properties?: google.longrunning.IListOperationsRequest);
11310
11311 /** ListOperationsRequest name. */
11312 public name: string;
11313
11314 /** ListOperationsRequest filter. */
11315 public filter: string;
11316
11317 /** ListOperationsRequest pageSize. */
11318 public pageSize: number;
11319
11320 /** ListOperationsRequest pageToken. */
11321 public pageToken: string;
11322
11323 /**
11324 * Creates a new ListOperationsRequest instance using the specified properties.
11325 * @param [properties] Properties to set
11326 * @returns ListOperationsRequest instance
11327 */
11328 public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
11329
11330 /**
11331 * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
11332 * @param message ListOperationsRequest message or plain object to encode
11333 * @param [writer] Writer to encode to
11334 * @returns Writer
11335 */
11336 public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11337
11338 /**
11339 * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
11340 * @param message ListOperationsRequest message or plain object to encode
11341 * @param [writer] Writer to encode to
11342 * @returns Writer
11343 */
11344 public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11345
11346 /**
11347 * Decodes a ListOperationsRequest message from the specified reader or buffer.
11348 * @param reader Reader or buffer to decode from
11349 * @param [length] Message length if known beforehand
11350 * @returns ListOperationsRequest
11351 * @throws {Error} If the payload is not a reader or valid buffer
11352 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11353 */
11354 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
11355
11356 /**
11357 * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
11358 * @param reader Reader or buffer to decode from
11359 * @returns ListOperationsRequest
11360 * @throws {Error} If the payload is not a reader or valid buffer
11361 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11362 */
11363 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
11364
11365 /**
11366 * Verifies a ListOperationsRequest message.
11367 * @param message Plain object to verify
11368 * @returns `null` if valid, otherwise the reason why it is not
11369 */
11370 public static verify(message: { [k: string]: any }): (string|null);
11371
11372 /**
11373 * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
11374 * @param object Plain object
11375 * @returns ListOperationsRequest
11376 */
11377 public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
11378
11379 /**
11380 * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
11381 * @param message ListOperationsRequest
11382 * @param [options] Conversion options
11383 * @returns Plain object
11384 */
11385 public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11386
11387 /**
11388 * Converts this ListOperationsRequest to JSON.
11389 * @returns JSON object
11390 */
11391 public toJSON(): { [k: string]: any };
11392 }
11393
11394 /** Properties of a ListOperationsResponse. */
11395 interface IListOperationsResponse {
11396
11397 /** ListOperationsResponse operations */
11398 operations?: (google.longrunning.IOperation[]|null);
11399
11400 /** ListOperationsResponse nextPageToken */
11401 nextPageToken?: (string|null);
11402 }
11403
11404 /** Represents a ListOperationsResponse. */
11405 class ListOperationsResponse implements IListOperationsResponse {
11406
11407 /**
11408 * Constructs a new ListOperationsResponse.
11409 * @param [properties] Properties to set
11410 */
11411 constructor(properties?: google.longrunning.IListOperationsResponse);
11412
11413 /** ListOperationsResponse operations. */
11414 public operations: google.longrunning.IOperation[];
11415
11416 /** ListOperationsResponse nextPageToken. */
11417 public nextPageToken: string;
11418
11419 /**
11420 * Creates a new ListOperationsResponse instance using the specified properties.
11421 * @param [properties] Properties to set
11422 * @returns ListOperationsResponse instance
11423 */
11424 public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
11425
11426 /**
11427 * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
11428 * @param message ListOperationsResponse message or plain object to encode
11429 * @param [writer] Writer to encode to
11430 * @returns Writer
11431 */
11432 public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
11433
11434 /**
11435 * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
11436 * @param message ListOperationsResponse message or plain object to encode
11437 * @param [writer] Writer to encode to
11438 * @returns Writer
11439 */
11440 public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
11441
11442 /**
11443 * Decodes a ListOperationsResponse message from the specified reader or buffer.
11444 * @param reader Reader or buffer to decode from
11445 * @param [length] Message length if known beforehand
11446 * @returns ListOperationsResponse
11447 * @throws {Error} If the payload is not a reader or valid buffer
11448 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11449 */
11450 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
11451
11452 /**
11453 * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
11454 * @param reader Reader or buffer to decode from
11455 * @returns ListOperationsResponse
11456 * @throws {Error} If the payload is not a reader or valid buffer
11457 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11458 */
11459 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
11460
11461 /**
11462 * Verifies a ListOperationsResponse message.
11463 * @param message Plain object to verify
11464 * @returns `null` if valid, otherwise the reason why it is not
11465 */
11466 public static verify(message: { [k: string]: any }): (string|null);
11467
11468 /**
11469 * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
11470 * @param object Plain object
11471 * @returns ListOperationsResponse
11472 */
11473 public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
11474
11475 /**
11476 * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
11477 * @param message ListOperationsResponse
11478 * @param [options] Conversion options
11479 * @returns Plain object
11480 */
11481 public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
11482
11483 /**
11484 * Converts this ListOperationsResponse to JSON.
11485 * @returns JSON object
11486 */
11487 public toJSON(): { [k: string]: any };
11488 }
11489
11490 /** Properties of a CancelOperationRequest. */
11491 interface ICancelOperationRequest {
11492
11493 /** CancelOperationRequest name */
11494 name?: (string|null);
11495 }
11496
11497 /** Represents a CancelOperationRequest. */
11498 class CancelOperationRequest implements ICancelOperationRequest {
11499
11500 /**
11501 * Constructs a new CancelOperationRequest.
11502 * @param [properties] Properties to set
11503 */
11504 constructor(properties?: google.longrunning.ICancelOperationRequest);
11505
11506 /** CancelOperationRequest name. */
11507 public name: string;
11508
11509 /**
11510 * Creates a new CancelOperationRequest instance using the specified properties.
11511 * @param [properties] Properties to set
11512 * @returns CancelOperationRequest instance
11513 */
11514 public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
11515
11516 /**
11517 * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
11518 * @param message CancelOperationRequest message or plain object to encode
11519 * @param [writer] Writer to encode to
11520 * @returns Writer
11521 */
11522 public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11523
11524 /**
11525 * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
11526 * @param message CancelOperationRequest message or plain object to encode
11527 * @param [writer] Writer to encode to
11528 * @returns Writer
11529 */
11530 public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11531
11532 /**
11533 * Decodes a CancelOperationRequest message from the specified reader or buffer.
11534 * @param reader Reader or buffer to decode from
11535 * @param [length] Message length if known beforehand
11536 * @returns CancelOperationRequest
11537 * @throws {Error} If the payload is not a reader or valid buffer
11538 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11539 */
11540 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
11541
11542 /**
11543 * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
11544 * @param reader Reader or buffer to decode from
11545 * @returns CancelOperationRequest
11546 * @throws {Error} If the payload is not a reader or valid buffer
11547 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11548 */
11549 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
11550
11551 /**
11552 * Verifies a CancelOperationRequest message.
11553 * @param message Plain object to verify
11554 * @returns `null` if valid, otherwise the reason why it is not
11555 */
11556 public static verify(message: { [k: string]: any }): (string|null);
11557
11558 /**
11559 * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
11560 * @param object Plain object
11561 * @returns CancelOperationRequest
11562 */
11563 public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
11564
11565 /**
11566 * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
11567 * @param message CancelOperationRequest
11568 * @param [options] Conversion options
11569 * @returns Plain object
11570 */
11571 public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11572
11573 /**
11574 * Converts this CancelOperationRequest to JSON.
11575 * @returns JSON object
11576 */
11577 public toJSON(): { [k: string]: any };
11578 }
11579
11580 /** Properties of a DeleteOperationRequest. */
11581 interface IDeleteOperationRequest {
11582
11583 /** DeleteOperationRequest name */
11584 name?: (string|null);
11585 }
11586
11587 /** Represents a DeleteOperationRequest. */
11588 class DeleteOperationRequest implements IDeleteOperationRequest {
11589
11590 /**
11591 * Constructs a new DeleteOperationRequest.
11592 * @param [properties] Properties to set
11593 */
11594 constructor(properties?: google.longrunning.IDeleteOperationRequest);
11595
11596 /** DeleteOperationRequest name. */
11597 public name: string;
11598
11599 /**
11600 * Creates a new DeleteOperationRequest instance using the specified properties.
11601 * @param [properties] Properties to set
11602 * @returns DeleteOperationRequest instance
11603 */
11604 public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
11605
11606 /**
11607 * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
11608 * @param message DeleteOperationRequest message or plain object to encode
11609 * @param [writer] Writer to encode to
11610 * @returns Writer
11611 */
11612 public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11613
11614 /**
11615 * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
11616 * @param message DeleteOperationRequest message or plain object to encode
11617 * @param [writer] Writer to encode to
11618 * @returns Writer
11619 */
11620 public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11621
11622 /**
11623 * Decodes a DeleteOperationRequest message from the specified reader or buffer.
11624 * @param reader Reader or buffer to decode from
11625 * @param [length] Message length if known beforehand
11626 * @returns DeleteOperationRequest
11627 * @throws {Error} If the payload is not a reader or valid buffer
11628 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11629 */
11630 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
11631
11632 /**
11633 * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
11634 * @param reader Reader or buffer to decode from
11635 * @returns DeleteOperationRequest
11636 * @throws {Error} If the payload is not a reader or valid buffer
11637 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11638 */
11639 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
11640
11641 /**
11642 * Verifies a DeleteOperationRequest message.
11643 * @param message Plain object to verify
11644 * @returns `null` if valid, otherwise the reason why it is not
11645 */
11646 public static verify(message: { [k: string]: any }): (string|null);
11647
11648 /**
11649 * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
11650 * @param object Plain object
11651 * @returns DeleteOperationRequest
11652 */
11653 public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
11654
11655 /**
11656 * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
11657 * @param message DeleteOperationRequest
11658 * @param [options] Conversion options
11659 * @returns Plain object
11660 */
11661 public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11662
11663 /**
11664 * Converts this DeleteOperationRequest to JSON.
11665 * @returns JSON object
11666 */
11667 public toJSON(): { [k: string]: any };
11668 }
11669
11670 /** Properties of a WaitOperationRequest. */
11671 interface IWaitOperationRequest {
11672
11673 /** WaitOperationRequest name */
11674 name?: (string|null);
11675
11676 /** WaitOperationRequest timeout */
11677 timeout?: (google.protobuf.IDuration|null);
11678 }
11679
11680 /** Represents a WaitOperationRequest. */
11681 class WaitOperationRequest implements IWaitOperationRequest {
11682
11683 /**
11684 * Constructs a new WaitOperationRequest.
11685 * @param [properties] Properties to set
11686 */
11687 constructor(properties?: google.longrunning.IWaitOperationRequest);
11688
11689 /** WaitOperationRequest name. */
11690 public name: string;
11691
11692 /** WaitOperationRequest timeout. */
11693 public timeout?: (google.protobuf.IDuration|null);
11694
11695 /**
11696 * Creates a new WaitOperationRequest instance using the specified properties.
11697 * @param [properties] Properties to set
11698 * @returns WaitOperationRequest instance
11699 */
11700 public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
11701
11702 /**
11703 * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
11704 * @param message WaitOperationRequest message or plain object to encode
11705 * @param [writer] Writer to encode to
11706 * @returns Writer
11707 */
11708 public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11709
11710 /**
11711 * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
11712 * @param message WaitOperationRequest message or plain object to encode
11713 * @param [writer] Writer to encode to
11714 * @returns Writer
11715 */
11716 public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
11717
11718 /**
11719 * Decodes a WaitOperationRequest message from the specified reader or buffer.
11720 * @param reader Reader or buffer to decode from
11721 * @param [length] Message length if known beforehand
11722 * @returns WaitOperationRequest
11723 * @throws {Error} If the payload is not a reader or valid buffer
11724 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11725 */
11726 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
11727
11728 /**
11729 * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
11730 * @param reader Reader or buffer to decode from
11731 * @returns WaitOperationRequest
11732 * @throws {Error} If the payload is not a reader or valid buffer
11733 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11734 */
11735 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
11736
11737 /**
11738 * Verifies a WaitOperationRequest message.
11739 * @param message Plain object to verify
11740 * @returns `null` if valid, otherwise the reason why it is not
11741 */
11742 public static verify(message: { [k: string]: any }): (string|null);
11743
11744 /**
11745 * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
11746 * @param object Plain object
11747 * @returns WaitOperationRequest
11748 */
11749 public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
11750
11751 /**
11752 * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
11753 * @param message WaitOperationRequest
11754 * @param [options] Conversion options
11755 * @returns Plain object
11756 */
11757 public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
11758
11759 /**
11760 * Converts this WaitOperationRequest to JSON.
11761 * @returns JSON object
11762 */
11763 public toJSON(): { [k: string]: any };
11764 }
11765
11766 /** Properties of an OperationInfo. */
11767 interface IOperationInfo {
11768
11769 /** OperationInfo responseType */
11770 responseType?: (string|null);
11771
11772 /** OperationInfo metadataType */
11773 metadataType?: (string|null);
11774 }
11775
11776 /** Represents an OperationInfo. */
11777 class OperationInfo implements IOperationInfo {
11778
11779 /**
11780 * Constructs a new OperationInfo.
11781 * @param [properties] Properties to set
11782 */
11783 constructor(properties?: google.longrunning.IOperationInfo);
11784
11785 /** OperationInfo responseType. */
11786 public responseType: string;
11787
11788 /** OperationInfo metadataType. */
11789 public metadataType: string;
11790
11791 /**
11792 * Creates a new OperationInfo instance using the specified properties.
11793 * @param [properties] Properties to set
11794 * @returns OperationInfo instance
11795 */
11796 public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
11797
11798 /**
11799 * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
11800 * @param message OperationInfo message or plain object to encode
11801 * @param [writer] Writer to encode to
11802 * @returns Writer
11803 */
11804 public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
11805
11806 /**
11807 * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
11808 * @param message OperationInfo message or plain object to encode
11809 * @param [writer] Writer to encode to
11810 * @returns Writer
11811 */
11812 public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
11813
11814 /**
11815 * Decodes an OperationInfo message from the specified reader or buffer.
11816 * @param reader Reader or buffer to decode from
11817 * @param [length] Message length if known beforehand
11818 * @returns OperationInfo
11819 * @throws {Error} If the payload is not a reader or valid buffer
11820 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11821 */
11822 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
11823
11824 /**
11825 * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
11826 * @param reader Reader or buffer to decode from
11827 * @returns OperationInfo
11828 * @throws {Error} If the payload is not a reader or valid buffer
11829 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11830 */
11831 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
11832
11833 /**
11834 * Verifies an OperationInfo message.
11835 * @param message Plain object to verify
11836 * @returns `null` if valid, otherwise the reason why it is not
11837 */
11838 public static verify(message: { [k: string]: any }): (string|null);
11839
11840 /**
11841 * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
11842 * @param object Plain object
11843 * @returns OperationInfo
11844 */
11845 public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
11846
11847 /**
11848 * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
11849 * @param message OperationInfo
11850 * @param [options] Conversion options
11851 * @returns Plain object
11852 */
11853 public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
11854
11855 /**
11856 * Converts this OperationInfo to JSON.
11857 * @returns JSON object
11858 */
11859 public toJSON(): { [k: string]: any };
11860 }
11861 }
11862
11863 /** Namespace rpc. */
11864 namespace rpc {
11865
11866 /** Properties of a Status. */
11867 interface IStatus {
11868
11869 /** Status code */
11870 code?: (number|null);
11871
11872 /** Status message */
11873 message?: (string|null);
11874
11875 /** Status details */
11876 details?: (google.protobuf.IAny[]|null);
11877 }
11878
11879 /** Represents a Status. */
11880 class Status implements IStatus {
11881
11882 /**
11883 * Constructs a new Status.
11884 * @param [properties] Properties to set
11885 */
11886 constructor(properties?: google.rpc.IStatus);
11887
11888 /** Status code. */
11889 public code: number;
11890
11891 /** Status message. */
11892 public message: string;
11893
11894 /** Status details. */
11895 public details: google.protobuf.IAny[];
11896
11897 /**
11898 * Creates a new Status instance using the specified properties.
11899 * @param [properties] Properties to set
11900 * @returns Status instance
11901 */
11902 public static create(properties?: google.rpc.IStatus): google.rpc.Status;
11903
11904 /**
11905 * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
11906 * @param message Status message or plain object to encode
11907 * @param [writer] Writer to encode to
11908 * @returns Writer
11909 */
11910 public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
11911
11912 /**
11913 * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
11914 * @param message Status message or plain object to encode
11915 * @param [writer] Writer to encode to
11916 * @returns Writer
11917 */
11918 public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
11919
11920 /**
11921 * Decodes a Status message from the specified reader or buffer.
11922 * @param reader Reader or buffer to decode from
11923 * @param [length] Message length if known beforehand
11924 * @returns Status
11925 * @throws {Error} If the payload is not a reader or valid buffer
11926 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11927 */
11928 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
11929
11930 /**
11931 * Decodes a Status message from the specified reader or buffer, length delimited.
11932 * @param reader Reader or buffer to decode from
11933 * @returns Status
11934 * @throws {Error} If the payload is not a reader or valid buffer
11935 * @throws {$protobuf.util.ProtocolError} If required fields are missing
11936 */
11937 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
11938
11939 /**
11940 * Verifies a Status message.
11941 * @param message Plain object to verify
11942 * @returns `null` if valid, otherwise the reason why it is not
11943 */
11944 public static verify(message: { [k: string]: any }): (string|null);
11945
11946 /**
11947 * Creates a Status message from a plain object. Also converts values to their respective internal types.
11948 * @param object Plain object
11949 * @returns Status
11950 */
11951 public static fromObject(object: { [k: string]: any }): google.rpc.Status;
11952
11953 /**
11954 * Creates a plain object from a Status message. Also converts values to other types if specified.
11955 * @param message Status
11956 * @param [options] Conversion options
11957 * @returns Plain object
11958 */
11959 public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
11960
11961 /**
11962 * Converts this Status to JSON.
11963 * @returns JSON object
11964 */
11965 public toJSON(): { [k: string]: any };
11966 }
11967 }
11968
11969 /** Namespace type. */
11970 namespace type {
11971
11972 /** Properties of a LatLng. */
11973 interface ILatLng {
11974
11975 /** LatLng latitude */
11976 latitude?: (number|null);
11977
11978 /** LatLng longitude */
11979 longitude?: (number|null);
11980 }
11981
11982 /** Represents a LatLng. */
11983 class LatLng implements ILatLng {
11984
11985 /**
11986 * Constructs a new LatLng.
11987 * @param [properties] Properties to set
11988 */
11989 constructor(properties?: google.type.ILatLng);
11990
11991 /** LatLng latitude. */
11992 public latitude: number;
11993
11994 /** LatLng longitude. */
11995 public longitude: number;
11996
11997 /**
11998 * Creates a new LatLng instance using the specified properties.
11999 * @param [properties] Properties to set
12000 * @returns LatLng instance
12001 */
12002 public static create(properties?: google.type.ILatLng): google.type.LatLng;
12003
12004 /**
12005 * Encodes the specified LatLng message. Does not implicitly {@link google.type.LatLng.verify|verify} messages.
12006 * @param message LatLng message or plain object to encode
12007 * @param [writer] Writer to encode to
12008 * @returns Writer
12009 */
12010 public static encode(message: google.type.ILatLng, writer?: $protobuf.Writer): $protobuf.Writer;
12011
12012 /**
12013 * Encodes the specified LatLng message, length delimited. Does not implicitly {@link google.type.LatLng.verify|verify} messages.
12014 * @param message LatLng message or plain object to encode
12015 * @param [writer] Writer to encode to
12016 * @returns Writer
12017 */
12018 public static encodeDelimited(message: google.type.ILatLng, writer?: $protobuf.Writer): $protobuf.Writer;
12019
12020 /**
12021 * Decodes a LatLng message from the specified reader or buffer.
12022 * @param reader Reader or buffer to decode from
12023 * @param [length] Message length if known beforehand
12024 * @returns LatLng
12025 * @throws {Error} If the payload is not a reader or valid buffer
12026 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12027 */
12028 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.LatLng;
12029
12030 /**
12031 * Decodes a LatLng message from the specified reader or buffer, length delimited.
12032 * @param reader Reader or buffer to decode from
12033 * @returns LatLng
12034 * @throws {Error} If the payload is not a reader or valid buffer
12035 * @throws {$protobuf.util.ProtocolError} If required fields are missing
12036 */
12037 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.LatLng;
12038
12039 /**
12040 * Verifies a LatLng message.
12041 * @param message Plain object to verify
12042 * @returns `null` if valid, otherwise the reason why it is not
12043 */
12044 public static verify(message: { [k: string]: any }): (string|null);
12045
12046 /**
12047 * Creates a LatLng message from a plain object. Also converts values to their respective internal types.
12048 * @param object Plain object
12049 * @returns LatLng
12050 */
12051 public static fromObject(object: { [k: string]: any }): google.type.LatLng;
12052
12053 /**
12054 * Creates a plain object from a LatLng message. Also converts values to other types if specified.
12055 * @param message LatLng
12056 * @param [options] Conversion options
12057 * @returns Plain object
12058 */
12059 public static toObject(message: google.type.LatLng, options?: $protobuf.IConversionOptions): { [k: string]: any };
12060
12061 /**
12062 * Converts this LatLng to JSON.
12063 * @returns JSON object
12064 */
12065 public toJSON(): { [k: string]: any };
12066 }
12067 }
12068}