// 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/cx/v3beta1/import_strategy.proto

package cxpb

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

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

// Import strategies for the conflict resolution of resources (i.e. intents,
// entities, and webhooks) with identical display names during import
// operations.
type ImportStrategy int32

const (
	// Unspecified. Treated as 'CREATE_NEW'.
	ImportStrategy_IMPORT_STRATEGY_UNSPECIFIED ImportStrategy = 0
	// Create a new resource with a numeric suffix appended to the end of the
	// existing display name.
	ImportStrategy_IMPORT_STRATEGY_CREATE_NEW ImportStrategy = 1
	// Replace existing resource with incoming resource in the content to be
	// imported.
	ImportStrategy_IMPORT_STRATEGY_REPLACE ImportStrategy = 2
	// Keep existing resource and discard incoming resource in the content to be
	// imported.
	ImportStrategy_IMPORT_STRATEGY_KEEP ImportStrategy = 3
	// Combine existing and incoming resources when a conflict is encountered.
	ImportStrategy_IMPORT_STRATEGY_MERGE ImportStrategy = 4
	// Throw error if a conflict is encountered.
	ImportStrategy_IMPORT_STRATEGY_THROW_ERROR ImportStrategy = 5
)

// Enum value maps for ImportStrategy.
var (
	ImportStrategy_name = map[int32]string{
		0: "IMPORT_STRATEGY_UNSPECIFIED",
		1: "IMPORT_STRATEGY_CREATE_NEW",
		2: "IMPORT_STRATEGY_REPLACE",
		3: "IMPORT_STRATEGY_KEEP",
		4: "IMPORT_STRATEGY_MERGE",
		5: "IMPORT_STRATEGY_THROW_ERROR",
	}
	ImportStrategy_value = map[string]int32{
		"IMPORT_STRATEGY_UNSPECIFIED": 0,
		"IMPORT_STRATEGY_CREATE_NEW":  1,
		"IMPORT_STRATEGY_REPLACE":     2,
		"IMPORT_STRATEGY_KEEP":        3,
		"IMPORT_STRATEGY_MERGE":       4,
		"IMPORT_STRATEGY_THROW_ERROR": 5,
	}
)

func (x ImportStrategy) Enum() *ImportStrategy {
	p := new(ImportStrategy)
	*p = x
	return p
}

func (x ImportStrategy) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ImportStrategy) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_enumTypes[0].Descriptor()
}

func (ImportStrategy) Type() protoreflect.EnumType {
	return &file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_enumTypes[0]
}

func (x ImportStrategy) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ImportStrategy.Descriptor instead.
func (ImportStrategy) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescGZIP(), []int{0}
}

var File_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto protoreflect.FileDescriptor

const file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDesc = "" +
	"\n" +
	"8google/cloud/dialogflow/cx/v3beta1/import_strategy.proto\x12\"google.cloud.dialogflow.cx.v3beta1*\xc4\x01\n" +
	"\x0eImportStrategy\x12\x1f\n" +
	"\x1bIMPORT_STRATEGY_UNSPECIFIED\x10\x00\x12\x1e\n" +
	"\x1aIMPORT_STRATEGY_CREATE_NEW\x10\x01\x12\x1b\n" +
	"\x17IMPORT_STRATEGY_REPLACE\x10\x02\x12\x18\n" +
	"\x14IMPORT_STRATEGY_KEEP\x10\x03\x12\x19\n" +
	"\x15IMPORT_STRATEGY_MERGE\x10\x04\x12\x1f\n" +
	"\x1bIMPORT_STRATEGY_THROW_ERROR\x10\x05B\xca\x01\n" +
	"&com.google.cloud.dialogflow.cx.v3beta1B\x13ImportStrategyProtoP\x01Z6cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb\xa2\x02\x02DF\xaa\x02\"Google.Cloud.Dialogflow.Cx.V3Beta1\xea\x02&Google::Cloud::Dialogflow::CX::V3beta1b\x06proto3"

var (
	file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescOnce sync.Once
	file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescData []byte
)

func file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescGZIP() []byte {
	file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescOnce.Do(func() {
		file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDesc), len(file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDesc)))
	})
	return file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDescData
}

var file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_goTypes = []any{
	(ImportStrategy)(0), // 0: google.cloud.dialogflow.cx.v3beta1.ImportStrategy
}
var file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] 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_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_init() }
func file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_init() {
	if File_google_cloud_dialogflow_cx_v3beta1_import_strategy_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_cx_v3beta1_import_strategy_proto_rawDesc), len(file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   0,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_goTypes,
		DependencyIndexes: file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_depIdxs,
		EnumInfos:         file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_enumTypes,
	}.Build()
	File_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto = out.File
	file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_goTypes = nil
	file_google_cloud_dialogflow_cx_v3beta1_import_strategy_proto_depIdxs = nil
}
