Files
certimate/pkg/plugin/proto/plugin.pb.go
T
2026-07-24 16:34:13 +08:00

507 lines
18 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.29.3
// source: pkg/plugin/proto/plugin.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 GetMetadataRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMetadataRequest) Reset() {
*x = GetMetadataRequest{}
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMetadataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMetadataRequest) ProtoMessage() {}
func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message {
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetMetadataRequest) Descriptor() ([]byte, []int) {
return file_pkg_plugin_proto_plugin_proto_rawDescGZIP(), []int{0}
}
type GetMetadataResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ProviderType string `protobuf:"bytes,1,opt,name=provider_type,json=providerType,proto3" json:"provider_type,omitempty"`
AccessProviderType string `protobuf:"bytes,2,opt,name=access_provider_type,json=accessProviderType,proto3" json:"access_provider_type,omitempty"`
ProtocolVersion uint32 `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
DeployCategory string `protobuf:"bytes,4,opt,name=deploy_category,json=deployCategory,proto3" json:"deploy_category,omitempty"`
DeployDisplayNameKey string `protobuf:"bytes,5,opt,name=deploy_display_name_key,json=deployDisplayNameKey,proto3" json:"deploy_display_name_key,omitempty"`
AccessDisplayNameKey string `protobuf:"bytes,6,opt,name=access_display_name_key,json=accessDisplayNameKey,proto3" json:"access_display_name_key,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMetadataResponse) Reset() {
*x = GetMetadataResponse{}
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMetadataResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMetadataResponse) ProtoMessage() {}
func (x *GetMetadataResponse) ProtoReflect() protoreflect.Message {
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMetadataResponse.ProtoReflect.Descriptor instead.
func (*GetMetadataResponse) Descriptor() ([]byte, []int) {
return file_pkg_plugin_proto_plugin_proto_rawDescGZIP(), []int{1}
}
func (x *GetMetadataResponse) GetProviderType() string {
if x != nil {
return x.ProviderType
}
return ""
}
func (x *GetMetadataResponse) GetAccessProviderType() string {
if x != nil {
return x.AccessProviderType
}
return ""
}
func (x *GetMetadataResponse) GetProtocolVersion() uint32 {
if x != nil {
return x.ProtocolVersion
}
return 0
}
func (x *GetMetadataResponse) GetDeployCategory() string {
if x != nil {
return x.DeployCategory
}
return ""
}
func (x *GetMetadataResponse) GetDeployDisplayNameKey() string {
if x != nil {
return x.DeployDisplayNameKey
}
return ""
}
func (x *GetMetadataResponse) GetAccessDisplayNameKey() string {
if x != nil {
return x.AccessDisplayNameKey
}
return ""
}
type GetConfigSchemaRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetConfigSchemaRequest) Reset() {
*x = GetConfigSchemaRequest{}
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetConfigSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetConfigSchemaRequest) ProtoMessage() {}
func (x *GetConfigSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetConfigSchemaRequest.ProtoReflect.Descriptor instead.
func (*GetConfigSchemaRequest) Descriptor() ([]byte, []int) {
return file_pkg_plugin_proto_plugin_proto_rawDescGZIP(), []int{2}
}
type StringMap struct {
state protoimpl.MessageState `protogen:"open.v1"`
Entries map[string]string `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StringMap) Reset() {
*x = StringMap{}
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StringMap) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StringMap) ProtoMessage() {}
func (x *StringMap) ProtoReflect() protoreflect.Message {
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StringMap.ProtoReflect.Descriptor instead.
func (*StringMap) Descriptor() ([]byte, []int) {
return file_pkg_plugin_proto_plugin_proto_rawDescGZIP(), []int{3}
}
func (x *StringMap) GetEntries() map[string]string {
if x != nil {
return x.Entries
}
return nil
}
type GetConfigSchemaResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
AccessSchemaJson []byte `protobuf:"bytes,1,opt,name=access_schema_json,json=accessSchemaJson,proto3" json:"access_schema_json,omitempty"`
DeploySchemaJson []byte `protobuf:"bytes,2,opt,name=deploy_schema_json,json=deploySchemaJson,proto3" json:"deploy_schema_json,omitempty"`
I18NResources map[string]*StringMap `protobuf:"bytes,3,rep,name=i18n_resources,json=i18nResources,proto3" json:"i18n_resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetConfigSchemaResponse) Reset() {
*x = GetConfigSchemaResponse{}
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetConfigSchemaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetConfigSchemaResponse) ProtoMessage() {}
func (x *GetConfigSchemaResponse) ProtoReflect() protoreflect.Message {
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetConfigSchemaResponse.ProtoReflect.Descriptor instead.
func (*GetConfigSchemaResponse) Descriptor() ([]byte, []int) {
return file_pkg_plugin_proto_plugin_proto_rawDescGZIP(), []int{4}
}
func (x *GetConfigSchemaResponse) GetAccessSchemaJson() []byte {
if x != nil {
return x.AccessSchemaJson
}
return nil
}
func (x *GetConfigSchemaResponse) GetDeploySchemaJson() []byte {
if x != nil {
return x.DeploySchemaJson
}
return nil
}
func (x *GetConfigSchemaResponse) GetI18NResources() map[string]*StringMap {
if x != nil {
return x.I18NResources
}
return nil
}
type DeployRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
LogLevel string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
AccessConfigJson string `protobuf:"bytes,2,opt,name=access_config_json,json=accessConfigJson,proto3" json:"access_config_json,omitempty"`
ExtendedConfigJson string `protobuf:"bytes,3,opt,name=extended_config_json,json=extendedConfigJson,proto3" json:"extended_config_json,omitempty"`
CertificatePem string `protobuf:"bytes,4,opt,name=certificate_pem,json=certificatePem,proto3" json:"certificate_pem,omitempty"`
PrivateKeyPem string `protobuf:"bytes,5,opt,name=private_key_pem,json=privateKeyPem,proto3" json:"private_key_pem,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeployRequest) Reset() {
*x = DeployRequest{}
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeployRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeployRequest) ProtoMessage() {}
func (x *DeployRequest) ProtoReflect() protoreflect.Message {
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeployRequest.ProtoReflect.Descriptor instead.
func (*DeployRequest) Descriptor() ([]byte, []int) {
return file_pkg_plugin_proto_plugin_proto_rawDescGZIP(), []int{5}
}
func (x *DeployRequest) GetLogLevel() string {
if x != nil {
return x.LogLevel
}
return ""
}
func (x *DeployRequest) GetAccessConfigJson() string {
if x != nil {
return x.AccessConfigJson
}
return ""
}
func (x *DeployRequest) GetExtendedConfigJson() string {
if x != nil {
return x.ExtendedConfigJson
}
return ""
}
func (x *DeployRequest) GetCertificatePem() string {
if x != nil {
return x.CertificatePem
}
return ""
}
func (x *DeployRequest) GetPrivateKeyPem() string {
if x != nil {
return x.PrivateKeyPem
}
return ""
}
type DeployResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ExtendedDataJson string `protobuf:"bytes,1,opt,name=extended_data_json,json=extendedDataJson,proto3" json:"extended_data_json,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeployResponse) Reset() {
*x = DeployResponse{}
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeployResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeployResponse) ProtoMessage() {}
func (x *DeployResponse) ProtoReflect() protoreflect.Message {
mi := &file_pkg_plugin_proto_plugin_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeployResponse.ProtoReflect.Descriptor instead.
func (*DeployResponse) Descriptor() ([]byte, []int) {
return file_pkg_plugin_proto_plugin_proto_rawDescGZIP(), []int{6}
}
func (x *DeployResponse) GetExtendedDataJson() string {
if x != nil {
return x.ExtendedDataJson
}
return ""
}
var File_pkg_plugin_proto_plugin_proto protoreflect.FileDescriptor
const file_pkg_plugin_proto_plugin_proto_rawDesc = "" +
"\n" +
"\x1dpkg/plugin/proto/plugin.proto\x12\x13certimate.plugin.v1\"\x14\n" +
"\x12GetMetadataRequest\"\xae\x02\n" +
"\x13GetMetadataResponse\x12#\n" +
"\rprovider_type\x18\x01 \x01(\tR\fproviderType\x120\n" +
"\x14access_provider_type\x18\x02 \x01(\tR\x12accessProviderType\x12)\n" +
"\x10protocol_version\x18\x03 \x01(\rR\x0fprotocolVersion\x12'\n" +
"\x0fdeploy_category\x18\x04 \x01(\tR\x0edeployCategory\x125\n" +
"\x17deploy_display_name_key\x18\x05 \x01(\tR\x14deployDisplayNameKey\x125\n" +
"\x17access_display_name_key\x18\x06 \x01(\tR\x14accessDisplayNameKey\"\x18\n" +
"\x16GetConfigSchemaRequest\"\x8e\x01\n" +
"\tStringMap\x12E\n" +
"\aentries\x18\x01 \x03(\v2+.certimate.plugin.v1.StringMap.EntriesEntryR\aentries\x1a:\n" +
"\fEntriesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xbf\x02\n" +
"\x17GetConfigSchemaResponse\x12,\n" +
"\x12access_schema_json\x18\x01 \x01(\fR\x10accessSchemaJson\x12,\n" +
"\x12deploy_schema_json\x18\x02 \x01(\fR\x10deploySchemaJson\x12f\n" +
"\x0ei18n_resources\x18\x03 \x03(\v2?.certimate.plugin.v1.GetConfigSchemaResponse.I18nResourcesEntryR\ri18nResources\x1a`\n" +
"\x12I18nResourcesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x124\n" +
"\x05value\x18\x02 \x01(\v2\x1e.certimate.plugin.v1.StringMapR\x05value:\x028\x01\"\xdd\x01\n" +
"\rDeployRequest\x12\x1b\n" +
"\tlog_level\x18\x01 \x01(\tR\blogLevel\x12,\n" +
"\x12access_config_json\x18\x02 \x01(\tR\x10accessConfigJson\x120\n" +
"\x14extended_config_json\x18\x03 \x01(\tR\x12extendedConfigJson\x12'\n" +
"\x0fcertificate_pem\x18\x04 \x01(\tR\x0ecertificatePem\x12&\n" +
"\x0fprivate_key_pem\x18\x05 \x01(\tR\rprivateKeyPem\">\n" +
"\x0eDeployResponse\x12,\n" +
"\x12extended_data_json\x18\x01 \x01(\tR\x10extendedDataJson2\xb3\x02\n" +
"\x0eDeployerPlugin\x12`\n" +
"\vGetMetadata\x12'.certimate.plugin.v1.GetMetadataRequest\x1a(.certimate.plugin.v1.GetMetadataResponse\x12l\n" +
"\x0fGetConfigSchema\x12+.certimate.plugin.v1.GetConfigSchemaRequest\x1a,.certimate.plugin.v1.GetConfigSchemaResponse\x12Q\n" +
"\x06Deploy\x12\".certimate.plugin.v1.DeployRequest\x1a#.certimate.plugin.v1.DeployResponseB4Z2github.com/certimate-go/certimate/pkg/plugin/protob\x06proto3"
var (
file_pkg_plugin_proto_plugin_proto_rawDescOnce sync.Once
file_pkg_plugin_proto_plugin_proto_rawDescData []byte
)
func file_pkg_plugin_proto_plugin_proto_rawDescGZIP() []byte {
file_pkg_plugin_proto_plugin_proto_rawDescOnce.Do(func() {
file_pkg_plugin_proto_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_plugin_proto_plugin_proto_rawDesc), len(file_pkg_plugin_proto_plugin_proto_rawDesc)))
})
return file_pkg_plugin_proto_plugin_proto_rawDescData
}
var file_pkg_plugin_proto_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_pkg_plugin_proto_plugin_proto_goTypes = []any{
(*GetMetadataRequest)(nil), // 0: certimate.plugin.v1.GetMetadataRequest
(*GetMetadataResponse)(nil), // 1: certimate.plugin.v1.GetMetadataResponse
(*GetConfigSchemaRequest)(nil), // 2: certimate.plugin.v1.GetConfigSchemaRequest
(*StringMap)(nil), // 3: certimate.plugin.v1.StringMap
(*GetConfigSchemaResponse)(nil), // 4: certimate.plugin.v1.GetConfigSchemaResponse
(*DeployRequest)(nil), // 5: certimate.plugin.v1.DeployRequest
(*DeployResponse)(nil), // 6: certimate.plugin.v1.DeployResponse
nil, // 7: certimate.plugin.v1.StringMap.EntriesEntry
nil, // 8: certimate.plugin.v1.GetConfigSchemaResponse.I18nResourcesEntry
}
var file_pkg_plugin_proto_plugin_proto_depIdxs = []int32{
7, // 0: certimate.plugin.v1.StringMap.entries:type_name -> certimate.plugin.v1.StringMap.EntriesEntry
8, // 1: certimate.plugin.v1.GetConfigSchemaResponse.i18n_resources:type_name -> certimate.plugin.v1.GetConfigSchemaResponse.I18nResourcesEntry
3, // 2: certimate.plugin.v1.GetConfigSchemaResponse.I18nResourcesEntry.value:type_name -> certimate.plugin.v1.StringMap
0, // 3: certimate.plugin.v1.DeployerPlugin.GetMetadata:input_type -> certimate.plugin.v1.GetMetadataRequest
2, // 4: certimate.plugin.v1.DeployerPlugin.GetConfigSchema:input_type -> certimate.plugin.v1.GetConfigSchemaRequest
5, // 5: certimate.plugin.v1.DeployerPlugin.Deploy:input_type -> certimate.plugin.v1.DeployRequest
1, // 6: certimate.plugin.v1.DeployerPlugin.GetMetadata:output_type -> certimate.plugin.v1.GetMetadataResponse
4, // 7: certimate.plugin.v1.DeployerPlugin.GetConfigSchema:output_type -> certimate.plugin.v1.GetConfigSchemaResponse
6, // 8: certimate.plugin.v1.DeployerPlugin.Deploy:output_type -> certimate.plugin.v1.DeployResponse
6, // [6:9] is the sub-list for method output_type
3, // [3:6] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_pkg_plugin_proto_plugin_proto_init() }
func file_pkg_plugin_proto_plugin_proto_init() {
if File_pkg_plugin_proto_plugin_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_plugin_proto_plugin_proto_rawDesc), len(file_pkg_plugin_proto_plugin_proto_rawDesc)),
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_pkg_plugin_proto_plugin_proto_goTypes,
DependencyIndexes: file_pkg_plugin_proto_plugin_proto_depIdxs,
MessageInfos: file_pkg_plugin_proto_plugin_proto_msgTypes,
}.Build()
File_pkg_plugin_proto_plugin_proto = out.File
file_pkg_plugin_proto_plugin_proto_goTypes = nil
file_pkg_plugin_proto_plugin_proto_depIdxs = nil
}