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 (product_ == null) { product_ = new global::Google.Cloud.Vision.V1.Product(); } input.ReadMessage(product_); break; } case 21: { Score = input.ReadFloat(); break; } case 26: { Image = input.ReadString(); break; } } } }
public void MergeFrom(Result other) { if (other == null) { return; } if (other.product_ != null) { if (product_ == null) { product_ = new global::Google.Cloud.Vision.V1.Product(); } Product.MergeFrom(other.Product); } if (other.Score != 0F) { Score = other.Score; } if (other.Image.Length != 0) { Image = other.Image; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }