@@ -32,7 +32,8 @@ message StreamingMessage {
32
32
WorkerInitRequest worker_init_request = 17 ;
33
33
// Worker responds after initializing with its capabilities & status
34
34
WorkerInitResponse worker_init_response = 16 ;
35
-
35
+
36
+ // MESSAGE NOT USED
36
37
// Worker periodically sends empty heartbeat message to host
37
38
WorkerHeartbeat worker_heartbeat = 15 ;
38
39
@@ -120,7 +121,7 @@ message WorkerInitRequest {
120
121
121
122
// Worker responds with the result of initializing itself
122
123
message WorkerInitResponse {
123
- // NOT USED
124
+ // PROPERTY NOT USED
124
125
// TODO: Remove from protobuf during next breaking change release
125
126
string worker_version = 1 ;
126
127
@@ -173,7 +174,7 @@ message StatusResult {
173
174
repeated RpcLog logs = 3 ;
174
175
}
175
176
176
- // NOT USED
177
+ // MESSAGE NOT USED
177
178
// TODO: Remove from protobuf during next breaking change release
178
179
message WorkerHeartbeat {}
179
180
@@ -187,7 +188,7 @@ message WorkerTerminate {
187
188
message FileChangeEventRequest {
188
189
// Types of File change operations (See link for more info: https://msdn.microsoft.com/en-us/library/t6xf43e0(v=vs.110).aspx)
189
190
enum Type {
190
- Unknown = 0 ;
191
+ Unknown = 0 ;
191
192
Created = 1 ;
192
193
Deleted = 2 ;
193
194
Changed = 4 ;
@@ -370,14 +371,14 @@ message InvocationRequest {
370
371
371
372
// Host sends ActivityId, traceStateString and Tags from host
372
373
message RpcTraceContext {
373
- // This corresponds to Activity.Current?.Id
374
- string trace_parent = 1 ;
374
+ // This corresponds to Activity.Current?.Id
375
+ string trace_parent = 1 ;
375
376
376
- // This corresponds to Activity.Current?.TraceStateString
377
- string trace_state = 2 ;
377
+ // This corresponds to Activity.Current?.TraceStateString
378
+ string trace_state = 2 ;
378
379
379
- // This corresponds to Activity.Current?.Tags
380
- map <string , string > attributes = 3 ;
380
+ // This corresponds to Activity.Current?.Tags
381
+ map <string , string > attributes = 3 ;
381
382
}
382
383
383
384
// Host sends retry context for a function invocation
@@ -397,8 +398,8 @@ message InvocationCancel {
397
398
// Unique id for invocation
398
399
string invocation_id = 2 ;
399
400
400
- // Time period before force shutdown
401
- google.protobuf.Duration grace_period = 1 ; // could also use absolute time
401
+ // PROPERTY NOT USED
402
+ google.protobuf.Duration grace_period = 1 ;
402
403
}
403
404
404
405
// Worker responds with status of Invocation
@@ -430,6 +431,7 @@ message TypedData {
430
431
CollectionString collection_string = 9 ;
431
432
CollectionDouble collection_double = 10 ;
432
433
CollectionSInt64 collection_sint64 = 11 ;
434
+ ModelBindingData model_binding_data = 12 ;
433
435
}
434
436
}
435
437
@@ -497,20 +499,20 @@ message ParameterBinding {
497
499
498
500
// Used to describe a given binding on load
499
501
message BindingInfo {
500
- // Indicates whether it is an input or output binding (or a fancy inout binding)
501
- enum Direction {
502
- in = 0 ;
503
- out = 1 ;
504
- inout = 2 ;
505
- }
506
-
507
- // Indicates the type of the data for the binding
508
- enum DataType {
509
- undefined = 0 ;
510
- string = 1 ;
511
- binary = 2 ;
512
- stream = 3 ;
513
- }
502
+ // Indicates whether it is an input or output binding (or a fancy inout binding)
503
+ enum Direction {
504
+ in = 0 ;
505
+ out = 1 ;
506
+ inout = 2 ;
507
+ }
508
+
509
+ // Indicates the type of the data for the binding
510
+ enum DataType {
511
+ undefined = 0 ;
512
+ string = 1 ;
513
+ binary = 2 ;
514
+ stream = 3 ;
515
+ }
514
516
515
517
// Type of binding (e.g. HttpTrigger)
516
518
string type = 2 ;
@@ -519,6 +521,9 @@ message BindingInfo {
519
521
Direction direction = 3 ;
520
522
521
523
DataType data_type = 4 ;
524
+
525
+ // Properties for binding metadata
526
+ map <string , string > properties = 5 ;
522
527
}
523
528
524
529
// Used to send logs back to the Host
@@ -583,13 +588,13 @@ message RpcException {
583
588
// Textual message describing the exception
584
589
string message = 2 ;
585
590
586
- // Worker specifies whether exception is a user exception,
587
- // for purpose of application insights logging. Defaults to false.
591
+ // Worker specifies whether exception is a user exception,
592
+ // for purpose of application insights logging. Defaults to false.
588
593
bool is_user_exception = 4 ;
589
594
590
595
// Type of exception. If it's a user exception, the type is passed along to app insights.
591
596
// Otherwise, it's ignored for now.
592
- string type = 5 ;
597
+ string type = 5 ;
593
598
}
594
599
595
600
// Http cookie type. Note that only name and value are used for Http requests
@@ -647,4 +652,20 @@ message RpcHttp {
647
652
map <string ,NullableString > nullable_headers = 20 ;
648
653
map <string ,NullableString > nullable_params = 21 ;
649
654
map <string ,NullableString > nullable_query = 22 ;
650
- }
655
+ }
656
+ // Message representing Microsoft.Azure.WebJobs.ParameterBindingData
657
+ // Used for hydrating SDK-type bindings in out-of-proc workers
658
+ message ModelBindingData
659
+ {
660
+ // The version of the binding data content
661
+ string version = 1 ;
662
+
663
+ // The extension source of the binding data
664
+ string source = 2 ;
665
+
666
+ // The content type of the binding data content
667
+ string content_type = 3 ;
668
+
669
+ // The binding data content
670
+ bytes content = 4 ;
671
+ }
0 commit comments