// Copyright 2025 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/aiplatform/v1beta1/model_evaluation.proto

package aiplatformpb

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

	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	structpb "google.golang.org/protobuf/types/known/structpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

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

// A collection of metrics calculated by comparing Model's predictions on all of
// the test data against annotations from the test data.
type ModelEvaluation struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. The resource name of the ModelEvaluation.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The display name of the ModelEvaluation.
	DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Points to a YAML file stored on Google Cloud Storage describing the
	// [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this
	// ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema
	// Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
	MetricsSchemaUri string `protobuf:"bytes,2,opt,name=metrics_schema_uri,json=metricsSchemaUri,proto3" json:"metrics_schema_uri,omitempty"`
	// Evaluation metrics of the Model. The schema of the metrics is stored in
	// [metrics_schema_uri][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics_schema_uri]
	Metrics *structpb.Value `protobuf:"bytes,3,opt,name=metrics,proto3" json:"metrics,omitempty"`
	// Output only. Timestamp when this ModelEvaluation was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// All possible
	// [dimensions][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.dimension]
	// of ModelEvaluationSlices. The dimensions can be used as the filter of the
	// [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices]
	// request, in the form of `slice.dimension = <dimension>`.
	SliceDimensions []string `protobuf:"bytes,5,rep,name=slice_dimensions,json=sliceDimensions,proto3" json:"slice_dimensions,omitempty"`
	// Aggregated explanation metrics for the Model's prediction output over the
	// data this ModelEvaluation uses. This field is populated only if the Model
	// is evaluated with explanations, and only for AutoML tabular Models.
	ModelExplanation *ModelExplanation `protobuf:"bytes,8,opt,name=model_explanation,json=modelExplanation,proto3" json:"model_explanation,omitempty"`
	// Describes the values of
	// [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] that are
	// used for explaining the predicted values on the evaluated data.
	ExplanationSpecs []*ModelEvaluation_ModelEvaluationExplanationSpec `protobuf:"bytes,9,rep,name=explanation_specs,json=explanationSpecs,proto3" json:"explanation_specs,omitempty"`
	// The metadata of the ModelEvaluation.
	// For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
	// structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
	// "evaluation_dataset_path", "row_based_metrics_path".
	Metadata *structpb.Value `protobuf:"bytes,11,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Specify the configuration for bias detection.
	BiasConfigs   *ModelEvaluation_BiasConfig `protobuf:"bytes,12,opt,name=bias_configs,json=biasConfigs,proto3" json:"bias_configs,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ModelEvaluation) ProtoMessage() {}

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

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

func (x *ModelEvaluation) GetDisplayName() string {
	if x != nil {
		return x.DisplayName
	}
	return ""
}

func (x *ModelEvaluation) GetMetricsSchemaUri() string {
	if x != nil {
		return x.MetricsSchemaUri
	}
	return ""
}

func (x *ModelEvaluation) GetMetrics() *structpb.Value {
	if x != nil {
		return x.Metrics
	}
	return nil
}

func (x *ModelEvaluation) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *ModelEvaluation) GetSliceDimensions() []string {
	if x != nil {
		return x.SliceDimensions
	}
	return nil
}

func (x *ModelEvaluation) GetModelExplanation() *ModelExplanation {
	if x != nil {
		return x.ModelExplanation
	}
	return nil
}

func (x *ModelEvaluation) GetExplanationSpecs() []*ModelEvaluation_ModelEvaluationExplanationSpec {
	if x != nil {
		return x.ExplanationSpecs
	}
	return nil
}

func (x *ModelEvaluation) GetMetadata() *structpb.Value {
	if x != nil {
		return x.Metadata
	}
	return nil
}

func (x *ModelEvaluation) GetBiasConfigs() *ModelEvaluation_BiasConfig {
	if x != nil {
		return x.BiasConfigs
	}
	return nil
}

