Пример #1
0
 public void MergeFrom(ProductSearchParams other)
 {
     if (other == null)
     {
         return;
     }
     if (other.boundingPoly_ != null)
     {
         if (boundingPoly_ == null)
         {
             boundingPoly_ = new global::Google.Cloud.Vision.V1.BoundingPoly();
         }
         BoundingPoly.MergeFrom(other.BoundingPoly);
     }
     if (other.ProductSet.Length != 0)
     {
         ProductSet = other.ProductSet;
     }
     productCategories_.Add(other.productCategories_);
     if (other.Filter.Length != 0)
     {
         Filter = other.Filter;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
 public void MergeFrom(GroupedResult other)
 {
     if (other == null)
     {
         return;
     }
     if (other.boundingPoly_ != null)
     {
         if (boundingPoly_ == null)
         {
             boundingPoly_ = new global::Google.Cloud.Vision.V1.BoundingPoly();
         }
         BoundingPoly.MergeFrom(other.BoundingPoly);
     }
     results_.Add(other.results_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }