Debian Codegraph @

googleapis/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.pb.go

raw
1 // Copyright 2021 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/aiplatform/v1/schema/predict/prediction/image_object_detection.proto
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 structpb "google.golang.org/protobuf/types/known/structpb"
30 )
31
32 const (
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 // Prediction output format for Image Object Detection.
40 type ImageObjectDetectionPredictionResult struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // The resource IDs of the AnnotationSpecs that had been identified, ordered
46 // by the confidence score descendingly.
47 Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
48 // The display names of the AnnotationSpecs that had been identified, order
49 // matches the IDs.
50 DisplayNames []string `protobuf:"bytes,2,rep,name=display_names,json=displayNames,proto3" json:"display_names,omitempty"`
51 // The Model's confidences in correctness of the predicted IDs, higher value
52 // means higher confidence. Order matches the Ids.
53 Confidences []float32 `protobuf:"fixed32,3,rep,packed,name=confidences,proto3" json:"confidences,omitempty"`
54 // Bounding boxes, i.e. the rectangles over the image, that pinpoint
55 // the found AnnotationSpecs. Given in order that matches the IDs. Each
56 // bounding box is an array of 4 numbers `xMin`, `xMax`, `yMin`, and
57 // `yMax`, which represent the extremal coordinates of the box. They are
58 // relative to the image size, and the point 0,0 is in the top left
59 // of the image.
60 Bboxes []*structpb.ListValue `protobuf:"bytes,4,rep,name=bboxes,proto3" json:"bboxes,omitempty"`
61 }
62
63 func (x *ImageObjectDetectionPredictionResult) Reset() {
64 *x = ImageObjectDetectionPredictionResult{}
65 if protoimpl.UnsafeEnabled {
66 mi := &file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70 }
71
72 func (x *ImageObjectDetectionPredictionResult) String() string {
73 return protoimpl.X.MessageStringOf(x)
74 }
75
76 func (*ImageObjectDetectionPredictionResult) ProtoMessage() {}
77
78 func (x *ImageObjectDetectionPredictionResult) ProtoReflect() protoreflect.Message {
79 mi := &file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_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 // Deprecated: Use ImageObjectDetectionPredictionResult.ProtoReflect.Descriptor instead.
91 func (*ImageObjectDetectionPredictionResult) Descriptor() ([]byte, []int) {
92 return file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDescGZIP(), []int{0}
93 }
94
95 func (x *ImageObjectDetectionPredictionResult) GetIds() []int64 {
96 if x != nil {
97 return x.Ids
98 }
99 return nil
100 }
101
102 func (x *ImageObjectDetectionPredictionResult) GetDisplayNames() []string {
103 if x != nil {
104 return x.DisplayNames
105 }
106 return nil
107 }
108
109 func (x *ImageObjectDetectionPredictionResult) GetConfidences() []float32 {
110 if x != nil {
111 return x.Confidences
112 }
113 return nil
114 }
115
116 func (x *ImageObjectDetectionPredictionResult) GetBboxes() []*structpb.ListValue {
117 if x != nil {
118 return x.Bboxes
119 }
120 return nil
121 }
122
123 var File_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto protoreflect.FileDescriptor
124
125 var file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDesc = []byte{
126 0x0a, 0x51, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
127 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68,
128 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64,
129 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x62, 0x6a,
130 0x65, 0x63, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
131 0x6f, 0x74, 0x6f, 0x12, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
132 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e,
133 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70,
134 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
135 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63,
136 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3, 0x01, 0x0a, 0x24, 0x49, 0x6d, 0x61, 0x67,
137 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
138 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
139 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x03, 0x69,
140 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,
141 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c,
142 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69,
143 0x64, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x02, 0x52, 0x0b, 0x63, 0x6f,
144 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x06, 0x62, 0x62, 0x6f,
145 0x78, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
146 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4c, 0x69, 0x73, 0x74,
147 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x62, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x42, 0xf2, 0x02,
148 0x0a, 0x38, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
149 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31,
150 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e,
151 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x29, 0x49, 0x6d, 0x61, 0x67,
152 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
153 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
154 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
155 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
156 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63,
157 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f,
158 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63,
159 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x70, 0x72, 0x65,
160 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x34, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
161 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
162 0x6d, 0x2e, 0x56, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64,
163 0x69, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02,
164 0x34, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49,
165 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x5c, 0x53, 0x63, 0x68, 0x65,
166 0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69,
167 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xea, 0x02, 0x3a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
168 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
169 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3a, 0x3a, 0x50,
170 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69,
171 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
172 }
173
174 var (
175 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDescOnce sync.Once
176 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDescData = file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDesc
177 )
178
179 func file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDescGZIP() []byte {
180 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDescOnce.Do(func() {
181 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDescData)
182 })
183 return file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDescData
184 }
185
186 var file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
187 var file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_goTypes = []interface{}{
188 (*ImageObjectDetectionPredictionResult)(nil), // 0: google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult
189 (*structpb.ListValue)(nil), // 1: google.protobuf.ListValue
190 }
191 var file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_depIdxs = []int32{
192 1, // 0: google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.bboxes:type_name -> google.protobuf.ListValue
193 1, // [1:1] is the sub-list for method output_type
194 1, // [1:1] is the sub-list for method input_type
195 1, // [1:1] is the sub-list for extension type_name
196 1, // [1:1] is the sub-list for extension extendee
197 0, // [0:1] is the sub-list for field type_name
198 }
199
200 func init() {
201 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_init()
202 }
203 func file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_init() {
204 if File_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto != nil {
205 return
206 }
207 if !protoimpl.UnsafeEnabled {
208 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
209 switch v := v.(*ImageObjectDetectionPredictionResult); i {
210 case 0:
211 return &v.state
212 case 1:
213 return &v.sizeCache
214 case 2:
215 return &v.unknownFields
216 default:
217 return nil
218 }
219 }
220 }
221 type x struct{}
222 out := protoimpl.TypeBuilder{
223 File: protoimpl.DescBuilder{
224 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
225 RawDescriptor: file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDesc,
226 NumEnums: 0,
227 NumMessages: 1,
228 NumExtensions: 0,
229 NumServices: 0,
230 },
231 GoTypes: file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_goTypes,
232 DependencyIndexes: file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_depIdxs,
233 MessageInfos: file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_msgTypes,
234 }.Build()
235 File_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto = out.File
236 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_rawDesc = nil
237 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_goTypes = nil
238 file_google_cloud_aiplatform_v1_schema_predict_prediction_image_object_detection_proto_depIdxs = nil
239 }