type ModelEvaluation_ModelEvaluationExplanationSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Explanation type.
	//
	// For AutoML Image Classification models, possible values are:
	//
	//   - `image-integrated-gradients`
	//   - `image-xrai`
	ExplanationType string `protobuf:"bytes,1,opt,name=explanation_type,json=explanationType,proto3" json:"explanation_type,omitempty"`
	// Explanation spec details.
	ExplanationSpec *ExplanationSpec `protobuf:"bytes,2,opt,name=explanation_spec,json=explanationSpec,proto3" json:"explanation_spec,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*ModelEvaluation_ModelEvaluationExplanationSpec) ProtoMessage() {}

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

func (x *ModelEvaluation_ModelEvaluationExplanationSpec) GetExplanationType() string {
	if x != nil {
		return x.ExplanationType
	}
	return ""
}

func (x *ModelEvaluation_ModelEvaluationExplanationSpec) GetExplanationSpec() *ExplanationSpec {
	if x != nil {
		return x.ExplanationSpec
	}
	return nil
}

// Configuration for bias detection.
type ModelEvaluation_BiasConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Specification for how the data should be sliced for bias. It contains a
	// list of slices, with limitation of two slices. The first slice of data
	// will be the slice_a. The second slice in the list (slice_b) will be
	// compared against the first slice. If only a single slice is provided,
	// then slice_a will be compared against "not slice_a".
	// Below are examples with feature "education" with value "low", "medium",
	// "high" in the dataset:
	//
	// Example 1:
	//
	//	bias_slices = [{'education': 'low'}]
	//
	// A single slice provided. In this case, slice_a is the collection of data
	// with 'education' equals 'low', and slice_b is the collection of data with
	// 'education' equals 'medium' or 'high'.
	//
	// Example 2:
	//
	//	bias_slices = [{'education': 'low'},
	//	               {'education': 'high'}]
	//
	// Two slices provided. In this case, slice_a is the collection of data
	// with 'education' equals 'low', and slice_b is the collection of data with
	// 'education' equals 'high'.
	BiasSlices *ModelEvaluationSlice_Slice_SliceSpec `protobuf:"bytes,1,opt,name=bias_slices,json=biasSlices,proto3" json:"bias_slices,omitempty"`
	// Positive labels selection on the target field.
	Labels        []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ModelEvaluation_BiasConfig) ProtoMessage() {}

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

func (x *ModelEvaluation_BiasConfig) GetBiasSlices() *ModelEvaluationSlice_Slice_SliceSpec {
	if x != nil {
		return x.BiasSlices
	}
	return nil
}

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

var File_google_cloud_aiplatform_v1beta1_model_evaluation_proto protoreflect.FileDescriptor

const file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDesc = "" +
	"\n" +
	"6google/cloud/aiplatform/v1beta1/model_evaluation.proto\x12\x1fgoogle.cloud.aiplatform.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a1google/cloud/aiplatform/v1beta1/explanation.proto\x1a<google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc7\b\n" +
	"\x0fModelEvaluation\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\x03R\x04name\x12!\n" +
	"\fdisplay_name\x18\n" +
	" \x01(\tR\vdisplayName\x12,\n" +
	"\x12metrics_schema_uri\x18\x02 \x01(\tR\x10metricsSchemaUri\x120\n" +
	"\ametrics\x18\x03 \x01(\v2\x16.google.protobuf.ValueR\ametrics\x12@\n" +
	"\vcreate_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12)\n" +
	"\x10slice_dimensions\x18\x05 \x03(\tR\x0fsliceDimensions\x12^\n" +
	"\x11model_explanation\x18\b \x01(\v21.google.cloud.aiplatform.v1beta1.ModelExplanationR\x10modelExplanation\x12|\n" +
	"\x11explanation_specs\x18\t \x03(\v2O.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpecR\x10explanationSpecs\x122\n" +
	"\bmetadata\x18\v \x01(\v2\x16.google.protobuf.ValueR\bmetadata\x12^\n" +
	"\fbias_configs\x18\f \x01(\v2;.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfigR\vbiasConfigs\x1a\xa8\x01\n" +
	"\x1eModelEvaluationExplanationSpec\x12)\n" +
	"\x10explanation_type\x18\x01 \x01(\tR\x0fexplanationType\x12[\n" +
	"\x10explanation_spec\x18\x02 \x01(\v20.google.cloud.aiplatform.v1beta1.ExplanationSpecR\x0fexplanationSpec\x1a\x8c\x01\n" +
	"\n" +
	"BiasConfig\x12f\n" +
	"\vbias_slices\x18\x01 \x01(\v2E.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpecR\n" +
	"biasSlices\x12\x16\n" +
	"\x06labels\x18\x02 \x03(\tR\x06labels:\x7f\xeaA|\n" +
	")aiplatform.googleapis.com/ModelEvaluation\x12Oprojects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}B\xeb\x01\n" +
	"#com.google.cloud.aiplatform.v1beta1B\x14ModelEvaluationProtoP\x01ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb\xaa\x02\x1fGoogle.Cloud.AIPlatform.V1Beta1\xca\x02\x1fGoogle\\Cloud\\AIPlatform\\V1beta1\xea\x02\"Google::Cloud::AIPlatform::V1beta1b\x06proto3"

var (
	file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDescOnce sync.Once
	file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDescData []byte
)

func file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDescGZIP() []byte {
	file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDescOnce.Do(func() {
		file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDesc)))
	})
	return file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDescData
}

var file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_goTypes = []any{
	(*ModelEvaluation)(nil),                                // 0: google.cloud.aiplatform.v1beta1.ModelEvaluation
	(*ModelEvaluation_ModelEvaluationExplanationSpec)(nil), // 1: google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec
	(*ModelEvaluation_BiasConfig)(nil),                     // 2: google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig
	(*structpb.Value)(nil),                                 // 3: google.protobuf.Value
	(*timestamppb.Timestamp)(nil),                          // 4: google.protobuf.Timestamp
	(*ModelExplanation)(nil),                               // 5: google.cloud.aiplatform.v1beta1.ModelExplanation
	(*ExplanationSpec)(nil),                                // 6: google.cloud.aiplatform.v1beta1.ExplanationSpec
	(*ModelEvaluationSlice_Slice_SliceSpec)(nil),           // 7: google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec
}
var file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_depIdxs = []int32{
	3, // 0: google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics:type_name -> google.protobuf.Value
	4, // 1: google.cloud.aiplatform.v1beta1.ModelEvaluation.create_time:type_name -> google.protobuf.Timestamp
	5, // 2: google.cloud.aiplatform.v1beta1.ModelEvaluation.model_explanation:type_name -> google.cloud.aiplatform.v1beta1.ModelExplanation
	1, // 3: google.cloud.aiplatform.v1beta1.ModelEvaluation.explanation_specs:type_name -> google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec
	3, // 4: google.cloud.aiplatform.v1beta1.ModelEvaluation.metadata:type_name -> google.protobuf.Value
	2, // 5: google.cloud.aiplatform.v1beta1.ModelEvaluation.bias_configs:type_name -> google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig
	6, // 6: google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec.explanation_spec:type_name -> google.cloud.aiplatform.v1beta1.ExplanationSpec
	7, // 7: google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.bias_slices:type_name -> google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec
	8, // [8:8] is the sub-list for method output_type
	8, // [8:8] is the sub-list for method input_type
	8, // [8:8] is the sub-list for extension type_name
	8, // [8:8] is the sub-list for extension extendee
	0, // [0:8] is the sub-list for field type_name
}

func init() { file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_init() }
func file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_init() {
	if File_google_cloud_aiplatform_v1beta1_model_evaluation_proto != nil {
		return
	}
	file_google_cloud_aiplatform_v1beta1_explanation_proto_init()
	file_google_cloud_aiplatform_v1beta1_model_evaluation_slice_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_goTypes,
		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_depIdxs,
		MessageInfos:      file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_msgTypes,
	}.Build()
	File_google_cloud_aiplatform_v1beta1_model_evaluation_proto = out.File
	file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_goTypes = nil
	file_google_cloud_aiplatform_v1beta1_model_evaluation_proto_depIdxs = nil
}
