// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.9
// 	protoc        (unknown)
// source: powerx/plugin/control/v1/control.proto

package pcv1

import (
	v1 "github.com/ArtisanCloud/PowerX/api/grpc/gen/go/common/v1"
	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 UpsertTenantCredentialsRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Ctx           *v1.RequestContext     `protobuf:"bytes,1,opt,name=ctx,proto3" json:"ctx,omitempty"` // 建议携带 tenant_id + request_id
	TenantId      uint64                 `protobuf:"varint,10,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	PluginId      string                 `protobuf:"bytes,11,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	ClientId      string                 `protobuf:"bytes,20,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret  string                 `protobuf:"bytes,21,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` // 明文；插件应安全持久化（仅内部使用，不对外暴露）
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpsertTenantCredentialsRequest) Reset() {
	*x = UpsertTenantCredentialsRequest{}
	mi := &file_powerx_plugin_control_v1_control_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpsertTenantCredentialsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpsertTenantCredentialsRequest) ProtoMessage() {}

func (x *UpsertTenantCredentialsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_powerx_plugin_control_v1_control_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 UpsertTenantCredentialsRequest.ProtoReflect.Descriptor instead.
func (*UpsertTenantCredentialsRequest) Descriptor() ([]byte, []int) {
	return file_powerx_plugin_control_v1_control_proto_rawDescGZIP(), []int{0}
}

func (x *UpsertTenantCredentialsRequest) GetCtx() *v1.RequestContext {
	if x != nil {
		return x.Ctx
	}
	return nil
}

func (x *UpsertTenantCredentialsRequest) GetTenantId() uint64 {
	if x != nil {
		return x.TenantId
	}
	return 0
}

func (x *UpsertTenantCredentialsRequest) GetPluginId() string {
	if x != nil {
		return x.PluginId
	}
	return ""
}

func (x *UpsertTenantCredentialsRequest) GetClientId() string {
	if x != nil {
		return x.ClientId
	}
	return ""
}

func (x *UpsertTenantCredentialsRequest) GetClientSecret() string {
	if x != nil {
		return x.ClientSecret
	}
	return ""
}

type UpsertTenantCredentialsData struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Ok            bool                   `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpsertTenantCredentialsData) Reset() {
	*x = UpsertTenantCredentialsData{}
	mi := &file_powerx_plugin_control_v1_control_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpsertTenantCredentialsData) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpsertTenantCredentialsData) ProtoMessage() {}

func (x *UpsertTenantCredentialsData) ProtoReflect() protoreflect.Message {
	mi := &file_powerx_plugin_control_v1_control_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 UpsertTenantCredentialsData.ProtoReflect.Descriptor instead.
func (*UpsertTenantCredentialsData) Descriptor() ([]byte, []int) {
	return file_powerx_plugin_control_v1_control_proto_rawDescGZIP(), []int{1}
}

func (x *UpsertTenantCredentialsData) GetOk() bool {
	if x != nil {
		return x.Ok
	}
	return false
}

type UpsertTenantCredentialsResponse struct {
	state         protoimpl.MessageState       `protogen:"open.v1"`
	Meta          *v1.ResponseMeta             `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Data          *UpsertTenantCredentialsData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpsertTenantCredentialsResponse) Reset() {
	*x = UpsertTenantCredentialsResponse{}
	mi := &file_powerx_plugin_control_v1_control_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpsertTenantCredentialsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpsertTenantCredentialsResponse) ProtoMessage() {}

