diff --git a/build/stack/protobuf/package/v1alpha2/package.pb.go b/build/stack/protobuf/package/v1alpha2/package.pb.go index fd240b8..fcbcab5 100644 --- a/build/stack/protobuf/package/v1alpha2/package.pb.go +++ b/build/stack/protobuf/package/v1alpha2/package.pb.go @@ -23,6 +23,127 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type ProtoPlugin_Lang int32 + +const ( + ProtoPlugin_LANG_UNDEFINED ProtoPlugin_Lang = 0 + ProtoPlugin_LANG_C ProtoPlugin_Lang = 1 + ProtoPlugin_LANG_CLOJURE ProtoPlugin_Lang = 2 + ProtoPlugin_LANG_CPP ProtoPlugin_Lang = 3 + ProtoPlugin_LANG_CSHARP ProtoPlugin_Lang = 4 + ProtoPlugin_LANG_D ProtoPlugin_Lang = 5 + ProtoPlugin_LANG_DART ProtoPlugin_Lang = 6 + ProtoPlugin_LANG_GO ProtoPlugin_Lang = 7 + ProtoPlugin_LANG_HASKELL ProtoPlugin_Lang = 8 + ProtoPlugin_LANG_JAVA ProtoPlugin_Lang = 9 + ProtoPlugin_LANG_JS ProtoPlugin_Lang = 10 + ProtoPlugin_LANG_JULIA ProtoPlugin_Lang = 11 + ProtoPlugin_LANG_JVM ProtoPlugin_Lang = 12 + ProtoPlugin_LANG_KOTLIN ProtoPlugin_Lang = 13 + ProtoPlugin_LANG_LUA ProtoPlugin_Lang = 14 + ProtoPlugin_LANG_OBJC ProtoPlugin_Lang = 15 + ProtoPlugin_LANG_OTHER ProtoPlugin_Lang = 16 + ProtoPlugin_LANG_PERL ProtoPlugin_Lang = 17 + ProtoPlugin_LANG_PHP ProtoPlugin_Lang = 18 + ProtoPlugin_LANG_PYTHON ProtoPlugin_Lang = 19 + ProtoPlugin_LANG_R ProtoPlugin_Lang = 20 + ProtoPlugin_LANG_RUBY ProtoPlugin_Lang = 21 + ProtoPlugin_LANG_RUST ProtoPlugin_Lang = 22 + ProtoPlugin_LANG_SCALA ProtoPlugin_Lang = 23 + ProtoPlugin_LANG_STARLARK ProtoPlugin_Lang = 24 + ProtoPlugin_LANG_SWIFT ProtoPlugin_Lang = 25 + ProtoPlugin_LANG_TS ProtoPlugin_Lang = 26 +) + +// Enum value maps for ProtoPlugin_Lang. +var ( + ProtoPlugin_Lang_name = map[int32]string{ + 0: "LANG_UNDEFINED", + 1: "LANG_C", + 2: "LANG_CLOJURE", + 3: "LANG_CPP", + 4: "LANG_CSHARP", + 5: "LANG_D", + 6: "LANG_DART", + 7: "LANG_GO", + 8: "LANG_HASKELL", + 9: "LANG_JAVA", + 10: "LANG_JS", + 11: "LANG_JULIA", + 12: "LANG_JVM", + 13: "LANG_KOTLIN", + 14: "LANG_LUA", + 15: "LANG_OBJC", + 16: "LANG_OTHER", + 17: "LANG_PERL", + 18: "LANG_PHP", + 19: "LANG_PYTHON", + 20: "LANG_R", + 21: "LANG_RUBY", + 22: "LANG_RUST", + 23: "LANG_SCALA", + 24: "LANG_STARLARK", + 25: "LANG_SWIFT", + 26: "LANG_TS", + } + ProtoPlugin_Lang_value = map[string]int32{ + "LANG_UNDEFINED": 0, + "LANG_C": 1, + "LANG_CLOJURE": 2, + "LANG_CPP": 3, + "LANG_CSHARP": 4, + "LANG_D": 5, + "LANG_DART": 6, + "LANG_GO": 7, + "LANG_HASKELL": 8, + "LANG_JAVA": 9, + "LANG_JS": 10, + "LANG_JULIA": 11, + "LANG_JVM": 12, + "LANG_KOTLIN": 13, + "LANG_LUA": 14, + "LANG_OBJC": 15, + "LANG_OTHER": 16, + "LANG_PERL": 17, + "LANG_PHP": 18, + "LANG_PYTHON": 19, + "LANG_R": 20, + "LANG_RUBY": 21, + "LANG_RUST": 22, + "LANG_SCALA": 23, + "LANG_STARLARK": 24, + "LANG_SWIFT": 25, + "LANG_TS": 26, + } +) + +func (x ProtoPlugin_Lang) Enum() *ProtoPlugin_Lang { + p := new(ProtoPlugin_Lang) + *p = x + return p +} + +func (x ProtoPlugin_Lang) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProtoPlugin_Lang) Descriptor() protoreflect.EnumDescriptor { + return file_build_stack_protobuf_package_v1alpha2_package_proto_enumTypes[0].Descriptor() +} + +func (ProtoPlugin_Lang) Type() protoreflect.EnumType { + return &file_build_stack_protobuf_package_v1alpha2_package_proto_enumTypes[0] +} + +func (x ProtoPlugin_Lang) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProtoPlugin_Lang.Descriptor instead. +func (ProtoPlugin_Lang) EnumDescriptor() ([]byte, []int) { + return file_build_stack_protobuf_package_v1alpha2_package_proto_rawDescGZIP(), []int{8, 0} +} + type ProtoRepository struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -615,6 +736,172 @@ func (x *GetProtoPackageRequest) GetOperationName() string { return "" } +type ProtoPlugin struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Archive *ProtoArchive `protobuf:"bytes,1,opt,name=archive,proto3" json:"archive,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + PluginUrl string `protobuf:"bytes,4,opt,name=plugin_url,json=pluginUrl,proto3" json:"plugin_url,omitempty"` + Lang ProtoPlugin_Lang `protobuf:"varint,5,opt,name=lang,proto3,enum=build.stack.protobuf.package.v1alpha2.ProtoPlugin_Lang" json:"lang,omitempty"` + Image *ProtoPlugin_ContainerImage `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"` +} + +func (x *ProtoPlugin) Reset() { + *x = ProtoPlugin{} + if protoimpl.UnsafeEnabled { + mi := &file_build_stack_protobuf_package_v1alpha2_package_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProtoPlugin) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProtoPlugin) ProtoMessage() {} + +func (x *ProtoPlugin) ProtoReflect() protoreflect.Message { + mi := &file_build_stack_protobuf_package_v1alpha2_package_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 ProtoPlugin.ProtoReflect.Descriptor instead. +func (*ProtoPlugin) Descriptor() ([]byte, []int) { + return file_build_stack_protobuf_package_v1alpha2_package_proto_rawDescGZIP(), []int{8} +} + +func (x *ProtoPlugin) GetArchive() *ProtoArchive { + if x != nil { + return x.Archive + } + return nil +} + +func (x *ProtoPlugin) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ProtoPlugin) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *ProtoPlugin) GetPluginUrl() string { + if x != nil { + return x.PluginUrl + } + return "" +} + +func (x *ProtoPlugin) GetLang() ProtoPlugin_Lang { + if x != nil { + return x.Lang + } + return ProtoPlugin_LANG_UNDEFINED +} + +func (x *ProtoPlugin) GetImage() *ProtoPlugin_ContainerImage { + if x != nil { + return x.Image + } + return nil +} + +type ProtoPlugin_ContainerImage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Registry string `protobuf:"bytes,1,opt,name=registry,proto3" json:"registry,omitempty"` + Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + Sha256 string `protobuf:"bytes,3,opt,name=sha256,proto3" json:"sha256,omitempty"` + Entrypoint string `protobuf:"bytes,4,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"` + Env []string `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"` +} + +func (x *ProtoPlugin_ContainerImage) Reset() { + *x = ProtoPlugin_ContainerImage{} + if protoimpl.UnsafeEnabled { + mi := &file_build_stack_protobuf_package_v1alpha2_package_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProtoPlugin_ContainerImage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProtoPlugin_ContainerImage) ProtoMessage() {} + +func (x *ProtoPlugin_ContainerImage) ProtoReflect() protoreflect.Message { + mi := &file_build_stack_protobuf_package_v1alpha2_package_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 ProtoPlugin_ContainerImage.ProtoReflect.Descriptor instead. +func (*ProtoPlugin_ContainerImage) Descriptor() ([]byte, []int) { + return file_build_stack_protobuf_package_v1alpha2_package_proto_rawDescGZIP(), []int{8, 0} +} + +func (x *ProtoPlugin_ContainerImage) GetRegistry() string { + if x != nil { + return x.Registry + } + return "" +} + +func (x *ProtoPlugin_ContainerImage) GetRepository() string { + if x != nil { + return x.Repository + } + return "" +} + +func (x *ProtoPlugin_ContainerImage) GetSha256() string { + if x != nil { + return x.Sha256 + } + return "" +} + +func (x *ProtoPlugin_ContainerImage) GetEntrypoint() string { + if x != nil { + return x.Entrypoint + } + return "" +} + +func (x *ProtoPlugin_ContainerImage) GetEnv() []string { + if x != nil { + return x.Env + } + return nil +} + var File_build_stack_protobuf_package_v1alpha2_package_proto protoreflect.FileDescriptor var file_build_stack_protobuf_package_v1alpha2_package_proto_rawDesc = []byte{ @@ -726,29 +1013,86 @@ var file_build_stack_protobuf_package_v1alpha2_package_proto_rawDesc = []byte{ 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, - 0x61, 0x6d, 0x65, 0x32, 0x95, 0x02, 0x0a, 0x08, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, - 0x12, 0x7c, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x40, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x03, 0x90, 0x02, 0x02, 0x28, 0x01, 0x12, 0x8a, - 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x12, 0x3d, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, - 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x33, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x3e, 0x5a, 0x3c, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x62, - 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x61, 0x6d, 0x65, 0x22, 0x8f, 0x07, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x12, 0x4d, 0x0a, 0x07, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x52, 0x07, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x75, 0x72, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x55, + 0x72, 0x6c, 0x12, 0x4b, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x37, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x6e, 0x67, 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, + 0x57, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, + 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, + 0x65, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x1a, 0x96, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x32, 0x35, + 0x36, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x12, + 0x1e, 0x0a, 0x0a, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, + 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, + 0x76, 0x22, 0xa1, 0x03, 0x0a, 0x04, 0x4c, 0x61, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, + 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, + 0x0a, 0x06, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x43, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x41, + 0x4e, 0x47, 0x5f, 0x43, 0x4c, 0x4f, 0x4a, 0x55, 0x52, 0x45, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, + 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x43, 0x50, 0x50, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x41, + 0x4e, 0x47, 0x5f, 0x43, 0x53, 0x48, 0x41, 0x52, 0x50, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x4c, + 0x41, 0x4e, 0x47, 0x5f, 0x44, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x41, 0x4e, 0x47, 0x5f, + 0x44, 0x41, 0x52, 0x54, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x47, + 0x4f, 0x10, 0x07, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x48, 0x41, 0x53, 0x4b, + 0x45, 0x4c, 0x4c, 0x10, 0x08, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x4a, 0x41, + 0x56, 0x41, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x4a, 0x53, 0x10, + 0x0a, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x4a, 0x55, 0x4c, 0x49, 0x41, 0x10, + 0x0b, 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x4a, 0x56, 0x4d, 0x10, 0x0c, 0x12, + 0x0f, 0x0a, 0x0b, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x4b, 0x4f, 0x54, 0x4c, 0x49, 0x4e, 0x10, 0x0d, + 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x4c, 0x55, 0x41, 0x10, 0x0e, 0x12, 0x0d, + 0x0a, 0x09, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x4f, 0x42, 0x4a, 0x43, 0x10, 0x0f, 0x12, 0x0e, 0x0a, + 0x0a, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x10, 0x12, 0x0d, 0x0a, + 0x09, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x50, 0x45, 0x52, 0x4c, 0x10, 0x11, 0x12, 0x0c, 0x0a, 0x08, + 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x50, 0x48, 0x50, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x41, + 0x4e, 0x47, 0x5f, 0x50, 0x59, 0x54, 0x48, 0x4f, 0x4e, 0x10, 0x13, 0x12, 0x0a, 0x0a, 0x06, 0x4c, + 0x41, 0x4e, 0x47, 0x5f, 0x52, 0x10, 0x14, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x41, 0x4e, 0x47, 0x5f, + 0x52, 0x55, 0x42, 0x59, 0x10, 0x15, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x52, + 0x55, 0x53, 0x54, 0x10, 0x16, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x53, 0x43, + 0x41, 0x4c, 0x41, 0x10, 0x17, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x41, 0x4e, 0x47, 0x5f, 0x53, 0x54, + 0x41, 0x52, 0x4c, 0x41, 0x52, 0x4b, 0x10, 0x18, 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x41, 0x4e, 0x47, + 0x5f, 0x53, 0x57, 0x49, 0x46, 0x54, 0x10, 0x19, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x41, 0x4e, 0x47, + 0x5f, 0x54, 0x53, 0x10, 0x1a, 0x32, 0x95, 0x02, 0x0a, 0x08, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x73, 0x12, 0x7c, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x40, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x03, 0x90, 0x02, 0x02, 0x28, 0x01, + 0x12, 0x8a, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x3e, 0x5a, + 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x62, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -763,39 +1107,46 @@ func file_build_stack_protobuf_package_v1alpha2_package_proto_rawDescGZIP() []by return file_build_stack_protobuf_package_v1alpha2_package_proto_rawDescData } -var file_build_stack_protobuf_package_v1alpha2_package_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_build_stack_protobuf_package_v1alpha2_package_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_build_stack_protobuf_package_v1alpha2_package_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_build_stack_protobuf_package_v1alpha2_package_proto_goTypes = []interface{}{ - (*ProtoRepository)(nil), // 0: build.stack.protobuf.package.v1alpha2.ProtoRepository - (*ProtoArchive)(nil), // 1: build.stack.protobuf.package.v1alpha2.ProtoArchive - (*ProtoFile)(nil), // 2: build.stack.protobuf.package.v1alpha2.ProtoFile - (*ProtoCompiler)(nil), // 3: build.stack.protobuf.package.v1alpha2.ProtoCompiler - (*ProtoPackage)(nil), // 4: build.stack.protobuf.package.v1alpha2.ProtoPackage - (*ProtoPackageSet)(nil), // 5: build.stack.protobuf.package.v1alpha2.ProtoPackageSet - (*CreateProtoPackageRequest)(nil), // 6: build.stack.protobuf.package.v1alpha2.CreateProtoPackageRequest - (*GetProtoPackageRequest)(nil), // 7: build.stack.protobuf.package.v1alpha2.GetProtoPackageRequest - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp - (*descriptorpb.FileDescriptorProto)(nil), // 9: google.protobuf.FileDescriptorProto - (*longrunningpb.Operation)(nil), // 10: google.longrunning.Operation + (ProtoPlugin_Lang)(0), // 0: build.stack.protobuf.package.v1alpha2.ProtoPlugin.Lang + (*ProtoRepository)(nil), // 1: build.stack.protobuf.package.v1alpha2.ProtoRepository + (*ProtoArchive)(nil), // 2: build.stack.protobuf.package.v1alpha2.ProtoArchive + (*ProtoFile)(nil), // 3: build.stack.protobuf.package.v1alpha2.ProtoFile + (*ProtoCompiler)(nil), // 4: build.stack.protobuf.package.v1alpha2.ProtoCompiler + (*ProtoPackage)(nil), // 5: build.stack.protobuf.package.v1alpha2.ProtoPackage + (*ProtoPackageSet)(nil), // 6: build.stack.protobuf.package.v1alpha2.ProtoPackageSet + (*CreateProtoPackageRequest)(nil), // 7: build.stack.protobuf.package.v1alpha2.CreateProtoPackageRequest + (*GetProtoPackageRequest)(nil), // 8: build.stack.protobuf.package.v1alpha2.GetProtoPackageRequest + (*ProtoPlugin)(nil), // 9: build.stack.protobuf.package.v1alpha2.ProtoPlugin + (*ProtoPlugin_ContainerImage)(nil), // 10: build.stack.protobuf.package.v1alpha2.ProtoPlugin.ContainerImage + (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*descriptorpb.FileDescriptorProto)(nil), // 12: google.protobuf.FileDescriptorProto + (*longrunningpb.Operation)(nil), // 13: google.longrunning.Operation } var file_build_stack_protobuf_package_v1alpha2_package_proto_depIdxs = []int32{ - 0, // 0: build.stack.protobuf.package.v1alpha2.ProtoArchive.repository:type_name -> build.stack.protobuf.package.v1alpha2.ProtoRepository - 8, // 1: build.stack.protobuf.package.v1alpha2.ProtoArchive.commit_time:type_name -> google.protobuf.Timestamp - 9, // 2: build.stack.protobuf.package.v1alpha2.ProtoFile.file:type_name -> google.protobuf.FileDescriptorProto - 1, // 3: build.stack.protobuf.package.v1alpha2.ProtoPackage.archive:type_name -> build.stack.protobuf.package.v1alpha2.ProtoArchive - 3, // 4: build.stack.protobuf.package.v1alpha2.ProtoPackage.compiler:type_name -> build.stack.protobuf.package.v1alpha2.ProtoCompiler - 2, // 5: build.stack.protobuf.package.v1alpha2.ProtoPackage.files:type_name -> build.stack.protobuf.package.v1alpha2.ProtoFile - 8, // 6: build.stack.protobuf.package.v1alpha2.ProtoPackage.created_at:type_name -> google.protobuf.Timestamp - 4, // 7: build.stack.protobuf.package.v1alpha2.ProtoPackageSet.packages:type_name -> build.stack.protobuf.package.v1alpha2.ProtoPackage - 4, // 8: build.stack.protobuf.package.v1alpha2.CreateProtoPackageRequest.pkg:type_name -> build.stack.protobuf.package.v1alpha2.ProtoPackage - 6, // 9: build.stack.protobuf.package.v1alpha2.Packages.CreateProtoPackage:input_type -> build.stack.protobuf.package.v1alpha2.CreateProtoPackageRequest - 7, // 10: build.stack.protobuf.package.v1alpha2.Packages.GetProtoPackage:input_type -> build.stack.protobuf.package.v1alpha2.GetProtoPackageRequest - 10, // 11: build.stack.protobuf.package.v1alpha2.Packages.CreateProtoPackage:output_type -> google.longrunning.Operation - 4, // 12: build.stack.protobuf.package.v1alpha2.Packages.GetProtoPackage:output_type -> build.stack.protobuf.package.v1alpha2.ProtoPackage - 11, // [11:13] is the sub-list for method output_type - 9, // [9:11] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 1, // 0: build.stack.protobuf.package.v1alpha2.ProtoArchive.repository:type_name -> build.stack.protobuf.package.v1alpha2.ProtoRepository + 11, // 1: build.stack.protobuf.package.v1alpha2.ProtoArchive.commit_time:type_name -> google.protobuf.Timestamp + 12, // 2: build.stack.protobuf.package.v1alpha2.ProtoFile.file:type_name -> google.protobuf.FileDescriptorProto + 2, // 3: build.stack.protobuf.package.v1alpha2.ProtoPackage.archive:type_name -> build.stack.protobuf.package.v1alpha2.ProtoArchive + 4, // 4: build.stack.protobuf.package.v1alpha2.ProtoPackage.compiler:type_name -> build.stack.protobuf.package.v1alpha2.ProtoCompiler + 3, // 5: build.stack.protobuf.package.v1alpha2.ProtoPackage.files:type_name -> build.stack.protobuf.package.v1alpha2.ProtoFile + 11, // 6: build.stack.protobuf.package.v1alpha2.ProtoPackage.created_at:type_name -> google.protobuf.Timestamp + 5, // 7: build.stack.protobuf.package.v1alpha2.ProtoPackageSet.packages:type_name -> build.stack.protobuf.package.v1alpha2.ProtoPackage + 5, // 8: build.stack.protobuf.package.v1alpha2.CreateProtoPackageRequest.pkg:type_name -> build.stack.protobuf.package.v1alpha2.ProtoPackage + 2, // 9: build.stack.protobuf.package.v1alpha2.ProtoPlugin.archive:type_name -> build.stack.protobuf.package.v1alpha2.ProtoArchive + 0, // 10: build.stack.protobuf.package.v1alpha2.ProtoPlugin.lang:type_name -> build.stack.protobuf.package.v1alpha2.ProtoPlugin.Lang + 10, // 11: build.stack.protobuf.package.v1alpha2.ProtoPlugin.image:type_name -> build.stack.protobuf.package.v1alpha2.ProtoPlugin.ContainerImage + 7, // 12: build.stack.protobuf.package.v1alpha2.Packages.CreateProtoPackage:input_type -> build.stack.protobuf.package.v1alpha2.CreateProtoPackageRequest + 8, // 13: build.stack.protobuf.package.v1alpha2.Packages.GetProtoPackage:input_type -> build.stack.protobuf.package.v1alpha2.GetProtoPackageRequest + 13, // 14: build.stack.protobuf.package.v1alpha2.Packages.CreateProtoPackage:output_type -> google.longrunning.Operation + 5, // 15: build.stack.protobuf.package.v1alpha2.Packages.GetProtoPackage:output_type -> build.stack.protobuf.package.v1alpha2.ProtoPackage + 14, // [14:16] is the sub-list for method output_type + 12, // [12:14] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_build_stack_protobuf_package_v1alpha2_package_proto_init() } @@ -900,19 +1251,44 @@ func file_build_stack_protobuf_package_v1alpha2_package_proto_init() { return nil } } + file_build_stack_protobuf_package_v1alpha2_package_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProtoPlugin); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_build_stack_protobuf_package_v1alpha2_package_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProtoPlugin_ContainerImage); 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_build_stack_protobuf_package_v1alpha2_package_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, + NumEnums: 1, + NumMessages: 10, NumExtensions: 0, NumServices: 1, }, GoTypes: file_build_stack_protobuf_package_v1alpha2_package_proto_goTypes, DependencyIndexes: file_build_stack_protobuf_package_v1alpha2_package_proto_depIdxs, + EnumInfos: file_build_stack_protobuf_package_v1alpha2_package_proto_enumTypes, MessageInfos: file_build_stack_protobuf_package_v1alpha2_package_proto_msgTypes, }.Build() File_build_stack_protobuf_package_v1alpha2_package_proto = out.File diff --git a/build/stack/protobuf/package/v1alpha2/package.proto b/build/stack/protobuf/package/v1alpha2/package.proto index 4d396bb..262d7be 100644 --- a/build/stack/protobuf/package/v1alpha2/package.proto +++ b/build/stack/protobuf/package/v1alpha2/package.proto @@ -151,3 +151,58 @@ service Packages { option idempotency_level = NO_SIDE_EFFECTS; } } + + +// ProtoPlugin represents a protobuf compiler plugin. +message ProtoPlugin { + // Lang classifies a plugin into a discrete set of languages. + enum Lang { + LANG_UNDEFINED = 0; + LANG_C = 1; + LANG_CLOJURE = 2; + LANG_CPP = 3; + LANG_CSHARP = 4; + LANG_D = 5; + LANG_DART = 6; + LANG_GO = 7; + LANG_HASKELL = 8; + LANG_JAVA = 9; + LANG_JS = 10; + LANG_JULIA = 11; + LANG_JVM = 12; + LANG_KOTLIN = 13; + LANG_LUA = 14; + LANG_OBJC = 15; + LANG_OTHER = 16; + LANG_PERL = 17; + LANG_PHP = 18; + LANG_PYTHON = 19; + LANG_R = 20; + LANG_RUBY = 21; + LANG_RUST = 22; + LANG_SCALA = 23; + LANG_STARLARK = 24; + LANG_SWIFT = 25; + LANG_TS = 26; + } + // ContainerImage describes an image + message ContainerImage { + string registry = 1; + string repository = 2; + string sha256 = 3; + string entrypoint = 4; + repeated string env = 5; + } + // The archive where the plugin source resides. + ProtoArchive archive = 1; + // the name for the plugin (e.g. 'protoc-gen-go'). + string name = 2; + // the full name of the plugin (e.g. github.com/stackb/apis/{commit}/plugin/protoc-gen-go) + string full_name = 3; + // URL for this plugin (e.g. https://protopkg.com/github.com/stackb/apis/{commit}/plugin/protoc-gen-go) + string plugin_url = 4; + // the primary language of the plugin + Lang lang = 5; + // the container image for plugin. + ContainerImage image = 6; +}