Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
liliankasem committed Nov 1, 2022
2 parents 1b1a5a2 + 27a28ca commit 1492027
Showing 1 changed file with 44 additions and 32 deletions.
76 changes: 44 additions & 32 deletions src/proto/FunctionRpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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 {}

Expand All @@ -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;
Expand Down Expand Up @@ -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<string, string> attributes = 3;
// This corresponds to Activity.Current?.Tags
map<string, string> attributes = 3;
}

// Host sends retry context for a function invocation
Expand All @@ -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
Expand Down Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;
Expand All @@ -520,6 +520,9 @@ message BindingInfo {
Direction direction = 3;

DataType data_type = 4;

// Properties for binding metadata
map<string, string> properties = 5;
}

// Used to send logs back to the Host
Expand Down Expand Up @@ -650,10 +653,19 @@ message RpcHttp {
map<string,NullableString> 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;
}

0 comments on commit 1492027

Please sign in to comment.