1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/automl/v1beta1/model_evaluation.proto
3
4package automl
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	timestamp "github.com/golang/protobuf/ptypes/timestamp"
12	_ "google.golang.org/genproto/googleapis/api/annotations"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26// Evaluation results of a model.
27type ModelEvaluation struct {
28	// Output only. Problem type specific evaluation metrics.
29	//
30	// Types that are valid to be assigned to Metrics:
31	//	*ModelEvaluation_ClassificationEvaluationMetrics
32	//	*ModelEvaluation_RegressionEvaluationMetrics
33	//	*ModelEvaluation_TranslationEvaluationMetrics
34	//	*ModelEvaluation_ImageObjectDetectionEvaluationMetrics
35	//	*ModelEvaluation_TextSentimentEvaluationMetrics
36	//	*ModelEvaluation_TextExtractionEvaluationMetrics
37	Metrics isModelEvaluation_Metrics `protobuf_oneof:"metrics"`
38	// Output only.
39	// Resource name of the model evaluation.
40	// Format:
41	//
42	// `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
43	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
44	// Output only.
45	// The ID of the annotation spec that the model evaluation applies to. The
46	// The ID is empty for the overall model evaluation.
47	// For Tables classification these are the distinct values of the target
48	// column at the moment of the evaluation; for this problem annotation specs
49	// in the dataset do not exist.
50	// NOTE: Currently there is no way to obtain the display_name of the
51	// annotation spec from its ID. To see the display_names, review the model
52	// evaluations in the UI.
53	AnnotationSpecId string `protobuf:"bytes,2,opt,name=annotation_spec_id,json=annotationSpecId,proto3" json:"annotation_spec_id,omitempty"`
54	// Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
55	// was trained. Because this field returns a value at model training time,
56	// for different models trained using the same dataset, the returned value
57	// could be different as model owner could update the display_name between
58	// any two model training.
59	// The display_name is empty for the overall model evaluation.
60	DisplayName string `protobuf:"bytes,15,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
61	// Output only.
62	// Timestamp when this model evaluation was created.
63	CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
64	// Output only.
65	// The number of examples used for model evaluation, i.e. for
66	// which ground truth from time of model creation is compared against the
67	// predicted annotations created by the model.
68	// For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
69	// the total number of all examples used for evaluation.
70	// Otherwise, this is the count of examples that according to the ground
71	// truth were annotated by the
72	//
73	// [annotation_spec_id][google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id].
74	EvaluatedExampleCount int32    `protobuf:"varint,6,opt,name=evaluated_example_count,json=evaluatedExampleCount,proto3" json:"evaluated_example_count,omitempty"`
75	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
76	XXX_unrecognized      []byte   `json:"-"`
77	XXX_sizecache         int32    `json:"-"`
78}
79
80func (m *ModelEvaluation) Reset()         { *m = ModelEvaluation{} }
81func (m *ModelEvaluation) String() string { return proto.CompactTextString(m) }
82func (*ModelEvaluation) ProtoMessage()    {}
83func (*ModelEvaluation) Descriptor() ([]byte, []int) {
84	return fileDescriptor_2d3cea51cfd5443a, []int{0}
85}
86
87func (m *ModelEvaluation) XXX_Unmarshal(b []byte) error {
88	return xxx_messageInfo_ModelEvaluation.Unmarshal(m, b)
89}
90func (m *ModelEvaluation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
91	return xxx_messageInfo_ModelEvaluation.Marshal(b, m, deterministic)
92}
93func (m *ModelEvaluation) XXX_Merge(src proto.Message) {
94	xxx_messageInfo_ModelEvaluation.Merge(m, src)
95}
96func (m *ModelEvaluation) XXX_Size() int {
97	return xxx_messageInfo_ModelEvaluation.Size(m)
98}
99func (m *ModelEvaluation) XXX_DiscardUnknown() {
100	xxx_messageInfo_ModelEvaluation.DiscardUnknown(m)
101}
102
103var xxx_messageInfo_ModelEvaluation proto.InternalMessageInfo
104
105type isModelEvaluation_Metrics interface {
106	isModelEvaluation_Metrics()
107}
108
109type ModelEvaluation_ClassificationEvaluationMetrics struct {
110	ClassificationEvaluationMetrics *ClassificationEvaluationMetrics `protobuf:"bytes,8,opt,name=classification_evaluation_metrics,json=classificationEvaluationMetrics,proto3,oneof"`
111}
112
113type ModelEvaluation_RegressionEvaluationMetrics struct {
114	RegressionEvaluationMetrics *RegressionEvaluationMetrics `protobuf:"bytes,24,opt,name=regression_evaluation_metrics,json=regressionEvaluationMetrics,proto3,oneof"`
115}
116
117type ModelEvaluation_TranslationEvaluationMetrics struct {
118	TranslationEvaluationMetrics *TranslationEvaluationMetrics `protobuf:"bytes,9,opt,name=translation_evaluation_metrics,json=translationEvaluationMetrics,proto3,oneof"`
119}
120
121type ModelEvaluation_ImageObjectDetectionEvaluationMetrics struct {
122	ImageObjectDetectionEvaluationMetrics *ImageObjectDetectionEvaluationMetrics `protobuf:"bytes,12,opt,name=image_object_detection_evaluation_metrics,json=imageObjectDetectionEvaluationMetrics,proto3,oneof"`
123}
124
125type ModelEvaluation_TextSentimentEvaluationMetrics struct {
126	TextSentimentEvaluationMetrics *TextSentimentEvaluationMetrics `protobuf:"bytes,11,opt,name=text_sentiment_evaluation_metrics,json=textSentimentEvaluationMetrics,proto3,oneof"`
127}
128
129type ModelEvaluation_TextExtractionEvaluationMetrics struct {
130	TextExtractionEvaluationMetrics *TextExtractionEvaluationMetrics `protobuf:"bytes,13,opt,name=text_extraction_evaluation_metrics,json=textExtractionEvaluationMetrics,proto3,oneof"`
131}
132
133func (*ModelEvaluation_ClassificationEvaluationMetrics) isModelEvaluation_Metrics() {}
134
135func (*ModelEvaluation_RegressionEvaluationMetrics) isModelEvaluation_Metrics() {}
136
137func (*ModelEvaluation_TranslationEvaluationMetrics) isModelEvaluation_Metrics() {}
138
139func (*ModelEvaluation_ImageObjectDetectionEvaluationMetrics) isModelEvaluation_Metrics() {}
140
141func (*ModelEvaluation_TextSentimentEvaluationMetrics) isModelEvaluation_Metrics() {}
142
143func (*ModelEvaluation_TextExtractionEvaluationMetrics) isModelEvaluation_Metrics() {}
144
145func (m *ModelEvaluation) GetMetrics() isModelEvaluation_Metrics {
146	if m != nil {
147		return m.Metrics
148	}
149	return nil
150}
151
152func (m *ModelEvaluation) GetClassificationEvaluationMetrics() *ClassificationEvaluationMetrics {
153	if x, ok := m.GetMetrics().(*ModelEvaluation_ClassificationEvaluationMetrics); ok {
154		return x.ClassificationEvaluationMetrics
155	}
156	return nil
157}
158
159func (m *ModelEvaluation) GetRegressionEvaluationMetrics() *RegressionEvaluationMetrics {
160	if x, ok := m.GetMetrics().(*ModelEvaluation_RegressionEvaluationMetrics); ok {
161		return x.RegressionEvaluationMetrics
162	}
163	return nil
164}
165
166func (m *ModelEvaluation) GetTranslationEvaluationMetrics() *TranslationEvaluationMetrics {
167	if x, ok := m.GetMetrics().(*ModelEvaluation_TranslationEvaluationMetrics); ok {
168		return x.TranslationEvaluationMetrics
169	}
170	return nil
171}
172
173func (m *ModelEvaluation) GetImageObjectDetectionEvaluationMetrics() *ImageObjectDetectionEvaluationMetrics {
174	if x, ok := m.GetMetrics().(*ModelEvaluation_ImageObjectDetectionEvaluationMetrics); ok {
175		return x.ImageObjectDetectionEvaluationMetrics
176	}
177	return nil
178}
179
180func (m *ModelEvaluation) GetTextSentimentEvaluationMetrics() *TextSentimentEvaluationMetrics {
181	if x, ok := m.GetMetrics().(*ModelEvaluation_TextSentimentEvaluationMetrics); ok {
182		return x.TextSentimentEvaluationMetrics
183	}
184	return nil
185}
186
187func (m *ModelEvaluation) GetTextExtractionEvaluationMetrics() *TextExtractionEvaluationMetrics {
188	if x, ok := m.GetMetrics().(*ModelEvaluation_TextExtractionEvaluationMetrics); ok {
189		return x.TextExtractionEvaluationMetrics
190	}
191	return nil
192}
193
194func (m *ModelEvaluation) GetName() string {
195	if m != nil {
196		return m.Name
197	}
198	return ""
199}
200
201func (m *ModelEvaluation) GetAnnotationSpecId() string {
202	if m != nil {
203		return m.AnnotationSpecId
204	}
205	return ""
206}
207
208func (m *ModelEvaluation) GetDisplayName() string {
209	if m != nil {
210		return m.DisplayName
211	}
212	return ""
213}
214
215func (m *ModelEvaluation) GetCreateTime() *timestamp.Timestamp {
216	if m != nil {
217		return m.CreateTime
218	}
219	return nil
220}
221
222func (m *ModelEvaluation) GetEvaluatedExampleCount() int32 {
223	if m != nil {
224		return m.EvaluatedExampleCount
225	}
226	return 0
227}
228
229// XXX_OneofWrappers is for the internal use of the proto package.
230func (*ModelEvaluation) XXX_OneofWrappers() []interface{} {
231	return []interface{}{
232		(*ModelEvaluation_ClassificationEvaluationMetrics)(nil),
233		(*ModelEvaluation_RegressionEvaluationMetrics)(nil),
234		(*ModelEvaluation_TranslationEvaluationMetrics)(nil),
235		(*ModelEvaluation_ImageObjectDetectionEvaluationMetrics)(nil),
236		(*ModelEvaluation_TextSentimentEvaluationMetrics)(nil),
237		(*ModelEvaluation_TextExtractionEvaluationMetrics)(nil),
238	}
239}
240
241func init() {
242	proto.RegisterType((*ModelEvaluation)(nil), "google.cloud.automl.v1beta1.ModelEvaluation")
243}
244
245func init() {
246	proto.RegisterFile("google/cloud/automl/v1beta1/model_evaluation.proto", fileDescriptor_2d3cea51cfd5443a)
247}
248
249var fileDescriptor_2d3cea51cfd5443a = []byte{
250	// 595 bytes of a gzipped FileDescriptorProto
251	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x41, 0x6b, 0xd4, 0x40,
252	0x14, 0xc7, 0x4d, 0xb1, 0xb5, 0x9d, 0xad, 0x54, 0x06, 0xc4, 0xb0, 0xad, 0xed, 0x6e, 0x41, 0x58,
253	0xb1, 0x26, 0xdd, 0x0a, 0xa2, 0xac, 0x97, 0xee, 0xba, 0x68, 0x0f, 0xab, 0xb2, 0x2d, 0x1e, 0x64,
254	0x21, 0xcc, 0x4e, 0x5e, 0x43, 0x64, 0x92, 0x09, 0x99, 0x49, 0x59, 0x2f, 0x82, 0xe0, 0x41, 0xf4,
255	0x3b, 0xf8, 0x5d, 0xbc, 0xfa, 0xa9, 0x24, 0x93, 0x64, 0x93, 0x95, 0x71, 0xec, 0x2d, 0xc9, 0xfb,
256	0xff, 0xff, 0xf3, 0xcb, 0x7b, 0x33, 0x83, 0x4e, 0x02, 0xce, 0x03, 0x06, 0x2e, 0x65, 0x3c, 0xf3,
257	0x5d, 0x92, 0x49, 0x1e, 0x31, 0xf7, 0xaa, 0x3f, 0x07, 0x49, 0xfa, 0x6e, 0xc4, 0x7d, 0x60, 0x1e,
258	0x5c, 0x11, 0x96, 0x11, 0x19, 0xf2, 0xd8, 0x49, 0x52, 0x2e, 0x39, 0xde, 0x2d, 0x3c, 0x8e, 0xf2,
259	0x38, 0x85, 0xc7, 0x29, 0x3d, 0xed, 0xbd, 0x32, 0x90, 0x24, 0xa1, 0x4b, 0xe2, 0x98, 0x4b, 0xe5,
260	0x14, 0x85, 0xb5, 0x7d, 0x6c, 0x5a, 0x8e, 0x32, 0x22, 0x44, 0x78, 0x19, 0xd2, 0xc6, 0x62, 0xed,
261	0x47, 0x26, 0x87, 0x0f, 0x12, 0x68, 0x43, 0x7c, 0x64, 0x12, 0xa7, 0x10, 0xa4, 0x20, 0x44, 0xad,
262	0xee, 0x99, 0xd4, 0x92, 0xcc, 0x19, 0x54, 0xd8, 0x7d, 0xa3, 0x12, 0x16, 0xd2, 0x83, 0x85, 0x4c,
263	0x49, 0x13, 0xe5, 0xf8, 0xbf, 0x16, 0x01, 0xb1, 0x0c, 0x23, 0x88, 0x65, 0xe9, 0x78, 0x6c, 0x74,
264	0xa4, 0x24, 0x16, 0xac, 0xd9, 0x98, 0x83, 0x52, 0xae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, 0x2c, 0xe3, 0x65,
276	0x8a, 0x76, 0xf7, 0x4a, 0xb3, 0x04, 0x63, 0x74, 0x33, 0x26, 0x11, 0xd8, 0x56, 0xc7, 0xea, 0x6d,
277	0x4d, 0xd5, 0x33, 0x3e, 0x42, 0xb8, 0xbe, 0xf3, 0x3c, 0x91, 0x00, 0xf5, 0x42, 0xdf, 0x5e, 0x53,
278	0x8a, 0x3b, 0x75, 0xe5, 0x3c, 0x01, 0x7a, 0xe6, 0xe3, 0x2e, 0xda, 0xf6, 0x43, 0x91, 0x30, 0xf2,
279	0xc9, 0x53, 0x49, 0x3b, 0x4a, 0xd7, 0x2a, 0xbf, 0xbd, 0xc9, 0x03, 0x07, 0xa8, 0x45, 0x53, 0x20,
280	0x12, 0xbc, 0xbc, 0x29, 0xf6, 0xba, 0xfa, 0xb5, 0x76, 0xf5, 0x6b, 0xd5, 0xd1, 0x77, 0x2e, 0xaa,
281	0xa3, 0x3f, 0x45, 0x85, 0x3c, 0xff, 0x80, 0x9f, 0xa2, 0x7b, 0x65, 0x7b, 0xc0, 0xf7, 0x60, 0x41,
282	0xa2, 0x84, 0x81, 0x47, 0x79, 0x16, 0x4b, 0x7b, 0xa3, 0x63, 0xf5, 0xd6, 0xa7, 0x77, 0x97, 0xe5,
283	0x71, 0x51, 0x1d, 0xe5, 0xc5, 0xe1, 0x16, 0xba, 0x55, 0xf6, 0x72, 0xf8, 0xd5, 0x42, 0x07, 0x94,
284	0x47, 0xa6, 0x5e, 0xbe, 0xb3, 0x3e, 0x9c, 0x96, 0xe5, 0x80, 0x33, 0x12, 0x07, 0x0e, 0x4f, 0x03,
285	0x37, 0x80, 0x58, 0xd1, 0xb9, 0x45, 0x89, 0x24, 0xa1, 0xd0, 0x5e, 0x6c, 0x83, 0xe2, 0xf5, 0xf7,
286	0xda, 0xee, 0x2b, 0x25, 0x9c, 0x8d, 0x72, 0xd1, 0xec, 0x34, 0x93, 0x7c, 0xc2, 0x66, 0xef, 0x0b,
287	0xd1, 0x7c, 0x43, 0x65, 0x3d, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0x08, 0xb8, 0xf3, 0x9a, 0xae,
288	0x06, 0x00, 0x00,
289}
290