Debian Codegraph @

googleapis/cloud/aiplatform/v1beta1/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/v1beta1/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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_schema_predict_prediction_image_object_detection_proto protoreflect.FileDescriptor
124
125 var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDesc = []byte{
126 0x0a, 0x56, 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, 0x62, 0x65, 0x74, 0x61,
128 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
129 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x69, 0x6d, 0x61, 0x67,
130 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69,
131 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
132 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
133 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
134 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
135 0x69, 0x6f, 0x6e, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
136 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
137 0x6f, 0x22, 0xb3, 0x01, 0x0a, 0x24, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63,
138 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63,
139 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64,
140 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x03, 0x69, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d,
141 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20,
142 0x03, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65,
143 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x73,
144 0x18, 0x03, 0x20, 0x03, 0x28, 0x02, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e,
145 0x63, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x06, 0x62, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x18, 0x04, 0x20,
146 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
147 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
148 0x06, 0x62, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x42, 0x8b, 0x03, 0x0a, 0x3d, 0x63, 0x6f, 0x6d, 0x2e,
149 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70,
150 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
151 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70,
152 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x29, 0x49, 0x6d, 0x61, 0x67, 0x65,
153 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50,
154 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x50,
155 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x63, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
156 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
157 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c,
158 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76,
159 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72,
160 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,
161 0x3b, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x39, 0x47, 0x6f,
162 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61,
163 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x63,
164 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x65,
165 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x39, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
166 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
167 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
168 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
169 0x69, 0x6f, 0x6e, 0xea, 0x02, 0x3f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c,
170 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a,
171 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
172 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69,
173 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
174 }
175
176 var (
177 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDescOnce sync.Once
178 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDesc
179 )
180
181 func file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDescGZIP() []byte {
182 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDescOnce.Do(func() {
183 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDescData)
184 })
185 return file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDescData
186 }
187
188 var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
189 var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_goTypes = []interface{}{
190 (*ImageObjectDetectionPredictionResult)(nil), // 0: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult
191 (*structpb.ListValue)(nil), // 1: google.protobuf.ListValue
192 }
193 var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_depIdxs = []int32{
194 1, // 0: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ImageObjectDetectionPredictionResult.bboxes:type_name -> google.protobuf.ListValue
195 1, // [1:1] is the sub-list for method output_type
196 1, // [1:1] is the sub-list for method input_type
197 1, // [1:1] is the sub-list for extension type_name
198 1, // [1:1] is the sub-list for extension extendee
199 0, // [0:1] is the sub-list for field type_name
200 }
201
202 func init() {
203 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_init()
204 }
205 func file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_init() {
206 if File_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto != nil {
207 return
208 }
209 if !protoimpl.UnsafeEnabled {
210 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
211 switch v := v.(*ImageObjectDetectionPredictionResult); i {
212 case 0:
213 return &v.state
214 case 1:
215 return &v.sizeCache
216 case 2:
217 return &v.unknownFields
218 default:
219 return nil
220 }
221 }
222 }
223 type x struct{}
224 out := protoimpl.TypeBuilder{
225 File: protoimpl.DescBuilder{
226 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
227 RawDescriptor: file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDesc,
228 NumEnums: 0,
229 NumMessages: 1,
230 NumExtensions: 0,
231 NumServices: 0,
232 },
233 GoTypes: file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_goTypes,
234 DependencyIndexes: file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_depIdxs,
235 MessageInfos: file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_msgTypes,
236 }.Build()
237 File_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto = out.File
238 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_rawDesc = nil
239 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_goTypes = nil
240 file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_image_object_detection_proto_depIdxs = nil
241 }