public void MergeFrom(Target other) { if (other == null) { return; } if (other.X != 0) { X = other.X; } if (other.Y != 0) { Y = other.Y; } if (other.W != 0) { W = other.W; } if (other.H != 0) { H = other.H; } if (other.Type != 0) { Type = other.Type; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { X = input.ReadInt32(); break; } case 16: { Y = input.ReadInt32(); break; } case 24: { W = input.ReadInt32(); break; } case 32: { H = input.ReadInt32(); break; } case 40: { type_ = (global::Suresecureivs.Target.Types.Type)input.ReadEnum(); break; } } } }