func (x *UpsertTenantCredentialsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_powerx_plugin_control_v1_control_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 UpsertTenantCredentialsResponse.ProtoReflect.Descriptor instead.
func (*UpsertTenantCredentialsResponse) Descriptor() ([]byte, []int) {
	return file_powerx_plugin_control_v1_control_proto_rawDescGZIP(), []int{2}
}

func (x *UpsertTenantCredentialsResponse) GetMeta() *v1.ResponseMeta {
	if x != nil {
		return x.Meta
	}
	return nil
}

func (x *UpsertTenantCredentialsResponse) GetData() *UpsertTenantCredentialsData {
	if x != nil {
		return x.Data
	}
	return nil
}

var File_powerx_plugin_control_v1_control_proto protoreflect.FileDescriptor

const file_powerx_plugin_control_v1_control_proto_rawDesc = "" +
	"\n" +
	"&powerx/plugin/control/v1/control.proto\x12\x18powerx.plugin.control.v1\x1a\x17common/v1/context.proto\x1a\x18common/v1/response.proto\"\xc9\x01\n" +
	"\x1eUpsertTenantCredentialsRequest\x12+\n" +
	"\x03ctx\x18\x01 \x01(\v2\x19.common.v1.RequestContextR\x03ctx\x12\x1b\n" +
	"\ttenant_id\x18\n" +
	" \x01(\x04R\btenantId\x12\x1b\n" +
	"\tplugin_id\x18\v \x01(\tR\bpluginId\x12\x1b\n" +
	"\tclient_id\x18\x14 \x01(\tR\bclientId\x12#\n" +
	"\rclient_secret\x18\x15 \x01(\tR\fclientSecret\"-\n" +
	"\x1bUpsertTenantCredentialsData\x12\x0e\n" +
	"\x02ok\x18\x01 \x01(\bR\x02ok\"\x99\x01\n" +
	"\x1fUpsertTenantCredentialsResponse\x12+\n" +
	"\x04meta\x18\x01 \x01(\v2\x17.common.v1.ResponseMetaR\x04meta\x12I\n" +
	"\x04data\x18\x02 \x01(\v25.powerx.plugin.control.v1.UpsertTenantCredentialsDataR\x04data2\xa1\x01\n" +
	"\x0eControlService\x12\x8e\x01\n" +
	"\x17UpsertTenantCredentials\x128.powerx.plugin.control.v1.UpsertTenantCredentialsRequest\x1a9.powerx.plugin.control.v1.UpsertTenantCredentialsResponseBNZLgithub.com/ArtisanCloud/PowerX/api/grpc/gen/go/powerx/plugin/control/v1;pcv1b\x06proto3"

var (
	file_powerx_plugin_control_v1_control_proto_rawDescOnce sync.Once
	file_powerx_plugin_control_v1_control_proto_rawDescData []byte
)

func file_powerx_plugin_control_v1_control_proto_rawDescGZIP() []byte {
	file_powerx_plugin_control_v1_control_proto_rawDescOnce.Do(func() {
		file_powerx_plugin_control_v1_control_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_powerx_plugin_control_v1_control_proto_rawDesc), len(file_powerx_plugin_control_v1_control_proto_rawDesc)))
	})
	return file_powerx_plugin_control_v1_control_proto_rawDescData
}

var file_powerx_plugin_control_v1_control_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_powerx_plugin_control_v1_control_proto_goTypes = []any{
	(*UpsertTenantCredentialsRequest)(nil),  // 0: powerx.plugin.control.v1.UpsertTenantCredentialsRequest
	(*UpsertTenantCredentialsData)(nil),     // 1: powerx.plugin.control.v1.UpsertTenantCredentialsData
	(*UpsertTenantCredentialsResponse)(nil), // 2: powerx.plugin.control.v1.UpsertTenantCredentialsResponse
	(*v1.RequestContext)(nil),               // 3: common.v1.RequestContext
	(*v1.ResponseMeta)(nil),                 // 4: common.v1.ResponseMeta
}
var file_powerx_plugin_control_v1_control_proto_depIdxs = []int32{
	3, // 0: powerx.plugin.control.v1.UpsertTenantCredentialsRequest.ctx:type_name -> common.v1.RequestContext
	4, // 1: powerx.plugin.control.v1.UpsertTenantCredentialsResponse.meta:type_name -> common.v1.ResponseMeta
	1, // 2: powerx.plugin.control.v1.UpsertTenantCredentialsResponse.data:type_name -> powerx.plugin.control.v1.UpsertTenantCredentialsData
	0, // 3: powerx.plugin.control.v1.ControlService.UpsertTenantCredentials:input_type -> powerx.plugin.control.v1.UpsertTenantCredentialsRequest
	2, // 4: powerx.plugin.control.v1.ControlService.UpsertTenantCredentials:output_type -> powerx.plugin.control.v1.UpsertTenantCredentialsResponse
	4, // [4:5] is the sub-list for method output_type
	3, // [3:4] 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_powerx_plugin_control_v1_control_proto_init() }
func file_powerx_plugin_control_v1_control_proto_init() {
	if File_powerx_plugin_control_v1_control_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_powerx_plugin_control_v1_control_proto_rawDesc), len(file_powerx_plugin_control_v1_control_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_powerx_plugin_control_v1_control_proto_goTypes,
		DependencyIndexes: file_powerx_plugin_control_v1_control_proto_depIdxs,
		MessageInfos:      file_powerx_plugin_control_v1_control_proto_msgTypes,
	}.Build()
	File_powerx_plugin_control_v1_control_proto = out.File
	file_powerx_plugin_control_v1_control_proto_goTypes = nil
	file_powerx_plugin_control_v1_control_proto_depIdxs = nil
}
