@@ -33,6 +33,7 @@ message StreamingMessage {
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 ;
@@ -369,14 +370,14 @@ message InvocationRequest {
369
370
370
371
// Host sends ActivityId, traceStateString and Tags from host
371
372
message RpcTraceContext {
372
- // This corresponds to Activity.Current?.Id
373
- string trace_parent = 1 ;
373
+ // This corresponds to Activity.Current?.Id
374
+ string trace_parent = 1 ;
374
375
375
- // This corresponds to Activity.Current?.TraceStateString
376
- string trace_state = 2 ;
376
+ // This corresponds to Activity.Current?.TraceStateString
377
+ string trace_state = 2 ;
377
378
378
- // This corresponds to Activity.Current?.Tags
379
- map <string , string > attributes = 3 ;
379
+ // This corresponds to Activity.Current?.Tags
380
+ map <string , string > attributes = 3 ;
380
381
}
381
382
382
383
// Host sends retry context for a function invocation
@@ -396,8 +397,8 @@ message InvocationCancel {
396
397
// Unique id for invocation
397
398
string invocation_id = 2 ;
398
399
399
- // Time period before force shutdown
400
- google.protobuf.Duration grace_period = 1 ; // could also use absolute time
400
+ // PROPERTY NOT USED
401
+ google.protobuf.Duration grace_period = 1 ;
401
402
}
402
403
403
404
// Worker responds with status of Invocation
@@ -429,7 +430,7 @@ message TypedData {
429
430
CollectionString collection_string = 9 ;
430
431
CollectionDouble collection_double = 10 ;
431
432
CollectionSInt64 collection_sint64 = 11 ;
432
- BindingData bindingData = 12 ;
433
+ ModelBindingData model_binding_data = 12 ;
433
434
}
434
435
}
435
436
@@ -497,21 +498,20 @@ message ParameterBinding {
497
498
498
499
// Used to describe a given binding on load
499
500
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
- reference = 4 ;
514
- }
501
+ // Indicates whether it is an input or output binding (or a fancy inout binding)
502
+ enum Direction {
503
+ in = 0 ;
504
+ out = 1 ;
505
+ inout = 2 ;
506
+ }
507
+
508
+ // Indicates the type of the data for the binding
509
+ enum DataType {
510
+ undefined = 0 ;
511
+ string = 1 ;
512
+ binary = 2 ;
513
+ stream = 3 ;
514
+ }
515
515
516
516
// Type of binding (e.g. HttpTrigger)
517
517
string type = 2 ;
@@ -520,6 +520,9 @@ message BindingInfo {
520
520
Direction direction = 3 ;
521
521
522
522
DataType data_type = 4 ;
523
+
524
+ // Properties for binding metadata
525
+ map <string , string > properties = 5 ;
523
526
}
524
527
525
528
// Used to send logs back to the Host
@@ -650,10 +653,19 @@ message RpcHttp {
650
653
map <string ,NullableString > nullable_query = 22 ;
651
654
}
652
655
653
- message BindingData
656
+ // Message representing Microsoft.Azure.WebJobs.ParameterBindingData
657
+ // Used for hydrating SDK-type bindings in out-of-proc workers
658
+ message ModelBindingData
654
659
{
655
- string Version = 1 ;
656
- string ContentType = 2 ;
657
- string Source = 3 ;
658
- string Content = 4 ;
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 ;
659
671
}
0 commit comments