// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/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 {
	// 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"`
	// Required. The part of the original text to which this annotation pertains.
	TextSegment          *TextSegment `protobuf:"bytes,3,opt,name=text_segment,json=textSegment,proto3" json:"text_segment,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_425e57cc225e529c, []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

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

func (m *TextExtractionAnnotation) GetTextSegment() *TextSegment {
	if m != nil {
		return m.TextSegment
	}
	return 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_425e57cc225e529c, []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_425e57cc225e529c, []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.v1beta1.TextExtractionAnnotation")
	proto.RegisterType((*TextExtractionEvaluationMetrics)(nil), "google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics")
	proto.RegisterType((*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry)(nil), "google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry")
}

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

var fileDescriptor_425e57cc225e529c = []byte{
	// 406 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcf, 0x6a, 0xdb, 0x30,
	0x18, 0xc7, 0xee, 0x9a, 0x6d, 0xca, 0x4e, 0x5a, 0x57, 0xbc, 0xb4, 0xd0, 0xd0, 0x53, 0x4e, 0x32,
	0xee, 0x8e, 0x3b, 0x65, 0x25, 0xec, 0x30, 0x0a, 0x25, 0x29, 0x3b, 0x8c, 0x80, 0x51, 0x95, 0x2f,
	0xae, 0x40, 0xd1, 0x67, 0xa4, 0xcf, 0x25, 0x3b, 0xec, 0xb6, 0x17, 0xd8, 0x7d, 0x4f, 0xb4, 0x57,
	0xd9, 0x4b, 0x0c, 0x4b, 0x6e, 0xd2, 0x41, 0x48, 0x8e, 0x3f, 0xfd, 0xfe, 0x5a, 0x16, 0x2b, 0x2a,
	0xc4, 0xca, 0x40, 0xae, 0x0c, 0x36, 0x8b, 0x5c, 0x36, 0x84, 0x2b, 0x93, 0x3f, 0x16, 0xf7, 0x40,
	0xb2, 0xc8, 0x09, 0xd6, 0x54, 0xc2, 0x9a, 0x9c, 0x54, 0xa4, 0xd1, 0x8a, 0xda, 0x21, 0x21, 0x3f,
	0x8b, 0x16, 0x11, 0x2c, 0x22, 0x5a, 0x44, 0x67, 0x19, 0x9c, 0x77, 0x79, 0xb2, 0xd6, 0xb9, 0xb4,
	0x16, 0x49, 0xb6, 0x4e, 0x1f, 0xad, 0x03, 0x71, 0xb0, 0xcd, 0x43, 0xb5, 0x02, 0x4b, 0x51, 0x7f,
	0xf9, 0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