From f35dd43aaf0a9116401841bf93a7c33fbeafe1de Mon Sep 17 00:00:00 2001 From: Kofo Okesola Date: Wed, 6 Nov 2024 23:31:07 +0100 Subject: [PATCH] regen proto --- proto/{init.go => gen.go} | 0 proto/workflow.pb.go | 8 ++++---- proto/workflow.proto | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename proto/{init.go => gen.go} (100%) diff --git a/proto/init.go b/proto/gen.go similarity index 100% rename from proto/init.go rename to proto/gen.go diff --git a/proto/workflow.pb.go b/proto/workflow.pb.go index ddb180e..f507a96 100644 --- a/proto/workflow.pb.go +++ b/proto/workflow.pb.go @@ -481,7 +481,7 @@ type Response struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Template string `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + Template []byte `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Code int32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` } @@ -518,11 +518,11 @@ func (*Response) Descriptor() ([]byte, []int) { return file_workflow_proto_rawDescGZIP(), []int{8} } -func (x *Response) GetTemplate() string { +func (x *Response) GetTemplate() []byte { if x != nil { return x.Template } - return "" + return nil } func (x *Response) GetType() string { @@ -675,7 +675,7 @@ var file_workflow_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0x4e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, diff --git a/proto/workflow.proto b/proto/workflow.proto index 09c45a0..9a6622b 100644 --- a/proto/workflow.proto +++ b/proto/workflow.proto @@ -51,7 +51,7 @@ message Conditional { } message Response { - string template = 1; + bytes template = 1; string type = 2; int32 code = 3; }