Skip to content

Commit

Permalink
undo proto changes
Browse files Browse the repository at this point in the history
  • Loading branch information
liliankasem committed Nov 1, 2022
1 parent 735c18e commit 8730ea9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 47 deletions.
4 changes: 2 additions & 2 deletions src/DotNetWorker.Grpc/ModelBindingData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ internal sealed partial class ModelBindingData : IModelBindingData

string IModelBindingData.Source => Source;

string IModelBindingData.ContentType => ContentType;

BinaryData IModelBindingData.Content => BinaryData.FromBytes(Content.ToByteArray());

string IModelBindingData.ContentType => ContentType;
}
}
69 changes: 24 additions & 45 deletions src/DotNetWorker.Grpc/protobuf/src/proto/FunctionRpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -188,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 @@ -370,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 Down Expand Up @@ -430,7 +430,6 @@ message TypedData {
CollectionString collection_string = 9;
CollectionDouble collection_double = 10;
CollectionSInt64 collection_sint64 = 11;
ModelBindingData model_binding_data = 12;
}
}

Expand Down Expand Up @@ -498,20 +497,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;
}
// 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,9 +519,6 @@ 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 @@ -587,13 +583,13 @@ message RpcException {
// Textual message describing the exception
string message = 2;

// Worker specifies whether exception is a user exception,
// for purpose of application insights logging. Defaults to false.
// Worker specifies whether exception is a user exception,
// for purpose of application insights logging. Defaults to false.
bool is_user_exception = 4;

// Type of exception. If it's a user exception, the type is passed along to app insights.
// Otherwise, it's ignored for now.
string type = 5;
string type = 5;
}

// Http cookie type. Note that only name and value are used for Http requests
Expand Down Expand Up @@ -651,21 +647,4 @@ message RpcHttp {
map<string,NullableString> nullable_headers = 20;
map<string,NullableString> nullable_params = 21;
map<string,NullableString> nullable_query = 22;
}

// Message representing Microsoft.Azure.WebJobs.ParameterBindingData
// Used for hydrating SDK-type bindings in out-of-proc workers
message ModelBindingData
{
// The version of the binding data content
string version = 1;

// The extension source of the binding data
string source = 2;

// The binding data content
string content_type = 3;

// The content type of the binding data content
bytes content = 4;
}

0 comments on commit 8730ea9

Please sign in to comment.