# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/evaluated_annotation.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/cloud/aiplatform/v1/explanation_pb'
require 'google/protobuf/struct_pb'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/cloud/aiplatform/v1/evaluated_annotation.proto", :syntax => :proto3) do
    add_message "google.cloud.aiplatform.v1.EvaluatedAnnotation" do
      optional :type, :enum, 1, "google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType"
      repeated :predictions, :message, 2, "google.protobuf.Value"
      repeated :ground_truths, :message, 3, "google.protobuf.Value"
      optional :data_item_payload, :message, 5, "google.protobuf.Value"
      optional :evaluated_data_item_view_id, :string, 6
      repeated :explanations, :message, 8, "google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation"
      repeated :error_analysis_annotations, :message, 9, "google.cloud.aiplatform.v1.ErrorAnalysisAnnotation"
    end
    add_enum "google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType" do
      value :EVALUATED_ANNOTATION_TYPE_UNSPECIFIED, 0
      value :TRUE_POSITIVE, 1
      value :FALSE_POSITIVE, 2
      value :FALSE_NEGATIVE, 3
    end
    add_message "google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation" do
      optional :explanation_type, :string, 1
      optional :explanation, :message, 2, "google.cloud.aiplatform.v1.Explanation"
    end
    add_message "google.cloud.aiplatform.v1.ErrorAnalysisAnnotation" do
      repeated :attributed_items, :message, 1, "google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem"
      optional :query_type, :enum, 2, "google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType"
      optional :outlier_score, :double, 3
      optional :outlier_threshold, :double, 4
    end
    add_message "google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem" do
      optional :annotation_resource_name, :string, 1
      optional :distance, :double, 2
    end
    add_enum "google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType" do
      value :QUERY_TYPE_UNSPECIFIED, 0
      value :ALL_SIMILAR, 1
      value :SAME_CLASS_SIMILAR, 2
      value :SAME_CLASS_DISSIMILAR, 3
    end
  end
end

module Google
  module Cloud
    module AIPlatform
      module V1
        EvaluatedAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.EvaluatedAnnotation").msgclass
        EvaluatedAnnotation::EvaluatedAnnotationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType").enummodule
        EvaluatedAnnotationExplanation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation").msgclass
        ErrorAnalysisAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ErrorAnalysisAnnotation").msgclass
        ErrorAnalysisAnnotation::AttributedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem").msgclass
        ErrorAnalysisAnnotation::QueryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType").enummodule
      end
    end
  end
end