// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/marketplace/stacklandlicenseapi/v1/license_server.proto

package stacklandlicenseapi

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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)
)

// License server metadata
type LicenseServerMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Custom labels for the license server
	Labels        map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LicenseServerMetadata) ProtoMessage() {}

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

func (x *LicenseServerMetadata) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

// Request to register a license server
type RegisterRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Organization ID
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// Billing account ID
	BillingAccountId string `protobuf:"bytes,2,opt,name=billing_account_id,json=billingAccountId,proto3" json:"billing_account_id,omitempty"`
	// Optional metadata for the license server
	Metadata      *LicenseServerMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RegisterRequest) ProtoMessage() {}

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

func (x *RegisterRequest) GetOrganizationId() string {
	if x != nil {
		return x.OrganizationId
	}
	return ""
}

func (x *RegisterRequest) GetBillingAccountId() string {
	if x != nil {
		return x.BillingAccountId
	}
	return ""
}

func (x *RegisterRequest) GetMetadata() *LicenseServerMetadata {
	if x != nil {
		return x.Metadata
	}
	return nil
}

// License server entity
type LicenseServer struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unique server ID
	ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// License server CA certificate
	LsCaCertificate string `protobuf:"bytes,2,opt,name=ls_ca_certificate,json=lsCaCertificate,proto3" json:"ls_ca_certificate,omitempty"`
	// Private key for the license server
	LsPrivateKey string `protobuf:"bytes,3,opt,name=ls_private_key,json=lsPrivateKey,proto3" json:"ls_private_key,omitempty"`
	// Timestamp when the credentials expire
	ValidUntil *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"`
	// PEM-encoded PKIX public key for verifying license signatures
	LsSigningPublicKey string `protobuf:"bytes,5,opt,name=ls_signing_public_key,json=lsSigningPublicKey,proto3" json:"ls_signing_public_key,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*LicenseServer) ProtoMessage() {}

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

func (x *LicenseServer) GetServerId() string {
	if x != nil {
		return x.ServerId
	}
	return ""
}

func (x *LicenseServer) GetLsCaCertificate() string {
	if x != nil {
		return x.LsCaCertificate
	}
	return ""
}

func (x *LicenseServer) GetLsPrivateKey() string {
	if x != nil {
		return x.LsPrivateKey
	}
	return ""
}

func (x *LicenseServer) GetValidUntil() *timestamppb.Timestamp {
	if x != nil {
		return x.ValidUntil
	}
	return nil
}

func (x *LicenseServer) GetLsSigningPublicKey() string {
	if x != nil {
		return x.LsSigningPublicKey
	}
	return ""
}

// Metadata for register license server operation
type RegisterLicenseServerMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Organization ID
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// Billing account ID
	BillingAccountId string `protobuf:"bytes,2,opt,name=billing_account_id,json=billingAccountId,proto3" json:"billing_account_id,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *RegisterLicenseServerMetadata) Reset() {
	*x = RegisterLicenseServerMetadata{}
	mi := &file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*RegisterLicenseServerMetadata) ProtoMessage() {}

func (x *RegisterLicenseServerMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_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 RegisterLicenseServerMetadata.ProtoReflect.Descriptor instead.
func (*RegisterLicenseServerMetadata) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDescGZIP(), []int{3}
}

func (x *RegisterLicenseServerMetadata) GetOrganizationId() string {
	if x != nil {
		return x.OrganizationId
	}
	return ""
}

func (x *RegisterLicenseServerMetadata) GetBillingAccountId() string {
	if x != nil {
		return x.BillingAccountId
	}
	return ""
}

var File_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto protoreflect.FileDescriptor

const file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDesc = "" +
	"\n" +
	"Dyandex/cloud/marketplace/stacklandlicenseapi/v1/license_server.proto\x12/yandex.cloud.marketplace.stacklandlicenseapi.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xbe\x01\n" +
	"\x15LicenseServerMetadata\x12j\n" +
	"\x06labels\x18\x01 \x03(\v2R.yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServerMetadata.LabelsEntryR\x06labels\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xe8\x01\n" +
	"\x0fRegisterRequest\x125\n" +
	"\x0forganization_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x0eorganizationId\x12:\n" +
	"\x12billing_account_id\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x10billingAccountId\x12b\n" +
	"\bmetadata\x18\x03 \x01(\v2F.yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServerMetadataR\bmetadata\"\xee\x01\n" +
	"\rLicenseServer\x12\x1b\n" +
	"\tserver_id\x18\x01 \x01(\tR\bserverId\x12*\n" +
	"\x11ls_ca_certificate\x18\x02 \x01(\tR\x0flsCaCertificate\x12$\n" +
	"\x0els_private_key\x18\x03 \x01(\tR\flsPrivateKey\x12;\n" +
	"\vvalid_until\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"validUntil\x121\n" +
	"\x15ls_signing_public_key\x18\x05 \x01(\tR\x12lsSigningPublicKey\"v\n" +
	"\x1dRegisterLicenseServerMetadata\x12'\n" +
	"\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12,\n" +
	"\x12billing_account_id\x18\x02 \x01(\tR\x10billingAccountIdB\x9e\x01\n" +
	"3yandex.cloud.api.marketplace.stacklandlicenseapi.v1Zggithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/stacklandlicenseapi/v1;stacklandlicenseapib\x06proto3"

var (
	file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDescOnce sync.Once
	file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDescData []byte
)

func file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDescGZIP() []byte {
	file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDesc), len(file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDesc)))
	})
	return file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDescData
}

var file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_goTypes = []any{
	(*LicenseServerMetadata)(nil),         // 0: yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServerMetadata
	(*RegisterRequest)(nil),               // 1: yandex.cloud.marketplace.stacklandlicenseapi.v1.RegisterRequest
	(*LicenseServer)(nil),                 // 2: yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServer
	(*RegisterLicenseServerMetadata)(nil), // 3: yandex.cloud.marketplace.stacklandlicenseapi.v1.RegisterLicenseServerMetadata
	nil,                                   // 4: yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServerMetadata.LabelsEntry
	(*timestamppb.Timestamp)(nil),         // 5: google.protobuf.Timestamp
}
var file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServerMetadata.labels:type_name -> yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServerMetadata.LabelsEntry
	0, // 1: yandex.cloud.marketplace.stacklandlicenseapi.v1.RegisterRequest.metadata:type_name -> yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServerMetadata
	5, // 2: yandex.cloud.marketplace.stacklandlicenseapi.v1.LicenseServer.valid_until:type_name -> google.protobuf.Timestamp
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] 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_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_init() }
func file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_init() {
	if File_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDesc), len(file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_msgTypes,
	}.Build()
	File_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto = out.File
	file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_goTypes = nil
	file_yandex_cloud_marketplace_stacklandlicenseapi_v1_license_server_proto_depIdxs = nil
}
