/*
Copyright The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

//
//Copyright 2018 The Kubernetes Authors.
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.

// To regenerate api.pb.go run `hack/update-codegen.sh protobindings`

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v4.23.4
// staging/src/k8s.io/kms/apis/v1beta1/api.proto is a deprecated file.

package v1beta1

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)
)

// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
//
// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
type VersionRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Version of the KMS plugin API.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	Version       string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*VersionRequest) ProtoMessage() {}

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

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *VersionRequest) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
//
// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
type VersionResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Version of the KMS plugin API.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Name of the KMS provider.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	RuntimeName string `protobuf:"bytes,2,opt,name=runtime_name,json=runtimeName,proto3" json:"runtime_name,omitempty"`
	// Version of the KMS provider. The string must be semver-compatible.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	RuntimeVersion string `protobuf:"bytes,3,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*VersionResponse) ProtoMessage() {}

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

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *VersionResponse) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *VersionResponse) GetRuntimeName() string {
	if x != nil {
		return x.RuntimeName
	}
	return ""
}

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *VersionResponse) GetRuntimeVersion() string {
	if x != nil {
		return x.RuntimeVersion
	}
	return ""
}

// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
//
// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
type DecryptRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Version of the KMS plugin API.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// The data to be decrypted.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	Cipher        []byte `protobuf:"bytes,2,opt,name=cipher,proto3" json:"cipher,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DecryptRequest) ProtoMessage() {}

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

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *DecryptRequest) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *DecryptRequest) GetCipher() []byte {
	if x != nil {
		return x.Cipher
	}
	return nil
}

// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
//
// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
type DecryptResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The decrypted data.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	Plain         []byte `protobuf:"bytes,1,opt,name=plain,proto3" json:"plain,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DecryptResponse) ProtoMessage() {}

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

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *DecryptResponse) GetPlain() []byte {
	if x != nil {
		return x.Plain
	}
	return nil
}

// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
//
// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
type EncryptRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Version of the KMS plugin API.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// The data to be encrypted.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	Plain         []byte `protobuf:"bytes,2,opt,name=plain,proto3" json:"plain,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *EncryptRequest) Reset() {
	*x = EncryptRequest{}
	mi := &file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*EncryptRequest) ProtoMessage() {}

func (x *EncryptRequest) ProtoReflect() protoreflect.Message {
	mi := &file_staging_src_k8s_io_kms_apis_v1beta1_api_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 EncryptRequest.ProtoReflect.Descriptor instead.
func (*EncryptRequest) Descriptor() ([]byte, []int) {
	return file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDescGZIP(), []int{4}
}

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *EncryptRequest) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *EncryptRequest) GetPlain() []byte {
	if x != nil {
		return x.Plain
	}
	return nil
}

// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
//
// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
type EncryptResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The encrypted data.
	//
	// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
	Cipher        []byte `protobuf:"bytes,1,opt,name=cipher,proto3" json:"cipher,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *EncryptResponse) Reset() {
	*x = EncryptResponse{}
	mi := &file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*EncryptResponse) ProtoMessage() {}

func (x *EncryptResponse) ProtoReflect() protoreflect.Message {
	mi := &file_staging_src_k8s_io_kms_apis_v1beta1_api_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 EncryptResponse.ProtoReflect.Descriptor instead.
func (*EncryptResponse) Descriptor() ([]byte, []int) {
	return file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDescGZIP(), []int{5}
}

// Deprecated: The entire proto file staging/src/k8s.io/kms/apis/v1beta1/api.proto is marked as deprecated.
func (x *EncryptResponse) GetCipher() []byte {
	if x != nil {
		return x.Cipher
	}
	return nil
}

var File_staging_src_k8s_io_kms_apis_v1beta1_api_proto protoreflect.FileDescriptor

const file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDesc = "" +
	"\n" +
	"-staging/src/k8s.io/kms/apis/v1beta1/api.proto\x12\av1beta1\"*\n" +
	"\x0eVersionRequest\x12\x18\n" +
	"\aversion\x18\x01 \x01(\tR\aversion\"w\n" +
	"\x0fVersionResponse\x12\x18\n" +
	"\aversion\x18\x01 \x01(\tR\aversion\x12!\n" +
	"\fruntime_name\x18\x02 \x01(\tR\vruntimeName\x12'\n" +
	"\x0fruntime_version\x18\x03 \x01(\tR\x0eruntimeVersion\"B\n" +
	"\x0eDecryptRequest\x12\x18\n" +
	"\aversion\x18\x01 \x01(\tR\aversion\x12\x16\n" +
	"\x06cipher\x18\x02 \x01(\fR\x06cipher\"'\n" +
	"\x0fDecryptResponse\x12\x14\n" +
	"\x05plain\x18\x01 \x01(\fR\x05plain\"@\n" +
	"\x0eEncryptRequest\x12\x18\n" +
	"\aversion\x18\x01 \x01(\tR\aversion\x12\x14\n" +
	"\x05plain\x18\x02 \x01(\fR\x05plain\")\n" +
	"\x0fEncryptResponse\x12\x16\n" +
	"\x06cipher\x18\x01 \x01(\fR\x06cipher2\xd6\x01\n" +
	"\x14KeyManagementService\x12>\n" +
	"\aVersion\x12\x17.v1beta1.VersionRequest\x1a\x18.v1beta1.VersionResponse\"\x00\x12>\n" +
	"\aDecrypt\x12\x17.v1beta1.DecryptRequest\x1a\x18.v1beta1.DecryptResponse\"\x00\x12>\n" +
	"\aEncrypt\x12\x17.v1beta1.EncryptRequest\x1a\x18.v1beta1.EncryptResponse\"\x00B\x1cZ\x17k8s.io/kms/apis/v1beta1\xb8\x01\x01b\x06proto3"

var (
	file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDescOnce sync.Once
	file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDescData []byte
)

func file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDescGZIP() []byte {
	file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDescOnce.Do(func() {
		file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDesc), len(file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDesc)))
	})
	return file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDescData
}

var file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_goTypes = []any{
	(*VersionRequest)(nil),  // 0: v1beta1.VersionRequest
	(*VersionResponse)(nil), // 1: v1beta1.VersionResponse
	(*DecryptRequest)(nil),  // 2: v1beta1.DecryptRequest
	(*DecryptResponse)(nil), // 3: v1beta1.DecryptResponse
	(*EncryptRequest)(nil),  // 4: v1beta1.EncryptRequest
	(*EncryptResponse)(nil), // 5: v1beta1.EncryptResponse
}
var file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_depIdxs = []int32{
	0, // 0: v1beta1.KeyManagementService.Version:input_type -> v1beta1.VersionRequest
	2, // 1: v1beta1.KeyManagementService.Decrypt:input_type -> v1beta1.DecryptRequest
	4, // 2: v1beta1.KeyManagementService.Encrypt:input_type -> v1beta1.EncryptRequest
	1, // 3: v1beta1.KeyManagementService.Version:output_type -> v1beta1.VersionResponse
	3, // 4: v1beta1.KeyManagementService.Decrypt:output_type -> v1beta1.DecryptResponse
	5, // 5: v1beta1.KeyManagementService.Encrypt:output_type -> v1beta1.EncryptResponse
	3, // [3:6] is the sub-list for method output_type
	0, // [0:3] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_init() }
func file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_init() {
	if File_staging_src_k8s_io_kms_apis_v1beta1_api_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDesc), len(file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_goTypes,
		DependencyIndexes: file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_depIdxs,
		MessageInfos:      file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_msgTypes,
	}.Build()
	File_staging_src_k8s_io_kms_apis_v1beta1_api_proto = out.File
	file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_goTypes = nil
	file_staging_src_k8s_io_kms_apis_v1beta1_api_proto_depIdxs = nil
}
