regenerated proto

This commit is contained in:
Kofo Okesola 2024-10-04 12:25:01 +01:00
parent cd85547a87
commit ffc1303972
5 changed files with 390 additions and 128 deletions

7
go.mod
View File

@ -2,11 +2,14 @@ module git.servflow.io/servflow/definitions
go 1.22.4 go 1.22.4
require (
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.34.2
)
require ( require (
golang.org/x/net v0.28.0 // indirect golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.24.0 // indirect golang.org/x/sys v0.24.0 // indirect
golang.org/x/text v0.17.0 // indirect golang.org/x/text v0.17.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.34.2 // indirect
) )

2
proto/init.go Normal file
View File

@ -0,0 +1,2 @@
//go:generate protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative workflow.proto
package proto

View File

@ -20,6 +20,91 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
type GetAllDatabasesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetAllDatabasesRequest) Reset() {
*x = GetAllDatabasesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAllDatabasesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAllDatabasesRequest) ProtoMessage() {}
func (x *GetAllDatabasesRequest) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAllDatabasesRequest.ProtoReflect.Descriptor instead.
func (*GetAllDatabasesRequest) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{0}
}
type GetAllDatabasesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Databases []*DatabaseConfig `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
}
func (x *GetAllDatabasesResponse) Reset() {
*x = GetAllDatabasesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAllDatabasesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAllDatabasesResponse) ProtoMessage() {}
func (x *GetAllDatabasesResponse) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAllDatabasesResponse.ProtoReflect.Descriptor instead.
func (*GetAllDatabasesResponse) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{1}
}
func (x *GetAllDatabasesResponse) GetDatabases() []*DatabaseConfig {
if x != nil {
return x.Databases
}
return nil
}
type GetAllWorkflowConfigsRequest struct { type GetAllWorkflowConfigsRequest struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@ -29,7 +114,7 @@ type GetAllWorkflowConfigsRequest struct {
func (x *GetAllWorkflowConfigsRequest) Reset() { func (x *GetAllWorkflowConfigsRequest) Reset() {
*x = GetAllWorkflowConfigsRequest{} *x = GetAllWorkflowConfigsRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[0] mi := &file_workflow_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -42,7 +127,7 @@ func (x *GetAllWorkflowConfigsRequest) String() string {
func (*GetAllWorkflowConfigsRequest) ProtoMessage() {} func (*GetAllWorkflowConfigsRequest) ProtoMessage() {}
func (x *GetAllWorkflowConfigsRequest) ProtoReflect() protoreflect.Message { func (x *GetAllWorkflowConfigsRequest) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[0] mi := &file_workflow_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -55,7 +140,7 @@ func (x *GetAllWorkflowConfigsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetAllWorkflowConfigsRequest.ProtoReflect.Descriptor instead. // Deprecated: Use GetAllWorkflowConfigsRequest.ProtoReflect.Descriptor instead.
func (*GetAllWorkflowConfigsRequest) Descriptor() ([]byte, []int) { func (*GetAllWorkflowConfigsRequest) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{0} return file_workflow_proto_rawDescGZIP(), []int{2}
} }
type WorkflowConfigs struct { type WorkflowConfigs struct {
@ -69,7 +154,7 @@ type WorkflowConfigs struct {
func (x *WorkflowConfigs) Reset() { func (x *WorkflowConfigs) Reset() {
*x = WorkflowConfigs{} *x = WorkflowConfigs{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[1] mi := &file_workflow_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -82,7 +167,7 @@ func (x *WorkflowConfigs) String() string {
func (*WorkflowConfigs) ProtoMessage() {} func (*WorkflowConfigs) ProtoMessage() {}
func (x *WorkflowConfigs) ProtoReflect() protoreflect.Message { func (x *WorkflowConfigs) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[1] mi := &file_workflow_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -95,7 +180,7 @@ func (x *WorkflowConfigs) ProtoReflect() protoreflect.Message {
// Deprecated: Use WorkflowConfigs.ProtoReflect.Descriptor instead. // Deprecated: Use WorkflowConfigs.ProtoReflect.Descriptor instead.
func (*WorkflowConfigs) Descriptor() ([]byte, []int) { func (*WorkflowConfigs) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{1} return file_workflow_proto_rawDescGZIP(), []int{3}
} }
func (x *WorkflowConfigs) GetConfigs() []*WorkflowConfig { func (x *WorkflowConfigs) GetConfigs() []*WorkflowConfig {
@ -122,7 +207,7 @@ type WorkflowConfig struct {
func (x *WorkflowConfig) Reset() { func (x *WorkflowConfig) Reset() {
*x = WorkflowConfig{} *x = WorkflowConfig{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[2] mi := &file_workflow_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -135,7 +220,7 @@ func (x *WorkflowConfig) String() string {
func (*WorkflowConfig) ProtoMessage() {} func (*WorkflowConfig) ProtoMessage() {}
func (x *WorkflowConfig) ProtoReflect() protoreflect.Message { func (x *WorkflowConfig) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[2] mi := &file_workflow_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -148,7 +233,7 @@ func (x *WorkflowConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use WorkflowConfig.ProtoReflect.Descriptor instead. // Deprecated: Use WorkflowConfig.ProtoReflect.Descriptor instead.
func (*WorkflowConfig) Descriptor() ([]byte, []int) { func (*WorkflowConfig) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{2} return file_workflow_proto_rawDescGZIP(), []int{4}
} }
func (x *WorkflowConfig) GetId() string { func (x *WorkflowConfig) GetId() string {
@ -211,7 +296,7 @@ type Request struct {
func (x *Request) Reset() { func (x *Request) Reset() {
*x = Request{} *x = Request{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[3] mi := &file_workflow_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -224,7 +309,7 @@ func (x *Request) String() string {
func (*Request) ProtoMessage() {} func (*Request) ProtoMessage() {}
func (x *Request) ProtoReflect() protoreflect.Message { func (x *Request) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[3] mi := &file_workflow_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -237,7 +322,7 @@ func (x *Request) ProtoReflect() protoreflect.Message {
// Deprecated: Use Request.ProtoReflect.Descriptor instead. // Deprecated: Use Request.ProtoReflect.Descriptor instead.
func (*Request) Descriptor() ([]byte, []int) { func (*Request) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{3} return file_workflow_proto_rawDescGZIP(), []int{5}
} }
func (x *Request) GetNext() string { func (x *Request) GetNext() string {
@ -260,7 +345,7 @@ type Action struct {
func (x *Action) Reset() { func (x *Action) Reset() {
*x = Action{} *x = Action{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[4] mi := &file_workflow_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -273,7 +358,7 @@ func (x *Action) String() string {
func (*Action) ProtoMessage() {} func (*Action) ProtoMessage() {}
func (x *Action) ProtoReflect() protoreflect.Message { func (x *Action) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[4] mi := &file_workflow_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -286,7 +371,7 @@ func (x *Action) ProtoReflect() protoreflect.Message {
// Deprecated: Use Action.ProtoReflect.Descriptor instead. // Deprecated: Use Action.ProtoReflect.Descriptor instead.
func (*Action) Descriptor() ([]byte, []int) { func (*Action) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{4} return file_workflow_proto_rawDescGZIP(), []int{6}
} }
func (x *Action) GetType() string { func (x *Action) GetType() string {
@ -323,7 +408,7 @@ type Conditional struct {
func (x *Conditional) Reset() { func (x *Conditional) Reset() {
*x = Conditional{} *x = Conditional{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[5] mi := &file_workflow_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -336,7 +421,7 @@ func (x *Conditional) String() string {
func (*Conditional) ProtoMessage() {} func (*Conditional) ProtoMessage() {}
func (x *Conditional) ProtoReflect() protoreflect.Message { func (x *Conditional) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[5] mi := &file_workflow_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -349,7 +434,7 @@ func (x *Conditional) ProtoReflect() protoreflect.Message {
// Deprecated: Use Conditional.ProtoReflect.Descriptor instead. // Deprecated: Use Conditional.ProtoReflect.Descriptor instead.
func (*Conditional) Descriptor() ([]byte, []int) { func (*Conditional) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{5} return file_workflow_proto_rawDescGZIP(), []int{7}
} }
func (x *Conditional) GetExpression() string { func (x *Conditional) GetExpression() string {
@ -386,7 +471,7 @@ type Response struct {
func (x *Response) Reset() { func (x *Response) Reset() {
*x = Response{} *x = Response{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[6] mi := &file_workflow_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -399,7 +484,7 @@ func (x *Response) String() string {
func (*Response) ProtoMessage() {} func (*Response) ProtoMessage() {}
func (x *Response) ProtoReflect() protoreflect.Message { func (x *Response) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[6] mi := &file_workflow_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -412,7 +497,7 @@ func (x *Response) ProtoReflect() protoreflect.Message {
// Deprecated: Use Response.ProtoReflect.Descriptor instead. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
func (*Response) Descriptor() ([]byte, []int) { func (*Response) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{6} return file_workflow_proto_rawDescGZIP(), []int{8}
} }
func (x *Response) GetTemplate() string { func (x *Response) GetTemplate() string {
@ -436,82 +521,162 @@ func (x *Response) GetCode() int32 {
return 0 return 0
} }
type DatabaseConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Config string `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
}
func (x *DatabaseConfig) Reset() {
*x = DatabaseConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_workflow_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DatabaseConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DatabaseConfig) ProtoMessage() {}
func (x *DatabaseConfig) ProtoReflect() protoreflect.Message {
mi := &file_workflow_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DatabaseConfig.ProtoReflect.Descriptor instead.
func (*DatabaseConfig) Descriptor() ([]byte, []int) {
return file_workflow_proto_rawDescGZIP(), []int{9}
}
func (x *DatabaseConfig) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DatabaseConfig) GetConfig() string {
if x != nil {
return x.Config
}
return ""
}
func (x *DatabaseConfig) GetType() string {
if x != nil {
return x.Type
}
return ""
}
var File_workflow_proto protoreflect.FileDescriptor var File_workflow_proto protoreflect.FileDescriptor
var file_workflow_proto_rawDesc = []byte{ var file_workflow_proto_rawDesc = []byte{
0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x6c,
0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x42, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x74, 0x22, 0x4e, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62,
0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x63, 0x6f, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x09,
0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
0x69, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xc1, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x73, 0x22, 0x1e, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x74, 0x22, 0x42, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e,
0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, 0x66, 0x69, 0x67, 0x73, 0x12, 0x2f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18,
0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f,
0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, 0x6f,
0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xc1, 0x04, 0x0a, 0x0e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c,
0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x74, 0x12, 0x3c, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74,
0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c,
0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
0x4b, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x73, 0x18, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01,
0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x07, 0x61,
0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70,
0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e,
0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4b, 0x0a, 0x0c, 0x63, 0x6f, 0x6e,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77,
0x1a, 0x49, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,
0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x53, 0x0a, 0x11, 0x43, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x49, 0x0a, 0x0c, 0x41, 0x63,
0x65, 0x79, 0x12, 0x28, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05,
0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72,
0x1a, 0x4d, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x53, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x6f, 0x6e, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x05,
0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72,
0x1d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x65, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52,
0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x22, 0x48, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4d, 0x0a, 0x0e, 0x52, 0x65,
0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x25,
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05,
0x28, 0x09, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x22, 0x6f, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x64, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1d, 0x0a, 0x07, 0x52, 0x65, 0x71,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x22, 0x48, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69,
0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
0x69, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12,
0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x65,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0x4e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x78, 0x74, 0x22, 0x6f, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f,
0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18,
0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x61, 0x74, 0x68,
0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x32, 0x69, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68,
0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x15, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x50,
0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x61, 0x74, 0x68, 0x22, 0x4e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x74, 0x41, 0x6c, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74,
0x69, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63,
0x67, 0x73, 0x22, 0x00, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x6f, 0x64, 0x65, 0x22, 0x4c, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,
0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x69, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x66, 0x6c, 0x6f, 0x77, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x2f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a,
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
0x65, 0x32, 0xbd, 0x01, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x57,
0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x23,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x57, 0x6f, 0x72,
0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b,
0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x00, 0x12, 0x52, 0x0a,
0x0f, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
0x12, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44,
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x61,
0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x66, 0x6c, 0x6f,
0x77, 0x2e, 0x69, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x64, 0x65,
0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -526,35 +691,41 @@ func file_workflow_proto_rawDescGZIP() []byte {
return file_workflow_proto_rawDescData return file_workflow_proto_rawDescData
} }
var file_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_workflow_proto_goTypes = []any{ var file_workflow_proto_goTypes = []any{
(*GetAllWorkflowConfigsRequest)(nil), // 0: proto.GetAllWorkflowConfigsRequest (*GetAllDatabasesRequest)(nil), // 0: proto.GetAllDatabasesRequest
(*WorkflowConfigs)(nil), // 1: proto.WorkflowConfigs (*GetAllDatabasesResponse)(nil), // 1: proto.GetAllDatabasesResponse
(*WorkflowConfig)(nil), // 2: proto.WorkflowConfig (*GetAllWorkflowConfigsRequest)(nil), // 2: proto.GetAllWorkflowConfigsRequest
(*Request)(nil), // 3: proto.Request (*WorkflowConfigs)(nil), // 3: proto.WorkflowConfigs
(*Action)(nil), // 4: proto.Action (*WorkflowConfig)(nil), // 4: proto.WorkflowConfig
(*Conditional)(nil), // 5: proto.Conditional (*Request)(nil), // 5: proto.Request
(*Response)(nil), // 6: proto.Response (*Action)(nil), // 6: proto.Action
nil, // 7: proto.WorkflowConfig.ActionsEntry (*Conditional)(nil), // 7: proto.Conditional
nil, // 8: proto.WorkflowConfig.ConditionalsEntry (*Response)(nil), // 8: proto.Response
nil, // 9: proto.WorkflowConfig.ResponsesEntry (*DatabaseConfig)(nil), // 9: proto.DatabaseConfig
nil, // 10: proto.WorkflowConfig.ActionsEntry
nil, // 11: proto.WorkflowConfig.ConditionalsEntry
nil, // 12: proto.WorkflowConfig.ResponsesEntry
} }
var file_workflow_proto_depIdxs = []int32{ var file_workflow_proto_depIdxs = []int32{
2, // 0: proto.WorkflowConfigs.configs:type_name -> proto.WorkflowConfig 9, // 0: proto.GetAllDatabasesResponse.databases:type_name -> proto.DatabaseConfig
3, // 1: proto.WorkflowConfig.request:type_name -> proto.Request 4, // 1: proto.WorkflowConfigs.configs:type_name -> proto.WorkflowConfig
7, // 2: proto.WorkflowConfig.actions:type_name -> proto.WorkflowConfig.ActionsEntry 5, // 2: proto.WorkflowConfig.request:type_name -> proto.Request
8, // 3: proto.WorkflowConfig.conditionals:type_name -> proto.WorkflowConfig.ConditionalsEntry 10, // 3: proto.WorkflowConfig.actions:type_name -> proto.WorkflowConfig.ActionsEntry
9, // 4: proto.WorkflowConfig.responses:type_name -> proto.WorkflowConfig.ResponsesEntry 11, // 4: proto.WorkflowConfig.conditionals:type_name -> proto.WorkflowConfig.ConditionalsEntry
4, // 5: proto.WorkflowConfig.ActionsEntry.value:type_name -> proto.Action 12, // 5: proto.WorkflowConfig.responses:type_name -> proto.WorkflowConfig.ResponsesEntry
5, // 6: proto.WorkflowConfig.ConditionalsEntry.value:type_name -> proto.Conditional 6, // 6: proto.WorkflowConfig.ActionsEntry.value:type_name -> proto.Action
6, // 7: proto.WorkflowConfig.ResponsesEntry.value:type_name -> proto.Response 7, // 7: proto.WorkflowConfig.ConditionalsEntry.value:type_name -> proto.Conditional
0, // 8: proto.WorkflowService.GetAllWorkflowConfigs:input_type -> proto.GetAllWorkflowConfigsRequest 8, // 8: proto.WorkflowConfig.ResponsesEntry.value:type_name -> proto.Response
1, // 9: proto.WorkflowService.GetAllWorkflowConfigs:output_type -> proto.WorkflowConfigs 2, // 9: proto.WorkflowService.GetAllWorkflowConfigs:input_type -> proto.GetAllWorkflowConfigsRequest
9, // [9:10] is the sub-list for method output_type 0, // 10: proto.WorkflowService.GetAllDatabases:input_type -> proto.GetAllDatabasesRequest
8, // [8:9] is the sub-list for method input_type 3, // 11: proto.WorkflowService.GetAllWorkflowConfigs:output_type -> proto.WorkflowConfigs
8, // [8:8] is the sub-list for extension type_name 1, // 12: proto.WorkflowService.GetAllDatabases:output_type -> proto.GetAllDatabasesResponse
8, // [8:8] is the sub-list for extension extendee 11, // [11:13] is the sub-list for method output_type
0, // [0:8] is the sub-list for field type_name 9, // [9:11] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
} }
func init() { file_workflow_proto_init() } func init() { file_workflow_proto_init() }
@ -564,7 +735,7 @@ func file_workflow_proto_init() {
} }
if !protoimpl.UnsafeEnabled { if !protoimpl.UnsafeEnabled {
file_workflow_proto_msgTypes[0].Exporter = func(v any, i int) any { file_workflow_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAllWorkflowConfigsRequest); i { switch v := v.(*GetAllDatabasesRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -576,7 +747,7 @@ func file_workflow_proto_init() {
} }
} }
file_workflow_proto_msgTypes[1].Exporter = func(v any, i int) any { file_workflow_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*WorkflowConfigs); i { switch v := v.(*GetAllDatabasesResponse); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -588,7 +759,7 @@ func file_workflow_proto_init() {
} }
} }
file_workflow_proto_msgTypes[2].Exporter = func(v any, i int) any { file_workflow_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*WorkflowConfig); i { switch v := v.(*GetAllWorkflowConfigsRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -600,7 +771,7 @@ func file_workflow_proto_init() {
} }
} }
file_workflow_proto_msgTypes[3].Exporter = func(v any, i int) any { file_workflow_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Request); i { switch v := v.(*WorkflowConfigs); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -612,7 +783,7 @@ func file_workflow_proto_init() {
} }
} }
file_workflow_proto_msgTypes[4].Exporter = func(v any, i int) any { file_workflow_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*Action); i { switch v := v.(*WorkflowConfig); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -624,7 +795,7 @@ func file_workflow_proto_init() {
} }
} }
file_workflow_proto_msgTypes[5].Exporter = func(v any, i int) any { file_workflow_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*Conditional); i { switch v := v.(*Request); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -636,6 +807,30 @@ func file_workflow_proto_init() {
} }
} }
file_workflow_proto_msgTypes[6].Exporter = func(v any, i int) any { file_workflow_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*Action); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_workflow_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*Conditional); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_workflow_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*Response); i { switch v := v.(*Response); i {
case 0: case 0:
return &v.state return &v.state
@ -647,6 +842,18 @@ func file_workflow_proto_init() {
return nil return nil
} }
} }
file_workflow_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DatabaseConfig); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
@ -654,7 +861,7 @@ func file_workflow_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_workflow_proto_rawDesc, RawDescriptor: file_workflow_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 10, NumMessages: 13,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },

