diff --git a/src/proto/FunctionRpc.proto b/src/proto/FunctionRpc.proto index 97e7f44..b091b23 100644 --- a/src/proto/FunctionRpc.proto +++ b/src/proto/FunctionRpc.proto @@ -33,6 +33,7 @@ message StreamingMessage { // Worker responds after initializing with its capabilities & status WorkerInitResponse worker_init_response = 16; + // MESSAGE NOT USED // Worker periodically sends empty heartbeat message to host WorkerHeartbeat worker_heartbeat = 15; @@ -120,7 +121,7 @@ message WorkerInitRequest { // Worker responds with the result of initializing itself message WorkerInitResponse { - // NOT USED + // PROPERTY NOT USED // TODO: Remove from protobuf during next breaking change release string worker_version = 1; @@ -173,7 +174,7 @@ message StatusResult { repeated RpcLog logs = 3; } -// NOT USED +// MESSAGE NOT USED // TODO: Remove from protobuf during next breaking change release message WorkerHeartbeat {} @@ -187,7 +188,7 @@ message WorkerTerminate { message FileChangeEventRequest { // Types of File change operations (See link for more info: https://msdn.microsoft.com/en-us/library/t6xf43e0(v=vs.110).aspx) enum Type { - Unknown = 0; + Unknown = 0; Created = 1; Deleted = 2; Changed = 4; @@ -369,14 +370,14 @@ message InvocationRequest { // Host sends ActivityId, traceStateString and Tags from host message RpcTraceContext { - // This corresponds to Activity.Current?.Id - string trace_parent = 1; + // This corresponds to Activity.Current?.Id + string trace_parent = 1; - // This corresponds to Activity.Current?.TraceStateString - string trace_state = 2; + // This corresponds to Activity.Current?.TraceStateString + string trace_state = 2; - // This corresponds to Activity.Current?.Tags - map attributes = 3; + // This corresponds to Activity.Current?.Tags + map attributes = 3; } // Host sends retry context for a function invocation @@ -396,8 +397,8 @@ message InvocationCancel { // Unique id for invocation string invocation_id = 2; - // Time period before force shutdown - google.protobuf.Duration grace_period = 1; // could also use absolute time + // PROPERTY NOT USED + google.protobuf.Duration grace_period = 1; } // Worker responds with status of Invocation @@ -429,7 +430,7 @@ message TypedData { CollectionString collection_string = 9; CollectionDouble collection_double = 10; CollectionSInt64 collection_sint64 = 11; - BindingData bindingData = 12; + ModelBindingData model_binding_data = 12; } } @@ -497,21 +498,20 @@ message ParameterBinding { // Used to describe a given binding on load message BindingInfo { - // Indicates whether it is an input or output binding (or a fancy inout binding) - enum Direction { - in = 0; - out = 1; - inout = 2; - } - - // Indicates the type of the data for the binding - enum DataType { - undefined = 0; - string = 1; - binary = 2; - stream = 3; - reference = 4; - } + // Indicates whether it is an input or output binding (or a fancy inout binding) + enum Direction { + in = 0; + out = 1; + inout = 2; + } + + // Indicates the type of the data for the binding + enum DataType { + undefined = 0; + string = 1; + binary = 2; + stream = 3; + } // Type of binding (e.g. HttpTrigger) string type = 2; @@ -520,6 +520,9 @@ message BindingInfo { Direction direction = 3; DataType data_type = 4; + + // Properties for binding metadata + map properties = 5; } // Used to send logs back to the Host @@ -650,10 +653,19 @@ message RpcHttp { map nullable_query = 22; } -message BindingData +// Message representing Microsoft.Azure.WebJobs.ParameterBindingData +// Used for hydrating SDK-type bindings in out-of-proc workers +message ModelBindingData { - string Version = 1; - string ContentType = 2; - string Source = 3; - string Content = 4; + // The version of the binding data content + string version = 1; + + // The extension source of the binding data + string source = 2; + + // The content type of the binding data content + string content_type = 3; + + // The binding data content + bytes content = 4; }