// 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        v4.25.7
// source: google/cloud/dialogflow/v2beta1/validation_result.proto

package dialogflowpb

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

// Represents a level of severity.
type ValidationError_Severity int32

const (
	// Not specified. This value should never be used.
	ValidationError_SEVERITY_UNSPECIFIED ValidationError_Severity = 0
	// The agent doesn't follow Dialogflow best practices.
	ValidationError_INFO ValidationError_Severity = 1
	// The agent may not behave as expected.
	ValidationError_WARNING ValidationError_Severity = 2
	// The agent may experience partial failures.
	ValidationError_ERROR ValidationError_Severity = 3
	// The agent may completely fail.
	ValidationError_CRITICAL ValidationError_Severity = 4
)

// Enum value maps for ValidationError_Severity.
var (
	ValidationError_Severity_name = map[int32]string{
		0: "SEVERITY_UNSPECIFIED",
		1: "INFO",
		2: "WARNING",
		3: "ERROR",
		4: "CRITICAL",
	}
	ValidationError_Severity_value = map[string]int32{
		"SEVERITY_UNSPECIFIED": 0,
		"INFO":                 1,
		"WARNING":              2,
		"ERROR":                3,
		"CRITICAL":             4,
	}
)

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

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

func (ValidationError_Severity) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_dialogflow_v2beta1_validation_result_proto_enumTypes[0].Descriptor()
}

func (ValidationError_Severity) Type() protoreflect.EnumType {
	return &file_google_cloud_dialogflow_v2beta1_validation_result_proto_enumTypes[0]
}

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

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

// Represents a single validation error.
type ValidationError struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The severity of the error.
	Severity ValidationError_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.cloud.dialogflow.v2beta1.ValidationError_Severity" json:"severity,omitempty"`
	// The names of the entries that the error is associated with.
	// Format:
	//
	// - `projects/<Project ID>/agent`, if the error is associated with the entire
	// agent.
	// - `projects/<Project ID>/agent/intents/<Intent ID>`, if the error is
	// associated with certain intents.
	// - `projects/<Project ID>/agent/intents/<Intent
	// Id>/trainingPhrases/<Training Phrase ID>`, if the error is associated with
	// certain intent training phrases.
	// - `projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
	// ID>`, if the error is associated with certain intent parameters.
	// - `projects/<Project ID>/agent/entities/<Entity ID>`, if the error is
	// associated with certain entities.
	Entries []string `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"`
	// The detailed error message.
	ErrorMessage  string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ValidationError) ProtoMessage() {}

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

func (x *ValidationError) GetSeverity() ValidationError_Severity {
	if x != nil {
		return x.Severity
	}
	return ValidationError_SEVERITY_UNSPECIFIED
}

func (x *ValidationError) GetEntries() []string {
	if x != nil {
		return x.Entries
	}
	return nil
}

func (x *ValidationError) GetErrorMessage() string {
	if x != nil {
		return x.ErrorMessage
	}
	return ""
}

// Represents the output of agent validation.
type ValidationResult struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Contains all validation errors.
	ValidationErrors []*ValidationError `protobuf:"bytes,1,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*ValidationResult) ProtoMessage() {}

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

func (x *ValidationResult) GetValidationErrors() []*ValidationError {
	if x != nil {
		return x.ValidationErrors
	}
	return nil
}

var File_google_cloud_dialogflow_v2beta1_validation_result_proto protoreflect.FileDescriptor

const file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDesc = "" +
	"\n" +
	"7google/cloud/dialogflow/v2beta1/validation_result.proto\x12\x1fgoogle.cloud.dialogflow.v2beta1\"\xfd\x01\n" +
	"\x0fValidationError\x12U\n" +
	"\bseverity\x18\x01 \x01(\x0e29.google.cloud.dialogflow.v2beta1.ValidationError.SeverityR\bseverity\x12\x18\n" +
	"\aentries\x18\x03 \x03(\tR\aentries\x12#\n" +
	"\rerror_message\x18\x04 \x01(\tR\ferrorMessage\"T\n" +
	"\bSeverity\x12\x18\n" +
	"\x14SEVERITY_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04INFO\x10\x01\x12\v\n" +
	"\aWARNING\x10\x02\x12\t\n" +
	"\x05ERROR\x10\x03\x12\f\n" +
	"\bCRITICAL\x10\x04\"q\n" +
	"\x10ValidationResult\x12]\n" +
	"\x11validation_errors\x18\x01 \x03(\v20.google.cloud.dialogflow.v2beta1.ValidationErrorR\x10validationErrorsB\xaa\x01\n" +
	"#com.google.cloud.dialogflow.v2beta1B\x15ValidationResultProtoP\x01ZCcloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb\xa2\x02\x02DF\xaa\x02\x1fGoogle.Cloud.Dialogflow.V2Beta1b\x06proto3"

var (
	file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDescOnce sync.Once
	file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDescData []byte
)

func file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDescGZIP() []byte {
	file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDescOnce.Do(func() {
		file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDesc), len(file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDesc)))
	})
	return file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDescData
}

var file_google_cloud_dialogflow_v2beta1_validation_result_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_cloud_dialogflow_v2beta1_validation_result_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_google_cloud_dialogflow_v2beta1_validation_result_proto_goTypes = []any{
	(ValidationError_Severity)(0), // 0: google.cloud.dialogflow.v2beta1.ValidationError.Severity
	(*ValidationError)(nil),       // 1: google.cloud.dialogflow.v2beta1.ValidationError
	(*ValidationResult)(nil),      // 2: google.cloud.dialogflow.v2beta1.ValidationResult
}
var file_google_cloud_dialogflow_v2beta1_validation_result_proto_depIdxs = []int32{
	0, // 0: google.cloud.dialogflow.v2beta1.ValidationError.severity:type_name -> google.cloud.dialogflow.v2beta1.ValidationError.Severity
	1, // 1: google.cloud.dialogflow.v2beta1.ValidationResult.validation_errors:type_name -> google.cloud.dialogflow.v2beta1.ValidationError
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] 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_validation_result_proto_init() }
func file_google_cloud_dialogflow_v2beta1_validation_result_proto_init() {
	if File_google_cloud_dialogflow_v2beta1_validation_result_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_validation_result_proto_rawDesc), len(file_google_cloud_dialogflow_v2beta1_validation_result_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_dialogflow_v2beta1_validation_result_proto_goTypes,
		DependencyIndexes: file_google_cloud_dialogflow_v2beta1_validation_result_proto_depIdxs,
		EnumInfos:         file_google_cloud_dialogflow_v2beta1_validation_result_proto_enumTypes,
		MessageInfos:      file_google_cloud_dialogflow_v2beta1_validation_result_proto_msgTypes,
	}.Build()
	File_google_cloud_dialogflow_v2beta1_validation_result_proto = out.File
	file_google_cloud_dialogflow_v2beta1_validation_result_proto_goTypes = nil
	file_google_cloud_dialogflow_v2beta1_validation_result_proto_depIdxs = nil
}
