How to use Box method of proto Package

Best Rod code snippet using proto.Box

detection.pb.go

Source:detection.pb.go Github

copy

Full Screen

...40 state protoimpl.MessageState41 sizeCache protoimpl.SizeCache42 unknownFields protoimpl.UnknownFields43 // Output only. The rectangle representing the object location.44 BoundingBox *BoundingPoly `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`45 // Output only. The confidence that this annotation is positive for the parent example,46 // value in [0, 1], higher means higher positivity confidence.47 Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`48}49func (x *ImageObjectDetectionAnnotation) Reset() {50 *x = ImageObjectDetectionAnnotation{}51 if protoimpl.UnsafeEnabled {52 mi := &file_google_cloud_automl_v1_detection_proto_msgTypes[0]53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))54 ms.StoreMessageInfo(mi)55 }56}57func (x *ImageObjectDetectionAnnotation) String() string {58 return protoimpl.X.MessageStringOf(x)59}60func (*ImageObjectDetectionAnnotation) ProtoMessage() {}61func (x *ImageObjectDetectionAnnotation) ProtoReflect() protoreflect.Message {62 mi := &file_google_cloud_automl_v1_detection_proto_msgTypes[0]63 if protoimpl.UnsafeEnabled && x != nil {64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))65 if ms.LoadMessageInfo() == nil {66 ms.StoreMessageInfo(mi)67 }68 return ms69 }70 return mi.MessageOf(x)71}72// Deprecated: Use ImageObjectDetectionAnnotation.ProtoReflect.Descriptor instead.73func (*ImageObjectDetectionAnnotation) Descriptor() ([]byte, []int) {74 return file_google_cloud_automl_v1_detection_proto_rawDescGZIP(), []int{0}75}76func (x *ImageObjectDetectionAnnotation) GetBoundingBox() *BoundingPoly {77 if x != nil {78 return x.BoundingBox79 }80 return nil81}82func (x *ImageObjectDetectionAnnotation) GetScore() float32 {83 if x != nil {84 return x.Score85 }86 return 087}88// Bounding box matching model metrics for a single intersection-over-union89// threshold and multiple label match confidence thresholds.90type BoundingBoxMetricsEntry struct {91 state protoimpl.MessageState92 sizeCache protoimpl.SizeCache93 unknownFields protoimpl.UnknownFields94 // Output only. The intersection-over-union threshold value used to compute95 // this metrics entry.96 IouThreshold float32 `protobuf:"fixed32,1,opt,name=iou_threshold,json=iouThreshold,proto3" json:"iou_threshold,omitempty"`97 // Output only. The mean average precision, most often close to au_prc.98 MeanAveragePrecision float32 `protobuf:"fixed32,2,opt,name=mean_average_precision,json=meanAveragePrecision,proto3" json:"mean_average_precision,omitempty"`99 // Output only. Metrics for each label-match confidence_threshold from100 // 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is101 // derived from them.102 ConfidenceMetricsEntries []*BoundingBoxMetricsEntry_ConfidenceMetricsEntry `protobuf:"bytes,3,rep,name=confidence_metrics_entries,json=confidenceMetricsEntries,proto3" json:"confidence_metrics_entries,omitempty"`103}104func (x *BoundingBoxMetricsEntry) Reset() {105 *x = BoundingBoxMetricsEntry{}106 if protoimpl.UnsafeEnabled {107 mi := &file_google_cloud_automl_v1_detection_proto_msgTypes[1]108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))109 ms.StoreMessageInfo(mi)110 }111}112func (x *BoundingBoxMetricsEntry) String() string {113 return protoimpl.X.MessageStringOf(x)114}115func (*BoundingBoxMetricsEntry) ProtoMessage() {}116func (x *BoundingBoxMetricsEntry) ProtoReflect() protoreflect.Message {117 mi := &file_google_cloud_automl_v1_detection_proto_msgTypes[1]118 if protoimpl.UnsafeEnabled && x != nil {119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))120 if ms.LoadMessageInfo() == nil {121 ms.StoreMessageInfo(mi)122 }123 return ms124 }125 return mi.MessageOf(x)126}127// Deprecated: Use BoundingBoxMetricsEntry.ProtoReflect.Descriptor instead.128func (*BoundingBoxMetricsEntry) Descriptor() ([]byte, []int) {129 return file_google_cloud_automl_v1_detection_proto_rawDescGZIP(), []int{1}130}131func (x *BoundingBoxMetricsEntry) GetIouThreshold() float32 {132 if x != nil {133 return x.IouThreshold134 }135 return 0136}137func (x *BoundingBoxMetricsEntry) GetMeanAveragePrecision() float32 {138 if x != nil {139 return x.MeanAveragePrecision140 }141 return 0142}143func (x *BoundingBoxMetricsEntry) GetConfidenceMetricsEntries() []*BoundingBoxMetricsEntry_ConfidenceMetricsEntry {144 if x != nil {145 return x.ConfidenceMetricsEntries146 }147 return nil148}149// Model evaluation metrics for image object detection problems.150// Evaluates prediction quality of labeled bounding boxes.151type ImageObjectDetectionEvaluationMetrics struct {152 state protoimpl.MessageState153 sizeCache protoimpl.SizeCache154 unknownFields protoimpl.UnknownFields155 // Output only. The total number of bounding boxes (i.e. summed over all156 // images) the ground truth used to create this evaluation had.157 EvaluatedBoundingBoxCount int32 `protobuf:"varint,1,opt,name=evaluated_bounding_box_count,json=evaluatedBoundingBoxCount,proto3" json:"evaluated_bounding_box_count,omitempty"`158 // Output only. The bounding boxes match metrics for each159 // Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99160 // and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99161 // pair.162 BoundingBoxMetricsEntries []*BoundingBoxMetricsEntry `protobuf:"bytes,2,rep,name=bounding_box_metrics_entries,json=boundingBoxMetricsEntries,proto3" json:"bounding_box_metrics_entries,omitempty"`163 // Output only. The single metric for bounding boxes evaluation:164 // the mean_average_precision averaged over all bounding_box_metrics_entries.165 BoundingBoxMeanAveragePrecision float32 `protobuf:"fixed32,3,opt,name=bounding_box_mean_average_precision,json=boundingBoxMeanAveragePrecision,proto3" json:"bounding_box_mean_average_precision,omitempty"`166}167func (x *ImageObjectDetectionEvaluationMetrics) Reset() {168 *x = ImageObjectDetectionEvaluationMetrics{}169 if protoimpl.UnsafeEnabled {170 mi := &file_google_cloud_automl_v1_detection_proto_msgTypes[2]171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))172 ms.StoreMessageInfo(mi)173 }174}175func (x *ImageObjectDetectionEvaluationMetrics) String() string {176 return protoimpl.X.MessageStringOf(x)177}178func (*ImageObjectDetectionEvaluationMetrics) ProtoMessage() {}179func (x *ImageObjectDetectionEvaluationMetrics) ProtoReflect() protoreflect.Message {180 mi := &file_google_cloud_automl_v1_detection_proto_msgTypes[2]181 if protoimpl.UnsafeEnabled && x != nil {182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))183 if ms.LoadMessageInfo() == nil {184 ms.StoreMessageInfo(mi)185 }186 return ms187 }188 return mi.MessageOf(x)189}190// Deprecated: Use ImageObjectDetectionEvaluationMetrics.ProtoReflect.Descriptor instead.191func (*ImageObjectDetectionEvaluationMetrics) Descriptor() ([]byte, []int) {192 return file_google_cloud_automl_v1_detection_proto_rawDescGZIP(), []int{2}193}194func (x *ImageObjectDetectionEvaluationMetrics) GetEvaluatedBoundingBoxCount() int32 {195 if x != nil {196 return x.EvaluatedBoundingBoxCount197 }198 return 0199}200func (x *ImageObjectDetectionEvaluationMetrics) GetBoundingBoxMetricsEntries() []*BoundingBoxMetricsEntry {201 if x != nil {202 return x.BoundingBoxMetricsEntries203 }204 return nil205}206func (x *ImageObjectDetectionEvaluationMetrics) GetBoundingBoxMeanAveragePrecision() float32 {207 if x != nil {208 return x.BoundingBoxMeanAveragePrecision209 }210 return 0211}212// Metrics for a single confidence threshold.213type BoundingBoxMetricsEntry_ConfidenceMetricsEntry struct {214 state protoimpl.MessageState215 sizeCache protoimpl.SizeCache216 unknownFields protoimpl.UnknownFields217 // Output only. The confidence threshold value used to compute the metrics.218 ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"`219 // Output only. Recall under the given confidence threshold.220 Recall float32 `protobuf:"fixed32,2,opt,name=recall,proto3" json:"recall,omitempty"`221 // Output only. Precision under the given confidence threshold.222 Precision float32 `protobuf:"fixed32,3,opt,name=precision,proto3" json:"precision,omitempty"`223 // Output only. The harmonic mean of recall and precision.224 F1Score float32 `protobuf:"fixed32,4,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"`225}226func (x *BoundingBoxMetricsEntry_ConfidenceMetricsEntry) Reset() {227 *x = BoundingBoxMetricsEntry_ConfidenceMetricsEntry{}228 if protoimpl.UnsafeEnabled {229 mi := &file_google_cloud_automl_v1_detection_proto_msgTypes[3]230 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))231 ms.StoreMessageInfo(mi)232 }233}234func (x *BoundingBoxMetricsEntry_ConfidenceMetricsEntry) String() string {235 return protoimpl.X.MessageStringOf(x)236}237func (*BoundingBoxMetricsEntry_ConfidenceMetricsEntry) ProtoMessage() {}238func (x *BoundingBoxMetricsEntry_ConfidenceMetricsEntry) ProtoReflect() protoreflect.Message {239 mi := &file_google_cloud_automl_v1_detection_proto_msgTypes[3]240 if protoimpl.UnsafeEnabled && x != nil {241 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))242 if ms.LoadMessageInfo() == nil {243 ms.StoreMessageInfo(mi)244 }245 return ms246 }247 return mi.MessageOf(x)248}249// Deprecated: Use BoundingBoxMetricsEntry_ConfidenceMetricsEntry.ProtoReflect.Descriptor instead.250func (*BoundingBoxMetricsEntry_ConfidenceMetricsEntry) Descriptor() ([]byte, []int) {251 return file_google_cloud_automl_v1_detection_proto_rawDescGZIP(), []int{1, 0}252}253func (x *BoundingBoxMetricsEntry_ConfidenceMetricsEntry) GetConfidenceThreshold() float32 {254 if x != nil {255 return x.ConfidenceThreshold256 }257 return 0258}259func (x *BoundingBoxMetricsEntry_ConfidenceMetricsEntry) GetRecall() float32 {260 if x != nil {261 return x.Recall262 }263 return 0264}265func (x *BoundingBoxMetricsEntry_ConfidenceMetricsEntry) GetPrecision() float32 {266 if x != nil {267 return x.Precision268 }269 return 0270}271func (x *BoundingBoxMetricsEntry_ConfidenceMetricsEntry) GetF1Score() float32 {272 if x != nil {273 return x.F1Score274 }275 return 0276}277var File_google_cloud_automl_v1_detection_proto protoreflect.FileDescriptor278var file_google_cloud_automl_v1_detection_proto_rawDesc = []byte{279 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,280 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69,281 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,282 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31,283 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,284 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72,285 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,286 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,287 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,288 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,289 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x1e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4f, 0x62,290 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x6e,291 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0c, 0x62, 0x6f, 0x75, 0x6e, 0x64,292 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e,293 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74,294 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50,295 0x6f, 0x6c, 0x79, 0x52, 0x0b, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78,296 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52,297 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x9a, 0x03, 0x0a, 0x17, 0x42, 0x6f, 0x75, 0x6e, 0x64,298 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74,299 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6f, 0x75, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68,300 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x69, 0x6f, 0x75, 0x54, 0x68,301 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x6d, 0x65, 0x61, 0x6e, 0x5f,302 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f,303 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x14, 0x6d, 0x65, 0x61, 0x6e, 0x41, 0x76, 0x65,304 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x84, 0x01,305 0x0a, 0x1a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74,306 0x72, 0x69, 0x63, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,307 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,308 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e,309 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e,310 0x74, 0x72, 0x79, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x65,311 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x18, 0x63, 0x6f, 0x6e, 0x66,312 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74,313 0x72, 0x69, 0x65, 0x73, 0x1a, 0x9c, 0x01, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65,314 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,315 0x31, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x68,316 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x63,317 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,318 0x6c, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01,319 0x28, 0x02, 0x52, 0x06, 0x72, 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72,320 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x70,321 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x31, 0x5f, 0x73,322 0x63, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x66, 0x31, 0x53, 0x63,323 0x6f, 0x72, 0x65, 0x22, 0xa8, 0x02, 0x0a, 0x25, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a,324 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x61, 0x6c,325 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x3f, 0x0a,326 0x1c, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64,327 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20,328 0x01, 0x28, 0x05, 0x52, 0x19, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x64, 0x42, 0x6f,329 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x70,330 0x0a, 0x1c, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x5f, 0x6d,331 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02,332 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,333 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f,334 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,335 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x19, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42,336 0x6f, 0x78, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73,337 0x12, 0x4c, 0x0a, 0x23, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78,338 0x5f, 0x6d, 0x65, 0x61, 0x6e, 0x5f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72,339 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x1f, 0x62,340 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x4d, 0x65, 0x61, 0x6e, 0x41, 0x76,341 0x65, 0x72, 0x61, 0x67, 0x65, 0x50, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0xaa,342 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,343 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a,344 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,345 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,346 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x75, 0x74,347 0x6f, 0x6d, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6c, 0xaa, 0x02, 0x16,348 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74,349 0x6f, 0x4d, 0x4c, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,350 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x6c, 0x5c, 0x56, 0x31, 0xea,351 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a,352 0x3a, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x4c, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,353 0x74, 0x6f, 0x33,354}355var (356 file_google_cloud_automl_v1_detection_proto_rawDescOnce sync.Once357 file_google_cloud_automl_v1_detection_proto_rawDescData = file_google_cloud_automl_v1_detection_proto_rawDesc358)359func file_google_cloud_automl_v1_detection_proto_rawDescGZIP() []byte {360 file_google_cloud_automl_v1_detection_proto_rawDescOnce.Do(func() {361 file_google_cloud_automl_v1_detection_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_automl_v1_detection_proto_rawDescData)362 })363 return file_google_cloud_automl_v1_detection_proto_rawDescData364}365var file_google_cloud_automl_v1_detection_proto_msgTypes = make([]protoimpl.MessageInfo, 4)366var file_google_cloud_automl_v1_detection_proto_goTypes = []interface{}{367 (*ImageObjectDetectionAnnotation)(nil), // 0: google.cloud.automl.v1.ImageObjectDetectionAnnotation368 (*BoundingBoxMetricsEntry)(nil), // 1: google.cloud.automl.v1.BoundingBoxMetricsEntry369 (*ImageObjectDetectionEvaluationMetrics)(nil), // 2: google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics370 (*BoundingBoxMetricsEntry_ConfidenceMetricsEntry)(nil), // 3: google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry371 (*BoundingPoly)(nil), // 4: google.cloud.automl.v1.BoundingPoly372}373var file_google_cloud_automl_v1_detection_proto_depIdxs = []int32{374 4, // 0: google.cloud.automl.v1.ImageObjectDetectionAnnotation.bounding_box:type_name -> google.cloud.automl.v1.BoundingPoly375 3, // 1: google.cloud.automl.v1.BoundingBoxMetricsEntry.confidence_metrics_entries:type_name -> google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry376 1, // 2: google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics.bounding_box_metrics_entries:type_name -> google.cloud.automl.v1.BoundingBoxMetricsEntry377 3, // [3:3] is the sub-list for method output_type378 3, // [3:3] is the sub-list for method input_type379 3, // [3:3] is the sub-list for extension type_name380 3, // [3:3] is the sub-list for extension extendee381 0, // [0:3] is the sub-list for field type_name382}383func init() { file_google_cloud_automl_v1_detection_proto_init() }384func file_google_cloud_automl_v1_detection_proto_init() {385 if File_google_cloud_automl_v1_detection_proto != nil {386 return387 }388 file_google_cloud_automl_v1_geometry_proto_init()389 if !protoimpl.UnsafeEnabled {390 file_google_cloud_automl_v1_detection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {391 switch v := v.(*ImageObjectDetectionAnnotation); i {392 case 0:393 return &v.state394 case 1:395 return &v.sizeCache396 case 2:397 return &v.unknownFields398 default:399 return nil400 }401 }402 file_google_cloud_automl_v1_detection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {403 switch v := v.(*BoundingBoxMetricsEntry); i {404 case 0:405 return &v.state406 case 1:407 return &v.sizeCache408 case 2:409 return &v.unknownFields410 default:411 return nil412 }413 }414 file_google_cloud_automl_v1_detection_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {415 switch v := v.(*ImageObjectDetectionEvaluationMetrics); i {416 case 0:417 return &v.state418 case 1:419 return &v.sizeCache420 case 2:421 return &v.unknownFields422 default:423 return nil424 }425 }426 file_google_cloud_automl_v1_detection_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {427 switch v := v.(*BoundingBoxMetricsEntry_ConfidenceMetricsEntry); i {428 case 0:429 return &v.state430 case 1:431 return &v.sizeCache432 case 2:433 return &v.unknownFields434 default:435 return nil436 }437 }438 }439 type x struct{}440 out := protoimpl.TypeBuilder{441 File: protoimpl.DescBuilder{...

