From 75a3bbdf11a53f68cdaedabe19f100741f9a83bb Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 30 Aug 2023 20:43:07 +0200 Subject: [PATCH] refactor: introduce separate packages and switch to connect --- .buildr/tasks.hcl | 61 +- buf.gen.yaml | 13 +- buf.work.yaml | 3 - {rpc => common}/v1/spec.proto | 0 generated/{rpc => common}/v1/spec.pb.go | 461 ++--- .../{rpc => common}/v1/spec_vtproto.pb.go | 2 +- generated/{rpc => remote}/v1/executor.pb.go | 812 ++++---- .../{rpc => remote}/v1/executor_vtproto.pb.go | 728 ++++---- .../v1/rpcv1connect/executor.connect.go | 177 ++ generated/rpc/v1/executor_grpc.pb.go | 141 -- generated/rpc/v1/wasi.pb.go | 659 ------- .../wasi/v1/rpcv1connect/wasi.connect.go | 231 +++ generated/wasi/v1/wasi.pb.go | 899 +++++++++ generated/{rpc => wasi}/v1/wasi_vtproto.pb.go | 1626 +++++++++++------ go.mod | 1 + go.sum | 2 + {rpc => remote}/v1/executor.proto | 23 +- rpc/v1/wasi.proto | 44 - wasi/v1/wasi.proto | 67 + 19 files changed, 3557 insertions(+), 2393 deletions(-) delete mode 100644 buf.work.yaml rename {rpc => common}/v1/spec.proto (100%) rename generated/{rpc => common}/v1/spec.pb.go (59%) rename generated/{rpc => common}/v1/spec_vtproto.pb.go (99%) rename generated/{rpc => remote}/v1/executor.pb.go (55%) rename generated/{rpc => remote}/v1/executor_vtproto.pb.go (95%) create mode 100644 generated/remote/v1/rpcv1connect/executor.connect.go delete mode 100644 generated/rpc/v1/executor_grpc.pb.go delete mode 100644 generated/rpc/v1/wasi.pb.go create mode 100644 generated/wasi/v1/rpcv1connect/wasi.connect.go create mode 100644 generated/wasi/v1/wasi.pb.go rename generated/{rpc => wasi}/v1/wasi_vtproto.pb.go (73%) rename {rpc => remote}/v1/executor.proto (85%) delete mode 100644 rpc/v1/wasi.proto create mode 100644 wasi/v1/wasi.proto diff --git a/.buildr/tasks.hcl b/.buildr/tasks.hcl index c7ecd27..37536db 100644 --- a/.buildr/tasks.hcl +++ b/.buildr/tasks.hcl @@ -1,44 +1,45 @@ task "script" "go_fmt" { - inline = [ - "go fmt ${join(" ", toset([for s in vcs.staged_files : "code.icb4dc0.de/buildr/api/${dirname(s)}" if ext(s) == ".go"]))}" - ] - continue_on_error = true + inline = [ + "go fmt ${join(" ", toset([for s in vcs.staged_files : "code.icb4dc0.de/buildr/api/${dirname(s)}" if ext(s) == ".go"]))}" + ] + continue_on_error = true } task "script" "buf_generate" { - inline = [ - "buf generate", - "echo -e \"//go:build !wasi\\n\\n$(cat generated/rpc/v1/executor_grpc.pb.go)\" > generated/rpc/v1/executor_grpc.pb.go" - ] + inline = [ + "buf generate" + ] - out_dir = repo.root + out_dir = repo.root - input_mapping = { - "rpc" = "rpc", - "buf.yaml" = "buf.yaml" - "buf.gen.yaml" = "buf.gen.yaml" - "buf.work.yaml" = "buf.work.yaml" - } + input_mapping = { + "common" = "common", + "remote" = "remote", + "wasi" = "wasi", + "buf.yaml" = "buf.yaml" + "buf.gen.yaml" = "buf.gen.yaml" + "buf.work.yaml" = "buf.work.yaml" + } - container { - image = "docker.io/bufbuild/buf" - } + container { + image = "docker.io/bufbuild/buf" + } } task "script" "golangci_lint" { - inline = [ - "golangci-lint run -v" - ] + inline = [ + "golangci-lint run -v" + ] - container { - image = "golangci/golangci-lint" - } + container { + image = "golangci/golangci-lint" + } - depends_on = [ - tasks.go_fmt.id, - ] + depends_on = [ + tasks.go_fmt.id, + ] - input_mapping = { - "${repo.root}" = "." - } + input_mapping = { + "${repo.root}" = "." + } } \ No newline at end of file diff --git a/buf.gen.yaml b/buf.gen.yaml index 7508d2a..7b21a5c 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -3,21 +3,20 @@ managed: enabled: true optimize_for: CODE_SIZE go_package_prefix: - default: code.icb4dc0.de/buildr/buildr/api + default: code.icb4dc0.de/buildr/api/generated except: - buf.build/googleapis/googleapis plugins: - plugin: buf.build/protocolbuffers/go:v1.31.0 out: ./generated/ opt: paths=source_relative - - plugin: buf.build/grpc/go:v1.3.0 - out: ./generated/ - opt: - - paths=source_relative - - require_unimplemented_servers=false - plugin: buf.build/community/planetscale-vtprotobuf:v0.4.0 out: ./generated/ opt: - features=marshal+unmarshal+size+pool - paths=source_relative - revision: 1 \ No newline at end of file + revision: 1 + - plugin: buf.build/connectrpc/go:v1.11.1 + out: ./generated/ + opt: + - paths=source_relative diff --git a/buf.work.yaml b/buf.work.yaml deleted file mode 100644 index f5a48a2..0000000 --- a/buf.work.yaml +++ /dev/null @@ -1,3 +0,0 @@ -version: v1 -directories: - - . diff --git a/rpc/v1/spec.proto b/common/v1/spec.proto similarity index 100% rename from rpc/v1/spec.proto rename to common/v1/spec.proto diff --git a/generated/rpc/v1/spec.pb.go b/generated/common/v1/spec.pb.go similarity index 59% rename from generated/rpc/v1/spec.pb.go rename to generated/common/v1/spec.pb.go index ad9d1e4..56c2eb4 100644 --- a/generated/rpc/v1/spec.pb.go +++ b/generated/common/v1/spec.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: rpc/v1/spec.proto +// source: common/v1/spec.proto package rpcv1 @@ -62,11 +62,11 @@ func (x Category) String() string { } func (Category) Descriptor() protoreflect.EnumDescriptor { - return file_rpc_v1_spec_proto_enumTypes[0].Descriptor() + return file_common_v1_spec_proto_enumTypes[0].Descriptor() } func (Category) Type() protoreflect.EnumType { - return &file_rpc_v1_spec_proto_enumTypes[0] + return &file_common_v1_spec_proto_enumTypes[0] } func (x Category) Number() protoreflect.EnumNumber { @@ -75,7 +75,7 @@ func (x Category) Number() protoreflect.EnumNumber { // Deprecated: Use Category.Descriptor instead. func (Category) EnumDescriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{0} + return file_common_v1_spec_proto_rawDescGZIP(), []int{0} } type ModuleSpec_ValueKind int32 @@ -114,11 +114,11 @@ func (x ModuleSpec_ValueKind) String() string { } func (ModuleSpec_ValueKind) Descriptor() protoreflect.EnumDescriptor { - return file_rpc_v1_spec_proto_enumTypes[1].Descriptor() + return file_common_v1_spec_proto_enumTypes[1].Descriptor() } func (ModuleSpec_ValueKind) Type() protoreflect.EnumType { - return &file_rpc_v1_spec_proto_enumTypes[1] + return &file_common_v1_spec_proto_enumTypes[1] } func (x ModuleSpec_ValueKind) Number() protoreflect.EnumNumber { @@ -127,7 +127,7 @@ func (x ModuleSpec_ValueKind) Number() protoreflect.EnumNumber { // Deprecated: Use ModuleSpec_ValueKind.Descriptor instead. func (ModuleSpec_ValueKind) EnumDescriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{1, 0} + return file_common_v1_spec_proto_rawDescGZIP(), []int{1, 0} } type ModuleSpec_ValueType int32 @@ -178,11 +178,11 @@ func (x ModuleSpec_ValueType) String() string { } func (ModuleSpec_ValueType) Descriptor() protoreflect.EnumDescriptor { - return file_rpc_v1_spec_proto_enumTypes[2].Descriptor() + return file_common_v1_spec_proto_enumTypes[2].Descriptor() } func (ModuleSpec_ValueType) Type() protoreflect.EnumType { - return &file_rpc_v1_spec_proto_enumTypes[2] + return &file_common_v1_spec_proto_enumTypes[2] } func (x ModuleSpec_ValueType) Number() protoreflect.EnumNumber { @@ -191,7 +191,7 @@ func (x ModuleSpec_ValueType) Number() protoreflect.EnumNumber { // Deprecated: Use ModuleSpec_ValueType.Descriptor instead. func (ModuleSpec_ValueType) EnumDescriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{1, 1} + return file_common_v1_spec_proto_rawDescGZIP(), []int{1, 1} } type ModuleReference struct { @@ -206,7 +206,7 @@ type ModuleReference struct { func (x *ModuleReference) Reset() { *x = ModuleReference{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[0] + mi := &file_common_v1_spec_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -219,7 +219,7 @@ func (x *ModuleReference) String() string { func (*ModuleReference) ProtoMessage() {} func (x *ModuleReference) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[0] + mi := &file_common_v1_spec_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -232,7 +232,7 @@ func (x *ModuleReference) ProtoReflect() protoreflect.Message { // Deprecated: Use ModuleReference.ProtoReflect.Descriptor instead. func (*ModuleReference) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{0} + return file_common_v1_spec_proto_rawDescGZIP(), []int{0} } func (x *ModuleReference) GetModuleCategory() Category { @@ -262,7 +262,7 @@ type ModuleSpec struct { func (x *ModuleSpec) Reset() { *x = ModuleSpec{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[1] + mi := &file_common_v1_spec_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -275,7 +275,7 @@ func (x *ModuleSpec) String() string { func (*ModuleSpec) ProtoMessage() {} func (x *ModuleSpec) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[1] + mi := &file_common_v1_spec_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -288,7 +288,7 @@ func (x *ModuleSpec) ProtoReflect() protoreflect.Message { // Deprecated: Use ModuleSpec.ProtoReflect.Descriptor instead. func (*ModuleSpec) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{1} + return file_common_v1_spec_proto_rawDescGZIP(), []int{1} } func (x *ModuleSpec) GetCategory() Category { @@ -324,7 +324,7 @@ type ContainerCapabilities struct { func (x *ContainerCapabilities) Reset() { *x = ContainerCapabilities{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[2] + mi := &file_common_v1_spec_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -337,7 +337,7 @@ func (x *ContainerCapabilities) String() string { func (*ContainerCapabilities) ProtoMessage() {} func (x *ContainerCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[2] + mi := &file_common_v1_spec_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -350,7 +350,7 @@ func (x *ContainerCapabilities) ProtoReflect() protoreflect.Message { // Deprecated: Use ContainerCapabilities.ProtoReflect.Descriptor instead. func (*ContainerCapabilities) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{2} + return file_common_v1_spec_proto_rawDescGZIP(), []int{2} } func (x *ContainerCapabilities) GetAdd() []string { @@ -380,7 +380,7 @@ type ContainerBindMount struct { func (x *ContainerBindMount) Reset() { *x = ContainerBindMount{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[3] + mi := &file_common_v1_spec_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -393,7 +393,7 @@ func (x *ContainerBindMount) String() string { func (*ContainerBindMount) ProtoMessage() {} func (x *ContainerBindMount) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[3] + mi := &file_common_v1_spec_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -406,7 +406,7 @@ func (x *ContainerBindMount) ProtoReflect() protoreflect.Message { // Deprecated: Use ContainerBindMount.ProtoReflect.Descriptor instead. func (*ContainerBindMount) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{3} + return file_common_v1_spec_proto_rawDescGZIP(), []int{3} } func (x *ContainerBindMount) GetTarget() string { @@ -443,7 +443,7 @@ type ContainerTmpfsMount struct { func (x *ContainerTmpfsMount) Reset() { *x = ContainerTmpfsMount{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[4] + mi := &file_common_v1_spec_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -456,7 +456,7 @@ func (x *ContainerTmpfsMount) String() string { func (*ContainerTmpfsMount) ProtoMessage() {} func (x *ContainerTmpfsMount) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[4] + mi := &file_common_v1_spec_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -469,7 +469,7 @@ func (x *ContainerTmpfsMount) ProtoReflect() protoreflect.Message { // Deprecated: Use ContainerTmpfsMount.ProtoReflect.Descriptor instead. func (*ContainerTmpfsMount) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{4} + return file_common_v1_spec_proto_rawDescGZIP(), []int{4} } func (x *ContainerTmpfsMount) GetTarget() string { @@ -507,7 +507,7 @@ type ContainerVolumeMount struct { func (x *ContainerVolumeMount) Reset() { *x = ContainerVolumeMount{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[5] + mi := &file_common_v1_spec_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -520,7 +520,7 @@ func (x *ContainerVolumeMount) String() string { func (*ContainerVolumeMount) ProtoMessage() {} func (x *ContainerVolumeMount) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[5] + mi := &file_common_v1_spec_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -533,7 +533,7 @@ func (x *ContainerVolumeMount) ProtoReflect() protoreflect.Message { // Deprecated: Use ContainerVolumeMount.ProtoReflect.Descriptor instead. func (*ContainerVolumeMount) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{5} + return file_common_v1_spec_proto_rawDescGZIP(), []int{5} } func (x *ContainerVolumeMount) GetTarget() string { @@ -581,7 +581,7 @@ type ContainerSpec struct { func (x *ContainerSpec) Reset() { *x = ContainerSpec{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[6] + mi := &file_common_v1_spec_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -594,7 +594,7 @@ func (x *ContainerSpec) String() string { func (*ContainerSpec) ProtoMessage() {} func (x *ContainerSpec) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[6] + mi := &file_common_v1_spec_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -607,7 +607,7 @@ func (x *ContainerSpec) ProtoReflect() protoreflect.Message { // Deprecated: Use ContainerSpec.ProtoReflect.Descriptor instead. func (*ContainerSpec) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{6} + return file_common_v1_spec_proto_rawDescGZIP(), []int{6} } func (x *ContainerSpec) GetImage() string { @@ -673,7 +673,7 @@ type TaskSpec struct { func (x *TaskSpec) Reset() { *x = TaskSpec{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[7] + mi := &file_common_v1_spec_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -686,7 +686,7 @@ func (x *TaskSpec) String() string { func (*TaskSpec) ProtoMessage() {} func (x *TaskSpec) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[7] + mi := &file_common_v1_spec_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -699,7 +699,7 @@ func (x *TaskSpec) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskSpec.ProtoReflect.Descriptor instead. func (*TaskSpec) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{7} + return file_common_v1_spec_proto_rawDescGZIP(), []int{7} } func (x *TaskSpec) GetModuleName() string { @@ -754,7 +754,7 @@ type ModuleSpec_Value struct { func (x *ModuleSpec_Value) Reset() { *x = ModuleSpec_Value{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_spec_proto_msgTypes[8] + mi := &file_common_v1_spec_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -767,7 +767,7 @@ func (x *ModuleSpec_Value) String() string { func (*ModuleSpec_Value) ProtoMessage() {} func (x *ModuleSpec_Value) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_spec_proto_msgTypes[8] + mi := &file_common_v1_spec_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -780,7 +780,7 @@ func (x *ModuleSpec_Value) ProtoReflect() protoreflect.Message { // Deprecated: Use ModuleSpec_Value.ProtoReflect.Descriptor instead. func (*ModuleSpec_Value) Descriptor() ([]byte, []int) { - return file_rpc_v1_spec_proto_rawDescGZIP(), []int{1, 0} + return file_common_v1_spec_proto_rawDescGZIP(), []int{1, 0} } func (x *ModuleSpec_Value) GetType() ModuleSpec_ValueType { @@ -895,186 +895,187 @@ func (*ModuleSpec_Value_DoubleValue) isModuleSpec_Value_SingleValue() {} func (*ModuleSpec_Value_BoolValue) isModuleSpec_Value_SingleValue() {} -var File_rpc_v1_spec_proto protoreflect.FileDescriptor +var File_common_v1_spec_proto protoreflect.FileDescriptor -var file_rpc_v1_spec_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x76, 0x31, 0x22, 0x74, 0x0a, 0x0f, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x40, 0x0a, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, - 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, - 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, - 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xf0, 0x08, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x33, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, - 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x69, 0x6c, - 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, - 0x72, 0x79, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x3d, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, - 0xd7, 0x04, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, - 0x65, 0x63, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x56, 0x0a, 0x0d, 0x63, - 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, - 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, - 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, - 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, - 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, - 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x15, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x16, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a, 0x62, 0x6f, 0x6f, - 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x60, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x78, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x73, 0x69, 0x6e, - 0x67, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x5a, 0x0a, 0x0b, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, - 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x61, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4b, 0x69, - 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x55, - 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x10, 0x01, - 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4b, 0x69, 0x6e, - 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x10, 0x04, 0x22, 0xc0, 0x01, 0x0a, 0x09, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x10, - 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x6c, 0x69, 0x63, 0x65, - 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, - 0x6e, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x05, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, 0x6c, 0x69, 0x63, - 0x65, 0x10, 0x06, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x42, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x07, 0x22, 0x3d, 0x0a, 0x15, 0x43, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x03, 0x61, 0x64, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x72, 0x6f, 0x70, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x64, 0x72, 0x6f, 0x70, 0x22, 0x61, 0x0a, 0x12, 0x43, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x42, 0x69, 0x6e, 0x64, 0x4d, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x5e, 0x0a, - 0x13, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x54, 0x6d, 0x70, 0x66, 0x73, 0x4d, - 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x78, 0x0a, - 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x17, - 0x0a, 0x07, 0x6e, 0x6f, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x06, 0x6e, 0x6f, 0x43, 0x6f, 0x70, 0x79, 0x22, 0xf8, 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, - 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, - 0x73, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, - 0x67, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x69, 0x6c, - 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, - 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x48, 0x0a, - 0x0d, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x56, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0c, 0x76, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x45, 0x0a, 0x0c, 0x74, 0x6d, 0x70, 0x66, 0x73, - 0x5f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x54, 0x6d, 0x70, 0x66, 0x73, 0x4d, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x0b, 0x74, 0x6d, 0x70, 0x66, 0x73, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x42, - 0x0a, 0x0b, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x42, 0x69, 0x6e, - 0x64, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0a, 0x62, 0x69, 0x6e, 0x64, 0x4d, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x12, - 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x3a, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, +var file_common_v1_spec_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x65, 0x63, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x76, 0x31, 0x22, 0x74, 0x0a, 0x0f, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x40, 0x0a, 0x0f, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0e, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xf0, 0x08, 0x0a, 0x0a, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x33, 0x0a, 0x08, 0x63, 0x61, + 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x74, + 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x1a, 0xd7, 0x04, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x56, + 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, - 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x3a, 0x0a, 0x09, - 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x52, 0x09, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x44, 0x69, 0x72, 0x2a, 0x80, 0x01, 0x0a, 0x08, 0x43, 0x61, 0x74, 0x65, - 0x67, 0x6f, 0x72, 0x79, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, - 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x61, 0x74, - 0x65, 0x67, 0x6f, 0x72, 0x79, 0x54, 0x6f, 0x6f, 0x6c, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x43, - 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x10, 0x02, 0x12, 0x11, 0x0a, - 0x0d, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x10, 0x03, - 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x50, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x79, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x10, 0x05, 0x42, 0xa6, 0x01, 0x0a, 0x11, 0x63, - 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x42, 0x09, 0x53, 0x70, 0x65, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x02, 0x50, 0x01, 0x5a, - 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x69, 0x63, 0x62, 0x34, 0x64, 0x63, 0x30, 0x2e, 0x64, 0x65, - 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x42, 0x52, 0x58, 0xaa, 0x02, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x52, - 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, 0x52, - 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, 0x52, - 0x70, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x78, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, + 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, + 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, + 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x01, + 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0c, 0x64, 0x6f, 0x75, + 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, + 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a, + 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x60, 0x0a, 0x11, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0e, 0x0a, 0x0c, + 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x5a, 0x0a, 0x0b, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x61, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4b, 0x69, + 0x6e, 0x64, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4b, 0x69, 0x6e, 0x64, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x4b, 0x69, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x10, 0x04, 0x22, 0xc0, 0x01, 0x0a, 0x09, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, + 0x13, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x6c, + 0x69, 0x63, 0x65, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x49, 0x6e, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x05, 0x12, 0x18, 0x0a, 0x14, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x53, + 0x6c, 0x69, 0x63, 0x65, 0x10, 0x06, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x07, 0x22, 0x3d, + 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x61, 0x64, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x72, 0x6f, + 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x64, 0x72, 0x6f, 0x70, 0x22, 0x61, 0x0a, + 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x42, 0x69, 0x6e, 0x64, 0x4d, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, + 0x22, 0x5e, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x54, 0x6d, 0x70, + 0x66, 0x73, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, + 0x22, 0x78, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, + 0x79, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x06, 0x6e, 0x6f, 0x43, 0x6f, 0x70, 0x79, 0x22, 0xf8, 0x02, 0x0a, 0x0d, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, + 0x65, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, + 0x69, 0x6c, 0x65, 0x67, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x12, 0x48, 0x0a, 0x0d, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, + 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0c, 0x76, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x45, 0x0a, 0x0c, 0x74, 0x6d, + 0x70, 0x66, 0x73, 0x5f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x54, 0x6d, 0x70, 0x66, 0x73, 0x4d, + 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0b, 0x74, 0x6d, 0x70, 0x66, 0x73, 0x4d, 0x6f, 0x75, 0x6e, 0x74, + 0x73, 0x12, 0x42, 0x0a, 0x0b, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x42, 0x69, 0x6e, 0x64, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0a, 0x62, 0x69, 0x6e, 0x64, 0x4d, + 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x70, + 0x65, 0x63, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, + 0x70, 0x65, 0x63, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, + 0x3a, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, + 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x69, 0x72, 0x2a, 0x80, 0x01, 0x0a, 0x08, 0x43, + 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x79, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, + 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x54, 0x6f, 0x6f, 0x6c, 0x10, 0x01, 0x12, 0x10, + 0x0a, 0x0c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x10, 0x02, + 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x42, 0x75, 0x69, 0x6c, + 0x64, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x10, 0x05, 0x42, 0xac, 0x01, + 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x42, 0x09, 0x53, 0x70, 0x65, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x02, + 0x50, 0x01, 0x5a, 0x34, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x69, 0x63, 0x62, 0x34, 0x64, 0x63, 0x30, + 0x2e, 0x64, 0x65, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x52, 0x58, 0xaa, 0x02, + 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x19, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x42, 0x75, 0x69, + 0x6c, 0x64, 0x72, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_rpc_v1_spec_proto_rawDescOnce sync.Once - file_rpc_v1_spec_proto_rawDescData = file_rpc_v1_spec_proto_rawDesc + file_common_v1_spec_proto_rawDescOnce sync.Once + file_common_v1_spec_proto_rawDescData = file_common_v1_spec_proto_rawDesc ) -func file_rpc_v1_spec_proto_rawDescGZIP() []byte { - file_rpc_v1_spec_proto_rawDescOnce.Do(func() { - file_rpc_v1_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_v1_spec_proto_rawDescData) +func file_common_v1_spec_proto_rawDescGZIP() []byte { + file_common_v1_spec_proto_rawDescOnce.Do(func() { + file_common_v1_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_v1_spec_proto_rawDescData) }) - return file_rpc_v1_spec_proto_rawDescData + return file_common_v1_spec_proto_rawDescData } -var file_rpc_v1_spec_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_rpc_v1_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_rpc_v1_spec_proto_goTypes = []interface{}{ +var file_common_v1_spec_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_common_v1_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_common_v1_spec_proto_goTypes = []interface{}{ (Category)(0), // 0: buildr.rpc.v1.Category (ModuleSpec_ValueKind)(0), // 1: buildr.rpc.v1.ModuleSpec.ValueKind (ModuleSpec_ValueType)(0), // 2: buildr.rpc.v1.ModuleSpec.ValueType @@ -1090,7 +1091,7 @@ var file_rpc_v1_spec_proto_goTypes = []interface{}{ nil, // 12: buildr.rpc.v1.ModuleSpec.ValuesEntry nil, // 13: buildr.rpc.v1.ModuleSpec.Value.ComplexValueEntry } -var file_rpc_v1_spec_proto_depIdxs = []int32{ +var file_common_v1_spec_proto_depIdxs = []int32{ 0, // 0: buildr.rpc.v1.ModuleReference.module_category:type_name -> buildr.rpc.v1.Category 0, // 1: buildr.rpc.v1.ModuleSpec.category:type_name -> buildr.rpc.v1.Category 12, // 2: buildr.rpc.v1.ModuleSpec.values:type_name -> buildr.rpc.v1.ModuleSpec.ValuesEntry @@ -1112,13 +1113,13 @@ var file_rpc_v1_spec_proto_depIdxs = []int32{ 0, // [0:14] is the sub-list for field type_name } -func init() { file_rpc_v1_spec_proto_init() } -func file_rpc_v1_spec_proto_init() { - if File_rpc_v1_spec_proto != nil { +func init() { file_common_v1_spec_proto_init() } +func file_common_v1_spec_proto_init() { + if File_common_v1_spec_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_rpc_v1_spec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ModuleReference); i { case 0: return &v.state @@ -1130,7 +1131,7 @@ func file_rpc_v1_spec_proto_init() { return nil } } - file_rpc_v1_spec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ModuleSpec); i { case 0: return &v.state @@ -1142,7 +1143,7 @@ func file_rpc_v1_spec_proto_init() { return nil } } - file_rpc_v1_spec_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ContainerCapabilities); i { case 0: return &v.state @@ -1154,7 +1155,7 @@ func file_rpc_v1_spec_proto_init() { return nil } } - file_rpc_v1_spec_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ContainerBindMount); i { case 0: return &v.state @@ -1166,7 +1167,7 @@ func file_rpc_v1_spec_proto_init() { return nil } } - file_rpc_v1_spec_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ContainerTmpfsMount); i { case 0: return &v.state @@ -1178,7 +1179,7 @@ func file_rpc_v1_spec_proto_init() { return nil } } - file_rpc_v1_spec_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ContainerVolumeMount); i { case 0: return &v.state @@ -1190,7 +1191,7 @@ func file_rpc_v1_spec_proto_init() { return nil } } - file_rpc_v1_spec_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ContainerSpec); i { case 0: return &v.state @@ -1202,7 +1203,7 @@ func file_rpc_v1_spec_proto_init() { return nil } } - file_rpc_v1_spec_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TaskSpec); i { case 0: return &v.state @@ -1214,7 +1215,7 @@ func file_rpc_v1_spec_proto_init() { return nil } } - file_rpc_v1_spec_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_common_v1_spec_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ModuleSpec_Value); i { case 0: return &v.state @@ -1227,7 +1228,7 @@ func file_rpc_v1_spec_proto_init() { } } } - file_rpc_v1_spec_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_common_v1_spec_proto_msgTypes[8].OneofWrappers = []interface{}{ (*ModuleSpec_Value_StringValue)(nil), (*ModuleSpec_Value_IntValue)(nil), (*ModuleSpec_Value_DoubleValue)(nil), @@ -1237,19 +1238,19 @@ func file_rpc_v1_spec_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_rpc_v1_spec_proto_rawDesc, + RawDescriptor: file_common_v1_spec_proto_rawDesc, NumEnums: 3, NumMessages: 11, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_rpc_v1_spec_proto_goTypes, - DependencyIndexes: file_rpc_v1_spec_proto_depIdxs, - EnumInfos: file_rpc_v1_spec_proto_enumTypes, - MessageInfos: file_rpc_v1_spec_proto_msgTypes, + GoTypes: file_common_v1_spec_proto_goTypes, + DependencyIndexes: file_common_v1_spec_proto_depIdxs, + EnumInfos: file_common_v1_spec_proto_enumTypes, + MessageInfos: file_common_v1_spec_proto_msgTypes, }.Build() - File_rpc_v1_spec_proto = out.File - file_rpc_v1_spec_proto_rawDesc = nil - file_rpc_v1_spec_proto_goTypes = nil - file_rpc_v1_spec_proto_depIdxs = nil + File_common_v1_spec_proto = out.File + file_common_v1_spec_proto_rawDesc = nil + file_common_v1_spec_proto_goTypes = nil + file_common_v1_spec_proto_depIdxs = nil } diff --git a/generated/rpc/v1/spec_vtproto.pb.go b/generated/common/v1/spec_vtproto.pb.go similarity index 99% rename from generated/rpc/v1/spec_vtproto.pb.go rename to generated/common/v1/spec_vtproto.pb.go index 275d8f5..48e76b3 100644 --- a/generated/rpc/v1/spec_vtproto.pb.go +++ b/generated/common/v1/spec_vtproto.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. // protoc-gen-go-vtproto version: v0.4.0 -// source: rpc/v1/spec.proto +// source: common/v1/spec.proto package rpcv1 diff --git a/generated/rpc/v1/executor.pb.go b/generated/remote/v1/executor.pb.go similarity index 55% rename from generated/rpc/v1/executor.pb.go rename to generated/remote/v1/executor.pb.go index 8ae6f20..51967e4 100644 --- a/generated/rpc/v1/executor.pb.go +++ b/generated/remote/v1/executor.pb.go @@ -2,11 +2,12 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: rpc/v1/executor.proto +// source: remote/v1/executor.proto package rpcv1 import ( + v1 "code.icb4dc0.de/buildr/api/generated/common/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -53,11 +54,11 @@ func (x TaskOutputSource) String() string { } func (TaskOutputSource) Descriptor() protoreflect.EnumDescriptor { - return file_rpc_v1_executor_proto_enumTypes[0].Descriptor() + return file_remote_v1_executor_proto_enumTypes[0].Descriptor() } func (TaskOutputSource) Type() protoreflect.EnumType { - return &file_rpc_v1_executor_proto_enumTypes[0] + return &file_remote_v1_executor_proto_enumTypes[0] } func (x TaskOutputSource) Number() protoreflect.EnumNumber { @@ -66,7 +67,7 @@ func (x TaskOutputSource) Number() protoreflect.EnumNumber { // Deprecated: Use TaskOutputSource.Descriptor instead. func (TaskOutputSource) EnumDescriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{0} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{0} } type Buildr struct { @@ -82,7 +83,7 @@ type Buildr struct { func (x *Buildr) Reset() { *x = Buildr{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[0] + mi := &file_remote_v1_executor_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -95,7 +96,7 @@ func (x *Buildr) String() string { func (*Buildr) ProtoMessage() {} func (x *Buildr) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[0] + mi := &file_remote_v1_executor_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -108,7 +109,7 @@ func (x *Buildr) ProtoReflect() protoreflect.Message { // Deprecated: Use Buildr.ProtoReflect.Descriptor instead. func (*Buildr) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{0} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{0} } func (x *Buildr) GetRepo() *Buildr_Repo { @@ -137,15 +138,15 @@ type TaskReference struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Module *ModuleReference `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Module *v1.ModuleReference `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"` } func (x *TaskReference) Reset() { *x = TaskReference{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[1] + mi := &file_remote_v1_executor_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -158,7 +159,7 @@ func (x *TaskReference) String() string { func (*TaskReference) ProtoMessage() {} func (x *TaskReference) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[1] + mi := &file_remote_v1_executor_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -171,7 +172,7 @@ func (x *TaskReference) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskReference.ProtoReflect.Descriptor instead. func (*TaskReference) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{1} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{1} } func (x *TaskReference) GetId() string { @@ -188,7 +189,7 @@ func (x *TaskReference) GetName() string { return "" } -func (x *TaskReference) GetModule() *ModuleReference { +func (x *TaskReference) GetModule() *v1.ModuleReference { if x != nil { return x.Module } @@ -202,13 +203,13 @@ type StartTaskRequest struct { Reference *TaskReference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` Buildr *Buildr `protobuf:"bytes,2,opt,name=buildr,proto3" json:"buildr,omitempty"` - Spec *ModuleSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` + Spec *v1.ModuleSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` } func (x *StartTaskRequest) Reset() { *x = StartTaskRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[2] + mi := &file_remote_v1_executor_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -221,7 +222,7 @@ func (x *StartTaskRequest) String() string { func (*StartTaskRequest) ProtoMessage() {} func (x *StartTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[2] + mi := &file_remote_v1_executor_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -234,7 +235,7 @@ func (x *StartTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StartTaskRequest.ProtoReflect.Descriptor instead. func (*StartTaskRequest) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{2} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{2} } func (x *StartTaskRequest) GetReference() *TaskReference { @@ -251,7 +252,7 @@ func (x *StartTaskRequest) GetBuildr() *Buildr { return nil } -func (x *StartTaskRequest) GetSpec() *ModuleSpec { +func (x *StartTaskRequest) GetSpec() *v1.ModuleSpec { if x != nil { return x.Spec } @@ -270,7 +271,7 @@ type TaskResult struct { func (x *TaskResult) Reset() { *x = TaskResult{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[3] + mi := &file_remote_v1_executor_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -283,7 +284,7 @@ func (x *TaskResult) String() string { func (*TaskResult) ProtoMessage() {} func (x *TaskResult) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[3] + mi := &file_remote_v1_executor_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -296,7 +297,7 @@ func (x *TaskResult) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskResult.ProtoReflect.Descriptor instead. func (*TaskResult) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{3} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{3} } func (x *TaskResult) GetError() string { @@ -325,7 +326,7 @@ type TaskOutput struct { func (x *TaskOutput) Reset() { *x = TaskOutput{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[4] + mi := &file_remote_v1_executor_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -338,7 +339,7 @@ func (x *TaskOutput) String() string { func (*TaskOutput) ProtoMessage() {} func (x *TaskOutput) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[4] + mi := &file_remote_v1_executor_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -351,7 +352,7 @@ func (x *TaskOutput) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskOutput.ProtoReflect.Descriptor instead. func (*TaskOutput) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{4} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{4} } func (x *TaskOutput) GetSource() TaskOutputSource { @@ -382,7 +383,7 @@ type TaskLog struct { func (x *TaskLog) Reset() { *x = TaskLog{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[5] + mi := &file_remote_v1_executor_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -395,7 +396,7 @@ func (x *TaskLog) String() string { func (*TaskLog) ProtoMessage() {} func (x *TaskLog) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[5] + mi := &file_remote_v1_executor_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -408,7 +409,7 @@ func (x *TaskLog) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskLog.ProtoReflect.Descriptor instead. func (*TaskLog) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{5} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{5} } func (x *TaskLog) GetTime() int64 { @@ -451,7 +452,7 @@ type SetState struct { func (x *SetState) Reset() { *x = SetState{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[6] + mi := &file_remote_v1_executor_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -464,7 +465,7 @@ func (x *SetState) String() string { func (*SetState) ProtoMessage() {} func (x *SetState) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[6] + mi := &file_remote_v1_executor_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -477,7 +478,7 @@ func (x *SetState) ProtoReflect() protoreflect.Message { // Deprecated: Use SetState.ProtoReflect.Descriptor instead. func (*SetState) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{6} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{6} } func (x *SetState) GetKey() []byte { @@ -505,7 +506,7 @@ type GetStateRequest struct { func (x *GetStateRequest) Reset() { *x = GetStateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[7] + mi := &file_remote_v1_executor_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -518,7 +519,7 @@ func (x *GetStateRequest) String() string { func (*GetStateRequest) ProtoMessage() {} func (x *GetStateRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[7] + mi := &file_remote_v1_executor_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -531,7 +532,7 @@ func (x *GetStateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStateRequest.ProtoReflect.Descriptor instead. func (*GetStateRequest) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{7} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{7} } func (x *GetStateRequest) GetKey() []byte { @@ -553,7 +554,7 @@ type GetStateResponse struct { func (x *GetStateResponse) Reset() { *x = GetStateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[8] + mi := &file_remote_v1_executor_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -566,7 +567,7 @@ func (x *GetStateResponse) String() string { func (*GetStateResponse) ProtoMessage() {} func (x *GetStateResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[8] + mi := &file_remote_v1_executor_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -579,7 +580,7 @@ func (x *GetStateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStateResponse.ProtoReflect.Descriptor instead. func (*GetStateResponse) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{8} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{8} } func (x *GetStateResponse) GetKey() []byte { @@ -608,7 +609,7 @@ type Result struct { func (x *Result) Reset() { *x = Result{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[9] + mi := &file_remote_v1_executor_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -621,7 +622,7 @@ func (x *Result) String() string { func (*Result) ProtoMessage() {} func (x *Result) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[9] + mi := &file_remote_v1_executor_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -634,7 +635,7 @@ func (x *Result) ProtoReflect() protoreflect.Message { // Deprecated: Use Result.ProtoReflect.Descriptor instead. func (*Result) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{9} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{9} } func (x *Result) GetSuccess() bool { @@ -651,53 +652,6 @@ func (x *Result) GetError() string { return "" } -type PluginInventory struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Specs []*PluginInventory_InventorySpec `protobuf:"bytes,1,rep,name=specs,proto3" json:"specs,omitempty"` -} - -func (x *PluginInventory) Reset() { - *x = PluginInventory{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PluginInventory) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PluginInventory) ProtoMessage() {} - -func (x *PluginInventory) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[10] - 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 PluginInventory.ProtoReflect.Descriptor instead. -func (*PluginInventory) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{10} -} - -func (x *PluginInventory) GetSpecs() []*PluginInventory_InventorySpec { - if x != nil { - return x.Specs - } - return nil -} - type ExecutionClientMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -719,7 +673,7 @@ type ExecutionClientMessage struct { func (x *ExecutionClientMessage) Reset() { *x = ExecutionClientMessage{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[11] + mi := &file_remote_v1_executor_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -732,7 +686,7 @@ func (x *ExecutionClientMessage) String() string { func (*ExecutionClientMessage) ProtoMessage() {} func (x *ExecutionClientMessage) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[11] + mi := &file_remote_v1_executor_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -745,7 +699,7 @@ func (x *ExecutionClientMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecutionClientMessage.ProtoReflect.Descriptor instead. func (*ExecutionClientMessage) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{11} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{10} } func (m *ExecutionClientMessage) GetMeta() isExecutionClientMessage_Meta { @@ -858,7 +812,7 @@ type ExecutionServerMessage struct { func (x *ExecutionServerMessage) Reset() { *x = ExecutionServerMessage{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[12] + mi := &file_remote_v1_executor_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -871,7 +825,7 @@ func (x *ExecutionServerMessage) String() string { func (*ExecutionServerMessage) ProtoMessage() {} func (x *ExecutionServerMessage) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[12] + mi := &file_remote_v1_executor_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -884,7 +838,7 @@ func (x *ExecutionServerMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecutionServerMessage.ProtoReflect.Descriptor instead. func (*ExecutionServerMessage) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{12} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{11} } func (m *ExecutionServerMessage) GetMeta() isExecutionServerMessage_Meta { @@ -1000,6 +954,99 @@ func (*ExecutionServerMessage_GetState) isExecutionServerMessage_Envelope() {} func (*ExecutionServerMessage_SetState) isExecutionServerMessage_Envelope() {} +type RegisterPluginModuleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ModuleRef *v1.ModuleReference `protobuf:"bytes,1,opt,name=module_ref,json=moduleRef,proto3" json:"module_ref,omitempty"` + PluginPayload []byte `protobuf:"bytes,2,opt,name=plugin_payload,json=pluginPayload,proto3" json:"plugin_payload,omitempty"` +} + +func (x *RegisterPluginModuleRequest) Reset() { + *x = RegisterPluginModuleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_v1_executor_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterPluginModuleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterPluginModuleRequest) ProtoMessage() {} + +func (x *RegisterPluginModuleRequest) ProtoReflect() protoreflect.Message { + mi := &file_remote_v1_executor_proto_msgTypes[12] + 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 RegisterPluginModuleRequest.ProtoReflect.Descriptor instead. +func (*RegisterPluginModuleRequest) Descriptor() ([]byte, []int) { + return file_remote_v1_executor_proto_rawDescGZIP(), []int{12} +} + +func (x *RegisterPluginModuleRequest) GetModuleRef() *v1.ModuleReference { + if x != nil { + return x.ModuleRef + } + return nil +} + +func (x *RegisterPluginModuleRequest) GetPluginPayload() []byte { + if x != nil { + return x.PluginPayload + } + return nil +} + +type RegisterPluginModuleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RegisterPluginModuleResponse) Reset() { + *x = RegisterPluginModuleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_remote_v1_executor_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterPluginModuleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterPluginModuleResponse) ProtoMessage() {} + +func (x *RegisterPluginModuleResponse) ProtoReflect() protoreflect.Message { + mi := &file_remote_v1_executor_proto_msgTypes[13] + 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 RegisterPluginModuleResponse.ProtoReflect.Descriptor instead. +func (*RegisterPluginModuleResponse) Descriptor() ([]byte, []int) { + return file_remote_v1_executor_proto_rawDescGZIP(), []int{13} +} + type Buildr_Repo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1011,7 +1058,7 @@ type Buildr_Repo struct { func (x *Buildr_Repo) Reset() { *x = Buildr_Repo{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[13] + mi := &file_remote_v1_executor_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1024,7 +1071,7 @@ func (x *Buildr_Repo) String() string { func (*Buildr_Repo) ProtoMessage() {} func (x *Buildr_Repo) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[13] + mi := &file_remote_v1_executor_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1037,7 +1084,7 @@ func (x *Buildr_Repo) ProtoReflect() protoreflect.Message { // Deprecated: Use Buildr_Repo.ProtoReflect.Descriptor instead. func (*Buildr_Repo) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{0, 0} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{0, 0} } func (x *Buildr_Repo) GetRoot() string { @@ -1059,7 +1106,7 @@ type TaskLog_LogAttribute struct { func (x *TaskLog_LogAttribute) Reset() { *x = TaskLog_LogAttribute{} if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[14] + mi := &file_remote_v1_executor_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1072,7 +1119,7 @@ func (x *TaskLog_LogAttribute) String() string { func (*TaskLog_LogAttribute) ProtoMessage() {} func (x *TaskLog_LogAttribute) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[14] + mi := &file_remote_v1_executor_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1085,7 +1132,7 @@ func (x *TaskLog_LogAttribute) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskLog_LogAttribute.ProtoReflect.Descriptor instead. func (*TaskLog_LogAttribute) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{5, 0} + return file_remote_v1_executor_proto_rawDescGZIP(), []int{5, 0} } func (x *TaskLog_LogAttribute) GetKey() string { @@ -1102,286 +1149,239 @@ func (x *TaskLog_LogAttribute) GetValue() string { return "" } -type PluginInventory_InventorySpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +var File_remote_v1_executor_proto protoreflect.FileDescriptor - ModuleRef *ModuleReference `protobuf:"bytes,1,opt,name=module_ref,json=moduleRef,proto3" json:"module_ref,omitempty"` - EmptySpec []byte `protobuf:"bytes,2,opt,name=empty_spec,json=emptySpec,proto3" json:"empty_spec,omitempty"` -} - -func (x *PluginInventory_InventorySpec) Reset() { - *x = PluginInventory_InventorySpec{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_executor_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PluginInventory_InventorySpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PluginInventory_InventorySpec) ProtoMessage() {} - -func (x *PluginInventory_InventorySpec) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_executor_proto_msgTypes[15] - 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 PluginInventory_InventorySpec.ProtoReflect.Descriptor instead. -func (*PluginInventory_InventorySpec) Descriptor() ([]byte, []int) { - return file_rpc_v1_executor_proto_rawDescGZIP(), []int{10, 0} -} - -func (x *PluginInventory_InventorySpec) GetModuleRef() *ModuleReference { - if x != nil { - return x.ModuleRef - } - return nil -} - -func (x *PluginInventory_InventorySpec) GetEmptySpec() []byte { - if x != nil { - return x.EmptySpec - } - return nil -} - -var File_rpc_v1_executor_proto protoreflect.FileDescriptor - -var file_rpc_v1_executor_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, - 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x11, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x73, - 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x06, 0x42, 0x75, - 0x69, 0x6c, 0x64, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x04, - 0x72, 0x65, 0x70, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x69, 0x6e, 0x5f, 0x64, 0x69, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x69, 0x6e, 0x44, 0x69, 0x72, 0x12, 0x17, 0x0a, - 0x07, 0x6f, 0x75, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x6f, 0x75, 0x74, 0x44, 0x69, 0x72, 0x1a, 0x1a, 0x0a, 0x04, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x12, - 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, - 0x6f, 0x74, 0x22, 0x6b, 0x0a, 0x0d, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x22, - 0xac, 0x01, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x12, 0x2d, 0x0a, 0x06, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x52, 0x06, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x12, - 0x2d, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, +var file_remote_v1_executor_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x86, 0x01, 0x0a, 0x06, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x72, 0x65, + 0x70, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x69, + 0x6e, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x69, 0x6e, + 0x44, 0x69, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x44, 0x69, 0x72, 0x1a, 0x1a, 0x0a, 0x04, + 0x52, 0x65, 0x70, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x22, 0x6b, 0x0a, 0x0d, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, + 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x61, - 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x12, 0x3d, 0x0a, 0x1b, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x66, - 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, - 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, - 0x68, 0x22, 0x5f, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, - 0x37, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x22, 0xca, 0x01, 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, - 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, - 0x65, 0x6c, 0x12, 0x43, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x2e, 0x4c, - 0x6f, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x1a, 0x36, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x41, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0x30, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x22, 0x23, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x38, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x22, 0x38, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xc4, 0x01, 0x0a, 0x0f, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x42, - 0x0a, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x49, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70, 0x65, - 0x63, 0x73, 0x1a, 0x6d, 0x0a, 0x0d, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x53, - 0x70, 0x65, 0x63, 0x12, 0x3d, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, - 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, - 0x65, 0x66, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x5f, 0x73, 0x70, 0x65, 0x63, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x53, 0x70, 0x65, - 0x63, 0x22, 0x9f, 0x02, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0a, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x48, 0x00, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, - 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x54, 0x6f, 0x12, 0x40, - 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0b, 0x20, 0x01, + 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x09, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x52, 0x06, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, + 0x73, 0x70, 0x65, 0x63, 0x22, 0x61, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3d, 0x0a, 0x1b, 0x6d, 0x6f, 0x64, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6d, + 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x76, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x5f, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x4f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xca, 0x01, 0x0a, 0x07, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x43, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x1a, 0x36, 0x0a, + 0x0c, 0x4c, 0x6f, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x30, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x23, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x38, 0x0a, 0x10, + 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x38, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x22, 0x9f, 0x02, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, + 0x00, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x54, 0x6f, 0x12, 0x40, 0x0a, + 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x48, 0x01, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x3e, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x48, 0x01, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, - 0x12, 0x3e, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x01, 0x52, 0x08, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x15, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x01, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, - 0x06, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x42, 0x0a, 0x0a, 0x08, 0x65, 0x6e, 0x76, 0x65, 0x6c, - 0x6f, 0x70, 0x65, 0x22, 0x96, 0x03, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, - 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, - 0x1f, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x54, 0x6f, - 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, - 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, - 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x48, 0x01, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x33, - 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x48, 0x01, 0x52, 0x07, 0x74, 0x61, 0x73, 0x6b, - 0x4c, 0x6f, 0x67, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, - 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x48, 0x01, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x12, 0x3d, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0e, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x48, 0x01, 0x52, 0x08, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x36, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0f, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x08, - 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, - 0x42, 0x0a, 0x0a, 0x08, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x2a, 0x74, 0x0a, 0x10, - 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x22, 0x0a, 0x1e, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, - 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x4f, 0x55, 0x54, - 0x50, 0x55, 0x54, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x53, 0x54, 0x44, 0x4f, 0x55, - 0x54, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x4f, 0x55, 0x54, 0x50, - 0x55, 0x54, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x53, 0x54, 0x44, 0x45, 0x52, 0x52, - 0x10, 0x02, 0x32, 0x74, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x61, 0x0a, 0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x25, 0x2e, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0xaa, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, - 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0d, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x02, 0x50, - 0x01, 0x5a, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x69, 0x63, 0x62, 0x34, 0x64, 0x63, 0x30, 0x2e, - 0x64, 0x65, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76, - 0x31, 0xa2, 0x02, 0x03, 0x42, 0x52, 0x58, 0xaa, 0x02, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, - 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, - 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, - 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x3a, 0x3a, 0x52, 0x70, - 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x01, 0x52, 0x08, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x01, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x06, + 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x42, 0x0a, 0x0a, 0x08, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, + 0x70, 0x65, 0x22, 0x96, 0x03, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, + 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x48, 0x00, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1f, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x54, 0x6f, 0x12, + 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, + 0x01, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x33, 0x0a, + 0x08, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x48, 0x01, 0x52, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x4c, + 0x6f, 0x67, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, + 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x48, 0x01, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x12, 0x3d, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x01, 0x52, 0x08, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x36, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x08, 0x73, + 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x42, + 0x0a, 0x0a, 0x08, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x1b, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x0a, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, + 0x09, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x22, 0x1e, 0x0a, 0x1c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2a, 0x74, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x4f, 0x55, + 0x54, 0x50, 0x55, 0x54, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x41, 0x53, + 0x4b, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x53, 0x54, 0x44, 0x4f, 0x55, 0x54, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x41, 0x53, 0x4b, + 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x53, + 0x54, 0x44, 0x45, 0x52, 0x52, 0x10, 0x02, 0x32, 0x74, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x61, 0x0a, 0x0d, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x32, 0x87, 0x01, + 0x0a, 0x14, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x2a, + 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xb0, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x02, 0x50, 0x01, + 0x5a, 0x34, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x69, 0x63, 0x62, 0x34, 0x64, 0x63, 0x30, 0x2e, 0x64, + 0x65, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2f, 0x76, 0x31, + 0x3b, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x52, 0x58, 0xaa, 0x02, 0x0d, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, + 0x72, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( - file_rpc_v1_executor_proto_rawDescOnce sync.Once - file_rpc_v1_executor_proto_rawDescData = file_rpc_v1_executor_proto_rawDesc + file_remote_v1_executor_proto_rawDescOnce sync.Once + file_remote_v1_executor_proto_rawDescData = file_remote_v1_executor_proto_rawDesc ) -func file_rpc_v1_executor_proto_rawDescGZIP() []byte { - file_rpc_v1_executor_proto_rawDescOnce.Do(func() { - file_rpc_v1_executor_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_v1_executor_proto_rawDescData) +func file_remote_v1_executor_proto_rawDescGZIP() []byte { + file_remote_v1_executor_proto_rawDescOnce.Do(func() { + file_remote_v1_executor_proto_rawDescData = protoimpl.X.CompressGZIP(file_remote_v1_executor_proto_rawDescData) }) - return file_rpc_v1_executor_proto_rawDescData + return file_remote_v1_executor_proto_rawDescData } -var file_rpc_v1_executor_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_rpc_v1_executor_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_rpc_v1_executor_proto_goTypes = []interface{}{ - (TaskOutputSource)(0), // 0: buildr.rpc.v1.TaskOutputSource - (*Buildr)(nil), // 1: buildr.rpc.v1.Buildr - (*TaskReference)(nil), // 2: buildr.rpc.v1.TaskReference - (*StartTaskRequest)(nil), // 3: buildr.rpc.v1.StartTaskRequest - (*TaskResult)(nil), // 4: buildr.rpc.v1.TaskResult - (*TaskOutput)(nil), // 5: buildr.rpc.v1.TaskOutput - (*TaskLog)(nil), // 6: buildr.rpc.v1.TaskLog - (*SetState)(nil), // 7: buildr.rpc.v1.SetState - (*GetStateRequest)(nil), // 8: buildr.rpc.v1.GetStateRequest - (*GetStateResponse)(nil), // 9: buildr.rpc.v1.GetStateResponse - (*Result)(nil), // 10: buildr.rpc.v1.Result - (*PluginInventory)(nil), // 11: buildr.rpc.v1.PluginInventory - (*ExecutionClientMessage)(nil), // 12: buildr.rpc.v1.ExecutionClientMessage - (*ExecutionServerMessage)(nil), // 13: buildr.rpc.v1.ExecutionServerMessage - (*Buildr_Repo)(nil), // 14: buildr.rpc.v1.Buildr.Repo - (*TaskLog_LogAttribute)(nil), // 15: buildr.rpc.v1.TaskLog.LogAttribute - (*PluginInventory_InventorySpec)(nil), // 16: buildr.rpc.v1.PluginInventory.InventorySpec - (*ModuleReference)(nil), // 17: buildr.rpc.v1.ModuleReference - (*ModuleSpec)(nil), // 18: buildr.rpc.v1.ModuleSpec +var file_remote_v1_executor_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_remote_v1_executor_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_remote_v1_executor_proto_goTypes = []interface{}{ + (TaskOutputSource)(0), // 0: buildr.rpc.v1.TaskOutputSource + (*Buildr)(nil), // 1: buildr.rpc.v1.Buildr + (*TaskReference)(nil), // 2: buildr.rpc.v1.TaskReference + (*StartTaskRequest)(nil), // 3: buildr.rpc.v1.StartTaskRequest + (*TaskResult)(nil), // 4: buildr.rpc.v1.TaskResult + (*TaskOutput)(nil), // 5: buildr.rpc.v1.TaskOutput + (*TaskLog)(nil), // 6: buildr.rpc.v1.TaskLog + (*SetState)(nil), // 7: buildr.rpc.v1.SetState + (*GetStateRequest)(nil), // 8: buildr.rpc.v1.GetStateRequest + (*GetStateResponse)(nil), // 9: buildr.rpc.v1.GetStateResponse + (*Result)(nil), // 10: buildr.rpc.v1.Result + (*ExecutionClientMessage)(nil), // 11: buildr.rpc.v1.ExecutionClientMessage + (*ExecutionServerMessage)(nil), // 12: buildr.rpc.v1.ExecutionServerMessage + (*RegisterPluginModuleRequest)(nil), // 13: buildr.rpc.v1.RegisterPluginModuleRequest + (*RegisterPluginModuleResponse)(nil), // 14: buildr.rpc.v1.RegisterPluginModuleResponse + (*Buildr_Repo)(nil), // 15: buildr.rpc.v1.Buildr.Repo + (*TaskLog_LogAttribute)(nil), // 16: buildr.rpc.v1.TaskLog.LogAttribute + (*v1.ModuleReference)(nil), // 17: buildr.rpc.v1.ModuleReference + (*v1.ModuleSpec)(nil), // 18: buildr.rpc.v1.ModuleSpec } -var file_rpc_v1_executor_proto_depIdxs = []int32{ - 14, // 0: buildr.rpc.v1.Buildr.repo:type_name -> buildr.rpc.v1.Buildr.Repo +var file_remote_v1_executor_proto_depIdxs = []int32{ + 15, // 0: buildr.rpc.v1.Buildr.repo:type_name -> buildr.rpc.v1.Buildr.Repo 17, // 1: buildr.rpc.v1.TaskReference.module:type_name -> buildr.rpc.v1.ModuleReference 2, // 2: buildr.rpc.v1.StartTaskRequest.reference:type_name -> buildr.rpc.v1.TaskReference 1, // 3: buildr.rpc.v1.StartTaskRequest.buildr:type_name -> buildr.rpc.v1.Buildr 18, // 4: buildr.rpc.v1.StartTaskRequest.spec:type_name -> buildr.rpc.v1.ModuleSpec 0, // 5: buildr.rpc.v1.TaskOutput.source:type_name -> buildr.rpc.v1.TaskOutputSource - 15, // 6: buildr.rpc.v1.TaskLog.attributes:type_name -> buildr.rpc.v1.TaskLog.LogAttribute - 16, // 7: buildr.rpc.v1.PluginInventory.specs:type_name -> buildr.rpc.v1.PluginInventory.InventorySpec - 3, // 8: buildr.rpc.v1.ExecutionClientMessage.start_task:type_name -> buildr.rpc.v1.StartTaskRequest - 9, // 9: buildr.rpc.v1.ExecutionClientMessage.get_state:type_name -> buildr.rpc.v1.GetStateResponse - 10, // 10: buildr.rpc.v1.ExecutionClientMessage.error:type_name -> buildr.rpc.v1.Result - 4, // 11: buildr.rpc.v1.ExecutionServerMessage.task_result:type_name -> buildr.rpc.v1.TaskResult - 6, // 12: buildr.rpc.v1.ExecutionServerMessage.task_log:type_name -> buildr.rpc.v1.TaskLog - 5, // 13: buildr.rpc.v1.ExecutionServerMessage.task_output:type_name -> buildr.rpc.v1.TaskOutput - 8, // 14: buildr.rpc.v1.ExecutionServerMessage.get_state:type_name -> buildr.rpc.v1.GetStateRequest - 7, // 15: buildr.rpc.v1.ExecutionServerMessage.set_state:type_name -> buildr.rpc.v1.SetState - 17, // 16: buildr.rpc.v1.PluginInventory.InventorySpec.module_ref:type_name -> buildr.rpc.v1.ModuleReference - 12, // 17: buildr.rpc.v1.ExecutorService.ExecuteStream:input_type -> buildr.rpc.v1.ExecutionClientMessage - 13, // 18: buildr.rpc.v1.ExecutorService.ExecuteStream:output_type -> buildr.rpc.v1.ExecutionServerMessage - 18, // [18:19] is the sub-list for method output_type - 17, // [17:18] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name + 16, // 6: buildr.rpc.v1.TaskLog.attributes:type_name -> buildr.rpc.v1.TaskLog.LogAttribute + 3, // 7: buildr.rpc.v1.ExecutionClientMessage.start_task:type_name -> buildr.rpc.v1.StartTaskRequest + 9, // 8: buildr.rpc.v1.ExecutionClientMessage.get_state:type_name -> buildr.rpc.v1.GetStateResponse + 10, // 9: buildr.rpc.v1.ExecutionClientMessage.error:type_name -> buildr.rpc.v1.Result + 4, // 10: buildr.rpc.v1.ExecutionServerMessage.task_result:type_name -> buildr.rpc.v1.TaskResult + 6, // 11: buildr.rpc.v1.ExecutionServerMessage.task_log:type_name -> buildr.rpc.v1.TaskLog + 5, // 12: buildr.rpc.v1.ExecutionServerMessage.task_output:type_name -> buildr.rpc.v1.TaskOutput + 8, // 13: buildr.rpc.v1.ExecutionServerMessage.get_state:type_name -> buildr.rpc.v1.GetStateRequest + 7, // 14: buildr.rpc.v1.ExecutionServerMessage.set_state:type_name -> buildr.rpc.v1.SetState + 17, // 15: buildr.rpc.v1.RegisterPluginModuleRequest.module_ref:type_name -> buildr.rpc.v1.ModuleReference + 11, // 16: buildr.rpc.v1.ExecutorService.ExecuteStream:input_type -> buildr.rpc.v1.ExecutionClientMessage + 13, // 17: buildr.rpc.v1.PluginManagerService.RegisterPluginModule:input_type -> buildr.rpc.v1.RegisterPluginModuleRequest + 12, // 18: buildr.rpc.v1.ExecutorService.ExecuteStream:output_type -> buildr.rpc.v1.ExecutionServerMessage + 14, // 19: buildr.rpc.v1.PluginManagerService.RegisterPluginModule:output_type -> buildr.rpc.v1.RegisterPluginModuleResponse + 18, // [18:20] is the sub-list for method output_type + 16, // [16:18] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } -func init() { file_rpc_v1_executor_proto_init() } -func file_rpc_v1_executor_proto_init() { - if File_rpc_v1_executor_proto != nil { +func init() { file_remote_v1_executor_proto_init() } +func file_remote_v1_executor_proto_init() { + if File_remote_v1_executor_proto != nil { return } - file_rpc_v1_spec_proto_init() if !protoimpl.UnsafeEnabled { - file_rpc_v1_executor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Buildr); i { case 0: return &v.state @@ -1393,7 +1393,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TaskReference); i { case 0: return &v.state @@ -1405,7 +1405,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartTaskRequest); i { case 0: return &v.state @@ -1417,7 +1417,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TaskResult); i { case 0: return &v.state @@ -1429,7 +1429,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TaskOutput); i { case 0: return &v.state @@ -1441,7 +1441,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TaskLog); i { case 0: return &v.state @@ -1453,7 +1453,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetState); i { case 0: return &v.state @@ -1465,7 +1465,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetStateRequest); i { case 0: return &v.state @@ -1477,7 +1477,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetStateResponse); i { case 0: return &v.state @@ -1489,7 +1489,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Result); i { case 0: return &v.state @@ -1501,19 +1501,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PluginInventory); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rpc_v1_executor_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExecutionClientMessage); i { case 0: return &v.state @@ -1525,7 +1513,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExecutionServerMessage); i { case 0: return &v.state @@ -1537,7 +1525,31 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterPluginModuleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_v1_executor_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterPluginModuleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_remote_v1_executor_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Buildr_Repo); i { case 0: return &v.state @@ -1549,7 +1561,7 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_remote_v1_executor_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TaskLog_LogAttribute); i { case 0: return &v.state @@ -1561,27 +1573,15 @@ func file_rpc_v1_executor_proto_init() { return nil } } - file_rpc_v1_executor_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PluginInventory_InventorySpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } - file_rpc_v1_executor_proto_msgTypes[11].OneofWrappers = []interface{}{ + file_remote_v1_executor_proto_msgTypes[10].OneofWrappers = []interface{}{ (*ExecutionClientMessage_MessageId)(nil), (*ExecutionClientMessage_RepliesTo)(nil), (*ExecutionClientMessage_StartTask)(nil), (*ExecutionClientMessage_GetState)(nil), (*ExecutionClientMessage_Error)(nil), } - file_rpc_v1_executor_proto_msgTypes[12].OneofWrappers = []interface{}{ + file_remote_v1_executor_proto_msgTypes[11].OneofWrappers = []interface{}{ (*ExecutionServerMessage_MessageId)(nil), (*ExecutionServerMessage_RepliesTo)(nil), (*ExecutionServerMessage_TaskResult)(nil), @@ -1594,19 +1594,19 @@ func file_rpc_v1_executor_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_rpc_v1_executor_proto_rawDesc, + RawDescriptor: file_remote_v1_executor_proto_rawDesc, NumEnums: 1, NumMessages: 16, NumExtensions: 0, - NumServices: 1, + NumServices: 2, }, - GoTypes: file_rpc_v1_executor_proto_goTypes, - DependencyIndexes: file_rpc_v1_executor_proto_depIdxs, - EnumInfos: file_rpc_v1_executor_proto_enumTypes, - MessageInfos: file_rpc_v1_executor_proto_msgTypes, + GoTypes: file_remote_v1_executor_proto_goTypes, + DependencyIndexes: file_remote_v1_executor_proto_depIdxs, + EnumInfos: file_remote_v1_executor_proto_enumTypes, + MessageInfos: file_remote_v1_executor_proto_msgTypes, }.Build() - File_rpc_v1_executor_proto = out.File - file_rpc_v1_executor_proto_rawDesc = nil - file_rpc_v1_executor_proto_goTypes = nil - file_rpc_v1_executor_proto_depIdxs = nil + File_remote_v1_executor_proto = out.File + file_remote_v1_executor_proto_rawDesc = nil + file_remote_v1_executor_proto_goTypes = nil + file_remote_v1_executor_proto_depIdxs = nil } diff --git a/generated/rpc/v1/executor_vtproto.pb.go b/generated/remote/v1/executor_vtproto.pb.go similarity index 95% rename from generated/rpc/v1/executor_vtproto.pb.go rename to generated/remote/v1/executor_vtproto.pb.go index 35bda2d..60e16a8 100644 --- a/generated/rpc/v1/executor_vtproto.pb.go +++ b/generated/remote/v1/executor_vtproto.pb.go @@ -1,13 +1,15 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. // protoc-gen-go-vtproto version: v0.4.0 -// source: rpc/v1/executor.proto +// source: remote/v1/executor.proto package rpcv1 import ( + v1 "code.icb4dc0.de/buildr/api/generated/common/v1" fmt "fmt" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" + bits "math/bits" ) const ( @@ -619,101 +621,6 @@ func (m *Result) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *PluginInventory_InventorySpec) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PluginInventory_InventorySpec) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *PluginInventory_InventorySpec) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.EmptySpec) > 0 { - i -= len(m.EmptySpec) - copy(dAtA[i:], m.EmptySpec) - i = encodeVarint(dAtA, i, uint64(len(m.EmptySpec))) - i-- - dAtA[i] = 0x12 - } - if m.ModuleRef != nil { - size, err := m.ModuleRef.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PluginInventory) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PluginInventory) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *PluginInventory) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Specs) > 0 { - for iNdEx := len(m.Specs) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Specs[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - func (m *ExecutionClientMessage) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -1024,6 +931,100 @@ func (m *ExecutionServerMessage_SetState) MarshalToSizedBufferVT(dAtA []byte) (i } return len(dAtA) - i, nil } +func (m *RegisterPluginModuleRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RegisterPluginModuleRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RegisterPluginModuleRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.PluginPayload) > 0 { + i -= len(m.PluginPayload) + copy(dAtA[i:], m.PluginPayload) + i = encodeVarint(dAtA, i, uint64(len(m.PluginPayload))) + i-- + dAtA[i] = 0x12 + } + if m.ModuleRef != nil { + size, err := m.ModuleRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RegisterPluginModuleResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RegisterPluginModuleResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RegisterPluginModuleResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func encodeVarint(dAtA []byte, offset int, v uint64) int { + offset -= sov(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} func (m *Buildr_Repo) SizeVT() (n int) { if m == nil { return 0 @@ -1250,40 +1251,6 @@ func (m *Result) SizeVT() (n int) { return n } -func (m *PluginInventory_InventorySpec) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ModuleRef != nil { - l = m.ModuleRef.SizeVT() - n += 1 + l + sov(uint64(l)) - } - l = len(m.EmptySpec) - if l > 0 { - n += 1 + l + sov(uint64(l)) - } - n += len(m.unknownFields) - return n -} - -func (m *PluginInventory) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Specs) > 0 { - for _, e := range m.Specs { - l = e.SizeVT() - n += 1 + l + sov(uint64(l)) - } - } - n += len(m.unknownFields) - return n -} - func (m *ExecutionClientMessage) SizeVT() (n int) { if m == nil { return 0 @@ -1452,6 +1419,40 @@ func (m *ExecutionServerMessage_SetState) SizeVT() (n int) { } return n } +func (m *RegisterPluginModuleRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ModuleRef != nil { + l = m.ModuleRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.PluginPayload) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *RegisterPluginModuleResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func sov(x uint64) (n int) { + return (bits.Len64(x|1) + 6) / 7 +} +func soz(x uint64) (n int) { + return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} func (m *Buildr_Repo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1809,7 +1810,7 @@ func (m *TaskReference) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Module == nil { - m.Module = &ModuleReference{} + m.Module = &v1.ModuleReference{} } if err := m.Module.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1968,7 +1969,7 @@ func (m *StartTaskRequest) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Spec == nil { - m.Spec = &ModuleSpec{} + m.Spec = &v1.ModuleSpec{} } if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2911,212 +2912,6 @@ func (m *Result) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *PluginInventory_InventorySpec) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PluginInventory_InventorySpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PluginInventory_InventorySpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModuleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ModuleRef == nil { - m.ModuleRef = &ModuleReference{} - } - if err := m.ModuleRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EmptySpec", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EmptySpec = append(m.EmptySpec[:0], dAtA[iNdEx:postIndex]...) - if m.EmptySpec == nil { - m.EmptySpec = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PluginInventory) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PluginInventory: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PluginInventory: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Specs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Specs = append(m.Specs, &PluginInventory_InventorySpec{}) - if err := m.Specs[len(m.Specs)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *ExecutionClientMessage) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3679,3 +3474,260 @@ func (m *ExecutionServerMessage) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *RegisterPluginModuleRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RegisterPluginModuleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RegisterPluginModuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModuleRef == nil { + m.ModuleRef = &v1.ModuleReference{} + } + if err := m.ModuleRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PluginPayload", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PluginPayload = append(m.PluginPayload[:0], dAtA[iNdEx:postIndex]...) + if m.PluginPayload == nil { + m.PluginPayload = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RegisterPluginModuleResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RegisterPluginModuleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RegisterPluginModuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func skip(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLength + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroup + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLength + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflow = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") +) diff --git a/generated/remote/v1/rpcv1connect/executor.connect.go b/generated/remote/v1/rpcv1connect/executor.connect.go new file mode 100644 index 0000000..f6a0fde --- /dev/null +++ b/generated/remote/v1/rpcv1connect/executor.connect.go @@ -0,0 +1,177 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: remote/v1/executor.proto + +package rpcv1connect + +import ( + v1 "code.icb4dc0.de/buildr/api/generated/remote/v1" + connect "connectrpc.com/connect" + context "context" + errors "errors" + http "net/http" + strings "strings" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect.IsAtLeastVersion0_1_0 + +const ( + // ExecutorServiceName is the fully-qualified name of the ExecutorService service. + ExecutorServiceName = "buildr.rpc.v1.ExecutorService" + // PluginManagerServiceName is the fully-qualified name of the PluginManagerService service. + PluginManagerServiceName = "buildr.rpc.v1.PluginManagerService" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // ExecutorServiceExecuteStreamProcedure is the fully-qualified name of the ExecutorService's + // ExecuteStream RPC. + ExecutorServiceExecuteStreamProcedure = "/buildr.rpc.v1.ExecutorService/ExecuteStream" + // PluginManagerServiceRegisterPluginModuleProcedure is the fully-qualified name of the + // PluginManagerService's RegisterPluginModule RPC. + PluginManagerServiceRegisterPluginModuleProcedure = "/buildr.rpc.v1.PluginManagerService/RegisterPluginModule" +) + +// ExecutorServiceClient is a client for the buildr.rpc.v1.ExecutorService service. +type ExecutorServiceClient interface { + ExecuteStream(context.Context) *connect.BidiStreamForClient[v1.ExecutionClientMessage, v1.ExecutionServerMessage] +} + +// NewExecutorServiceClient constructs a client for the buildr.rpc.v1.ExecutorService service. By +// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, +// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the +// connect.WithGRPC() or connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewExecutorServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ExecutorServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &executorServiceClient{ + executeStream: connect.NewClient[v1.ExecutionClientMessage, v1.ExecutionServerMessage]( + httpClient, + baseURL+ExecutorServiceExecuteStreamProcedure, + opts..., + ), + } +} + +// executorServiceClient implements ExecutorServiceClient. +type executorServiceClient struct { + executeStream *connect.Client[v1.ExecutionClientMessage, v1.ExecutionServerMessage] +} + +// ExecuteStream calls buildr.rpc.v1.ExecutorService.ExecuteStream. +func (c *executorServiceClient) ExecuteStream(ctx context.Context) *connect.BidiStreamForClient[v1.ExecutionClientMessage, v1.ExecutionServerMessage] { + return c.executeStream.CallBidiStream(ctx) +} + +// ExecutorServiceHandler is an implementation of the buildr.rpc.v1.ExecutorService service. +type ExecutorServiceHandler interface { + ExecuteStream(context.Context, *connect.BidiStream[v1.ExecutionClientMessage, v1.ExecutionServerMessage]) error +} + +// NewExecutorServiceHandler builds an HTTP handler from the service implementation. It returns the +// path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewExecutorServiceHandler(svc ExecutorServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + executorServiceExecuteStreamHandler := connect.NewBidiStreamHandler( + ExecutorServiceExecuteStreamProcedure, + svc.ExecuteStream, + opts..., + ) + return "/buildr.rpc.v1.ExecutorService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case ExecutorServiceExecuteStreamProcedure: + executorServiceExecuteStreamHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) +} + +// UnimplementedExecutorServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedExecutorServiceHandler struct{} + +func (UnimplementedExecutorServiceHandler) ExecuteStream(context.Context, *connect.BidiStream[v1.ExecutionClientMessage, v1.ExecutionServerMessage]) error { + return connect.NewError(connect.CodeUnimplemented, errors.New("buildr.rpc.v1.ExecutorService.ExecuteStream is not implemented")) +} + +// PluginManagerServiceClient is a client for the buildr.rpc.v1.PluginManagerService service. +type PluginManagerServiceClient interface { + RegisterPluginModule(context.Context, *connect.Request[v1.RegisterPluginModuleRequest]) (*connect.Response[v1.RegisterPluginModuleResponse], error) +} + +// NewPluginManagerServiceClient constructs a client for the buildr.rpc.v1.PluginManagerService +// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for +// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply +// the connect.WithGRPC() or connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewPluginManagerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PluginManagerServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &pluginManagerServiceClient{ + registerPluginModule: connect.NewClient[v1.RegisterPluginModuleRequest, v1.RegisterPluginModuleResponse]( + httpClient, + baseURL+PluginManagerServiceRegisterPluginModuleProcedure, + opts..., + ), + } +} + +// pluginManagerServiceClient implements PluginManagerServiceClient. +type pluginManagerServiceClient struct { + registerPluginModule *connect.Client[v1.RegisterPluginModuleRequest, v1.RegisterPluginModuleResponse] +} + +// RegisterPluginModule calls buildr.rpc.v1.PluginManagerService.RegisterPluginModule. +func (c *pluginManagerServiceClient) RegisterPluginModule(ctx context.Context, req *connect.Request[v1.RegisterPluginModuleRequest]) (*connect.Response[v1.RegisterPluginModuleResponse], error) { + return c.registerPluginModule.CallUnary(ctx, req) +} + +// PluginManagerServiceHandler is an implementation of the buildr.rpc.v1.PluginManagerService +// service. +type PluginManagerServiceHandler interface { + RegisterPluginModule(context.Context, *connect.Request[v1.RegisterPluginModuleRequest]) (*connect.Response[v1.RegisterPluginModuleResponse], error) +} + +// NewPluginManagerServiceHandler builds an HTTP handler from the service implementation. It returns +// the path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewPluginManagerServiceHandler(svc PluginManagerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + pluginManagerServiceRegisterPluginModuleHandler := connect.NewUnaryHandler( + PluginManagerServiceRegisterPluginModuleProcedure, + svc.RegisterPluginModule, + opts..., + ) + return "/buildr.rpc.v1.PluginManagerService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case PluginManagerServiceRegisterPluginModuleProcedure: + pluginManagerServiceRegisterPluginModuleHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) +} + +// UnimplementedPluginManagerServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedPluginManagerServiceHandler struct{} + +func (UnimplementedPluginManagerServiceHandler) RegisterPluginModule(context.Context, *connect.Request[v1.RegisterPluginModuleRequest]) (*connect.Response[v1.RegisterPluginModuleResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buildr.rpc.v1.PluginManagerService.RegisterPluginModule is not implemented")) +} diff --git a/generated/rpc/v1/executor_grpc.pb.go b/generated/rpc/v1/executor_grpc.pb.go deleted file mode 100644 index 639ba6c..0000000 --- a/generated/rpc/v1/executor_grpc.pb.go +++ /dev/null @@ -1,141 +0,0 @@ -//go:build !wasi - -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: rpc/v1/executor.proto - -package rpcv1 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - ExecutorService_ExecuteStream_FullMethodName = "/buildr.rpc.v1.ExecutorService/ExecuteStream" -) - -// ExecutorServiceClient is the client API for ExecutorService service. -// -// 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 ExecutorServiceClient interface { - ExecuteStream(ctx context.Context, opts ...grpc.CallOption) (ExecutorService_ExecuteStreamClient, error) -} - -type executorServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewExecutorServiceClient(cc grpc.ClientConnInterface) ExecutorServiceClient { - return &executorServiceClient{cc} -} - -func (c *executorServiceClient) ExecuteStream(ctx context.Context, opts ...grpc.CallOption) (ExecutorService_ExecuteStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutorService_ServiceDesc.Streams[0], ExecutorService_ExecuteStream_FullMethodName, opts...) - if err != nil { - return nil, err - } - x := &executorServiceExecuteStreamClient{stream} - return x, nil -} - -type ExecutorService_ExecuteStreamClient interface { - Send(*ExecutionClientMessage) error - Recv() (*ExecutionServerMessage, error) - grpc.ClientStream -} - -type executorServiceExecuteStreamClient struct { - grpc.ClientStream -} - -func (x *executorServiceExecuteStreamClient) Send(m *ExecutionClientMessage) error { - return x.ClientStream.SendMsg(m) -} - -func (x *executorServiceExecuteStreamClient) Recv() (*ExecutionServerMessage, error) { - m := new(ExecutionServerMessage) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// ExecutorServiceServer is the server API for ExecutorService service. -// All implementations should embed UnimplementedExecutorServiceServer -// for forward compatibility -type ExecutorServiceServer interface { - ExecuteStream(ExecutorService_ExecuteStreamServer) error -} - -// UnimplementedExecutorServiceServer should be embedded to have forward compatible implementations. -type UnimplementedExecutorServiceServer struct { -} - -func (UnimplementedExecutorServiceServer) ExecuteStream(ExecutorService_ExecuteStreamServer) error { - return status.Errorf(codes.Unimplemented, "method ExecuteStream not implemented") -} - -// UnsafeExecutorServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ExecutorServiceServer will -// result in compilation errors. -type UnsafeExecutorServiceServer interface { - mustEmbedUnimplementedExecutorServiceServer() -} - -func RegisterExecutorServiceServer(s grpc.ServiceRegistrar, srv ExecutorServiceServer) { - s.RegisterService(&ExecutorService_ServiceDesc, srv) -} - -func _ExecutorService_ExecuteStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ExecutorServiceServer).ExecuteStream(&executorServiceExecuteStreamServer{stream}) -} - -type ExecutorService_ExecuteStreamServer interface { - Send(*ExecutionServerMessage) error - Recv() (*ExecutionClientMessage, error) - grpc.ServerStream -} - -type executorServiceExecuteStreamServer struct { - grpc.ServerStream -} - -func (x *executorServiceExecuteStreamServer) Send(m *ExecutionServerMessage) error { - return x.ServerStream.SendMsg(m) -} - -func (x *executorServiceExecuteStreamServer) Recv() (*ExecutionClientMessage, error) { - m := new(ExecutionClientMessage) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// ExecutorService_ServiceDesc is the grpc.ServiceDesc for ExecutorService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ExecutorService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "buildr.rpc.v1.ExecutorService", - HandlerType: (*ExecutorServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "ExecuteStream", - Handler: _ExecutorService_ExecuteStream_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "rpc/v1/executor.proto", -} diff --git a/generated/rpc/v1/wasi.pb.go b/generated/rpc/v1/wasi.pb.go deleted file mode 100644 index a91d7da..0000000 --- a/generated/rpc/v1/wasi.pb.go +++ /dev/null @@ -1,659 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.31.0 -// protoc (unknown) -// source: rpc/v1/wasi.proto - -package rpcv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ProcessStartRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` - Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` - WorkingDirectory string `protobuf:"bytes,3,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"` - Environment map[string]string `protobuf:"bytes,4,rep,name=environment,proto3" json:"environment,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Stdin []byte `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"` -} - -func (x *ProcessStartRequest) Reset() { - *x = ProcessStartRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_wasi_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessStartRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessStartRequest) ProtoMessage() {} - -func (x *ProcessStartRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_wasi_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 ProcessStartRequest.ProtoReflect.Descriptor instead. -func (*ProcessStartRequest) Descriptor() ([]byte, []int) { - return file_rpc_v1_wasi_proto_rawDescGZIP(), []int{0} -} - -func (x *ProcessStartRequest) GetCommand() string { - if x != nil { - return x.Command - } - return "" -} - -func (x *ProcessStartRequest) GetArgs() []string { - if x != nil { - return x.Args - } - return nil -} - -func (x *ProcessStartRequest) GetWorkingDirectory() string { - if x != nil { - return x.WorkingDirectory - } - return "" -} - -func (x *ProcessStartRequest) GetEnvironment() map[string]string { - if x != nil { - return x.Environment - } - return nil -} - -func (x *ProcessStartRequest) GetStdin() []byte { - if x != nil { - return x.Stdin - } - return nil -} - -type ProcessStartResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - Stderr []byte `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"` -} - -func (x *ProcessStartResponse) Reset() { - *x = ProcessStartResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_wasi_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProcessStartResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProcessStartResponse) ProtoMessage() {} - -func (x *ProcessStartResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_wasi_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 ProcessStartResponse.ProtoReflect.Descriptor instead. -func (*ProcessStartResponse) Descriptor() ([]byte, []int) { - return file_rpc_v1_wasi_proto_rawDescGZIP(), []int{1} -} - -func (x *ProcessStartResponse) GetExitCode() int32 { - if x != nil { - return x.ExitCode - } - return 0 -} - -func (x *ProcessStartResponse) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -func (x *ProcessStartResponse) GetStderr() []byte { - if x != nil { - return x.Stderr - } - return nil -} - -type LookupPathRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` -} - -func (x *LookupPathRequest) Reset() { - *x = LookupPathRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_wasi_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LookupPathRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LookupPathRequest) ProtoMessage() {} - -func (x *LookupPathRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_wasi_proto_msgTypes[2] - 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 LookupPathRequest.ProtoReflect.Descriptor instead. -func (*LookupPathRequest) Descriptor() ([]byte, []int) { - return file_rpc_v1_wasi_proto_rawDescGZIP(), []int{2} -} - -func (x *LookupPathRequest) GetCommand() string { - if x != nil { - return x.Command - } - return "" -} - -type LookupPathResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` -} - -func (x *LookupPathResponse) Reset() { - *x = LookupPathResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_wasi_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LookupPathResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LookupPathResponse) ProtoMessage() {} - -func (x *LookupPathResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_wasi_proto_msgTypes[3] - 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 LookupPathResponse.ProtoReflect.Descriptor instead. -func (*LookupPathResponse) Descriptor() ([]byte, []int) { - return file_rpc_v1_wasi_proto_rawDescGZIP(), []int{3} -} - -func (x *LookupPathResponse) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *LookupPathResponse) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -type HelpRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ModuleReference *ModuleReference `protobuf:"bytes,1,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` -} - -func (x *HelpRequest) Reset() { - *x = HelpRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_wasi_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HelpRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HelpRequest) ProtoMessage() {} - -func (x *HelpRequest) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_wasi_proto_msgTypes[4] - 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 HelpRequest.ProtoReflect.Descriptor instead. -func (*HelpRequest) Descriptor() ([]byte, []int) { - return file_rpc_v1_wasi_proto_rawDescGZIP(), []int{4} -} - -func (x *HelpRequest) GetModuleReference() *ModuleReference { - if x != nil { - return x.ModuleReference - } - return nil -} - -type TaskExample struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - TaskSpec *TaskSpec `protobuf:"bytes,3,opt,name=task_spec,json=taskSpec,proto3" json:"task_spec,omitempty"` -} - -func (x *TaskExample) Reset() { - *x = TaskExample{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_wasi_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExample) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExample) ProtoMessage() {} - -func (x *TaskExample) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_wasi_proto_msgTypes[5] - 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 TaskExample.ProtoReflect.Descriptor instead. -func (*TaskExample) Descriptor() ([]byte, []int) { - return file_rpc_v1_wasi_proto_rawDescGZIP(), []int{5} -} - -func (x *TaskExample) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TaskExample) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *TaskExample) GetTaskSpec() *TaskSpec { - if x != nil { - return x.TaskSpec - } - return nil -} - -type HelpResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Examples []*TaskExample `protobuf:"bytes,3,rep,name=examples,proto3" json:"examples,omitempty"` -} - -func (x *HelpResponse) Reset() { - *x = HelpResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_rpc_v1_wasi_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HelpResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HelpResponse) ProtoMessage() {} - -func (x *HelpResponse) ProtoReflect() protoreflect.Message { - mi := &file_rpc_v1_wasi_proto_msgTypes[6] - 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 HelpResponse.ProtoReflect.Descriptor instead. -func (*HelpResponse) Descriptor() ([]byte, []int) { - return file_rpc_v1_wasi_proto_rawDescGZIP(), []int{6} -} - -func (x *HelpResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *HelpResponse) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *HelpResponse) GetExamples() []*TaskExample { - if x != nil { - return x.Examples - } - return nil -} - -var File_rpc_v1_wasi_proto protoreflect.FileDescriptor - -var file_rpc_v1_wasi_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x61, 0x73, 0x69, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x76, 0x31, 0x1a, 0x11, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x77, - 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, - 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x55, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, - 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, - 0x73, 0x74, 0x64, 0x69, 0x6e, 0x1a, 0x3e, 0x0a, 0x10, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x61, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, - 0x09, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x22, 0x2d, 0x0a, 0x11, 0x4c, 0x6f, 0x6f, 0x6b, - 0x75, 0x70, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x3e, 0x0a, 0x12, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, - 0x70, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x58, 0x0a, 0x0b, 0x48, 0x65, 0x6c, 0x70, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x22, 0x79, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, - 0x70, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x69, 0x6c, - 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x70, - 0x65, 0x63, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x22, 0x7c, 0x0a, 0x0c, - 0x48, 0x65, 0x6c, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x08, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x52, 0x08, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x42, 0xa6, 0x01, 0x0a, 0x11, 0x63, - 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, - 0x42, 0x09, 0x57, 0x61, 0x73, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x02, 0x50, 0x01, 0x5a, - 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x69, 0x63, 0x62, 0x34, 0x64, 0x63, 0x30, 0x2e, 0x64, 0x65, - 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x42, 0x52, 0x58, 0xaa, 0x02, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x52, - 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, 0x52, - 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, 0x52, - 0x70, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_rpc_v1_wasi_proto_rawDescOnce sync.Once - file_rpc_v1_wasi_proto_rawDescData = file_rpc_v1_wasi_proto_rawDesc -) - -func file_rpc_v1_wasi_proto_rawDescGZIP() []byte { - file_rpc_v1_wasi_proto_rawDescOnce.Do(func() { - file_rpc_v1_wasi_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_v1_wasi_proto_rawDescData) - }) - return file_rpc_v1_wasi_proto_rawDescData -} - -var file_rpc_v1_wasi_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_rpc_v1_wasi_proto_goTypes = []interface{}{ - (*ProcessStartRequest)(nil), // 0: buildr.rpc.v1.ProcessStartRequest - (*ProcessStartResponse)(nil), // 1: buildr.rpc.v1.ProcessStartResponse - (*LookupPathRequest)(nil), // 2: buildr.rpc.v1.LookupPathRequest - (*LookupPathResponse)(nil), // 3: buildr.rpc.v1.LookupPathResponse - (*HelpRequest)(nil), // 4: buildr.rpc.v1.HelpRequest - (*TaskExample)(nil), // 5: buildr.rpc.v1.TaskExample - (*HelpResponse)(nil), // 6: buildr.rpc.v1.HelpResponse - nil, // 7: buildr.rpc.v1.ProcessStartRequest.EnvironmentEntry - (*ModuleReference)(nil), // 8: buildr.rpc.v1.ModuleReference - (*TaskSpec)(nil), // 9: buildr.rpc.v1.TaskSpec -} -var file_rpc_v1_wasi_proto_depIdxs = []int32{ - 7, // 0: buildr.rpc.v1.ProcessStartRequest.environment:type_name -> buildr.rpc.v1.ProcessStartRequest.EnvironmentEntry - 8, // 1: buildr.rpc.v1.HelpRequest.module_reference:type_name -> buildr.rpc.v1.ModuleReference - 9, // 2: buildr.rpc.v1.TaskExample.task_spec:type_name -> buildr.rpc.v1.TaskSpec - 5, // 3: buildr.rpc.v1.HelpResponse.examples:type_name -> buildr.rpc.v1.TaskExample - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_rpc_v1_wasi_proto_init() } -func file_rpc_v1_wasi_proto_init() { - if File_rpc_v1_wasi_proto != nil { - return - } - file_rpc_v1_spec_proto_init() - if !protoimpl.UnsafeEnabled { - file_rpc_v1_wasi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessStartRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rpc_v1_wasi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessStartResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rpc_v1_wasi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LookupPathRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rpc_v1_wasi_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LookupPathResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rpc_v1_wasi_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HelpRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rpc_v1_wasi_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExample); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rpc_v1_wasi_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HelpResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_rpc_v1_wasi_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_rpc_v1_wasi_proto_goTypes, - DependencyIndexes: file_rpc_v1_wasi_proto_depIdxs, - MessageInfos: file_rpc_v1_wasi_proto_msgTypes, - }.Build() - File_rpc_v1_wasi_proto = out.File - file_rpc_v1_wasi_proto_rawDesc = nil - file_rpc_v1_wasi_proto_goTypes = nil - file_rpc_v1_wasi_proto_depIdxs = nil -} diff --git a/generated/wasi/v1/rpcv1connect/wasi.connect.go b/generated/wasi/v1/rpcv1connect/wasi.connect.go new file mode 100644 index 0000000..0f1e8a6 --- /dev/null +++ b/generated/wasi/v1/rpcv1connect/wasi.connect.go @@ -0,0 +1,231 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: wasi/v1/wasi.proto + +package rpcv1connect + +import ( + v1 "code.icb4dc0.de/buildr/api/generated/remote/v1" + v11 "code.icb4dc0.de/buildr/api/generated/wasi/v1" + connect "connectrpc.com/connect" + context "context" + errors "errors" + http "net/http" + strings "strings" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect.IsAtLeastVersion0_1_0 + +const ( + // WasiExecutorServiceName is the fully-qualified name of the WasiExecutorService service. + WasiExecutorServiceName = "buildr.rpc.v1.WasiExecutorService" + // ExecutorHostServiceName is the fully-qualified name of the ExecutorHostService service. + ExecutorHostServiceName = "buildr.rpc.v1.ExecutorHostService" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // WasiExecutorServiceStartTaskProcedure is the fully-qualified name of the WasiExecutorService's + // StartTask RPC. + WasiExecutorServiceStartTaskProcedure = "/buildr.rpc.v1.WasiExecutorService/StartTask" + // WasiExecutorServiceHelpProcedure is the fully-qualified name of the WasiExecutorService's Help + // RPC. + WasiExecutorServiceHelpProcedure = "/buildr.rpc.v1.WasiExecutorService/Help" + // ExecutorHostServiceProcessStartProcedure is the fully-qualified name of the ExecutorHostService's + // ProcessStart RPC. + ExecutorHostServiceProcessStartProcedure = "/buildr.rpc.v1.ExecutorHostService/ProcessStart" + // ExecutorHostServiceLookupPathProcedure is the fully-qualified name of the ExecutorHostService's + // LookupPath RPC. + ExecutorHostServiceLookupPathProcedure = "/buildr.rpc.v1.ExecutorHostService/LookupPath" +) + +// WasiExecutorServiceClient is a client for the buildr.rpc.v1.WasiExecutorService service. +type WasiExecutorServiceClient interface { + StartTask(context.Context, *connect.Request[v1.StartTaskRequest]) (*connect.Response[v11.StartTaskResponse], error) + Help(context.Context, *connect.Request[v11.HelpRequest]) (*connect.Response[v11.HelpResponse], error) +} + +// NewWasiExecutorServiceClient constructs a client for the buildr.rpc.v1.WasiExecutorService +// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for +// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply +// the connect.WithGRPC() or connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewWasiExecutorServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WasiExecutorServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &wasiExecutorServiceClient{ + startTask: connect.NewClient[v1.StartTaskRequest, v11.StartTaskResponse]( + httpClient, + baseURL+WasiExecutorServiceStartTaskProcedure, + opts..., + ), + help: connect.NewClient[v11.HelpRequest, v11.HelpResponse]( + httpClient, + baseURL+WasiExecutorServiceHelpProcedure, + opts..., + ), + } +} + +// wasiExecutorServiceClient implements WasiExecutorServiceClient. +type wasiExecutorServiceClient struct { + startTask *connect.Client[v1.StartTaskRequest, v11.StartTaskResponse] + help *connect.Client[v11.HelpRequest, v11.HelpResponse] +} + +// StartTask calls buildr.rpc.v1.WasiExecutorService.StartTask. +func (c *wasiExecutorServiceClient) StartTask(ctx context.Context, req *connect.Request[v1.StartTaskRequest]) (*connect.Response[v11.StartTaskResponse], error) { + return c.startTask.CallUnary(ctx, req) +} + +// Help calls buildr.rpc.v1.WasiExecutorService.Help. +func (c *wasiExecutorServiceClient) Help(ctx context.Context, req *connect.Request[v11.HelpRequest]) (*connect.Response[v11.HelpResponse], error) { + return c.help.CallUnary(ctx, req) +} + +// WasiExecutorServiceHandler is an implementation of the buildr.rpc.v1.WasiExecutorService service. +type WasiExecutorServiceHandler interface { + StartTask(context.Context, *connect.Request[v1.StartTaskRequest]) (*connect.Response[v11.StartTaskResponse], error) + Help(context.Context, *connect.Request[v11.HelpRequest]) (*connect.Response[v11.HelpResponse], error) +} + +// NewWasiExecutorServiceHandler builds an HTTP handler from the service implementation. It returns +// the path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewWasiExecutorServiceHandler(svc WasiExecutorServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + wasiExecutorServiceStartTaskHandler := connect.NewUnaryHandler( + WasiExecutorServiceStartTaskProcedure, + svc.StartTask, + opts..., + ) + wasiExecutorServiceHelpHandler := connect.NewUnaryHandler( + WasiExecutorServiceHelpProcedure, + svc.Help, + opts..., + ) + return "/buildr.rpc.v1.WasiExecutorService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case WasiExecutorServiceStartTaskProcedure: + wasiExecutorServiceStartTaskHandler.ServeHTTP(w, r) + case WasiExecutorServiceHelpProcedure: + wasiExecutorServiceHelpHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) +} + +// UnimplementedWasiExecutorServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedWasiExecutorServiceHandler struct{} + +func (UnimplementedWasiExecutorServiceHandler) StartTask(context.Context, *connect.Request[v1.StartTaskRequest]) (*connect.Response[v11.StartTaskResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buildr.rpc.v1.WasiExecutorService.StartTask is not implemented")) +} + +func (UnimplementedWasiExecutorServiceHandler) Help(context.Context, *connect.Request[v11.HelpRequest]) (*connect.Response[v11.HelpResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buildr.rpc.v1.WasiExecutorService.Help is not implemented")) +} + +// ExecutorHostServiceClient is a client for the buildr.rpc.v1.ExecutorHostService service. +type ExecutorHostServiceClient interface { + ProcessStart(context.Context, *connect.Request[v11.ProcessStartRequest]) (*connect.Response[v11.ProcessStartResponse], error) + LookupPath(context.Context, *connect.Request[v11.LookupPathRequest]) (*connect.Response[v11.LookupPathResponse], error) +} + +// NewExecutorHostServiceClient constructs a client for the buildr.rpc.v1.ExecutorHostService +// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for +// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply +// the connect.WithGRPC() or connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewExecutorHostServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ExecutorHostServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &executorHostServiceClient{ + processStart: connect.NewClient[v11.ProcessStartRequest, v11.ProcessStartResponse]( + httpClient, + baseURL+ExecutorHostServiceProcessStartProcedure, + opts..., + ), + lookupPath: connect.NewClient[v11.LookupPathRequest, v11.LookupPathResponse]( + httpClient, + baseURL+ExecutorHostServiceLookupPathProcedure, + opts..., + ), + } +} + +// executorHostServiceClient implements ExecutorHostServiceClient. +type executorHostServiceClient struct { + processStart *connect.Client[v11.ProcessStartRequest, v11.ProcessStartResponse] + lookupPath *connect.Client[v11.LookupPathRequest, v11.LookupPathResponse] +} + +// ProcessStart calls buildr.rpc.v1.ExecutorHostService.ProcessStart. +func (c *executorHostServiceClient) ProcessStart(ctx context.Context, req *connect.Request[v11.ProcessStartRequest]) (*connect.Response[v11.ProcessStartResponse], error) { + return c.processStart.CallUnary(ctx, req) +} + +// LookupPath calls buildr.rpc.v1.ExecutorHostService.LookupPath. +func (c *executorHostServiceClient) LookupPath(ctx context.Context, req *connect.Request[v11.LookupPathRequest]) (*connect.Response[v11.LookupPathResponse], error) { + return c.lookupPath.CallUnary(ctx, req) +} + +// ExecutorHostServiceHandler is an implementation of the buildr.rpc.v1.ExecutorHostService service. +type ExecutorHostServiceHandler interface { + ProcessStart(context.Context, *connect.Request[v11.ProcessStartRequest]) (*connect.Response[v11.ProcessStartResponse], error) + LookupPath(context.Context, *connect.Request[v11.LookupPathRequest]) (*connect.Response[v11.LookupPathResponse], error) +} + +// NewExecutorHostServiceHandler builds an HTTP handler from the service implementation. It returns +// the path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewExecutorHostServiceHandler(svc ExecutorHostServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + executorHostServiceProcessStartHandler := connect.NewUnaryHandler( + ExecutorHostServiceProcessStartProcedure, + svc.ProcessStart, + opts..., + ) + executorHostServiceLookupPathHandler := connect.NewUnaryHandler( + ExecutorHostServiceLookupPathProcedure, + svc.LookupPath, + opts..., + ) + return "/buildr.rpc.v1.ExecutorHostService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case ExecutorHostServiceProcessStartProcedure: + executorHostServiceProcessStartHandler.ServeHTTP(w, r) + case ExecutorHostServiceLookupPathProcedure: + executorHostServiceLookupPathHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) +} + +// UnimplementedExecutorHostServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedExecutorHostServiceHandler struct{} + +func (UnimplementedExecutorHostServiceHandler) ProcessStart(context.Context, *connect.Request[v11.ProcessStartRequest]) (*connect.Response[v11.ProcessStartResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buildr.rpc.v1.ExecutorHostService.ProcessStart is not implemented")) +} + +func (UnimplementedExecutorHostServiceHandler) LookupPath(context.Context, *connect.Request[v11.LookupPathRequest]) (*connect.Response[v11.LookupPathResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buildr.rpc.v1.ExecutorHostService.LookupPath is not implemented")) +} diff --git a/generated/wasi/v1/wasi.pb.go b/generated/wasi/v1/wasi.pb.go new file mode 100644 index 0000000..8aee5ac --- /dev/null +++ b/generated/wasi/v1/wasi.pb.go @@ -0,0 +1,899 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: wasi/v1/wasi.proto + +package rpcv1 + +import ( + v1 "code.icb4dc0.de/buildr/api/generated/common/v1" + v11 "code.icb4dc0.de/buildr/api/generated/remote/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type HelpRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ModuleReference *v1.ModuleReference `protobuf:"bytes,1,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` +} + +func (x *HelpRequest) Reset() { + *x = HelpRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HelpRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HelpRequest) ProtoMessage() {} + +func (x *HelpRequest) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_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 HelpRequest.ProtoReflect.Descriptor instead. +func (*HelpRequest) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{0} +} + +func (x *HelpRequest) GetModuleReference() *v1.ModuleReference { + if x != nil { + return x.ModuleReference + } + return nil +} + +type TaskExample struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + TaskSpec *v1.TaskSpec `protobuf:"bytes,3,opt,name=task_spec,json=taskSpec,proto3" json:"task_spec,omitempty"` +} + +func (x *TaskExample) Reset() { + *x = TaskExample{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExample) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExample) ProtoMessage() {} + +func (x *TaskExample) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_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 TaskExample.ProtoReflect.Descriptor instead. +func (*TaskExample) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{1} +} + +func (x *TaskExample) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *TaskExample) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *TaskExample) GetTaskSpec() *v1.TaskSpec { + if x != nil { + return x.TaskSpec + } + return nil +} + +type HelpResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Examples []*TaskExample `protobuf:"bytes,3,rep,name=examples,proto3" json:"examples,omitempty"` +} + +func (x *HelpResponse) Reset() { + *x = HelpResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HelpResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HelpResponse) ProtoMessage() {} + +func (x *HelpResponse) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_proto_msgTypes[2] + 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 HelpResponse.ProtoReflect.Descriptor instead. +func (*HelpResponse) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{2} +} + +func (x *HelpResponse) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *HelpResponse) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *HelpResponse) GetExamples() []*TaskExample { + if x != nil { + return x.Examples + } + return nil +} + +type PluginInventory struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Specs []*PluginInventory_InventorySpec `protobuf:"bytes,1,rep,name=specs,proto3" json:"specs,omitempty"` +} + +func (x *PluginInventory) Reset() { + *x = PluginInventory{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PluginInventory) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginInventory) ProtoMessage() {} + +func (x *PluginInventory) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_proto_msgTypes[3] + 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 PluginInventory.ProtoReflect.Descriptor instead. +func (*PluginInventory) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{3} +} + +func (x *PluginInventory) GetSpecs() []*PluginInventory_InventorySpec { + if x != nil { + return x.Specs + } + return nil +} + +type StartTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *StartTaskResponse) Reset() { + *x = StartTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartTaskResponse) ProtoMessage() {} + +func (x *StartTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_proto_msgTypes[4] + 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 StartTaskResponse.ProtoReflect.Descriptor instead. +func (*StartTaskResponse) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{4} +} + +func (x *StartTaskResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +type ProcessStartRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` + Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` + WorkingDirectory string `protobuf:"bytes,3,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"` + Environment map[string]string `protobuf:"bytes,4,rep,name=environment,proto3" json:"environment,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Stdin []byte `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"` +} + +func (x *ProcessStartRequest) Reset() { + *x = ProcessStartRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcessStartRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcessStartRequest) ProtoMessage() {} + +func (x *ProcessStartRequest) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_proto_msgTypes[5] + 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 ProcessStartRequest.ProtoReflect.Descriptor instead. +func (*ProcessStartRequest) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{5} +} + +func (x *ProcessStartRequest) GetCommand() string { + if x != nil { + return x.Command + } + return "" +} + +func (x *ProcessStartRequest) GetArgs() []string { + if x != nil { + return x.Args + } + return nil +} + +func (x *ProcessStartRequest) GetWorkingDirectory() string { + if x != nil { + return x.WorkingDirectory + } + return "" +} + +func (x *ProcessStartRequest) GetEnvironment() map[string]string { + if x != nil { + return x.Environment + } + return nil +} + +func (x *ProcessStartRequest) GetStdin() []byte { + if x != nil { + return x.Stdin + } + return nil +} + +type ProcessStartResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Stderr []byte `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"` +} + +func (x *ProcessStartResponse) Reset() { + *x = ProcessStartResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcessStartResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcessStartResponse) ProtoMessage() {} + +func (x *ProcessStartResponse) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_proto_msgTypes[6] + 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 ProcessStartResponse.ProtoReflect.Descriptor instead. +func (*ProcessStartResponse) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{6} +} + +func (x *ProcessStartResponse) GetExitCode() int32 { + if x != nil { + return x.ExitCode + } + return 0 +} + +func (x *ProcessStartResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *ProcessStartResponse) GetStderr() []byte { + if x != nil { + return x.Stderr + } + return nil +} + +type LookupPathRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` +} + +func (x *LookupPathRequest) Reset() { + *x = LookupPathRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LookupPathRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LookupPathRequest) ProtoMessage() {} + +func (x *LookupPathRequest) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_proto_msgTypes[7] + 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 LookupPathRequest.ProtoReflect.Descriptor instead. +func (*LookupPathRequest) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{7} +} + +func (x *LookupPathRequest) GetCommand() string { + if x != nil { + return x.Command + } + return "" +} + +type LookupPathResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *LookupPathResponse) Reset() { + *x = LookupPathResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LookupPathResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LookupPathResponse) ProtoMessage() {} + +func (x *LookupPathResponse) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_proto_msgTypes[8] + 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 LookupPathResponse.ProtoReflect.Descriptor instead. +func (*LookupPathResponse) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{8} +} + +func (x *LookupPathResponse) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *LookupPathResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +type PluginInventory_InventorySpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ModuleRef *v1.ModuleReference `protobuf:"bytes,1,opt,name=module_ref,json=moduleRef,proto3" json:"module_ref,omitempty"` + EmptySpec []byte `protobuf:"bytes,2,opt,name=empty_spec,json=emptySpec,proto3" json:"empty_spec,omitempty"` +} + +func (x *PluginInventory_InventorySpec) Reset() { + *x = PluginInventory_InventorySpec{} + if protoimpl.UnsafeEnabled { + mi := &file_wasi_v1_wasi_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PluginInventory_InventorySpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginInventory_InventorySpec) ProtoMessage() {} + +func (x *PluginInventory_InventorySpec) ProtoReflect() protoreflect.Message { + mi := &file_wasi_v1_wasi_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 PluginInventory_InventorySpec.ProtoReflect.Descriptor instead. +func (*PluginInventory_InventorySpec) Descriptor() ([]byte, []int) { + return file_wasi_v1_wasi_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *PluginInventory_InventorySpec) GetModuleRef() *v1.ModuleReference { + if x != nil { + return x.ModuleRef + } + return nil +} + +func (x *PluginInventory_InventorySpec) GetEmptySpec() []byte { + if x != nil { + return x.EmptySpec + } + return nil +} + +var File_wasi_v1_wasi_proto protoreflect.FileDescriptor + +var file_wasi_v1_wasi_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x77, 0x61, 0x73, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x61, 0x73, 0x69, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x73, + 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x0b, 0x48, 0x65, 0x6c, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x49, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x79, 0x0a, + 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x52, 0x08, + 0x74, 0x61, 0x73, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x22, 0x7c, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x70, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, + 0x0a, 0x08, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x08, 0x65, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0xc4, 0x01, 0x0a, 0x0f, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x42, 0x0a, 0x05, 0x73, 0x70, + 0x65, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x53, 0x70, 0x65, 0x63, 0x52, 0x05, 0x73, 0x70, 0x65, 0x63, 0x73, 0x1a, 0x6d, + 0x0a, 0x0d, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x70, 0x65, 0x63, 0x12, + 0x3d, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1d, + 0x0a, 0x0a, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x53, 0x70, 0x65, 0x63, 0x22, 0x29, 0x0a, + 0x11, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x50, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, + 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x2b, + 0x0a, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x6f, 0x72, 0x6b, 0x69, + 0x6e, 0x67, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x55, 0x0a, 0x0b, 0x65, + 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x33, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x1a, 0x3e, 0x0a, 0x10, 0x45, 0x6e, 0x76, 0x69, + 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x61, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x22, 0x2d, 0x0a, 0x11, 0x4c, + 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x3e, 0x0a, 0x12, 0x4c, 0x6f, + 0x6f, 0x6b, 0x75, 0x70, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xa6, 0x01, 0x0a, 0x13, 0x57, + 0x61, 0x73, 0x69, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x20, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x70, 0x12, 0x1a, 0x2e, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x70, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x32, 0xc1, 0x01, 0x0a, 0x13, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, + 0x48, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x0c, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0a, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x50, 0x61, + 0x74, 0x68, 0x12, 0x20, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x50, 0x61, 0x74, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xaa, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x57, + 0x61, 0x73, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x02, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6f, + 0x64, 0x65, 0x2e, 0x69, 0x63, 0x62, 0x34, 0x64, 0x63, 0x30, 0x2e, 0x64, 0x65, 0x2f, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x2f, 0x77, 0x61, 0x73, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x42, 0x52, 0x58, 0xaa, 0x02, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x2e, + 0x52, 0x70, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, + 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x5c, + 0x52, 0x70, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x72, 0x3a, 0x3a, 0x52, 0x70, 0x63, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_wasi_v1_wasi_proto_rawDescOnce sync.Once + file_wasi_v1_wasi_proto_rawDescData = file_wasi_v1_wasi_proto_rawDesc +) + +func file_wasi_v1_wasi_proto_rawDescGZIP() []byte { + file_wasi_v1_wasi_proto_rawDescOnce.Do(func() { + file_wasi_v1_wasi_proto_rawDescData = protoimpl.X.CompressGZIP(file_wasi_v1_wasi_proto_rawDescData) + }) + return file_wasi_v1_wasi_proto_rawDescData +} + +var file_wasi_v1_wasi_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_wasi_v1_wasi_proto_goTypes = []interface{}{ + (*HelpRequest)(nil), // 0: buildr.rpc.v1.HelpRequest + (*TaskExample)(nil), // 1: buildr.rpc.v1.TaskExample + (*HelpResponse)(nil), // 2: buildr.rpc.v1.HelpResponse + (*PluginInventory)(nil), // 3: buildr.rpc.v1.PluginInventory + (*StartTaskResponse)(nil), // 4: buildr.rpc.v1.StartTaskResponse + (*ProcessStartRequest)(nil), // 5: buildr.rpc.v1.ProcessStartRequest + (*ProcessStartResponse)(nil), // 6: buildr.rpc.v1.ProcessStartResponse + (*LookupPathRequest)(nil), // 7: buildr.rpc.v1.LookupPathRequest + (*LookupPathResponse)(nil), // 8: buildr.rpc.v1.LookupPathResponse + (*PluginInventory_InventorySpec)(nil), // 9: buildr.rpc.v1.PluginInventory.InventorySpec + nil, // 10: buildr.rpc.v1.ProcessStartRequest.EnvironmentEntry + (*v1.ModuleReference)(nil), // 11: buildr.rpc.v1.ModuleReference + (*v1.TaskSpec)(nil), // 12: buildr.rpc.v1.TaskSpec + (*v11.StartTaskRequest)(nil), // 13: buildr.rpc.v1.StartTaskRequest +} +var file_wasi_v1_wasi_proto_depIdxs = []int32{ + 11, // 0: buildr.rpc.v1.HelpRequest.module_reference:type_name -> buildr.rpc.v1.ModuleReference + 12, // 1: buildr.rpc.v1.TaskExample.task_spec:type_name -> buildr.rpc.v1.TaskSpec + 1, // 2: buildr.rpc.v1.HelpResponse.examples:type_name -> buildr.rpc.v1.TaskExample + 9, // 3: buildr.rpc.v1.PluginInventory.specs:type_name -> buildr.rpc.v1.PluginInventory.InventorySpec + 10, // 4: buildr.rpc.v1.ProcessStartRequest.environment:type_name -> buildr.rpc.v1.ProcessStartRequest.EnvironmentEntry + 11, // 5: buildr.rpc.v1.PluginInventory.InventorySpec.module_ref:type_name -> buildr.rpc.v1.ModuleReference + 13, // 6: buildr.rpc.v1.WasiExecutorService.StartTask:input_type -> buildr.rpc.v1.StartTaskRequest + 0, // 7: buildr.rpc.v1.WasiExecutorService.Help:input_type -> buildr.rpc.v1.HelpRequest + 5, // 8: buildr.rpc.v1.ExecutorHostService.ProcessStart:input_type -> buildr.rpc.v1.ProcessStartRequest + 7, // 9: buildr.rpc.v1.ExecutorHostService.LookupPath:input_type -> buildr.rpc.v1.LookupPathRequest + 4, // 10: buildr.rpc.v1.WasiExecutorService.StartTask:output_type -> buildr.rpc.v1.StartTaskResponse + 2, // 11: buildr.rpc.v1.WasiExecutorService.Help:output_type -> buildr.rpc.v1.HelpResponse + 6, // 12: buildr.rpc.v1.ExecutorHostService.ProcessStart:output_type -> buildr.rpc.v1.ProcessStartResponse + 8, // 13: buildr.rpc.v1.ExecutorHostService.LookupPath:output_type -> buildr.rpc.v1.LookupPathResponse + 10, // [10:14] is the sub-list for method output_type + 6, // [6:10] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_wasi_v1_wasi_proto_init() } +func file_wasi_v1_wasi_proto_init() { + if File_wasi_v1_wasi_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_wasi_v1_wasi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HelpRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExample); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HelpResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PluginInventory); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessStartRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessStartResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LookupPathRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LookupPathResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wasi_v1_wasi_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PluginInventory_InventorySpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_wasi_v1_wasi_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_wasi_v1_wasi_proto_goTypes, + DependencyIndexes: file_wasi_v1_wasi_proto_depIdxs, + MessageInfos: file_wasi_v1_wasi_proto_msgTypes, + }.Build() + File_wasi_v1_wasi_proto = out.File + file_wasi_v1_wasi_proto_rawDesc = nil + file_wasi_v1_wasi_proto_goTypes = nil + file_wasi_v1_wasi_proto_depIdxs = nil +} diff --git a/generated/rpc/v1/wasi_vtproto.pb.go b/generated/wasi/v1/wasi_vtproto.pb.go similarity index 73% rename from generated/rpc/v1/wasi_vtproto.pb.go rename to generated/wasi/v1/wasi_vtproto.pb.go index 26429b5..4f22836 100644 --- a/generated/rpc/v1/wasi_vtproto.pb.go +++ b/generated/wasi/v1/wasi_vtproto.pb.go @@ -1,13 +1,15 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. // protoc-gen-go-vtproto version: v0.4.0 -// source: rpc/v1/wasi.proto +// source: wasi/v1/wasi.proto package rpcv1 import ( + v1 "code.icb4dc0.de/buildr/api/generated/common/v1" fmt "fmt" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" + bits "math/bits" ) const ( @@ -17,6 +19,300 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +func (m *HelpRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HelpRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *HelpRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ModuleReference != nil { + size, err := m.ModuleReference.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TaskExample) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TaskExample) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *TaskExample) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.TaskSpec != nil { + size, err := m.TaskSpec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *HelpResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HelpResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *HelpResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Examples) > 0 { + for iNdEx := len(m.Examples) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Examples[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PluginInventory_InventorySpec) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PluginInventory_InventorySpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PluginInventory_InventorySpec) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.EmptySpec) > 0 { + i -= len(m.EmptySpec) + copy(dAtA[i:], m.EmptySpec) + i = encodeVarint(dAtA, i, uint64(len(m.EmptySpec))) + i-- + dAtA[i] = 0x12 + } + if m.ModuleRef != nil { + size, err := m.ModuleRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PluginInventory) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PluginInventory) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PluginInventory) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Specs) > 0 { + for iNdEx := len(m.Specs) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Specs[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *StartTaskResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StartTaskResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *StartTaskResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarint(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *ProcessStartRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -238,163 +534,123 @@ func (m *LookupPathResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *HelpRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil +func encodeVarint(dAtA []byte, offset int, v uint64) int { + offset -= sov(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + dAtA[offset] = uint8(v) + return base } - -func (m *HelpRequest) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *HelpRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *HelpRequest) SizeVT() (n int) { if m == nil { - return 0, nil + return 0 } - i := len(dAtA) - _ = i var l int _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } if m.ModuleReference != nil { - size, err := m.ModuleReference.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + l = m.ModuleReference.SizeVT() + n += 1 + l + sov(uint64(l)) } - return len(dAtA) - i, nil + n += len(m.unknownFields) + return n } -func (m *TaskExample) MarshalVT() (dAtA []byte, err error) { +func (m *TaskExample) SizeVT() (n int) { if m == nil { - return nil, nil + return 0 } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TaskExample) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *TaskExample) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i var l int _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sov(uint64(l)) } if m.TaskSpec != nil { - size, err := m.TaskSpec.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a + l = m.TaskSpec.SizeVT() + n += 1 + l + sov(uint64(l)) } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarint(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + n += len(m.unknownFields) + return n } -func (m *HelpResponse) MarshalVT() (dAtA []byte, err error) { +func (m *HelpResponse) SizeVT() (n int) { if m == nil { - return nil, nil + return 0 } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HelpResponse) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *HelpResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i var l int _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sov(uint64(l)) } if len(m.Examples) > 0 { - for iNdEx := len(m.Examples) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Examples[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a + for _, e := range m.Examples { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) } } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarint(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 + n += len(m.unknownFields) + return n +} + +func (m *PluginInventory_InventorySpec) SizeVT() (n int) { + if m == nil { + return 0 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + var l int + _ = l + if m.ModuleRef != nil { + l = m.ModuleRef.SizeVT() + n += 1 + l + sov(uint64(l)) } - return len(dAtA) - i, nil + l = len(m.EmptySpec) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *PluginInventory) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Specs) > 0 { + for _, e := range m.Specs { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *StartTaskResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Error) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n } func (m *ProcessStartRequest) SizeVT() (n int) { @@ -486,66 +742,688 @@ func (m *LookupPathResponse) SizeVT() (n int) { return n } -func (m *HelpRequest) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ModuleReference != nil { - l = m.ModuleReference.SizeVT() - n += 1 + l + sov(uint64(l)) - } - n += len(m.unknownFields) - return n +func sov(x uint64) (n int) { + return (bits.Len64(x|1) + 6) / 7 } - -func (m *TaskExample) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sov(uint64(l)) - } - if m.TaskSpec != nil { - l = m.TaskSpec.SizeVT() - n += 1 + l + sov(uint64(l)) - } - n += len(m.unknownFields) - return n +func soz(x uint64) (n int) { + return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } - -func (m *HelpResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sov(uint64(l)) - } - if len(m.Examples) > 0 { - for _, e := range m.Examples { - l = e.SizeVT() - n += 1 + l + sov(uint64(l)) +func (m *HelpRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HelpRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HelpRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleReference", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModuleReference == nil { + m.ModuleReference = &v1.ModuleReference{} + } + if err := m.ModuleReference.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy } } - n += len(m.unknownFields) - return n -} + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskExample) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TaskExample: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskExample: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskSpec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskSpec == nil { + m.TaskSpec = &v1.TaskSpec{} + } + if err := m.TaskSpec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HelpResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HelpResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HelpResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Examples", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Examples = append(m.Examples, &TaskExample{}) + if err := m.Examples[len(m.Examples)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PluginInventory_InventorySpec) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PluginInventory_InventorySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PluginInventory_InventorySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModuleRef == nil { + m.ModuleRef = &v1.ModuleReference{} + } + if err := m.ModuleRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EmptySpec", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EmptySpec = append(m.EmptySpec[:0], dAtA[iNdEx:postIndex]...) + if m.EmptySpec == nil { + m.EmptySpec = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PluginInventory) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PluginInventory: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PluginInventory: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Specs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Specs = append(m.Specs, &PluginInventory_InventorySpec{}) + if err := m.Specs[len(m.Specs)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StartTaskResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StartTaskResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StartTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ProcessStartRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1188,390 +2066,88 @@ func (m *LookupPathResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *HelpRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HelpRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HelpRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModuleReference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ModuleReference == nil { - m.ModuleReference = &ModuleReference{} - } - if err := m.ModuleReference.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskExample) UnmarshalVT(dAtA []byte) error { +func skip(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { - preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return 0, ErrIntOverflow } if iNdEx >= l { - return io.ErrUnexpectedEOF + return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskExample: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskExample: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 + switch wireType { + case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return 0, ErrIntOverflow } if iNdEx >= l { - return io.ErrUnexpectedEOF + return 0, io.ErrUnexpectedEOF } - b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { + if dAtA[iNdEx-1] < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + case 1: + iNdEx += 8 case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 + var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return 0, ErrIntOverflow } if iNdEx >= l { - return io.ErrUnexpectedEOF + return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLength + if length < 0 { + return 0, ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + iNdEx += length case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskSpec", wireType) + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroup } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TaskSpec == nil { - m.TaskSpec = &TaskSpec{} - } - if err := m.TaskSpec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + depth-- + case 5: + iNdEx += 4 default: - iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLength + } + if depth == 0 { + return iNdEx, nil } } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return 0, io.ErrUnexpectedEOF } -func (m *HelpResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HelpResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HelpResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Examples", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Examples = append(m.Examples, &TaskExample{}) - if err := m.Examples[len(m.Examples)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} +var ( + ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflow = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") +) diff --git a/go.mod b/go.mod index 9606ce7..a212319 100644 --- a/go.mod +++ b/go.mod @@ -10,6 +10,7 @@ require ( ) require ( + connectrpc.com/connect v1.11.1 // indirect github.com/golang/protobuf v1.5.3 // indirect golang.org/x/net v0.14.0 // indirect golang.org/x/sys v0.11.0 // indirect diff --git a/go.sum b/go.sum index ddcffb6..9f3d092 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +connectrpc.com/connect v1.11.1 h1:dqRwblixqkVh+OFBOOL1yIf1jS/yP0MSJLijRj29bFg= +connectrpc.com/connect v1.11.1/go.mod h1:3AGaO6RRGMx5IKFfqbe3hvK1NqLosFNP2BxDYTPmNPo= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= diff --git a/rpc/v1/executor.proto b/remote/v1/executor.proto similarity index 85% rename from rpc/v1/executor.proto rename to remote/v1/executor.proto index 0e5477d..5ed61d9 100644 --- a/rpc/v1/executor.proto +++ b/remote/v1/executor.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package buildr.rpc.v1; -import "rpc/v1/spec.proto"; +import "common/v1/spec.proto"; message Buildr { message Repo { @@ -73,14 +73,6 @@ message Result { string error = 2; } -message PluginInventory { - message InventorySpec { - ModuleReference module_ref = 1; - bytes empty_spec = 2; - } - repeated InventorySpec specs = 1; -} - message ExecutionClientMessage { oneof meta { bytes message_id = 1; @@ -111,4 +103,17 @@ message ExecutionServerMessage { service ExecutorService { rpc ExecuteStream(stream ExecutionClientMessage) returns (stream ExecutionServerMessage); +} + +message RegisterPluginModuleRequest { + ModuleReference module_ref = 1; + bytes plugin_payload = 2; +} + +message RegisterPluginModuleResponse { + +} + +service PluginManagerService { + rpc RegisterPluginModule(RegisterPluginModuleRequest) returns (RegisterPluginModuleResponse); } \ No newline at end of file diff --git a/rpc/v1/wasi.proto b/rpc/v1/wasi.proto deleted file mode 100644 index c16625d..0000000 --- a/rpc/v1/wasi.proto +++ /dev/null @@ -1,44 +0,0 @@ -syntax = "proto3"; - -package buildr.rpc.v1; - -import "rpc/v1/spec.proto"; - -message ProcessStartRequest { - string command = 1; - repeated string args = 2; - string working_directory = 3; - map environment = 4; - bytes stdin = 5; -} - -message ProcessStartResponse { - int32 exit_code = 1; - string error = 2; - bytes stderr = 3; -} - -message LookupPathRequest { - string command = 1; -} - -message LookupPathResponse { - string path = 1; - string error = 2; -} - -message HelpRequest { - ModuleReference module_reference = 1; -} - -message TaskExample { - string name = 1; - string description = 2; - TaskSpec task_spec = 3; -} - -message HelpResponse { - string name = 1; - string description = 2; - repeated TaskExample examples = 3; -} \ No newline at end of file diff --git a/wasi/v1/wasi.proto b/wasi/v1/wasi.proto new file mode 100644 index 0000000..101c0c2 --- /dev/null +++ b/wasi/v1/wasi.proto @@ -0,0 +1,67 @@ +syntax = "proto3"; + +package buildr.rpc.v1; + +import "common/v1/spec.proto"; +import "remote/v1/executor.proto"; + +message HelpRequest { + ModuleReference module_reference = 1; +} + +message TaskExample { + string name = 1; + string description = 2; + TaskSpec task_spec = 3; +} + +message HelpResponse { + string name = 1; + string description = 2; + repeated TaskExample examples = 3; +} + +message PluginInventory { + message InventorySpec { + ModuleReference module_ref = 1; + bytes empty_spec = 2; + } + repeated InventorySpec specs = 1; +} + +message StartTaskResponse { + string error = 1; +} + +service WasiExecutorService { + rpc StartTask(StartTaskRequest) returns (StartTaskResponse); + rpc Help(HelpRequest) returns (HelpResponse); +} + +message ProcessStartRequest { + string command = 1; + repeated string args = 2; + string working_directory = 3; + map environment = 4; + bytes stdin = 5; +} + +message ProcessStartResponse { + int32 exit_code = 1; + string error = 2; + bytes stderr = 3; +} + +message LookupPathRequest { + string command = 1; +} + +message LookupPathResponse { + string path = 1; + string error = 2; +} + +service ExecutorHostService { + rpc ProcessStart(ProcessStartRequest) returns (ProcessStartResponse); + rpc LookupPath(LookupPathRequest) returns (LookupPathResponse); +} \ No newline at end of file