예제 #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(pb::CodedInputStream input)
                {
                    uint tag;

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

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

                        case 18: {
                            results_.AddEntriesFrom(input, _repeated_results_codec);
                            break;
                        }
                        }
                    }
                }
예제 #3
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);
 }
예제 #4
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 50: {
                    ProductSet = input.ReadString();
                    break;
                }

                case 58: {
                    productCategories_.AddEntriesFrom(input, _repeated_productCategories_codec);
                    break;
                }

                case 66: {
                    Filter = input.ReadString();
                    break;
                }

                case 74: {
                    if (boundingPoly_ == null)
                    {
                        BoundingPoly = new global::Google.Cloud.Vision.V1.BoundingPoly();
                    }
                    input.ReadMessage(BoundingPoly);
                    break;
                }
                }
            }
        }