Full Screen

Full Screen

Box

Using AI Code Generation

copy

Full Screen

1import (2type Point struct {3}4func (p Point) Distance(q Point) float64 {5 return math.Hypot(q.X-p.X, q.Y-p.Y)6}7func (path Path) Distance() float64 {8 for i := range path {9 if i > 0 {10 sum += path[i-1].Distance(path[i])11 }12 }13}14func main() {15 p := Path{{1, 1}, {5, 1}, {5, 4}, {1, 1}}16 fmt.Println(p.Distance())17}18import (19type Point struct {20}21func (p Point) Distance(q Point) float64 {22 return math.Hypot(q.X-p.X, q.Y-p.Y)23}24func (path Path) Distance() float64 {25 for i := range path {26 if i > 0 {27 sum += path[i-1].Distance(path[i])28 }29 }30}31func (p *Point) ScaleBy(factor float64) {32}33func main() {34 r := &Point{1, 2}35 r.ScaleBy(2)36 fmt.Println(*r)37}38import (39type Point struct {40}41func (p Point) Distance(q Point) float64 {42 return math.Hypot(q.X-p.X, q.Y-p.Y)43}44func (path Path) Distance() float64 {45 for i := range path {46 if i > 0 {47 sum += path[i-1].Distance(path[i])48 }49 }50}51func (p *Point) ScaleBy(factor float64) {52}53func (p Point) ScaleBy2(factor float64) {54}55func main() {56 r := Point{

Full Screen

Full Screen

Box

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 b := proto.Box{Width: 10, Height: 20}4 fmt.Println("Area of box is ", b.Area())5}6import (7func main() {8 b := proto.Box{Width: 10, Height: 20}9 fmt.Println("Area of box is ", b.Area())10}11import (12func main() {13 b := proto.Box{Width: 10, Height: 20}14 fmt.Println("Area of box is ", b.Area())15}16import (17func main() {18 b := proto.Box{Width: 10, Height: 20}19 fmt.Println("Area of box is ", b.Area())20}21import (22func main() {23 b := proto.Box{Width: 10, Height: 20}24 fmt.Println("Area of box is ", b.Area())25}26import (27func main() {28 b := proto.Box{Width: 10, Height: 20}29 fmt.Println("Area of box is ", b.Area())30}31import (32func main() {33 b := proto.Box{Width: 10, Height: 20}34 fmt.Println("Area of box is ", b.Area())35}36import (37func main() {38 b := proto.Box{Width: 10, Height: 20}39 fmt.Println("Area of box is ", b.Area())40}41import (42func main() {43 b := proto.Box{Width: 10, Height: 20}44 fmt.Println("Area of box is ", b.Area())45}46import (47func main() {48 b := proto.Box{Width: 10, Height: 20}49 fmt.Println("Area of box is

Full Screen

Full Screen

Box

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 m := &Box{4 Width: proto.Int32(10),5 Height: proto.Int32(20),6 }7 data, err := proto.Marshal(m)8 if err != nil {9 fmt.Println("marshaling error: ", err)10 }11 newBox := &Box{}12 err = proto.Unmarshal(data, newBox)13 if err != nil {14 fmt.Println("unmarshaling error: ", err)15 }16 if m.GetWidth() != newBox.GetWidth() {17 fmt.Println("data mismatch %q != %q", m.GetWidth(), newBox.GetWidth())18 } else {19 fmt.Println("read data is ", newBox.GetWidth())20 }21}22import (23func main() {24 m := &Box{25 Width: proto.Int32(10),26 Height: proto.Int32(20),27 }28 data, err := proto.Marshal(m)29 if err != nil {30 fmt.Println("marshaling error: ", err)31 }32 newBox := &Box{}33 err = proto.Unmarshal(data, newBox)34 if err != nil {35 fmt.Println("unmarshaling error: ", err)36 }37 if m.GetWidth() != newBox.GetWidth() {38 fmt.Println("data mismatch %q != %q", m.GetWidth(), newBox.GetWidth())39 } else {40 fmt.Println("read data is ", newBox.GetWidth())41 }42}43import (44func main() {45 m := &Box{46 Width: proto.Int32(10),47 Height: proto.Int32(20),48 }

Full Screen

Full Screen

Box

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 b := &proto2.Box{4 Width: proto.Int32(10),5 Height: proto.Int32(20),6 Depth: proto.Int32(30),7 }8 fmt.Println("Box: ", b)9 fmt.Println("Width: ", b.GetWidth())10 fmt.Println("Height: ", b.GetHeight())11 fmt.Println("Depth: ", b.GetDepth())12 b1 := &proto2.Box{13 Width: proto.Int32(10),14 Height: proto.Int32(20),15 Depth: proto.Int32(30),16 }17 fmt.Println("Box: ", b1)18 fmt.Println("Width: ", b1.GetWidth())19 fmt.Println("Height: ", b1.GetHeight())20 fmt.Println("Depth: ", b1.GetDepth())21 b2 := &proto2.Box{22 Width: proto.Int32(10),23 Height: proto.Int32(20),24 Depth: proto.Int32(30),25 }26 fmt.Println("Box: ", b2)27 fmt.Println("Width: ", b2.GetWidth())28 fmt.Println("Height: ", b2.GetHeight())29 fmt.Println("Depth: ", b2.GetDepth())30 b3 := &proto2.Box{31 Width: proto.Int32(10),32 Height: proto.Int32(20),33 Depth: proto.Int32(30),34 }35 fmt.Println("Box: ", b3)36 fmt.Println("Width: ", b3.GetWidth())37 fmt.Println("Height: ", b3.GetHeight())38 fmt.Println("Depth: ", b3.GetDepth())39 b4 := &proto2.Box{40 Width: proto.Int32(10),41 Height: proto.Int32(20),42 Depth: proto.Int32(30),43 }44 fmt.Println("Box: ", b4)45 fmt.Println("Width: ", b4.GetWidth())46 fmt.Println("Height: ", b4.GetHeight())

Full Screen

Full Screen

Box

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 b := protobuf.Box{Length: 10, Breadth: 20}4 fmt.Println("The area of the box is", b.Area())5}6import (7func main() {8 b := protobuf.Box{Length: 10, Breadth: 20}9 fmt.Println("The area of the box is", b.Area())10}11import (12func main() {

Full Screen

Full Screen

Box

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 box1 := &box.Box{4 }5 data, err := proto.Marshal(box1)6 if err != nil {7 fmt.Println("Error in marshalling", err)8 }9 box2 := &box.Box{}10 err = proto.Unmarshal(data, box2)11 if err != nil {12 fmt.Println("Error in unmarshalling", err)13 }14 fmt.Println("Box 2", box2)15}

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Rod automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful