示例#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 override int GetHashCode()
                {
                    int hash = 1;

                    if (boundingPoly_ != null)
                    {
                        hash ^= BoundingPoly.GetHashCode();
                    }
                    hash ^= results_.GetHashCode();
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
示例#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 override int GetHashCode()
        {
            int hash = 1;

            if (boundingPoly_ != null)
            {
                hash ^= BoundingPoly.GetHashCode();
            }
            if (ProductSet.Length != 0)
            {
                hash ^= ProductSet.GetHashCode();
            }
            hash ^= productCategories_.GetHashCode();
            if (Filter.Length != 0)
            {
                hash ^= Filter.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }