Esempio n. 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (boundingBox_ == null)
                    {
                        BoundingBox = new global::Google.Cloud.AutoML.V1.BoundingPoly();
                    }
                    input.ReadMessage(BoundingBox);
                    break;
                }

                case 21: {
                    Score = input.ReadFloat();
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(ImageObjectDetectionAnnotation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.boundingBox_ != null)
     {
         if (boundingBox_ == null)
         {
             BoundingBox = new global::Google.Cloud.AutoML.V1.BoundingPoly();
         }
         BoundingBox.MergeFrom(other.BoundingBox);
     }
     if (other.Score != 0F)
     {
         Score = other.Score;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }