Skip to content

Commit 29eb45a

Browse files
[v3.x] Bump protobuf version to v1.5.9-protofile
Co-authored-by: Lilian Kasem <[email protected]>
1 parent a625f30 commit 29eb45a

File tree

1 file changed

+51
-30
lines changed
  • src/WebJobs.Script.Grpc/azure-functions-language-worker-protobuf/src/proto

1 file changed

+51
-30
lines changed

src/WebJobs.Script.Grpc/azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto

Lines changed: 51 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ message StreamingMessage {
3232
WorkerInitRequest worker_init_request = 17;
3333
// Worker responds after initializing with its capabilities & status
3434
WorkerInitResponse worker_init_response = 16;
35-
35+
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
122123
message 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
178179
message WorkerHeartbeat {}
179180

@@ -187,7 +188,7 @@ message WorkerTerminate {
187188
message 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;
@@ -370,14 +371,14 @@ message InvocationRequest {
370371

371372
// Host sends ActivityId, traceStateString and Tags from host
372373
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;
375376

376-
// This corresponds to Activity.Current?.TraceStateString
377-
string trace_state = 2;
377+
// This corresponds to Activity.Current?.TraceStateString
378+
string trace_state = 2;
378379

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;
381382
}
382383

383384
// Host sends retry context for a function invocation
@@ -397,8 +398,8 @@ message InvocationCancel {
397398
// Unique id for invocation
398399
string invocation_id = 2;
399400

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;
402403
}
403404

404405
// Worker responds with status of Invocation
@@ -430,6 +431,7 @@ message TypedData {
430431
CollectionString collection_string = 9;
431432
CollectionDouble collection_double = 10;
432433
CollectionSInt64 collection_sint64 = 11;
434+
ModelBindingData model_binding_data = 12;
433435
}
434436
}
435437

@@ -497,20 +499,20 @@ message ParameterBinding {
497499

498500
// Used to describe a given binding on load
499501
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+
}
514516

515517
// Type of binding (e.g. HttpTrigger)
516518
string type = 2;
@@ -519,6 +521,9 @@ message BindingInfo {
519521
Direction direction = 3;
520522

521523
DataType data_type = 4;
524+
525+
// Properties for binding metadata
526+
map<string, string> properties = 5;
522527
}
523528

524529
// Used to send logs back to the Host
@@ -583,13 +588,13 @@ message RpcException {
583588
// Textual message describing the exception
584589
string message = 2;
585590

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.
588593
bool is_user_exception = 4;
589594

590595
// Type of exception. If it's a user exception, the type is passed along to app insights.
591596
// Otherwise, it's ignored for now.
592-
string type = 5;
597+
string type = 5;
593598
}
594599

595600
// Http cookie type. Note that only name and value are used for Http requests
@@ -647,4 +652,20 @@ message RpcHttp {
647652
map<string,NullableString> nullable_headers = 20;
648653
map<string,NullableString> nullable_params = 21;
649654
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

Comments
 (0)