1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package prediction
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39 type TextExtractionPredictionResult struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44
45
46 Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
47
48
49 DisplayNames []string `protobuf:"bytes,2,rep,name=display_names,json=displayNames,proto3" json:"display_names,omitempty"`
50
51
52
53 TextSegmentStartOffsets []int64 `protobuf:"varint,3,rep,packed,name=text_segment_start_offsets,json=textSegmentStartOffsets,proto3" json:"text_segment_start_offsets,omitempty"`
54
55
56
57 TextSegmentEndOffsets []int64 `protobuf:"varint,4,rep,packed,name=text_segment_end_offsets,json=textSegmentEndOffsets,proto3" json:"text_segment_end_offsets,omitempty"`
58
59
60 Confidences []float32 `protobuf:"fixed32,5,rep,packed,name=confidences,proto3" json:"confidences,omitempty"`
61 }
62
63 func (x *TextExtractionPredictionResult) Reset() {
64 *x = TextExtractionPredictionResult{}
65 if protoimpl.UnsafeEnabled {
66 mi := &file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70 }
71
72 func (x *TextExtractionPredictionResult) String() string {
73 return protoimpl.X.MessageStringOf(x)
74 }
75
76 func (*TextExtractionPredictionResult) ProtoMessage() {}
77
78 func (x *TextExtractionPredictionResult) ProtoReflect() protoreflect.Message {
79 mi := &file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_msgTypes[0]
80 if protoimpl.UnsafeEnabled && x != nil {
81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82 if ms.LoadMessageInfo() == nil {
83 ms.StoreMessageInfo(mi)
84 }
85 return ms
86 }
87 return mi.MessageOf(x)
88 }
89
90
91 func (*TextExtractionPredictionResult) Descriptor() ([]byte, []int) {
92 return file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDescGZIP(), []int{0}
93 }
94
95 func (x *TextExtractionPredictionResult) GetIds() []int64 {
96 if x != nil {
97 return x.Ids
98 }
99 return nil
100 }
101
102 func (x *TextExtractionPredictionResult) GetDisplayNames() []string {
103 if x != nil {
104 return x.DisplayNames
105 }
106 return nil
107 }
108
109 func (x *TextExtractionPredictionResult) GetTextSegmentStartOffsets() []int64 {
110 if x != nil {
111 return x.TextSegmentStartOffsets
112 }
113 return nil
114 }
115
116 func (x *TextExtractionPredictionResult) GetTextSegmentEndOffsets() []int64 {
117 if x != nil {
118 return x.TextSegmentEndOffsets
119 }
120 return nil
121 }
122
123 func (x *TextExtractionPredictionResult) GetConfidences() []float32 {
124 if x != nil {
125 return x.Confidences
126 }
127 return nil
128 }
129
130 var File_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto protoreflect.FileDescriptor
131
132 var file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDesc = []byte{
133 0x0a, 0x4a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
134 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68,
135 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64,
136 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x72,
137 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x34, 0x67, 0x6f,
138 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61,
139 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e,
140 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69,
141 0x6f, 0x6e, 0x22, 0xef, 0x01, 0x0a, 0x1e, 0x54, 0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61,
142 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,
143 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03,
144 0x28, 0x03, 0x52, 0x03, 0x69, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x70, 0x6c,
145 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,
146 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a,
147 0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61,
148 0x72, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03,
149 0x52, 0x17, 0x74, 0x65, 0x78, 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61,
150 0x72, 0x74, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x74, 0x65, 0x78,
151 0x74, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x6f, 0x66,
152 0x66, 0x73, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x65, 0x78,
153 0x74, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x64, 0x4f, 0x66, 0x66, 0x73, 0x65,
154 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65,
155 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x02, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65,
156 0x6e, 0x63, 0x65, 0x73, 0x42, 0xec, 0x02, 0x0a, 0x38, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
157 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74,
158 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70,
159 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f,
160 0x6e, 0x42, 0x23, 0x54, 0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
161 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c,
162 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
163 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
164 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
165 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
166 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69,
167 0x63, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x70, 0x72,
168 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x34, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
169 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f,
170 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x72, 0x65,
171 0x64, 0x69, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xca,
172 0x02, 0x34, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41,
173 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x5c, 0x53, 0x63, 0x68,
174 0x65, 0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x5c, 0x50, 0x72, 0x65, 0x64,
175 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xea, 0x02, 0x3a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
176 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f,
177 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3a, 0x3a,
178 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
179 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
180 }
181
182 var (
183 file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDescOnce sync.Once
184 file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDescData = file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDesc
185 )
186
187 func file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDescGZIP() []byte {
188 file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDescOnce.Do(func() {
189 file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDescData)
190 })
191 return file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDescData
192 }
193
194 var file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
195 var file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_goTypes = []interface{}{
196 (*TextExtractionPredictionResult)(nil),
197 }
198 var file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_depIdxs = []int32{
199 0,
200 0,
201 0,
202 0,
203 0,
204 }
205
206 func init() { file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_init() }
207 func file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_init() {
208 if File_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto != nil {
209 return
210 }
211 if !protoimpl.UnsafeEnabled {
212 file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
213 switch v := v.(*TextExtractionPredictionResult); i {
214 case 0:
215 return &v.state
216 case 1:
217 return &v.sizeCache
218 case 2:
219 return &v.unknownFields
220 default:
221 return nil
222 }
223 }
224 }
225 type x struct{}
226 out := protoimpl.TypeBuilder{
227 File: protoimpl.DescBuilder{
228 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
229 RawDescriptor: file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDesc,
230 NumEnums: 0,
231 NumMessages: 1,
232 NumExtensions: 0,
233 NumServices: 0,
234 },
235 GoTypes: file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_goTypes,
236 DependencyIndexes: file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_depIdxs,
237 MessageInfos: file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_msgTypes,
238 }.Build()
239 File_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto = out.File
240 file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_rawDesc = nil
241 file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_goTypes = nil
242 file_google_cloud_aiplatform_v1_schema_predict_prediction_text_extraction_proto_depIdxs = nil
243 }
244
View as plain text