1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.26.0
18// 	protoc        v3.12.2
19// source: google/cloud/automl/v1/text_extraction.proto
20
21package automl
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	_ "google.golang.org/genproto/googleapis/api/annotations"
28	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30)
31
32const (
33	// Verify that this generated code is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35	// Verify that runtime/protoimpl is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
38
39// Annotation for identifying spans of text.
40type TextExtractionAnnotation struct {
41	state         protoimpl.MessageState
42	sizeCache     protoimpl.SizeCache
43	unknownFields protoimpl.UnknownFields
44
45	// Required. Text extraction annotations can either be a text segment or a
46	// text relation.
47	//
48	// Types that are assignable to Annotation:
49	//	*TextExtractionAnnotation_TextSegment
50	Annotation isTextExtractionAnnotation_Annotation `protobuf_oneof:"annotation"`
51	// Output only. A confidence estimate between 0.0 and 1.0. A higher value
52	// means greater confidence in correctness of the annotation.
53	Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"`
54}
55
56func (x *TextExtractionAnnotation) Reset() {
57	*x = TextExtractionAnnotation{}
58	if protoimpl.UnsafeEnabled {
59		mi := &file_google_cloud_automl_v1_text_extraction_proto_msgTypes[0]
60		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
61		ms.StoreMessageInfo(mi)
62	}
63}
64
65func (x *TextExtractionAnnotation) String() string {
66	return protoimpl.X.MessageStringOf(x)
67}
68
69func (*TextExtractionAnnotation) ProtoMessage() {}
70
71func (x *TextExtractionAnnotation) ProtoReflect() protoreflect.Message {
72	mi := &file_google_cloud_automl_v1_text_extraction_proto_msgTypes[0]
73	if protoimpl.UnsafeEnabled && x != nil {
74		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75		if ms.LoadMessageInfo() == nil {
76			ms.StoreMessageInfo(mi)
77		}
78		return ms
79	}
80	return mi.MessageOf(x)
81}
82
83// Deprecated: Use TextExtractionAnnotation.ProtoReflect.Descriptor instead.
84func (*TextExtractionAnnotation) Descriptor() ([]byte, []int) {
85	return file_google_cloud_automl_v1_text_extraction_proto_rawDescGZIP(), []int{0}
86}
87
88func (m *TextExtractionAnnotation) GetAnnotation() isTextExtractionAnnotation_Annotation {
89	if m != nil {
90		return m.Annotation
91	}
92	return nil
93}
94
95func (x *TextExtractionAnnotation) GetTextSegment() *TextSegment {
96	if x, ok := x.GetAnnotation().(*TextExtractionAnnotation_TextSegment); ok {
97		return x.TextSegment
98	}
99	return nil
100}
101
102func (x *TextExtractionAnnotation) GetScore() float32 {
103	if x != nil {
104		return x.Score
105	}
106	return 0
107}
108
109type isTextExtractionAnnotation_Annotation interface {
110	isTextExtractionAnnotation_Annotation()
111}
112
113type TextExtractionAnnotation_TextSegment struct {
114	// An entity annotation will set this, which is the part of the original
115	// text to which the annotation pertains.
116	TextSegment *TextSegment `protobuf:"bytes,3,opt,name=text_segment,json=textSegment,proto3,oneof"`
117}
118
119func (*TextExtractionAnnotation_TextSegment) isTextExtractionAnnotation_Annotation() {}
120
121// Model evaluation metrics for text extraction problems.
122type TextExtractionEvaluationMetrics struct {
123	state         protoimpl.MessageState
124	sizeCache     protoimpl.SizeCache
125	unknownFields protoimpl.UnknownFields
126
127	// Output only. The Area under precision recall curve metric.
128	AuPrc float32 `protobuf:"fixed32,1,opt,name=au_prc,json=auPrc,proto3" json:"au_prc,omitempty"`
129	// Output only. Metrics that have confidence thresholds.
130	// Precision-recall curve can be derived from it.
131	ConfidenceMetricsEntries []*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry `protobuf:"bytes,2,rep,name=confidence_metrics_entries,json=confidenceMetricsEntries,proto3" json:"confidence_metrics_entries,omitempty"`
132}
133
134func (x *TextExtractionEvaluationMetrics) Reset() {
135	*x = TextExtractionEvaluationMetrics{}
136	if protoimpl.UnsafeEnabled {
137		mi := &file_google_cloud_automl_v1_text_extraction_proto_msgTypes[1]
138		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
139		ms.StoreMessageInfo(mi)
140	}
141}
142
143func (x *TextExtractionEvaluationMetrics) String() string {
144	return protoimpl.X.MessageStringOf(x)
145}
146
147func (*TextExtractionEvaluationMetrics) ProtoMessage() {}
148
149func (x *TextExtractionEvaluationMetrics) ProtoReflect() protoreflect.Message {
150	mi := &file_google_cloud_automl_v1_text_extraction_proto_msgTypes[1]
151	if protoimpl.UnsafeEnabled && x != nil {
152		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
153		if ms.LoadMessageInfo() == nil {
154			ms.StoreMessageInfo(mi)
155		}
156		return ms
157	}
158	return mi.MessageOf(x)
159}
160
161// Deprecated: Use TextExtractionEvaluationMetrics.ProtoReflect.Descriptor instead.
162func (*TextExtractionEvaluationMetrics) Descriptor() ([]byte, []int) {
163	return file_google_cloud_automl_v1_text_extraction_proto_rawDescGZIP(), []int{1}
164}
165
166func (x *TextExtractionEvaluationMetrics) GetAuPrc() float32 {
167	if x != nil {
168		return x.AuPrc
169	}
170	return 0
171}
172
173func (x *TextExtractionEvaluationMetrics) GetConfidenceMetricsEntries() []*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry {
174	if x != nil {
175		return x.ConfidenceMetricsEntries
176	}
177	return nil
178}
179
180// Metrics for a single confidence threshold.
181type TextExtractionEvaluationMetrics_ConfidenceMetricsEntry struct {
182	state         protoimpl.MessageState
183	sizeCache     protoimpl.SizeCache
184	unknownFields protoimpl.UnknownFields
185
186	// Output only. The confidence threshold value used to compute the metrics.
187	// Only annotations with score of at least this threshold are considered to
188	// be ones the model would return.
189	ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"`
190	// Output only. Recall under the given confidence threshold.
191	Recall float32 `protobuf:"fixed32,3,opt,name=recall,proto3" json:"recall,omitempty"`
192	// Output only. Precision under the given confidence threshold.
193	Precision float32 `protobuf:"fixed32,4,opt,name=precision,proto3" json:"precision,omitempty"`
194	// Output only. The harmonic mean of recall and precision.
195	F1Score float32 `protobuf:"fixed32,5,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"`
196}
197
198func (x *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) Reset() {
199	*x = TextExtractionEvaluationMetrics_ConfidenceMetricsEntry{}
200	if protoimpl.UnsafeEnabled {
201		mi := &file_google_cloud_automl_v1_text_extraction_proto_msgTypes[2]
202		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
203		ms.StoreMessageInfo(mi)
204	}
205}
206
207func (x *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) String() string {
208	return protoimpl.X.MessageStringOf(x)
209}
210
211func (*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) ProtoMessage() {}
212
213func (x *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) ProtoReflect() protoreflect.Message {
214	mi := &file_google_cloud_automl_v1_text_extraction_proto_msgTypes[2]
215	if protoimpl.UnsafeEnabled && x != nil {
216		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
217		if ms.LoadMessageInfo() == nil {
218			ms.StoreMessageInfo(mi)
219		}
220		return ms
221	}
222	return mi.MessageOf(x)
223}
224
225// Deprecated: Use TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.ProtoReflect.Descriptor instead.
226func (*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) Descriptor() ([]byte, []int) {
227	return file_google_cloud_automl_v1_text_extraction_proto_rawDescGZIP(), []int{1, 0}
228}
229
230func (x *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetConfidenceThreshold() float32 {
231	if x != nil {
232		return x.ConfidenceThreshold
233	}
234	return 0
235}
236
237func (x *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetRecall() float32 {
238	if x != nil {
239		return x.Recall
240	}
241	return 0
242}
243
244func (x *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetPrecision() float32 {
245	if x != nil {
246		return x.Precision
247	}
248	return 0
249}
250
251func (x *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetF1Score() float32 {
252	if x != nil {
253		return x.F1Score
254	}
255	return 0
256}
257
258var File_google_cloud_automl_v1_text_extraction_proto protoreflect.FileDescriptor
259
260var file_google_cloud_automl_v1_text_extraction_proto_rawDesc = []byte{
261	0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
262	0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x78,
263	0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16,
264	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74,
265	0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63,
266	0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x74,
267	0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
268	0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
269	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
270	0x88, 0x01, 0x0a, 0x18, 0x54, 0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69,
271	0x6f, 0x6e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x0c,
272	0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,
273	0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
274	0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74,
275	0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x53,
276	0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18,
277	0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0c, 0x0a, 0x0a,
278	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe6, 0x02, 0x0a, 0x1f, 0x54,
279	0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x61,
280	0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x15,
281	0x0a, 0x06, 0x61, 0x75, 0x5f, 0x70, 0x72, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05,
282	0x61, 0x75, 0x50, 0x72, 0x63, 0x12, 0x8c, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64,
283	0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x65, 0x6e, 0x74,
284	0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4e, 0x2e, 0x67, 0x6f, 0x6f,
285	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c,
286	0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69,
287	0x6f, 0x6e, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72,
288	0x69, 0x63, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x65,
289	0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x18, 0x63, 0x6f, 0x6e, 0x66,
290	0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74,
291	0x72, 0x69, 0x65, 0x73, 0x1a, 0x9c, 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65,
292	0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
293	0x31, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x68,
294	0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x63,
295	0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
296	0x6c, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01,
297	0x28, 0x02, 0x52, 0x06, 0x72, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72,
298	0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x70,
299	0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x31, 0x5f, 0x73,
300	0x63, 0x6f, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x66, 0x31, 0x53, 0x63,
301	0x6f, 0x72, 0x65, 0x42, 0xaa, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
302	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e,
303	0x76, 0x31, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
304	0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
305	0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
306	0x64, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x6f,
307	0x6d, 0x6c, 0xaa, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
308	0x64, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f,
309	0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x75, 0x74, 0x6f, 0x4d,
310	0x6c, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43,
311	0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a, 0x3a, 0x56, 0x31,
312	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
313}
314
315var (
316	file_google_cloud_automl_v1_text_extraction_proto_rawDescOnce sync.Once
317	file_google_cloud_automl_v1_text_extraction_proto_rawDescData = file_google_cloud_automl_v1_text_extraction_proto_rawDesc
318)
319
320func file_google_cloud_automl_v1_text_extraction_proto_rawDescGZIP() []byte {
321	file_google_cloud_automl_v1_text_extraction_proto_rawDescOnce.Do(func() {
322		file_google_cloud_automl_v1_text_extraction_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1_text_extraction_proto_rawDescData)
323	})
324	return file_google_cloud_automl_v1_text_extraction_proto_rawDescData
325}
326
327var file_google_cloud_automl_v1_text_extraction_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
328var file_google_cloud_automl_v1_text_extraction_proto_goTypes = []interface{}{
329	(*TextExtractionAnnotation)(nil),                               // 0: google.cloud.automl.v1.TextExtractionAnnotation
330	(*TextExtractionEvaluationMetrics)(nil),                        // 1: google.cloud.automl.v1.TextExtractionEvaluationMetrics
331	(*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry)(nil), // 2: google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
332	(*TextSegment)(nil),                                            // 3: google.cloud.automl.v1.TextSegment
333}
334var file_google_cloud_automl_v1_text_extraction_proto_depIdxs = []int32{
335	3, // 0: google.cloud.automl.v1.TextExtractionAnnotation.text_segment:type_name -> google.cloud.automl.v1.TextSegment
336	2, // 1: google.cloud.automl.v1.TextExtractionEvaluationMetrics.confidence_metrics_entries:type_name -> google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
337	2, // [2:2] is the sub-list for method output_type
338	2, // [2:2] is the sub-list for method input_type
339	2, // [2:2] is the sub-list for extension type_name
340	2, // [2:2] is the sub-list for extension extendee
341	0, // [0:2] is the sub-list for field type_name
342}
343
344func init() { file_google_cloud_automl_v1_text_extraction_proto_init() }
345func file_google_cloud_automl_v1_text_extraction_proto_init() {
346	if File_google_cloud_automl_v1_text_extraction_proto != nil {
347		return
348	}
349	file_google_cloud_automl_v1_text_segment_proto_init()
350	if !protoimpl.UnsafeEnabled {
351		file_google_cloud_automl_v1_text_extraction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
352			switch v := v.(*TextExtractionAnnotation); i {
353			case 0:
354				return &v.state
355			case 1:
356				return &v.sizeCache
357			case 2:
358				return &v.unknownFields
359			default:
360				return nil
361			}
362		}
363		file_google_cloud_automl_v1_text_extraction_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
364			switch v := v.(*TextExtractionEvaluationMetrics); i {
365			case 0:
366				return &v.state
367			case 1:
368				return &v.sizeCache
369			case 2:
370				return &v.unknownFields
371			default:
372				return nil
373			}
374		}
375		file_google_cloud_automl_v1_text_extraction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
376			switch v := v.(*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry); i {
377			case 0:
378				return &v.state
379			case 1:
380				return &v.sizeCache
381			case 2:
382				return &v.unknownFields
383			default:
384				return nil
385			}
386		}
387	}
388	file_google_cloud_automl_v1_text_extraction_proto_msgTypes[0].OneofWrappers = []interface{}{
389		(*TextExtractionAnnotation_TextSegment)(nil),
390	}
391	type x struct{}
392	out := protoimpl.TypeBuilder{
393		File: protoimpl.DescBuilder{
394			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
395			RawDescriptor: file_google_cloud_automl_v1_text_extraction_proto_rawDesc,
396			NumEnums:      0,
397			NumMessages:   3,
398			NumExtensions: 0,
399			NumServices:   0,
400		},
401		GoTypes:           file_google_cloud_automl_v1_text_extraction_proto_goTypes,
402		DependencyIndexes: file_google_cloud_automl_v1_text_extraction_proto_depIdxs,
403		MessageInfos:      file_google_cloud_automl_v1_text_extraction_proto_msgTypes,
404	}.Build()
405	File_google_cloud_automl_v1_text_extraction_proto = out.File
406	file_google_cloud_automl_v1_text_extraction_proto_rawDesc = nil
407	file_google_cloud_automl_v1_text_extraction_proto_goTypes = nil
408	file_google_cloud_automl_v1_text_extraction_proto_depIdxs = nil
409}
410