@@ -33,6 +33,7 @@ message StreamingMessage {
3333 // Worker responds after initializing with its capabilities & status
3434 WorkerInitResponse worker_init_response = 16 ;
3535
36+ // MESSAGE NOT USED
3637 // Worker periodically sends empty heartbeat message to host
3738 WorkerHeartbeat worker_heartbeat = 15 ;
3839
@@ -120,7 +121,7 @@ message WorkerInitRequest {
120121
121122// Worker responds with the result of initializing itself
122123message WorkerInitResponse {
123- // NOT USED
124+ // PROPERTY NOT USED
124125 // TODO: Remove from protobuf during next breaking change release
125126 string worker_version = 1 ;
126127
@@ -173,7 +174,7 @@ message StatusResult {
173174 repeated RpcLog logs = 3 ;
174175}
175176
176- // NOT USED
177+ // MESSAGE NOT USED
177178// TODO: Remove from protobuf during next breaking change release
178179message WorkerHeartbeat {}
179180
@@ -187,7 +188,7 @@ message WorkerTerminate {
187188message FileChangeEventRequest {
188189 // Types of File change operations (See link for more info: https://msdn.microsoft.com/en-us/library/t6xf43e0(v=vs.110).aspx)
189190 enum Type {
190- Unknown = 0 ;
191+ Unknown = 0 ;
191192 Created = 1 ;
192193 Deleted = 2 ;
193194 Changed = 4 ;
@@ -369,14 +370,14 @@ message InvocationRequest {
369370
370371// Host sends ActivityId, traceStateString and Tags from host
371372message 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 ;
374375
375- // This corresponds to Activity.Current?.TraceStateString
376- string trace_state = 2 ;
376+ // This corresponds to Activity.Current?.TraceStateString
377+ string trace_state = 2 ;
377378
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 ;
380381}
381382
382383// Host sends retry context for a function invocation
@@ -396,8 +397,8 @@ message InvocationCancel {
396397 // Unique id for invocation
397398 string invocation_id = 2 ;
398399
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 ;
401402}
402403
403404// Worker responds with status of Invocation
@@ -429,7 +430,7 @@ message TypedData {
429430 CollectionString collection_string = 9 ;
430431 CollectionDouble collection_double = 10 ;
431432 CollectionSInt64 collection_sint64 = 11 ;
432- BindingData bindingData = 12 ;
433+ ModelBindingData model_binding_data = 12 ;
433434 }
434435}
435436
@@ -497,21 +498,20 @@ message ParameterBinding {
497498
498499// Used to describe a given binding on load
499500message 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+ }
515515
516516 // Type of binding (e.g. HttpTrigger)
517517 string type = 2 ;
@@ -520,6 +520,9 @@ message BindingInfo {
520520 Direction direction = 3 ;
521521
522522 DataType data_type = 4 ;
523+
524+ // Properties for binding metadata
525+ map <string , string > properties = 5 ;
523526}
524527
525528// Used to send logs back to the Host
@@ -650,10 +653,19 @@ message RpcHttp {
650653 map <string ,NullableString > nullable_query = 22 ;
651654}
652655
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
654659{
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 ;
659671}
0 commit comments