@flyteorg/flyteidl 0.24.18 → 0.24.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,694 @@
1
+ ######################
2
+ Protocol Documentation
3
+ ######################
4
+
5
+
6
+
7
+
8
+ .. _ref_flyteidl/event/event.proto:
9
+
10
+ flyteidl/event/event.proto
11
+ ==================================================================
12
+
13
+
14
+
15
+
16
+
17
+ .. _ref_flyteidl.event.DynamicWorkflowNodeMetadata:
18
+
19
+ DynamicWorkflowNodeMetadata
20
+ ------------------------------------------------------------------
21
+
22
+ For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated.
23
+
24
+
25
+
26
+ .. csv-table:: DynamicWorkflowNodeMetadata type fields
27
+ :header: "Field", "Type", "Label", "Description"
28
+ :widths: auto
29
+
30
+ "id", ":ref:`ref_flyteidl.core.Identifier`", "", "id represents the unique identifier of the workflow."
31
+ "compiled_workflow", ":ref:`ref_flyteidl.core.CompiledWorkflowClosure`", "", "Represents the compiled representation of the embedded dynamic workflow."
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+ .. _ref_flyteidl.event.ExternalResourceInfo:
40
+
41
+ ExternalResourceInfo
42
+ ------------------------------------------------------------------
43
+
44
+ This message contains metadata about external resources produced or used by a specific task execution.
45
+
46
+
47
+
48
+ .. csv-table:: ExternalResourceInfo type fields
49
+ :header: "Field", "Type", "Label", "Description"
50
+ :widths: auto
51
+
52
+ "external_id", ":ref:`ref_string`", "", "Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids."
53
+ "index", ":ref:`ref_uint32`", "", "A unique index for the external resource with respect to all external resources for this task. Although the identifier may change between task reporting events or retries, this will remain the same to enable aggregating information from multiple reports."
54
+ "retry_attempt", ":ref:`ref_uint32`", "", "Retry attempt number for this external resource, ie., 2 for the second attempt"
55
+ "phase", ":ref:`ref_flyteidl.core.TaskExecution.Phase`", "", "Phase associated with the external resource"
56
+ "cache_status", ":ref:`ref_flyteidl.core.CatalogCacheStatus`", "", "Captures the status of caching for this external resource execution."
57
+ "logs", ":ref:`ref_flyteidl.core.TaskLog`", "repeated", "log information for the external resource execution"
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ .. _ref_flyteidl.event.NodeExecutionEvent:
66
+
67
+ NodeExecutionEvent
68
+ ------------------------------------------------------------------
69
+
70
+
71
+
72
+
73
+
74
+ .. csv-table:: NodeExecutionEvent type fields
75
+ :header: "Field", "Type", "Label", "Description"
76
+ :widths: auto
77
+
78
+ "id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "Unique identifier for this node execution"
79
+ "producer_id", ":ref:`ref_string`", "", "the id of the originator (Propeller) of the event"
80
+ "phase", ":ref:`ref_flyteidl.core.NodeExecution.Phase`", "", ""
81
+ "occurred_at", ":ref:`ref_google.protobuf.Timestamp`", "", "This timestamp represents when the original event occurred, it is generated by the executor of the node."
82
+ "input_uri", ":ref:`ref_string`", "", ""
83
+ "output_uri", ":ref:`ref_string`", "", "URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://..."
84
+ "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information for the execution"
85
+ "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Raw output data produced by this node execution."
86
+ "workflow_node_metadata", ":ref:`ref_flyteidl.event.WorkflowNodeMetadata`", "", ""
87
+ "task_node_metadata", ":ref:`ref_flyteidl.event.TaskNodeMetadata`", "", ""
88
+ "parent_task_metadata", ":ref:`ref_flyteidl.event.ParentTaskExecutionMetadata`", "", "[To be deprecated] Specifies which task (if any) launched this node."
89
+ "parent_node_metadata", ":ref:`ref_flyteidl.event.ParentNodeExecutionMetadata`", "", "Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node."
90
+ "retry_group", ":ref:`ref_string`", "", "Retry group to indicate grouping of nodes by retries"
91
+ "spec_node_id", ":ref:`ref_string`", "", "Identifier of the node in the original workflow/graph This maps to value of WorkflowTemplate.nodes[X].id"
92
+ "node_name", ":ref:`ref_string`", "", "Friendly readable name for the node"
93
+ "event_version", ":ref:`ref_int32`", "", ""
94
+ "is_parent", ":ref:`ref_bool`", "", "Whether this node launched a subworkflow."
95
+ "is_dynamic", ":ref:`ref_bool`", "", "Whether this node yielded a dynamic workflow."
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ .. _ref_flyteidl.event.ParentNodeExecutionMetadata:
104
+
105
+ ParentNodeExecutionMetadata
106
+ ------------------------------------------------------------------
107
+
108
+
109
+
110
+
111
+
112
+ .. csv-table:: ParentNodeExecutionMetadata type fields
113
+ :header: "Field", "Type", "Label", "Description"
114
+ :widths: auto
115
+
116
+ "node_id", ":ref:`ref_string`", "", "Unique identifier of the parent node id within the execution This is value of core.NodeExecutionIdentifier.node_id of the parent node"
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ .. _ref_flyteidl.event.ParentTaskExecutionMetadata:
125
+
126
+ ParentTaskExecutionMetadata
127
+ ------------------------------------------------------------------
128
+
129
+
130
+
131
+
132
+
133
+ .. csv-table:: ParentTaskExecutionMetadata type fields
134
+ :header: "Field", "Type", "Label", "Description"
135
+ :widths: auto
136
+
137
+ "id", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", ""
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ .. _ref_flyteidl.event.ResourcePoolInfo:
146
+
147
+ ResourcePoolInfo
148
+ ------------------------------------------------------------------
149
+
150
+ This message holds task execution metadata specific to resource allocation used to manage concurrent
151
+ executions for a project namespace.
152
+
153
+
154
+
155
+ .. csv-table:: ResourcePoolInfo type fields
156
+ :header: "Field", "Type", "Label", "Description"
157
+ :widths: auto
158
+
159
+ "allocation_token", ":ref:`ref_string`", "", "Unique resource ID used to identify this execution when allocating a token."
160
+ "namespace", ":ref:`ref_string`", "", "Namespace under which this task execution requested an allocation token."
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+ .. _ref_flyteidl.event.TaskExecutionEvent:
169
+
170
+ TaskExecutionEvent
171
+ ------------------------------------------------------------------
172
+
173
+ Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
174
+
175
+
176
+
177
+ .. csv-table:: TaskExecutionEvent type fields
178
+ :header: "Field", "Type", "Label", "Description"
179
+ :widths: auto
180
+
181
+ "task_id", ":ref:`ref_flyteidl.core.Identifier`", "", "ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution."
182
+ "parent_node_execution_id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "A task execution is always kicked off by a node execution, the event consumer will use the parent_id to relate the task to it's parent node execution"
183
+ "retry_attempt", ":ref:`ref_uint32`", "", "retry attempt number for this task, ie., 2 for the second attempt"
184
+ "phase", ":ref:`ref_flyteidl.core.TaskExecution.Phase`", "", "Phase associated with the event"
185
+ "producer_id", ":ref:`ref_string`", "", "id of the process that sent this event, mainly for trace debugging"
186
+ "logs", ":ref:`ref_flyteidl.core.TaskLog`", "repeated", "log information for the task execution"
187
+ "occurred_at", ":ref:`ref_google.protobuf.Timestamp`", "", "This timestamp represents when the original event occurred, it is generated by the executor of the task."
188
+ "input_uri", ":ref:`ref_string`", "", "URI of the input file, it encodes all the information including Cloud source provider. ie., s3://..."
189
+ "output_uri", ":ref:`ref_string`", "", "URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://..."
190
+ "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information for the execution"
191
+ "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Raw output data produced by this task execution."
192
+ "custom_info", ":ref:`ref_google.protobuf.Struct`", "", "Custom data that the task plugin sends back. This is extensible to allow various plugins in the system."
193
+ "phase_version", ":ref:`ref_uint32`", "", "Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase."
194
+ "reason", ":ref:`ref_string`", "", "An optional explanation for the phase transition."
195
+ "task_type", ":ref:`ref_string`", "", "A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin this type will be identical, but not all task executions necessarily use pre-registered definitions and this type is useful to render the task in the UI, filter task executions, etc."
196
+ "metadata", ":ref:`ref_flyteidl.event.TaskExecutionMetadata`", "", "Metadata around how a task was executed."
197
+ "event_version", ":ref:`ref_int32`", "", "The event version is used to indicate versioned changes in how data is reported using this proto message. For example, event_verison > 0 means that maps tasks report logs using the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message."
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+ .. _ref_flyteidl.event.TaskExecutionMetadata:
206
+
207
+ TaskExecutionMetadata
208
+ ------------------------------------------------------------------
209
+
210
+ Holds metadata around how a task was executed.
211
+ As a task transitions across event phases during execution some attributes, such its generated name, generated external resources,
212
+ and more may grow in size but not change necessarily based on the phase transition that sparked the event update.
213
+ Metadata is a container for these attributes across the task execution lifecycle.
214
+
215
+
216
+
217
+ .. csv-table:: TaskExecutionMetadata type fields
218
+ :header: "Field", "Type", "Label", "Description"
219
+ :widths: auto
220
+
221
+ "generated_name", ":ref:`ref_string`", "", "Unique, generated name for this task execution used by the backend."
222
+ "external_resources", ":ref:`ref_flyteidl.event.ExternalResourceInfo`", "repeated", "Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution."
223
+ "resource_pool_info", ":ref:`ref_flyteidl.event.ResourcePoolInfo`", "repeated", "Includes additional data on concurrent resource management used during execution.. This is a repeated field because a plugin can request multiple resource allocations during execution."
224
+ "plugin_identifier", ":ref:`ref_string`", "", "The identifier of the plugin used to execute this task."
225
+ "instance_class", ":ref:`ref_flyteidl.event.TaskExecutionMetadata.InstanceClass`", "", ""
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+ .. _ref_flyteidl.event.TaskNodeMetadata:
234
+
235
+ TaskNodeMetadata
236
+ ------------------------------------------------------------------
237
+
238
+
239
+
240
+
241
+
242
+ .. csv-table:: TaskNodeMetadata type fields
243
+ :header: "Field", "Type", "Label", "Description"
244
+ :widths: auto
245
+
246
+ "cache_status", ":ref:`ref_flyteidl.core.CatalogCacheStatus`", "", "Captures the status of caching for this execution."
247
+ "catalog_key", ":ref:`ref_flyteidl.core.CatalogMetadata`", "", "This structure carries the catalog artifact information"
248
+ "reservation_status", ":ref:`ref_flyteidl.core.CatalogReservation.Status`", "", "Captures the status of cache reservations for this execution."
249
+ "dynamic_workflow", ":ref:`ref_flyteidl.event.DynamicWorkflowNodeMetadata`", "", "In the case this task launched a dynamic workflow we capture its structure here."
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+ .. _ref_flyteidl.event.WorkflowExecutionEvent:
258
+
259
+ WorkflowExecutionEvent
260
+ ------------------------------------------------------------------
261
+
262
+
263
+
264
+
265
+
266
+ .. csv-table:: WorkflowExecutionEvent type fields
267
+ :header: "Field", "Type", "Label", "Description"
268
+ :widths: auto
269
+
270
+ "execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Workflow execution id"
271
+ "producer_id", ":ref:`ref_string`", "", "the id of the originator (Propeller) of the event"
272
+ "phase", ":ref:`ref_flyteidl.core.WorkflowExecution.Phase`", "", ""
273
+ "occurred_at", ":ref:`ref_google.protobuf.Timestamp`", "", "This timestamp represents when the original event occurred, it is generated by the executor of the workflow."
274
+ "output_uri", ":ref:`ref_string`", "", "URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://..."
275
+ "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information for the execution"
276
+ "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Raw output data produced by this workflow execution."
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+ .. _ref_flyteidl.event.WorkflowNodeMetadata:
285
+
286
+ WorkflowNodeMetadata
287
+ ------------------------------------------------------------------
288
+
289
+ For Workflow Nodes we need to send information about the workflow that's launched
290
+
291
+
292
+
293
+ .. csv-table:: WorkflowNodeMetadata type fields
294
+ :header: "Field", "Type", "Label", "Description"
295
+ :widths: auto
296
+
297
+ "execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", ""
298
+
299
+
300
+
301
+
302
+
303
+ <!-- end messages -->
304
+
305
+
306
+
307
+ .. _ref_flyteidl.event.TaskExecutionMetadata.InstanceClass:
308
+
309
+ TaskExecutionMetadata.InstanceClass
310
+ ------------------------------------------------------------------
311
+
312
+ Includes the broad category of machine used for this specific task execution.
313
+
314
+ .. csv-table:: Enum TaskExecutionMetadata.InstanceClass values
315
+ :header: "Name", "Number", "Description"
316
+ :widths: auto
317
+
318
+ "DEFAULT", "0", "The default instance class configured for the flyte application platform."
319
+ "INTERRUPTIBLE", "1", "The instance class configured for interruptible tasks."
320
+
321
+ <!-- end enums -->
322
+
323
+ <!-- end HasExtensions -->
324
+
325
+ <!-- end services -->
326
+
327
+
328
+
329
+
330
+ .. _ref_google/protobuf/timestamp.proto:
331
+
332
+ google/protobuf/timestamp.proto
333
+ ==================================================================
334
+
335
+
336
+
337
+
338
+
339
+ .. _ref_google.protobuf.Timestamp:
340
+
341
+ Timestamp
342
+ ------------------------------------------------------------------
343
+
344
+ A Timestamp represents a point in time independent of any time zone or local
345
+ calendar, encoded as a count of seconds and fractions of seconds at
346
+ nanosecond resolution. The count is relative to an epoch at UTC midnight on
347
+ January 1, 1970, in the proleptic Gregorian calendar which extends the
348
+ Gregorian calendar backwards to year one.
349
+
350
+ All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
351
+ second table is needed for interpretation, using a [24-hour linear
352
+ smear](https://developers.google.com/time/smear).
353
+
354
+ The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
355
+ restricting to that range, we ensure that we can convert to and from [RFC
356
+ 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
357
+
358
+ # Examples
359
+
360
+ Example 1: Compute Timestamp from POSIX `time()`.
361
+
362
+ Timestamp timestamp;
363
+ timestamp.set_seconds(time(NULL));
364
+ timestamp.set_nanos(0);
365
+
366
+ Example 2: Compute Timestamp from POSIX `gettimeofday()`.
367
+
368
+ struct timeval tv;
369
+ gettimeofday(&tv, NULL);
370
+
371
+ Timestamp timestamp;
372
+ timestamp.set_seconds(tv.tv_sec);
373
+ timestamp.set_nanos(tv.tv_usec * 1000);
374
+
375
+ Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
376
+
377
+ FILETIME ft;
378
+ GetSystemTimeAsFileTime(&ft);
379
+ UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
380
+
381
+ // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
382
+ // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
383
+ Timestamp timestamp;
384
+ timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
385
+ timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
386
+
387
+ Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
388
+
389
+ long millis = System.currentTimeMillis();
390
+
391
+ Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
392
+ .setNanos((int) ((millis % 1000) * 1000000)).build();
393
+
394
+
395
+ Example 5: Compute Timestamp from Java `Instant.now()`.
396
+
397
+ Instant now = Instant.now();
398
+
399
+ Timestamp timestamp =
400
+ Timestamp.newBuilder().setSeconds(now.getEpochSecond())
401
+ .setNanos(now.getNano()).build();
402
+
403
+
404
+ Example 6: Compute Timestamp from current time in Python.
405
+
406
+ timestamp = Timestamp()
407
+ timestamp.GetCurrentTime()
408
+
409
+ # JSON Mapping
410
+
411
+ In JSON format, the Timestamp type is encoded as a string in the
412
+ [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
413
+ format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
414
+ where {year} is always expressed using four digits while {month}, {day},
415
+ {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
416
+ seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
417
+ are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
418
+ is required. A proto3 JSON serializer should always use UTC (as indicated by
419
+ "Z") when printing the Timestamp type and a proto3 JSON parser should be
420
+ able to accept both UTC and other timezones (as indicated by an offset).
421
+
422
+ For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
423
+ 01:30 UTC on January 15, 2017.
424
+
425
+ In JavaScript, one can convert a Date object to this format using the
426
+ standard
427
+ [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
428
+ method. In Python, a standard `datetime.datetime` object can be converted
429
+ to this format using
430
+ [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
431
+ the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
432
+ the Joda Time's [`ISODateTimeFormat.dateTime()`](
433
+ http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
434
+ ) to obtain a formatter capable of generating timestamps in this format.
435
+
436
+
437
+
438
+ .. csv-table:: Timestamp type fields
439
+ :header: "Field", "Type", "Label", "Description"
440
+ :widths: auto
441
+
442
+ "seconds", ":ref:`ref_int64`", "", "Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."
443
+ "nanos", ":ref:`ref_int32`", "", "Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive."
444
+
445
+
446
+
447
+
448
+
449
+ <!-- end messages -->
450
+
451
+ <!-- end enums -->
452
+
453
+ <!-- end HasExtensions -->
454
+
455
+ <!-- end services -->
456
+
457
+
458
+
459
+
460
+ .. _ref_google/protobuf/duration.proto:
461
+
462
+ google/protobuf/duration.proto
463
+ ==================================================================
464
+
465
+
466
+
467
+
468
+
469
+ .. _ref_google.protobuf.Duration:
470
+
471
+ Duration
472
+ ------------------------------------------------------------------
473
+
474
+ A Duration represents a signed, fixed-length span of time represented
475
+ as a count of seconds and fractions of seconds at nanosecond
476
+ resolution. It is independent of any calendar and concepts like "day"
477
+ or "month". It is related to Timestamp in that the difference between
478
+ two Timestamp values is a Duration and it can be added or subtracted
479
+ from a Timestamp. Range is approximately +-10,000 years.
480
+
481
+ # Examples
482
+
483
+ Example 1: Compute Duration from two Timestamps in pseudo code.
484
+
485
+ Timestamp start = ...;
486
+ Timestamp end = ...;
487
+ Duration duration = ...;
488
+
489
+ duration.seconds = end.seconds - start.seconds;
490
+ duration.nanos = end.nanos - start.nanos;
491
+
492
+ if (duration.seconds < 0 && duration.nanos > 0) {
493
+ duration.seconds += 1;
494
+ duration.nanos -= 1000000000;
495
+ } else if (duration.seconds > 0 && duration.nanos < 0) {
496
+ duration.seconds -= 1;
497
+ duration.nanos += 1000000000;
498
+ }
499
+
500
+ Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
501
+
502
+ Timestamp start = ...;
503
+ Duration duration = ...;
504
+ Timestamp end = ...;
505
+
506
+ end.seconds = start.seconds + duration.seconds;
507
+ end.nanos = start.nanos + duration.nanos;
508
+
509
+ if (end.nanos < 0) {
510
+ end.seconds -= 1;
511
+ end.nanos += 1000000000;
512
+ } else if (end.nanos >= 1000000000) {
513
+ end.seconds += 1;
514
+ end.nanos -= 1000000000;
515
+ }
516
+
517
+ Example 3: Compute Duration from datetime.timedelta in Python.
518
+
519
+ td = datetime.timedelta(days=3, minutes=10)
520
+ duration = Duration()
521
+ duration.FromTimedelta(td)
522
+
523
+ # JSON Mapping
524
+
525
+ In JSON format, the Duration type is encoded as a string rather than an
526
+ object, where the string ends in the suffix "s" (indicating seconds) and
527
+ is preceded by the number of seconds, with nanoseconds expressed as
528
+ fractional seconds. For example, 3 seconds with 0 nanoseconds should be
529
+ encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
530
+ be expressed in JSON format as "3.000000001s", and 3 seconds and 1
531
+ microsecond should be expressed in JSON format as "3.000001s".
532
+
533
+
534
+
535
+ .. csv-table:: Duration type fields
536
+ :header: "Field", "Type", "Label", "Description"
537
+ :widths: auto
538
+
539
+ "seconds", ":ref:`ref_int64`", "", "Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years"
540
+ "nanos", ":ref:`ref_int32`", "", "Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for the `nanos` field must be of the same sign as the `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive."
541
+
542
+
543
+
544
+
545
+
546
+ <!-- end messages -->
547
+
548
+ <!-- end enums -->
549
+
550
+ <!-- end HasExtensions -->
551
+
552
+ <!-- end services -->
553
+
554
+
555
+
556
+
557
+ .. _ref_google/protobuf/struct.proto:
558
+
559
+ google/protobuf/struct.proto
560
+ ==================================================================
561
+
562
+
563
+
564
+
565
+
566
+ .. _ref_google.protobuf.ListValue:
567
+
568
+ ListValue
569
+ ------------------------------------------------------------------
570
+
571
+ `ListValue` is a wrapper around a repeated field of values.
572
+
573
+ The JSON representation for `ListValue` is JSON array.
574
+
575
+
576
+
577
+ .. csv-table:: ListValue type fields
578
+ :header: "Field", "Type", "Label", "Description"
579
+ :widths: auto
580
+
581
+ "values", ":ref:`ref_google.protobuf.Value`", "repeated", "Repeated field of dynamically typed values."
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+ .. _ref_google.protobuf.Struct:
590
+
591
+ Struct
592
+ ------------------------------------------------------------------
593
+
594
+ `Struct` represents a structured data value, consisting of fields
595
+ which map to dynamically typed values. In some languages, `Struct`
596
+ might be supported by a native representation. For example, in
597
+ scripting languages like JS a struct is represented as an
598
+ object. The details of that representation are described together
599
+ with the proto support for the language.
600
+
601
+ The JSON representation for `Struct` is JSON object.
602
+
603
+
604
+
605
+ .. csv-table:: Struct type fields
606
+ :header: "Field", "Type", "Label", "Description"
607
+ :widths: auto
608
+
609
+ "fields", ":ref:`ref_google.protobuf.Struct.FieldsEntry`", "repeated", "Unordered map of dynamically typed values."
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+ .. _ref_google.protobuf.Struct.FieldsEntry:
618
+
619
+ Struct.FieldsEntry
620
+ ------------------------------------------------------------------
621
+
622
+
623
+
624
+
625
+
626
+ .. csv-table:: Struct.FieldsEntry type fields
627
+ :header: "Field", "Type", "Label", "Description"
628
+ :widths: auto
629
+
630
+ "key", ":ref:`ref_string`", "", ""
631
+ "value", ":ref:`ref_google.protobuf.Value`", "", ""
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+ .. _ref_google.protobuf.Value:
640
+
641
+ Value
642
+ ------------------------------------------------------------------
643
+
644
+ `Value` represents a dynamically typed value which can be either
645
+ null, a number, a string, a boolean, a recursive struct value, or a
646
+ list of values. A producer of value is expected to set one of these
647
+ variants. Absence of any variant indicates an error.
648
+
649
+ The JSON representation for `Value` is JSON value.
650
+
651
+
652
+
653
+ .. csv-table:: Value type fields
654
+ :header: "Field", "Type", "Label", "Description"
655
+ :widths: auto
656
+
657
+ "null_value", ":ref:`ref_google.protobuf.NullValue`", "", "Represents a null value."
658
+ "number_value", ":ref:`ref_double`", "", "Represents a double value."
659
+ "string_value", ":ref:`ref_string`", "", "Represents a string value."
660
+ "bool_value", ":ref:`ref_bool`", "", "Represents a boolean value."
661
+ "struct_value", ":ref:`ref_google.protobuf.Struct`", "", "Represents a structured value."
662
+ "list_value", ":ref:`ref_google.protobuf.ListValue`", "", "Represents a repeated `Value`."
663
+
664
+
665
+
666
+
667
+
668
+ <!-- end messages -->
669
+
670
+
671
+
672
+ .. _ref_google.protobuf.NullValue:
673
+
674
+ NullValue
675
+ ------------------------------------------------------------------
676
+
677
+ `NullValue` is a singleton enumeration to represent the null value for the
678
+ `Value` type union.
679
+
680
+ The JSON representation for `NullValue` is JSON `null`.
681
+
682
+ .. csv-table:: Enum NullValue values
683
+ :header: "Name", "Number", "Description"
684
+ :widths: auto
685
+
686
+ "NULL_VALUE", "0", "Null value."
687
+
688
+ <!-- end enums -->
689
+
690
+ <!-- end HasExtensions -->
691
+
692
+ <!-- end services -->
693
+
694
+