// Copyright 2026 Google LLC
//
// 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.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.2
// source: google/cloud/dialogflow/v2beta1/encryption_spec.proto

package dialogflowpb

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

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

// The request to get location-level encryption specification.
type GetEncryptionSpecRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The name of the encryption spec resource to get.
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetEncryptionSpecRequest) ProtoMessage() {}

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

func (x *GetEncryptionSpecRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

// A customer-managed encryption key specification that can be applied to all
// created resources (e.g. Conversation).
type EncryptionSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Immutable. The resource name of the encryption key specification resource.
	// Format:
	// projects/{project}/locations/{location}/encryptionSpec
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The name of customer-managed encryption key that is used to
	// secure a resource and its sub-resources. If empty, the resource is secured
	// by the default Google encryption key. Only the key in the same location as
	// this resource is allowed to be used for encryption. Format:
	// `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
	KmsKey        string `protobuf:"bytes,2,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*EncryptionSpec) ProtoMessage() {}

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

func (x *EncryptionSpec) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *EncryptionSpec) GetKmsKey() string {
	if x != nil {
		return x.KmsKey
	}
	return ""
}

// The request to initialize a location-level encryption specification.
type InitializeEncryptionSpecRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The encryption spec used for CMEK encryption. It is required that
	// the kms key is in the same region as the endpoint. The same key will be
	// used for all provisioned resources, if encryption is available. If the
	// kms_key_name is left empty, no encryption will be enforced.
	EncryptionSpec *EncryptionSpec `protobuf:"bytes,1,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*InitializeEncryptionSpecRequest) ProtoMessage() {}

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

func (x *InitializeEncryptionSpecRequest) GetEncryptionSpec() *EncryptionSpec {
	if x != nil {
		return x.EncryptionSpec
	}
	return nil
}

// The response to initialize a location-level encryption specification.
type InitializeEncryptionSpecResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InitializeEncryptionSpecResponse) ProtoMessage() {}

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

// Metadata for initializing a location-level encryption specification.
type InitializeEncryptionSpecMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. The original request for initialization.
	Request       *InitializeEncryptionSpecRequest `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*InitializeEncryptionSpecMetadata) ProtoMessage() {}

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

func (x *InitializeEncryptionSpecMetadata) GetRequest() *InitializeEncryptionSpecRequest {
	if x != nil {
		return x.Request
	}
	return nil
}

var File_google_cloud_dialogflow_v2beta1_encryption_spec_proto protoreflect.FileDescriptor

const file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDesc = "" +
	"\n" +
	"5google/cloud/dialogflow/v2beta1/encryption_spec.proto\x12\x1fgoogle.cloud.dialogflow.v2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\"`\n" +
	"\x18GetEncryptionSpecRequest\x12D\n" +
	"\x04name\x18\x01 \x01(\tB0\xe0A\x02\xfaA*\n" +
	"(dialogflow.googleapis.com/EncryptionSpecR\x04name\"\xd1\x01\n" +
	"\x0eEncryptionSpec\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\x05R\x04name\x12\x1c\n" +
	"\akms_key\x18\x02 \x01(\tB\x03\xe0A\x02R\x06kmsKey:\x87\x01\xeaA\x83\x01\n" +
	"(dialogflow.googleapis.com/EncryptionSpec\x126projects/{project}/locations/{location}/encryptionSpec*\x0fencryptionSpecs2\x0eencryptionSpec\"\x80\x01\n" +
	"\x1fInitializeEncryptionSpecRequest\x12]\n" +
	"\x0fencryption_spec\x18\x01 \x01(\v2/.google.cloud.dialogflow.v2beta1.EncryptionSpecB\x03\xe0A\x02R\x0eencryptionSpec\"\"\n" +
	" InitializeEncryptionSpecResponse\"\x83\x01\n" +
	" InitializeEncryptionSpecMetadata\x12_\n" +
	"\arequest\x18\x04 \x01(\v2@.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequestB\x03\xe0A\x03R\arequest2\x8e\x05\n" +
	"\x15EncryptionSpecService\x12\xc5\x01\n" +
	"\x11GetEncryptionSpec\x129.google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest\x1a/.google.cloud.dialogflow.v2beta1.EncryptionSpec\"D\xdaA\x04name\x82\xd3\xe4\x93\x027\x125/v2beta1/{name=projects/*/locations/*/encryptionSpec}\x12\xb2\x02\n" +
	"\x18InitializeEncryptionSpec\x12@.google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xcaAD\n" +
	" InitializeEncryptionSpecResponse\x12 InitializeEncryptionSpecMetadata\xdaA\x0fencryption_spec\x82\xd3\xe4\x93\x02U:\x01*\"P/v2beta1/{encryption_spec.name=projects/*/locations/*/encryptionSpec}:initialize\x1ax\xcaA\x19dialogflow.googleapis.com\xd2AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xa8\x01\n" +
	"#com.google.cloud.dialogflow.v2beta1B\x13EncryptionSpecProtoP\x01ZCcloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb\xa2\x02\x02DF\xaa\x02\x1fGoogle.Cloud.Dialogflow.V2Beta1b\x06proto3"

var (
	file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDescOnce sync.Once
	file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDescData []byte
)

func file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDescGZIP() []byte {
	file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDescOnce.Do(func() {
		file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDesc), len(file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDesc)))
	})
	return file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDescData
}

var file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_goTypes = []any{
	(*GetEncryptionSpecRequest)(nil),         // 0: google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest
	(*EncryptionSpec)(nil),                   // 1: google.cloud.dialogflow.v2beta1.EncryptionSpec
	(*InitializeEncryptionSpecRequest)(nil),  // 2: google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest
	(*InitializeEncryptionSpecResponse)(nil), // 3: google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecResponse
	(*InitializeEncryptionSpecMetadata)(nil), // 4: google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecMetadata
	(*longrunningpb.Operation)(nil),          // 5: google.longrunning.Operation
}
var file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_depIdxs = []int32{
	1, // 0: google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest.encryption_spec:type_name -> google.cloud.dialogflow.v2beta1.EncryptionSpec
	2, // 1: google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecMetadata.request:type_name -> google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest
	0, // 2: google.cloud.dialogflow.v2beta1.EncryptionSpecService.GetEncryptionSpec:input_type -> google.cloud.dialogflow.v2beta1.GetEncryptionSpecRequest
	2, // 3: google.cloud.dialogflow.v2beta1.EncryptionSpecService.InitializeEncryptionSpec:input_type -> google.cloud.dialogflow.v2beta1.InitializeEncryptionSpecRequest
	1, // 4: google.cloud.dialogflow.v2beta1.EncryptionSpecService.GetEncryptionSpec:output_type -> google.cloud.dialogflow.v2beta1.EncryptionSpec
	5, // 5: google.cloud.dialogflow.v2beta1.EncryptionSpecService.InitializeEncryptionSpec:output_type -> google.longrunning.Operation
	4, // [4:6] is the sub-list for method output_type
	2, // [2:4] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_init() }
func file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_init() {
	if File_google_cloud_dialogflow_v2beta1_encryption_spec_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDesc), len(file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_goTypes,
		DependencyIndexes: file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_depIdxs,
		MessageInfos:      file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_msgTypes,
	}.Build()
	File_google_cloud_dialogflow_v2beta1_encryption_spec_proto = out.File
	file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_goTypes = nil
	file_google_cloud_dialogflow_v2beta1_encryption_spec_proto_depIdxs = nil
}
