// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1/text_extraction.proto

package automl

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	_ "google.golang.org/genproto/googleapis/api/annotations"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// Annotation for identifying spans of text.
type TextExtractionAnnotation struct {
	// Required. Text extraction annotations can either be a text segment or a
	// text relation.
	//
	// Types that are valid to be assigned to Annotation:
	//	*TextExtractionAnnotation_TextSegment
	Annotation isTextExtractionAnnotation_Annotation `protobuf_oneof:"annotation"`
	// Output only. A confidence estimate between 0.0 and 1.0. A higher value
	// means greater confidence in correctness of the annotation.
	Score                float32  `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TextExtractionAnnotation) Reset()         { *m = TextExtractionAnnotation{} }
func (m *TextExtractionAnnotation) String() string { return proto.CompactTextString(m) }
func (*TextExtractionAnnotation) ProtoMessage()    {}
func (*TextExtractionAnnotation) Descriptor() ([]byte, []int) {
	return fileDescriptor_d9a1af098e3392dc, []int{0}
}

func (m *TextExtractionAnnotation) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TextExtractionAnnotation.Unmarshal(m, b)
}
func (m *TextExtractionAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TextExtractionAnnotation.Marshal(b, m, deterministic)
}
func (m *TextExtractionAnnotation) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TextExtractionAnnotation.Merge(m, src)
}
func (m *TextExtractionAnnotation) XXX_Size() int {
	return xxx_messageInfo_TextExtractionAnnotation.Size(m)
}
func (m *TextExtractionAnnotation) XXX_DiscardUnknown() {
	xxx_messageInfo_TextExtractionAnnotation.DiscardUnknown(m)
}

var xxx_messageInfo_TextExtractionAnnotation proto.InternalMessageInfo

type isTextExtractionAnnotation_Annotation interface {
	isTextExtractionAnnotation_Annotation()
}

type TextExtractionAnnotation_TextSegment struct {
	TextSegment *TextSegment `protobuf:"bytes,3,opt,name=text_segment,json=textSegment,proto3,oneof"`
}

func (*TextExtractionAnnotation_TextSegment) isTextExtractionAnnotation_Annotation() {}

func (m *TextExtractionAnnotation) GetAnnotation() isTextExtractionAnnotation_Annotation {
	if m != nil {
		return m.Annotation
	}
	return nil
}

func (m *TextExtractionAnnotation) GetTextSegment() *TextSegment {
	if x, ok := m.GetAnnotation().(*TextExtractionAnnotation_TextSegment); ok {
		return x.TextSegment
	}
	return nil
}

func (m *TextExtractionAnnotation) GetScore() float32 {
	if m != nil {
		return m.Score
	}
	return 0
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*TextExtractionAnnotation) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*TextExtractionAnnotation_TextSegment)(nil),
	}
}

// Model evaluation metrics for text extraction problems.
type TextExtractionEvaluationMetrics struct {
	// Output only. The Area under precision recall curve metric.
	AuPrc float32 `protobuf:"fixed32,1,opt,name=au_prc,json=auPrc,proto3" json:"au_prc,omitempty"`
	// Output only. Metrics that have confidence thresholds.
	// Precision-recall curve can be derived from it.
	ConfidenceMetricsEntries []*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry `protobuf:"bytes,2,rep,name=confidence_metrics_entries,json=confidenceMetricsEntries,proto3" json:"confidence_metrics_entries,omitempty"`
	XXX_NoUnkeyedLiteral     struct{}                                                  `json:"-"`
	XXX_unrecognized         []byte                                                    `json:"-"`
	XXX_sizecache            int32                                                     `json:"-"`
}

func (m *TextExtractionEvaluationMetrics) Reset()         { *m = TextExtractionEvaluationMetrics{} }
func (m *TextExtractionEvaluationMetrics) String() string { return proto.CompactTextString(m) }
func (*TextExtractionEvaluationMetrics) ProtoMessage()    {}
func (*TextExtractionEvaluationMetrics) Descriptor() ([]byte, []int) {
	return fileDescriptor_d9a1af098e3392dc, []int{1}
}

func (m *TextExtractionEvaluationMetrics) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TextExtractionEvaluationMetrics.Unmarshal(m, b)
}
func (m *TextExtractionEvaluationMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TextExtractionEvaluationMetrics.Marshal(b, m, deterministic)
}
func (m *TextExtractionEvaluationMetrics) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TextExtractionEvaluationMetrics.Merge(m, src)
}
func (m *TextExtractionEvaluationMetrics) XXX_Size() int {
	return xxx_messageInfo_TextExtractionEvaluationMetrics.Size(m)
}
func (m *TextExtractionEvaluationMetrics) XXX_DiscardUnknown() {
	xxx_messageInfo_TextExtractionEvaluationMetrics.DiscardUnknown(m)
}

var xxx_messageInfo_TextExtractionEvaluationMetrics proto.InternalMessageInfo

func (m *TextExtractionEvaluationMetrics) GetAuPrc() float32 {
	if m != nil {
		return m.AuPrc
	}
	return 0
}

func (m *TextExtractionEvaluationMetrics) GetConfidenceMetricsEntries() []*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry {
	if m != nil {
		return m.ConfidenceMetricsEntries
	}
	return nil
}

// Metrics for a single confidence threshold.
type TextExtractionEvaluationMetrics_ConfidenceMetricsEntry struct {
	// Output only. The confidence threshold value used to compute the metrics.
	// Only annotations with score of at least this threshold are considered to
	// be ones the model would return.
	ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"`
	// Output only. Recall under the given confidence threshold.
	Recall float32 `protobuf:"fixed32,3,opt,name=recall,proto3" json:"recall,omitempty"`
	// Output only. Precision under the given confidence threshold.
	Precision float32 `protobuf:"fixed32,4,opt,name=precision,proto3" json:"precision,omitempty"`
	// Output only. The harmonic mean of recall and precision.
	F1Score              float32  `protobuf:"fixed32,5,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) Reset() {
	*m = TextExtractionEvaluationMetrics_ConfidenceMetricsEntry{}
}
func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) String() string {
	return proto.CompactTextString(m)
}
func (*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) ProtoMessage() {}
func (*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) Descriptor() ([]byte, []int) {
	return fileDescriptor_d9a1af098e3392dc, []int{1, 0}
}

func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.Unmarshal(m, b)
}
func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.Marshal(b, m, deterministic)
}
func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.Merge(m, src)
}
func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_Size() int {
	return xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.Size(m)
}
func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_DiscardUnknown() {
	xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.DiscardUnknown(m)
}

var xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry proto.InternalMessageInfo

func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetConfidenceThreshold() float32 {
	if m != nil {
		return m.ConfidenceThreshold
	}
	return 0
}

func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetRecall() float32 {
	if m != nil {
		return m.Recall
	}
	return 0
}

func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetPrecision() float32 {
	if m != nil {
		return m.Precision
	}
	return 0
}

func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetF1Score() float32 {
	if m != nil {
		return m.F1Score
	}
	return 0
}

func init() {
	proto.RegisterType((*TextExtractionAnnotation)(nil), "google.cloud.automl.v1.TextExtractionAnnotation")
	proto.RegisterType((*TextExtractionEvaluationMetrics)(nil), "google.cloud.automl.v1.TextExtractionEvaluationMetrics")
	proto.RegisterType((*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry)(nil), "google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry")
}

func init() {
	proto.RegisterFile("google/cloud/automl/v1/text_extraction.proto", fileDescriptor_d9a1af098e3392dc)
}

var fileDescriptor_d9a1af098e3392dc = []byte{
	// 437 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x6e, 0xd3, 0x30,
	0x1c, 0xc6, 0x49, 0xc6, 0x0a, 0xb8, 0x3b, 0x99, 0x51, 0x65, 0xd5, 0x24, 0xaa, 0x71, 0x29, 0x12,
	0x72, 0xe4, 0x71, 0x0b, 0x5c, 0xc6, 0x54, 0xb1, 0x03, 0x43, 0x53, 0x37, 0xf5, 0x80, 0x2a, 0x45,
	0xc6, 0xfd, 0x37, 0xb3, 0xe4, 0xd8, 0x91, 0xed, 0x54, 0xe5, 0x0d, 0x38, 0xf0, 0x08, 0x3c, 0xc1,
	0x1e, 0x85, 0x07, 0xe1, 0xc0, 0x53, 0xa0, 0xd9, 0x69, 0x53, 0x50, 0xd7, 0x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