View File

@ -6,8 +6,14 @@ option go_package = "git.servflow.io/servflow/definitions/proto";
service WorkflowService { service WorkflowService {
rpc GetAllWorkflowConfigs(GetAllWorkflowConfigsRequest) returns (WorkflowConfigs) {} rpc GetAllWorkflowConfigs(GetAllWorkflowConfigsRequest) returns (WorkflowConfigs) {}
rpc GetAllDatabases(GetAllDatabasesRequest) returns (GetAllDatabasesResponse) {}
} }
message GetAllDatabasesRequest{}
message GetAllDatabasesResponse{
repeated DatabaseConfig databases = 1;
}
message GetAllWorkflowConfigsRequest {} message GetAllWorkflowConfigsRequest {}
message WorkflowConfigs { message WorkflowConfigs {
@ -45,3 +51,9 @@ message Response {
string type = 2; string type = 2;
int32 code = 3; int32 code = 3;
} }
message DatabaseConfig {
string id = 1;
string config = 2;
string type = 3;
}

View File

@ -20,6 +20,7 @@ const _ = grpc.SupportPackageIsVersion9
const ( const (
WorkflowService_GetAllWorkflowConfigs_FullMethodName = "/proto.WorkflowService/GetAllWorkflowConfigs" WorkflowService_GetAllWorkflowConfigs_FullMethodName = "/proto.WorkflowService/GetAllWorkflowConfigs"
WorkflowService_GetAllDatabases_FullMethodName = "/proto.WorkflowService/GetAllDatabases"
) )
// WorkflowServiceClient is the client API for WorkflowService service. // WorkflowServiceClient is the client API for WorkflowService service.
@ -27,6 +28,7 @@ const (
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type WorkflowServiceClient interface { type WorkflowServiceClient interface {
GetAllWorkflowConfigs(ctx context.Context, in *GetAllWorkflowConfigsRequest, opts ...grpc.CallOption) (*WorkflowConfigs, error) GetAllWorkflowConfigs(ctx context.Context, in *GetAllWorkflowConfigsRequest, opts ...grpc.CallOption) (*WorkflowConfigs, error)
GetAllDatabases(ctx context.Context, in *GetAllDatabasesRequest, opts ...grpc.CallOption) (*GetAllDatabasesResponse, error)
} }
type workflowServiceClient struct { type workflowServiceClient struct {
@ -47,11 +49,22 @@ func (c *workflowServiceClient) GetAllWorkflowConfigs(ctx context.Context, in *G
return out, nil return out, nil
} }
func (c *workflowServiceClient) GetAllDatabases(ctx context.Context, in *GetAllDatabasesRequest, opts ...grpc.CallOption) (*GetAllDatabasesResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetAllDatabasesResponse)
err := c.cc.Invoke(ctx, WorkflowService_GetAllDatabases_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// WorkflowServiceServer is the server API for WorkflowService service. // WorkflowServiceServer is the server API for WorkflowService service.
// All implementations must embed UnimplementedWorkflowServiceServer // All implementations must embed UnimplementedWorkflowServiceServer
// for forward compatibility. // for forward compatibility.
type WorkflowServiceServer interface { type WorkflowServiceServer interface {
GetAllWorkflowConfigs(context.Context, *GetAllWorkflowConfigsRequest) (*WorkflowConfigs, error) GetAllWorkflowConfigs(context.Context, *GetAllWorkflowConfigsRequest) (*WorkflowConfigs, error)
GetAllDatabases(context.Context, *GetAllDatabasesRequest) (*GetAllDatabasesResponse, error)
mustEmbedUnimplementedWorkflowServiceServer() mustEmbedUnimplementedWorkflowServiceServer()
} }
@ -65,6 +78,9 @@ type UnimplementedWorkflowServiceServer struct{}
func (UnimplementedWorkflowServiceServer) GetAllWorkflowConfigs(context.Context, *GetAllWorkflowConfigsRequest) (*WorkflowConfigs, error) { func (UnimplementedWorkflowServiceServer) GetAllWorkflowConfigs(context.Context, *GetAllWorkflowConfigsRequest) (*WorkflowConfigs, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAllWorkflowConfigs not implemented") return nil, status.Errorf(codes.Unimplemented, "method GetAllWorkflowConfigs not implemented")
} }
func (UnimplementedWorkflowServiceServer) GetAllDatabases(context.Context, *GetAllDatabasesRequest) (*GetAllDatabasesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAllDatabases not implemented")
}
func (UnimplementedWorkflowServiceServer) mustEmbedUnimplementedWorkflowServiceServer() {} func (UnimplementedWorkflowServiceServer) mustEmbedUnimplementedWorkflowServiceServer() {}
func (UnimplementedWorkflowServiceServer) testEmbeddedByValue() {} func (UnimplementedWorkflowServiceServer) testEmbeddedByValue() {}
@ -104,6 +120,24 @@ func _WorkflowService_GetAllWorkflowConfigs_Handler(srv interface{}, ctx context
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _WorkflowService_GetAllDatabases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAllDatabasesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WorkflowServiceServer).GetAllDatabases(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: WorkflowService_GetAllDatabases_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WorkflowServiceServer).GetAllDatabases(ctx, req.(*GetAllDatabasesRequest))
}
return interceptor(ctx, in, info, handler)
}
// WorkflowService_ServiceDesc is the grpc.ServiceDesc for WorkflowService service. // WorkflowService_ServiceDesc is the grpc.ServiceDesc for WorkflowService service.
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
@ -115,6 +149,10 @@ var WorkflowService_ServiceDesc = grpc.ServiceDesc{
MethodName: "GetAllWorkflowConfigs", MethodName: "GetAllWorkflowConfigs",
Handler: _WorkflowService_GetAllWorkflowConfigs_Handler, Handler: _WorkflowService_GetAllWorkflowConfigs_Handler,
}, },
{
MethodName: "GetAllDatabases",
Handler: _WorkflowService_GetAllDatabases_Handler,
},
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "workflow.proto", Metadata: "workflow.proto",